Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2194273002: Fix border radius on composited children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve clip recording code Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 bool hasSelfPaintingLayerDescendant() const { 829 bool hasSelfPaintingLayerDescendant() const {
830 if (m_hasSelfPaintingLayerDescendantDirty) 830 if (m_hasSelfPaintingLayerDescendantDirty)
831 updateHasSelfPaintingLayerDescendant(); 831 updateHasSelfPaintingLayerDescendant();
832 DCHECK(!m_hasSelfPaintingLayerDescendantDirty); 832 DCHECK(!m_hasSelfPaintingLayerDescendantDirty);
833 return m_hasSelfPaintingLayerDescendant; 833 return m_hasSelfPaintingLayerDescendant;
834 } 834 }
835 LayoutRect paintingExtent(const PaintLayer* rootLayer, 835 LayoutRect paintingExtent(const PaintLayer* rootLayer,
836 const LayoutSize& subPixelAccumulation, 836 const LayoutSize& subPixelAccumulation,
837 GlobalPaintFlags); 837 GlobalPaintFlags);
838
838 void appendSingleFragmentIgnoringPagination( 839 void appendSingleFragmentIgnoringPagination(
839 PaintLayerFragments&, 840 PaintLayerFragments&,
840 const PaintLayer* rootLayer, 841 const PaintLayer* rootLayer,
841 const LayoutRect& dirtyRect, 842 const LayoutRect& dirtyRect,
842 ClipRectsCacheSlot, 843 ClipRectsCacheSlot,
843 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, 844 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize,
844 ShouldRespectOverflowClipType = RespectOverflowClip, 845 ShouldRespectOverflowClipType = RespectOverflowClip,
846 bool paintingAncestorClippingMask = false,
Stephen Chennney 2016/11/08 21:42:52 I'm trying to get rid of this extra arg. It's hack
845 const LayoutPoint* offsetFromRoot = 0, 847 const LayoutPoint* offsetFromRoot = 0,
846 const LayoutSize& subPixelAccumulation = LayoutSize()); 848 const LayoutSize& subPixelAccumulation = LayoutSize());
847 void collectFragments( 849 void collectFragments(
848 PaintLayerFragments&, 850 PaintLayerFragments&,
849 const PaintLayer* rootLayer, 851 const PaintLayer* rootLayer,
850 const LayoutRect& dirtyRect, 852 const LayoutRect& dirtyRect,
851 ClipRectsCacheSlot, 853 ClipRectsCacheSlot,
852 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, 854 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize,
853 ShouldRespectOverflowClipType = RespectOverflowClip, 855 ShouldRespectOverflowClipType = RespectOverflowClip,
856 bool paintingAncestorClippingMask = false,
854 const LayoutPoint* offsetFromRoot = 0, 857 const LayoutPoint* offsetFromRoot = 0,
855 const LayoutSize& subPixelAccumulation = LayoutSize(), 858 const LayoutSize& subPixelAccumulation = LayoutSize(),
856 const LayoutRect* layerBoundingBox = 0); 859 const LayoutRect* layerBoundingBox = 0);
857 860
858 LayoutPoint layoutBoxLocation() const { 861 LayoutPoint layoutBoxLocation() const {
859 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location() 862 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location()
860 : LayoutPoint(); 863 : LayoutPoint();
861 } 864 }
862 865
863 enum TransparencyClipBoxBehavior { 866 enum TransparencyClipBoxBehavior {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 1224
1222 } // namespace blink 1225 } // namespace blink
1223 1226
1224 #ifndef NDEBUG 1227 #ifndef NDEBUG
1225 // Outside the WebCore namespace for ease of invocation from gdb. 1228 // Outside the WebCore namespace for ease of invocation from gdb.
1226 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1229 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1227 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1230 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1228 #endif 1231 #endif
1229 1232
1230 #endif // Layer_h 1233 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698