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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2196583002: Paint local background colors onto foreground layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename PaintLayer::shouldPaintBackgroundOntoForeground to PaintLayer::shouldPaintBackgroundOntoScro… Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 // FIXME: Many people call this function while it has out-of-date informatio n. 241 // FIXME: Many people call this function while it has out-of-date informatio n.
242 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } 242 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; }
243 243
244 bool isTransparent() const { return layoutObject()->isTransparent() || layou tObject()->style()->hasBlendMode() || layoutObject()->hasMask(); } 244 bool isTransparent() const { return layoutObject()->isTransparent() || layou tObject()->style()->hasBlendMode() || layoutObject()->hasMask(); }
245 245
246 bool isReflection() const { return layoutObject()->isReplica(); } 246 bool isReflection() const { return layoutObject()->isReplica(); }
247 PaintLayerReflectionInfo* reflectionInfo() { return m_rareData ? m_rareData- >reflectionInfo.get() : nullptr; } 247 PaintLayerReflectionInfo* reflectionInfo() { return m_rareData ? m_rareData- >reflectionInfo.get() : nullptr; }
248 const PaintLayerReflectionInfo* reflectionInfo() const { return const_cast<P aintLayer*>(this)->reflectionInfo(); } 248 const PaintLayerReflectionInfo* reflectionInfo() const { return const_cast<P aintLayer*>(this)->reflectionInfo(); }
249 249
250 // Returns true for layers with scrollable overflow which have a background
251 // that can be painted into the composited scrolling contents layer (i.e.
252 // the background can scroll with the content). When the background is also
253 // opaque this allows us to composite the scroller even on low DPI as we can
254 // draw with subpixel anti-aliasing.
255 bool shouldPaintBackgroundOntoScrollingContentsLayer() const;
chrishtr 2016/08/05 00:40:08 Move this method to CompositedLayerMapping.
flackr 2016/08/08 18:01:30 Done.
256
250 const PaintLayer* root() const 257 const PaintLayer* root() const
251 { 258 {
252 const PaintLayer* curr = this; 259 const PaintLayer* curr = this;
253 while (curr->parent()) 260 while (curr->parent())
254 curr = curr->parent(); 261 curr = curr->parent();
255 return curr; 262 return curr;
256 } 263 }
257 264
258 const LayoutPoint& location() const { ASSERT(!m_needsPositionUpdate); return m_location; } 265 const LayoutPoint& location() const { ASSERT(!m_needsPositionUpdate); return m_location; }
259 // FIXME: size() should ASSERT(!m_needsPositionUpdate) as well, but that fai ls in some tests, 266 // FIXME: size() should ASSERT(!m_needsPositionUpdate) as well, but that fai ls in some tests,
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 899
893 } // namespace blink 900 } // namespace blink
894 901
895 #ifndef NDEBUG 902 #ifndef NDEBUG
896 // Outside the WebCore namespace for ease of invocation from gdb. 903 // Outside the WebCore namespace for ease of invocation from gdb.
897 void showLayerTree(const blink::PaintLayer*); 904 void showLayerTree(const blink::PaintLayer*);
898 void showLayerTree(const blink::LayoutObject*); 905 void showLayerTree(const blink::LayoutObject*);
899 #endif 906 #endif
900 907
901 #endif // Layer_h 908 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698