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

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

Issue 2757533002: Fix overflow:overlay scrollbar width for paint. (Closed)
Patch Set: Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ClipRectsCache_h 5 #ifndef ClipRectsCache_h
6 #define ClipRectsCache_h 6 #define ClipRectsCache_h
7 7
8 #include "core/paint/ClipRects.h" 8 #include "core/paint/ClipRects.h"
9 9
10 #if DCHECK_IS_ON() 10 #if DCHECK_IS_ON()
(...skipping 23 matching lines...) Expand all
34 34
35 class ClipRectsCache { 35 class ClipRectsCache {
36 USING_FAST_MALLOC(ClipRectsCache); 36 USING_FAST_MALLOC(ClipRectsCache);
37 37
38 public: 38 public:
39 struct Entry { 39 struct Entry {
40 Entry() 40 Entry()
41 : root(nullptr) 41 : root(nullptr)
42 #if DCHECK_IS_ON() 42 #if DCHECK_IS_ON()
43 , 43 ,
44 overlayScrollbarClipBehavior(IgnoreOverlayScrollbarSize) 44 overlayScrollbarClipBehavior(IgnorePlatformOverlayScrollbarSize)
45 #endif 45 #endif
46 { 46 {
47 } 47 }
48 const PaintLayer* root; 48 const PaintLayer* root;
49 RefPtr<ClipRects> clipRects; 49 RefPtr<ClipRects> clipRects;
50 #if DCHECK_IS_ON() 50 #if DCHECK_IS_ON()
51 OverlayScrollbarClipBehavior overlayScrollbarClipBehavior; 51 OverlayScrollbarClipBehavior overlayScrollbarClipBehavior;
52 #endif 52 #endif
53 }; 53 };
54 Entry& get(ClipRectsCacheSlot slot) { 54 Entry& get(ClipRectsCacheSlot slot) {
55 DCHECK(slot < NumberOfClipRectsCacheSlots); 55 DCHECK(slot < NumberOfClipRectsCacheSlots);
56 return m_entries[slot]; 56 return m_entries[slot];
57 } 57 }
58 void clear(ClipRectsCacheSlot slot) { 58 void clear(ClipRectsCacheSlot slot) {
59 DCHECK(slot < NumberOfClipRectsCacheSlots); 59 DCHECK(slot < NumberOfClipRectsCacheSlots);
60 m_entries[slot] = Entry(); 60 m_entries[slot] = Entry();
61 } 61 }
62 62
63 private: 63 private:
64 Entry m_entries[NumberOfClipRectsCacheSlots]; 64 Entry m_entries[NumberOfClipRectsCacheSlots];
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // ClipRectsCache_h 69 #endif // ClipRectsCache_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698