Skip to content

Commit 6835789

Browse files
author
Joel Einbinder
committed
fix: layout before returning DOM.getContentQuads
1 parent 3b08490 commit 6835789

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/WebCore/inspector/agents/InspectorDOMAgent.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,10 @@ void InspectorDOMAgent::getContentQuads(ErrorString& errorString, const String&
16121612
errorString = "Node doesn't have renderer"_s;
16131613
return;
16141614
}
1615+
1616+
// Ensure quads are up to date.
1617+
renderer->document().updateLayoutIgnorePendingStylesheets();
1618+
16151619
Frame* containingFrame = renderer->document().frame();
16161620
FrameView* containingView = containingFrame ? containingFrame->view() : nullptr;
16171621
if (!containingView) {

0 commit comments

Comments
 (0)