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

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

Issue 1907213002: Refactor OverlayScrollbarSizeRelevancy into OverlayScrollbarClipBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include -> Exclude Created 4 years, 8 months 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 void didUpdateNeedsCompositedScrolling(); 626 void didUpdateNeedsCompositedScrolling();
627 627
628 bool hasSelfPaintingLayerDescendant() const 628 bool hasSelfPaintingLayerDescendant() const
629 { 629 {
630 if (m_hasSelfPaintingLayerDescendantDirty) 630 if (m_hasSelfPaintingLayerDescendantDirty)
631 updateHasSelfPaintingLayerDescendant(); 631 updateHasSelfPaintingLayerDescendant();
632 ASSERT(!m_hasSelfPaintingLayerDescendantDirty); 632 ASSERT(!m_hasSelfPaintingLayerDescendantDirty);
633 return m_hasSelfPaintingLayerDescendant; 633 return m_hasSelfPaintingLayerDescendant;
634 } 634 }
635 LayoutRect paintingExtent(const PaintLayer* rootLayer, const LayoutSize& sub PixelAccumulation, GlobalPaintFlags); 635 LayoutRect paintingExtent(const PaintLayer* rootLayer, const LayoutSize& sub PixelAccumulation, GlobalPaintFlags);
636 void appendSingleFragmentIgnoringPagination(PaintLayerFragments&, const Pain tLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCacheSlot, OverlayScrol lbarSizeRelevancy = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClipType = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, const LayoutSize& su bPixelAccumulation = LayoutSize()); 636 void appendSingleFragmentIgnoringPagination(PaintLayerFragments&, const Pain tLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCacheSlot, OverlayScrol lbarClipBehavior = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClipType = R espectOverflowClip, const LayoutPoint* offsetFromRoot = 0, const LayoutSize& sub PixelAccumulation = LayoutSize());
637 void collectFragments(PaintLayerFragments&, const PaintLayer* rootLayer, con st LayoutRect& dirtyRect, 637 void collectFragments(PaintLayerFragments&, const PaintLayer* rootLayer, con st LayoutRect& dirtyRect,
638 ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize Relevancy = IgnoreOverlayScrollbarSize, 638 ClipRectsCacheSlot, OverlayScrollbarClipBehavior = IgnoreOverlayScrollba rSize,
639 ShouldRespectOverflowClipType = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, 639 ShouldRespectOverflowClipType = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0,
640 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0); 640 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0);
641 641
642 LayoutPoint layoutBoxLocation() const { return layoutObject()->isBox() ? toL ayoutBox(layoutObject())->location() : LayoutPoint(); } 642 LayoutPoint layoutBoxLocation() const { return layoutObject()->isBox() ? toL ayoutBox(layoutObject())->location() : LayoutPoint(); }
643 643
644 enum TransparencyClipBoxBehavior { 644 enum TransparencyClipBoxBehavior {
645 PaintingTransparencyClipBox, 645 PaintingTransparencyClipBox,
646 HitTestingTransparencyClipBox 646 HitTestingTransparencyClipBox
647 }; 647 };
648 648
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 889
890 } // namespace blink 890 } // namespace blink
891 891
892 #ifndef NDEBUG 892 #ifndef NDEBUG
893 // Outside the WebCore namespace for ease of invocation from gdb. 893 // Outside the WebCore namespace for ease of invocation from gdb.
894 void showLayerTree(const blink::PaintLayer*); 894 void showLayerTree(const blink::PaintLayer*);
895 void showLayerTree(const blink::LayoutObject*); 895 void showLayerTree(const blink::LayoutObject*);
896 #endif 896 #endif
897 897
898 #endif // Layer_h 898 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698