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

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

Issue 1610233002: [Reland] Remove PaintInfo's paintingRoot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/PaintInfo.h" 5 #include "core/paint/PaintInfo.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 void PaintInfo::updatePaintingRootForChildren(const LayoutObject* layoutObject)
10 {
11 if (!paintingRoot)
12 return;
13
14 // If we're the painting root, kids draw normally, and see root of nullptr.
15 if (paintingRoot == layoutObject) {
16 paintingRoot = nullptr;
17 return;
18 }
19 }
20
21 bool PaintInfo::shouldPaintWithinRoot(const LayoutObject* layoutObject) const
22 {
23 return !paintingRoot || paintingRoot == layoutObject;
24 }
25
26 void PaintInfo::updateCullRect(const AffineTransform& localToParentTransform) 9 void PaintInfo::updateCullRect(const AffineTransform& localToParentTransform)
27 { 10 {
28 m_cullRect.updateCullRect(localToParentTransform); 11 m_cullRect.updateCullRect(localToParentTransform);
29 } 12 }
30 13
31 } // namespace blink 14 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInfo.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698