Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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; | |
|
chrishtr
2016/08/03 18:58:00
This needs a comment.
flackr
2016/08/03 20:58:53
Done.
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |