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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp

Issue 2810873007: Replace LayoutPart::GetFrameViewBase with GetNodeFrameView (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp
index 4b193f1f288f98ea6b2871118655127c62046442..69b510da9ab49e153256d2d00cfea9a4f217e7b4 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp
@@ -495,11 +495,10 @@ class PaintPropertyTreeGraphBuilder {
for (const LayoutObject* child = object.SlowFirstChild(); child;
child = child->NextSibling())
WriteLayoutObjectNode(*child);
- if (object.IsLayoutPart() && ToLayoutPart(object).GetFrameViewBase() &&
- ToLayoutPart(object).GetFrameViewBase()->IsFrameView()) {
- FrameView* frame_view =
- ToFrameView(ToLayoutPart(object).GetFrameViewBase());
- WriteFrameViewNode(*frame_view, &object);
+ if (object.IsLayoutPart()) {
+ FrameView* frame_view = ToLayoutPart(object).GetNodeFrameView();
+ if (frame_view)
+ WriteFrameViewNode(*frame_view, &object);
}
}

Powered by Google App Engine
This is Rietveld 408576698