Bug 115835

Summary: StyleResolver::styleForDocument requires a 2-pass style recalc for correctness?
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Layout and RenderingAssignee: 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)
Reported 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
Attachments
Note You need to log in before you can comment on or make changes to this bug.