@@ -2062,7 +2062,7 @@ index b67e89b80b4e7a8586cac81ade5d58a1bcb0d431..c468bc0981d1fb13272b28095f9f7584
2062
2062
{
2063
2063
FAST_RETURN_IF_NO_FRONTENDS(false);
2064
2064
diff --git a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
2065
- index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9384dc3d1 100644
2065
+ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..38140e53555b86af72b3c9707d4c6bd48350a1e7 100644
2066
2066
--- a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
2067
2067
+++ b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
2068
2068
@@ -61,12 +61,16 @@
@@ -2155,7 +2155,7 @@ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9
2155
2155
if (!node)
2156
2156
return;
2157
2157
2158
- @@ -1486,18 +1499,143 @@ void InspectorDOMAgent::setInspectedNode(ErrorString& errorString, int nodeId)
2158
+ @@ -1486,18 +1499,147 @@ void InspectorDOMAgent::setInspectedNode(ErrorString& errorString, int nodeId)
2159
2159
m_suppressEventListenerChangedEvent = false;
2160
2160
}
2161
2161
@@ -2275,6 +2275,10 @@ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9
2275
2275
+ errorString = "Node doesn't have renderer"_s;
2276
2276
+ return;
2277
2277
+ }
2278
+ +
2279
+ + // Ensure quads are up to date.
2280
+ + renderer->document().updateLayoutIgnorePendingStylesheets();
2281
+ +
2278
2282
+ Frame* containingFrame = renderer->document().frame();
2279
2283
+ FrameView* containingView = containingFrame ? containingFrame->view() : nullptr;
2280
2284
+ if (!containingView) {
@@ -2305,7 +2309,7 @@ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9
2305
2309
}
2306
2310
2307
2311
void InspectorDOMAgent::getAttributes(ErrorString& errorString, int nodeId, RefPtr<JSON::ArrayOf<String>>& result)
2308
- @@ -2662,7 +2800 ,7 @@ void InspectorDOMAgent::pushNodeByPathToFrontend(ErrorString& errorString, const
2312
+ @@ -2662,7 +2804 ,7 @@ void InspectorDOMAgent::pushNodeByPathToFrontend(ErrorString& errorString, const
2309
2313
errorString = "Missing node for given path"_s;
2310
2314
}
2311
2315
@@ -2314,7 +2318,7 @@ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9
2314
2318
{
2315
2319
Document* document = &node->document();
2316
2320
if (auto* templateHost = document->templateDocumentHost())
2317
- @@ -2671,12 +2809 ,16 @@ RefPtr<Inspector::Protocol::Runtime::RemoteObject> InspectorDOMAgent::resolveNod
2321
+ @@ -2671,12 +2813 ,16 @@ RefPtr<Inspector::Protocol::Runtime::RemoteObject> InspectorDOMAgent::resolveNod
2318
2322
if (!frame)
2319
2323
return nullptr;
2320
2324
@@ -2334,7 +2338,7 @@ index 0f46a3033aef4007f6eb837a6105f05a0c59067f..bfcafe332af75e0def0d9487eceef7c9
2334
2338
}
2335
2339
2336
2340
Node* InspectorDOMAgent::scriptValueAsNode(JSC::JSValue value)
2337
- @@ -2697,4 +2839 ,46 @@ void InspectorDOMAgent::setAllowEditingUserAgentShadowTrees(ErrorString&, bool a
2341
+ @@ -2697,4 +2843 ,46 @@ void InspectorDOMAgent::setAllowEditingUserAgentShadowTrees(ErrorString&, bool a
2338
2342
m_allowEditingUserAgentShadowTrees = allow;
2339
2343
}
2340
2344
0 commit comments