WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
86416
Use posZOrderList() / negZOrderList() everywhere to avoid querying dirtied lists
https://bugs.webkit.org/show_bug.cgi?id=86416
Summary
Use posZOrderList() / negZOrderList() everywhere to avoid querying dirtied lists
Julien Chaffraix
Reported
2012-05-14 17:14:23 PDT
There is still a few places where we don't use the getters that properly ASSERTs that we do not get any dirtied lists. I don't see a use case for getting dirtied values so let's change that!
Attachments
Proposed change, fixed 2 places where the ASSERTs where triggering.
(6.95 KB, patch)
2012-05-14 17:23 PDT
,
Julien Chaffraix
no flags
Details
Formatted Diff
Diff
Proposed change 2: augmented with Simon's suggestions.
(7.75 KB, patch)
2012-05-15 10:57 PDT
,
Julien Chaffraix
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Julien Chaffraix
Comment 1
2012-05-14 17:23:43 PDT
Created
attachment 141823
[details]
Proposed change, fixed 2 places where the ASSERTs where triggering.
Simon Fraser (smfr)
Comment 2
2012-05-15 10:25:59 PDT
Comment on
attachment 141823
[details]
Proposed change, fixed 2 places where the ASSERTs where triggering. View in context:
https://bugs.webkit.org/attachment.cgi?id=141823&action=review
> Source/WebCore/rendering/RenderLayer.cpp:745 > + if (posZOrderList()) { > + for (unsigned i = 0; i < posZOrderList()->size(); ++i) > + m_has3DTransformedDescendant |= posZOrderList()->at(i)->update3DTransformedDescendantStatus();
To avoid 3 calls through posZOrderList() it might be better to do if (Vector<...> list = postZOrderList()) { ... }
> Source/WebCore/rendering/RenderLayer.cpp:751 > + if (negZOrderList()) { > + for (unsigned i = 0; i < negZOrderList()->size(); ++i) > + m_has3DTransformedDescendant |= negZOrderList()->at(i)->update3DTransformedDescendantStatus();
Ditto.
> Source/WebCore/rendering/RenderLayerCompositor.cpp:1751 > + return layer->negZOrderList() && layer->negZOrderList()->size() > 0;
Can we make this an accessor on RenderLayer, like hasNegZOrderChildren() or something?
Julien Chaffraix
Comment 3
2012-05-15 10:57:31 PDT
Created
attachment 142005
[details]
Proposed change 2: augmented with Simon's suggestions.
WebKit Review Bot
Comment 4
2012-05-15 14:33:00 PDT
Comment on
attachment 142005
[details]
Proposed change 2: augmented with Simon's suggestions. Clearing flags on attachment: 142005 Committed
r117162
: <
http://trac.webkit.org/changeset/117162
>
WebKit Review Bot
Comment 5
2012-05-15 14:33:06 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug