Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2332973002: Fix crash of paint invalidation tracking after a new frame is created (Closed)
Patch Set: platform-neutual Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/insert-frame-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index eef1f28948372aa17a85e163cc5d4efb4a9a509a..4779ca75695d59fcf15469b007ca57fc9d30914d 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3134,6 +3134,8 @@ std::unique_ptr<JSONArray> FrameView::trackedObjectPaintInvalidationsAsJSON() co
if (!frame->isLocalFrame())
continue;
if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem()) {
+ if (!layoutView.frameView()->m_trackedObjectPaintInvalidations)
+ continue;
for (const auto& item : *layoutView.frameView()->m_trackedObjectPaintInvalidations) {
std::unique_ptr<JSONObject> itemJSON = JSONObject::create();
itemJSON->setString("object", item.name);
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/insert-frame-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698