<https://webkit.org/b/105988> [Mac] Some inspector tests intermittently assert...

<https://webkit.org/b/105988> [Mac] Some inspector tests intermittently assert in InspectorOverlay::paint
<rdar://problem/12958038>

Reviewed by Joseph Pecoraro.

Update the inspector overlay's layout before painting, if it is stale.

No new tests; fixes an intermittent assertion failure in some existing tests.

* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::paint):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dc6b9938
2013-08-20 Tim Horton <timothy_horton@apple.com>
<https://webkit.org/b/105988> [Mac] Some inspector tests intermittently assert in InspectorOverlay::paint
<rdar://problem/12958038>
Reviewed by Joseph Pecoraro.
Update the inspector overlay's layout before painting, if it is stale.
No new tests; fixes an intermittent assertion failure in some existing tests.
* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::paint):
2013-08-20 Daniel Bates <dabates@apple.com>
Build fix after <http://trac.webkit.org/changeset/154260> (https://webkit.org/b/119949);
......@@ -209,7 +209,7 @@ void InspectorOverlay::paint(GraphicsContext& context)
return;
GraphicsContextStateSaver stateSaver(context);
FrameView* view = overlayPage()->mainFrame()->view();
ASSERT(!view->needsLayout());
view->updateLayoutAndStyleIfNeededRecursive();
view->paint(&context, IntRect(0, 0, view->width(), view->height()));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment