| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // TODO(wangxianzhu): Find a better name for it. 'paintContainer' might be g
ood but | 225 // TODO(wangxianzhu): Find a better name for it. 'paintContainer' might be g
ood but |
| 226 // we can't use it for now because it conflicts with PaintInfo::paintContain
er. | 226 // we can't use it for now because it conflicts with PaintInfo::paintContain
er. |
| 227 PaintLayer* compositingContainer() const; | 227 PaintLayer* compositingContainer() const; |
| 228 | 228 |
| 229 void addChild(PaintLayer* newChild, PaintLayer* beforeChild = 0); | 229 void addChild(PaintLayer* newChild, PaintLayer* beforeChild = 0); |
| 230 PaintLayer* removeChild(PaintLayer*); | 230 PaintLayer* removeChild(PaintLayer*); |
| 231 | 231 |
| 232 void removeOnlyThisLayer(); | 232 void removeOnlyThisLayer(); |
| 233 void insertOnlyThisLayer(); | 233 void insertOnlyThisLayer(); |
| 234 | 234 |
| 235 void styleChanged(StyleDifference, const ComputedStyle* oldStyle); | 235 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle); |
| 236 | 236 |
| 237 // FIXME: Many people call this function while it has out-of-date informatio
n. | 237 // FIXME: Many people call this function while it has out-of-date informatio
n. |
| 238 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } | 238 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } |
| 239 | 239 |
| 240 void setLayerType(PaintLayerType layerType) { m_layerType = layerType; ASSER
T(static_cast<PaintLayerType>(m_layerType) == layerType); } | 240 void setLayerType(PaintLayerType layerType) { m_layerType = layerType; ASSER
T(static_cast<PaintLayerType>(m_layerType) == layerType); } |
| 241 | 241 |
| 242 bool isTransparent() const { return layoutObject()->isTransparent() || layou
tObject()->style()->hasBlendMode() || layoutObject()->hasMask(); } | 242 bool isTransparent() const { return layoutObject()->isTransparent() || layou
tObject()->style()->hasBlendMode() || layoutObject()->hasMask(); } |
| 243 | 243 |
| 244 bool isReflection() const { return layoutObject()->isReplica(); } | 244 bool isReflection() const { return layoutObject()->isReplica(); } |
| 245 PaintLayerReflectionInfo* reflectionInfo() { return m_rareData ? m_rareData-
>reflectionInfo.get() : nullptr; } | 245 PaintLayerReflectionInfo* reflectionInfo() { return m_rareData ? m_rareData-
>reflectionInfo.get() : nullptr; } |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 | 897 |
| 898 } // namespace blink | 898 } // namespace blink |
| 899 | 899 |
| 900 #ifndef NDEBUG | 900 #ifndef NDEBUG |
| 901 // Outside the WebCore namespace for ease of invocation from gdb. | 901 // Outside the WebCore namespace for ease of invocation from gdb. |
| 902 void showLayerTree(const blink::PaintLayer*); | 902 void showLayerTree(const blink::PaintLayer*); |
| 903 void showLayerTree(const blink::LayoutObject*); | 903 void showLayerTree(const blink::LayoutObject*); |
| 904 #endif | 904 #endif |
| 905 | 905 |
| 906 #endif // Layer_h | 906 #endif // Layer_h |
| OLD | NEW |