Bug 115835 - StyleResolver::styleForDocument requires a 2-pass style recalc for correctness?
Summary: StyleResolver::styleForDocument requires a 2-pass style recalc for correctness?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-08 17:19 PDT by Eric Seidel (no email)
Modified: 2017-07-18 08:30 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2013-05-08 17:19:27 PDT
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