Summary: | Counter shouldn't invalidate the tree in the middle of layout | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | NEW --- | ||||||||
Severity: | Normal | CC: | commit-queue, dbates, esprehn+autocc, glenn, hyatt, jchaffraix, kondapallykalyan, simon.fraser, thorton, zalan | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Ryosuke Niwa
2013-09-19 16:25:55 PDT
Created attachment 212107 [details]
Fixes the bug
Created attachment 212108 [details]
Updated for ToT
Comment on attachment 212108 [details] Updated for ToT View in context: https://bugs.webkit.org/attachment.cgi?id=212108&action=review > Source/WebCore/page/FrameView.cpp:2867 > + for (RenderObject* renderer = view; renderer; renderer = renderer->nextInPreOrder()) { > + if (!renderer->isCounter()) > + continue; > + > + static_cast<RenderCounter*>(renderer)->updateCounter(); > + } We walk the entire render tree to update counters? That's crazy! We should keep a hash set of counter renderers. Comment on attachment 212108 [details] Updated for ToT r- by comment #3. I'm not working on this. |