Closed
Bug 357007
Opened 18 years ago
Closed 3 years ago
a bit better handling for namespaced attributes
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
The namespace of the attributes isn't handled for example in HasAttributeDependentStyle.
I'd like to change this, so that implementing xml:id and
DOM 3 setIdAttribute* efficiently would be a bit simpler.
Assignee | ||
Comment 1•18 years ago
|
||
Basically just adding PRInt32 aNamespaceID parameter to few methods and
using it whenever using aAttribute parameter too.
The changes to nsCSSFrameConstructor.cpp fixes two other cases when namespaced attributes might not be handled properly.
Attachment #242541 -
Flags: review?(bzbarsky)
Comment 2•18 years ago
|
||
HasAttributeDependentStyle is just an optimization. Are there really enough cases where pages use multiple attributes of the same name to make the extra code worthwhile?
Comment 3•18 years ago
|
||
smaug, I have no idea when I would be able to get to this review. :(
Assignee | ||
Comment 4•18 years ago
|
||
I'll make some tests to see how much this improves the performance when there are multiple IDs.
Updated•18 years ago
|
QA Contact: ian → style-system
Comment 5•17 years ago
|
||
Smaug, got any test results here?
Assignee | ||
Comment 6•17 years ago
|
||
I included this as a part of the current xml:id patch.
namespaces are needed there anyway and calls like GetIDAttributeName will be
namespace aware.
Assignee | ||
Updated•17 years ago
|
Attachment #242541 -
Flags: review?(bzbarsky)
Comment 7•17 years ago
|
||
Want to mark the dep?
Assignee | ||
Comment 8•3 years ago
|
||
This was for xml:id, I think, and that was removed.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•