Summary: | Add a Document::updateStyleIfNeededForNode(Node&). | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | Layout and Rendering | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | kling | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2014-03-04 11:29:16 PST
Created attachment 225795 [details]
Patch
Comment on attachment 225795 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=225795&action=review > Source/WebCore/dom/Document.cpp:6055 > +static inline bool nodeOrItsAncestorNeedsStyleRecalc(const Node& node) > +{ > + if (node.document().hasPendingForcedStyleRecalc()) > + return true; Please pass in the Document, the caller knows (is!) it. > Source/WebCore/dom/Document.cpp:6063 > +bool Document::updateStyleIfNeededForNode(const Node& node) It would be better if this took Element. Generic Nodes don't have style. However since some of the client code is Node-based perhaps it is better to refactor this separately. Committed r165076: <http://trac.webkit.org/changeset/165076> |