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

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

Issue 2082153002: Paint solid color and local attachment backgrounds into scrolling layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert some changes 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 bool shouldPaintBackgroundOntoForeground() const;
251
250 const PaintLayer* root() const 252 const PaintLayer* root() const
251 { 253 {
252 const PaintLayer* curr = this; 254 const PaintLayer* curr = this;
253 while (curr->parent()) 255 while (curr->parent())
254 curr = curr->parent(); 256 curr = curr->parent();
255 return curr; 257 return curr;
256 } 258 }
257 259
258 const LayoutPoint& location() const { ASSERT(!m_needsPositionUpdate); return m_location; } 260 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, 261 // 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 894
893 } // namespace blink 895 } // namespace blink
894 896
895 #ifndef NDEBUG 897 #ifndef NDEBUG
896 // Outside the WebCore namespace for ease of invocation from gdb. 898 // Outside the WebCore namespace for ease of invocation from gdb.
897 void showLayerTree(const blink::PaintLayer*); 899 void showLayerTree(const blink::PaintLayer*);
898 void showLayerTree(const blink::LayoutObject*); 900 void showLayerTree(const blink::LayoutObject*);
899 #endif 901 #endif
900 902
901 #endif // Layer_h 903 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698