Bug 115835
Summary: | StyleResolver::styleForDocument requires a 2-pass style recalc for correctness? | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | esprehn, hyatt, kling, koivisto, simon.fraser |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Eric Seidel (no email)
StyleResolver::styleForDocument requires a 2-pass style recalc for correctness?
http://trac.webkit.org/browser/trunk/Source/WebCore/css/StyleResolver.cpp#L853
Maybe I'm reading it wrong. But it appears that in order to get the correct styles for a document, we need to do a two-pass style recalc?
Elliot ran into this while trying to remove the full-document forced style recalcs which happen at every </style> in a document due to Document::didRemoveAllPendingStylesheet():
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp#L2802
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |