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

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

Issue 2810873007: Replace LayoutPart::GetFrameViewBase with GetNodeFrameView (Closed)
Patch Set: No need for child_frame_view var 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/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index 53ebcc64224eea42f9f30b9f3b5b941acca85d57..aa17e9b4e655fb2ee0e15a8afb322410c96ab9d2 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -291,16 +291,16 @@ void PrePaintTreeWalk::Walk(const LayoutObject& object,
if (object.IsLayoutPart()) {
const LayoutPart& layout_part = ToLayoutPart(object);
- FrameViewBase* frame_view_base = layout_part.GetFrameViewBase();
- if (frame_view_base && frame_view_base->IsFrameView()) {
+ FrameView* frame_view = layout_part.ChildFrameView();
+ if (frame_view) {
if (context.tree_builder_context) {
context.tree_builder_context->current.paint_offset +=
layout_part.ReplacedContentRect().Location() -
- frame_view_base->FrameRect().Location();
+ frame_view->FrameRect().Location();
context.tree_builder_context->current.paint_offset =
RoundedIntPoint(context.tree_builder_context->current.paint_offset);
}
- Walk(*ToFrameView(frame_view_base), context);
+ Walk(*frame_view, context);
}
// TODO(pdr): Investigate RemoteFrameView (crbug.com/579281).
}

Powered by Google App Engine
This is Rietveld 408576698