Closed
Bug 209733
Opened 22 years ago
Closed 22 years ago
more efficient codepath for style changes on 'display: none' and descendant frames
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: dbaron)
Details
Attachments
(1 file, 1 obsolete file)
11.59 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Right now we use ReconstructFramesForContent in a few places to handle the case
of a content node that *might* now need a new frame but currently doesn't have
one (i.e., it's 'display:none' or a descendant of something that's
'display:none' -- and in the latter case it definitely doesn't need a new
frame). This is inefficient, because it does a bunch of notifications that
aren't needed. Furthermore, it leaves a stale style context in the undisplayed
map, which shouldn't cause a problem now because the only case where that causes
a problem is where we do ReconstructStyleData(PR_TRUE) in the pres shell.
However, it's worth fixing for that too so that we don't keep the undisplayed
map up-to-date 99% of the time, which could cause problems later.
Patch coming, once I extract it from a pile of other changes.
Assignee | ||
Comment 1•22 years ago
|
||
(It's worth mentioning that another reason I want to do this is to remove an
optimization currently in nsXULElement.cpp that passes NS_STYLE_HINT_NONE as
the AttributeChanged hint.)
Assignee | ||
Updated•22 years ago
|
Attachment #125878 -
Flags: superreview?(bzbarsky)
Attachment #125878 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•22 years ago
|
||
The right patch this time, with the callers.
Attachment #125878 -
Attachment is obsolete: true
![]() |
||
Comment 3•22 years ago
|
||
Comment on attachment 125943 [details] [diff] [review]
patch
r+sr=me
Attachment #125943 -
Flags: superreview+
Attachment #125943 -
Flags: review+
![]() |
||
Updated•22 years ago
|
Attachment #125878 -
Flags: superreview?(bzbarsky)
Attachment #125878 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•22 years ago
|
||
Fix checked in, 2003-06-18 14:54 -0700.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•