| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const D
eprecatedPaintLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; | 244 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const D
eprecatedPaintLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; |
| 245 LayoutRect fragmentsBoundingBox(const DeprecatedPaintLayer* ancestorLayer) c
onst; | 245 LayoutRect fragmentsBoundingBox(const DeprecatedPaintLayer* ancestorLayer) c
onst; |
| 246 | 246 |
| 247 LayoutRect boundingBoxForCompositingOverlapTest() const; | 247 LayoutRect boundingBoxForCompositingOverlapTest() const; |
| 248 | 248 |
| 249 // If true, this layer's children are included in its bounds for overlap tes
ting. | 249 // If true, this layer's children are included in its bounds for overlap tes
ting. |
| 250 // We can't rely on the children's positions if this layer has a filter that
could have moved the children's pixels around. | 250 // We can't rely on the children's positions if this layer has a filter that
could have moved the children's pixels around. |
| 251 bool overlapBoundsIncludeChildren() const { return hasFilter() && layoutObje
ct()->style()->filter().hasFilterThatMovesPixels(); } | 251 bool overlapBoundsIncludeChildren() const { return hasFilter() && layoutObje
ct()->style()->filter().hasFilterThatMovesPixels(); } |
| 252 | 252 |
| 253 enum CalculateBoundsOptions { | 253 enum CalculateBoundsOptions { |
| 254 ApplyBoundsChickenEggHacks, | 254 MaybeIncludeTransformForAncestorLayer, |
| 255 DoNotApplyBoundsChickenEggHacks, | 255 NeverIncludeTransformForAncestorLayer, |
| 256 }; | 256 }; |
| 257 LayoutRect boundingBoxForCompositing(const DeprecatedPaintLayer* ancestorLay
er = 0, CalculateBoundsOptions = DoNotApplyBoundsChickenEggHacks) const; | 257 LayoutRect boundingBoxForCompositing(const DeprecatedPaintLayer* ancestorLay
er = 0, CalculateBoundsOptions = MaybeIncludeTransformForAncestorLayer) const; |
| 258 | 258 |
| 259 LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; } | 259 LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; } |
| 260 LayoutUnit staticBlockPosition() const { return m_staticBlockPosition; } | 260 LayoutUnit staticBlockPosition() const { return m_staticBlockPosition; } |
| 261 | 261 |
| 262 void setStaticInlinePosition(LayoutUnit position) { m_staticInlinePosition =
position; } | 262 void setStaticInlinePosition(LayoutUnit position) { m_staticInlinePosition =
position; } |
| 263 void setStaticBlockPosition(LayoutUnit position) { m_staticBlockPosition = p
osition; } | 263 void setStaticBlockPosition(LayoutUnit position) { m_staticBlockPosition = p
osition; } |
| 264 | 264 |
| 265 LayoutSize subpixelAccumulation() const; | 265 LayoutSize subpixelAccumulation() const; |
| 266 void setSubpixelAccumulation(const LayoutSize&); | 266 void setSubpixelAccumulation(const LayoutSize&); |
| 267 | 267 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 721 |
| 722 } // namespace blink | 722 } // namespace blink |
| 723 | 723 |
| 724 #ifndef NDEBUG | 724 #ifndef NDEBUG |
| 725 // Outside the WebCore namespace for ease of invocation from gdb. | 725 // Outside the WebCore namespace for ease of invocation from gdb. |
| 726 void showLayerTree(const blink::DeprecatedPaintLayer*); | 726 void showLayerTree(const blink::DeprecatedPaintLayer*); |
| 727 void showLayerTree(const blink::LayoutObject*); | 727 void showLayerTree(const blink::LayoutObject*); |
| 728 #endif | 728 #endif |
| 729 | 729 |
| 730 #endif // Layer_h | 730 #endif // Layer_h |
| OLD | NEW |