Closed
Bug 562700
Opened 15 years ago
Closed 15 years ago
Some more restyle APIs should take Element
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a5
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(3 files)
(deleted),
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
Specifically:
nsCSSFrameConstructor::MaybeRecreateFramesForContent
nsCSSFrameConstructor::PostRestyleEventCommon
nsStyleChangeList::AppendChange
Comment 1•15 years ago
|
||
Maybe I'm missing something, but don't we pass text nodes to PostRestyleEventCommon via RecreateFramesForContent sometimes?
Assignee | ||
Comment 2•15 years ago
|
||
That's one thing I'll have to check on, yes. Note that PostRestyleEventCommon currently has this code:
NS_ASSERTION(aContent->IsNodeOfType(nsINode::eELEMENT),
"Shouldn't be trying to restyle non-elements directly");
which suggests to me that in fact RecreateFramesForContent is not called on textnodes at the moment.... ;)
Comment 3•15 years ago
|
||
Okay. I was thinking of ReframeTextIfNeeded, but I see that it calls ContentInserted directly.
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #445276 -
Flags: review?(dbaron)
Assignee | ||
Comment 5•15 years ago
|
||
Attachment #445277 -
Flags: review?(dbaron)
Assignee | ||
Comment 6•15 years ago
|
||
I think nsStyleChangeList::AppendChange is in fact used for non-elements at the moment (with a reconstruct hint), at least at first glance, so not touching that for now.
Attachment #445278 -
Flags: review?(dbaron)
Comment 7•15 years ago
|
||
Comment on attachment 445276 [details] [diff] [review]
Part 1: change some presshell APIs
r=dbaron
Attachment #445276 -
Flags: review?(dbaron) → review+
Comment 8•15 years ago
|
||
Comment on attachment 445277 [details] [diff] [review]
Part 2: Change the restyle-event functions to take Element
r=dbaron
Attachment #445277 -
Flags: review?(dbaron) → review+
Comment 9•15 years ago
|
||
Comment on attachment 445278 [details] [diff] [review]
Part 3: use element up through where we actually restyle
In RestyleLaterSiblings, maybe rename the variable from |child| to
|sibling|?
r=dbaron with that
Attachment #445278 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 10•15 years ago
|
||
> maybe rename the variable from |child| to |sibling|?
Done locally.
Assignee | ||
Comment 11•15 years ago
|
||
Pushed:
http://hg.mozilla.org/mozilla-central/rev/8d16c0b81bcb
http://hg.mozilla.org/mozilla-central/rev/3d81d9823bda
http://hg.mozilla.org/mozilla-central/rev/5b155fd15dae
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•15 years ago
|
Target Milestone: --- → mozilla1.9.3a5
You need to log in
before you can comment on or make changes to this bug.
Description
•