| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 618 |
| 619 // Compute rects only for this layer | 619 // Compute rects only for this layer |
| 620 void computeSelfHitTestRects(LayerHitTestRects&) const; | 620 void computeSelfHitTestRects(LayerHitTestRects&) const; |
| 621 | 621 |
| 622 // FIXME: This should probably return a ScrollableArea but a lot of internal | 622 // FIXME: This should probably return a ScrollableArea but a lot of internal |
| 623 // methods are mistakenly exposed. | 623 // methods are mistakenly exposed. |
| 624 PaintLayerScrollableArea* getScrollableArea() const { | 624 PaintLayerScrollableArea* getScrollableArea() const { |
| 625 return m_scrollableArea.get(); | 625 return m_scrollableArea.get(); |
| 626 } | 626 } |
| 627 | 627 |
| 628 PaintLayerClipper clipper() const { | 628 enum GeometryMapperOption { UseGeometryMapper, DoNotUseGeometryMapper }; |
| 629 return PaintLayerClipper(*this, | 629 |
| 630 RuntimeEnabledFeatures::slimmingPaintV2Enabled()); | 630 PaintLayerClipper clipper(GeometryMapperOption) const; |
| 631 } | |
| 632 | 631 |
| 633 bool scrollsOverflow() const; | 632 bool scrollsOverflow() const; |
| 634 | 633 |
| 635 CompositingReasons potentialCompositingReasonsFromStyle() const { | 634 CompositingReasons potentialCompositingReasonsFromStyle() const { |
| 636 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle | 635 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle |
| 637 : CompositingReasonNone; | 636 : CompositingReasonNone; |
| 638 } | 637 } |
| 639 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { | 638 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { |
| 640 DCHECK(reasons == | 639 DCHECK(reasons == |
| 641 (reasons & CompositingReasonComboAllStyleDeterminedReasons)); | 640 (reasons & CompositingReasonComboAllStyleDeterminedReasons)); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 return m_hasSelfPaintingLayerDescendant; | 840 return m_hasSelfPaintingLayerDescendant; |
| 842 } | 841 } |
| 843 LayoutRect paintingExtent(const PaintLayer* rootLayer, | 842 LayoutRect paintingExtent(const PaintLayer* rootLayer, |
| 844 const LayoutSize& subPixelAccumulation, | 843 const LayoutSize& subPixelAccumulation, |
| 845 GlobalPaintFlags); | 844 GlobalPaintFlags); |
| 846 void appendSingleFragmentIgnoringPagination( | 845 void appendSingleFragmentIgnoringPagination( |
| 847 PaintLayerFragments&, | 846 PaintLayerFragments&, |
| 848 const PaintLayer* rootLayer, | 847 const PaintLayer* rootLayer, |
| 849 const LayoutRect& dirtyRect, | 848 const LayoutRect& dirtyRect, |
| 850 ClipRectsCacheSlot, | 849 ClipRectsCacheSlot, |
| 850 GeometryMapperOption, |
| 851 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, | 851 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, |
| 852 ShouldRespectOverflowClipType = RespectOverflowClip, | 852 ShouldRespectOverflowClipType = RespectOverflowClip, |
| 853 const LayoutPoint* offsetFromRoot = 0, | 853 const LayoutPoint* offsetFromRoot = 0, |
| 854 const LayoutSize& subPixelAccumulation = LayoutSize()); | 854 const LayoutSize& subPixelAccumulation = LayoutSize()); |
| 855 void collectFragments( | 855 void collectFragments( |
| 856 PaintLayerFragments&, | 856 PaintLayerFragments&, |
| 857 const PaintLayer* rootLayer, | 857 const PaintLayer* rootLayer, |
| 858 const LayoutRect& dirtyRect, | 858 const LayoutRect& dirtyRect, |
| 859 ClipRectsCacheSlot, | 859 ClipRectsCacheSlot, |
| 860 GeometryMapperOption, |
| 860 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, | 861 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, |
| 861 ShouldRespectOverflowClipType = RespectOverflowClip, | 862 ShouldRespectOverflowClipType = RespectOverflowClip, |
| 862 const LayoutPoint* offsetFromRoot = 0, | 863 const LayoutPoint* offsetFromRoot = 0, |
| 863 const LayoutSize& subPixelAccumulation = LayoutSize(), | 864 const LayoutSize& subPixelAccumulation = LayoutSize(), |
| 864 const LayoutRect* layerBoundingBox = 0); | 865 const LayoutRect* layerBoundingBox = 0); |
| 865 | 866 |
| 866 LayoutPoint layoutBoxLocation() const { | 867 LayoutPoint layoutBoxLocation() const { |
| 867 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location() | 868 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location() |
| 868 : LayoutPoint(); | 869 : LayoutPoint(); |
| 869 } | 870 } |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1250 |
| 1250 } // namespace blink | 1251 } // namespace blink |
| 1251 | 1252 |
| 1252 #ifndef NDEBUG | 1253 #ifndef NDEBUG |
| 1253 // Outside the WebCore namespace for ease of invocation from gdb. | 1254 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1254 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1255 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
| 1255 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1256 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
| 1256 #endif | 1257 #endif |
| 1257 | 1258 |
| 1258 #endif // Layer_h | 1259 #endif // Layer_h |
| OLD | NEW |