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

Side by Side Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp

Issue 2737883002: Rename LayoutPart::widget to LayoutPart::frameViewBase (Closed)
Patch Set: Rename LayoutPart::widget to LayoutPart::frameViewBase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PrePaintTreeWalk.h" 5 #include "core/paint/PrePaintTreeWalk.h"
6 6
7 #include "core/dom/DocumentLifecycle.h" 7 #include "core/dom/DocumentLifecycle.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 10 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 child = child->nextSibling()) { 257 child = child->nextSibling()) {
258 if (child->isLayoutMultiColumnSpannerPlaceholder()) { 258 if (child->isLayoutMultiColumnSpannerPlaceholder()) {
259 child->getMutableForPainting().clearPaintFlags(); 259 child->getMutableForPainting().clearPaintFlags();
260 continue; 260 continue;
261 } 261 }
262 walk(*child, context); 262 walk(*child, context);
263 } 263 }
264 264
265 if (object.isLayoutPart()) { 265 if (object.isLayoutPart()) {
266 const LayoutPart& layoutPart = toLayoutPart(object); 266 const LayoutPart& layoutPart = toLayoutPart(object);
267 FrameViewBase* frameViewBase = layoutPart.widget(); 267 FrameViewBase* frameViewBase = layoutPart.frameViewBase();
268 if (frameViewBase && frameViewBase->isFrameView()) { 268 if (frameViewBase && frameViewBase->isFrameView()) {
269 context.treeBuilderContext.current.paintOffset += 269 context.treeBuilderContext.current.paintOffset +=
270 layoutPart.replacedContentRect().location() - 270 layoutPart.replacedContentRect().location() -
271 frameViewBase->frameRect().location(); 271 frameViewBase->frameRect().location();
272 context.treeBuilderContext.current.paintOffset = 272 context.treeBuilderContext.current.paintOffset =
273 roundedIntPoint(context.treeBuilderContext.current.paintOffset); 273 roundedIntPoint(context.treeBuilderContext.current.paintOffset);
274 walk(*toFrameView(frameViewBase), context); 274 walk(*toFrameView(frameViewBase), context);
275 } 275 }
276 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). 276 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281).
277 } 277 }
278 278
279 object.getMutableForPainting().clearPaintFlags(); 279 object.getMutableForPainting().clearPaintFlags();
280 } 280 }
281 281
282 } // namespace blink 282 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PartPainter.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698