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