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

Unified Diff: third_party/WebKit/Source/core/layout/ClipRectsCache.h

Issue 2672643004: Move ClipRect and related classes from layout/ to paint/. (Closed)
Patch Set: none Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/ClipRect.cpp ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ClipRectsCache.h
diff --git a/third_party/WebKit/Source/core/layout/ClipRectsCache.h b/third_party/WebKit/Source/core/layout/ClipRectsCache.h
deleted file mode 100644
index 161e37373d87719550758a132c9b2896ffd0b186..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ClipRectsCache.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ClipRectsCache_h
-#define ClipRectsCache_h
-
-#include "core/layout/ClipRects.h"
-
-#if DCHECK_IS_ON()
-#include "platform/scroll/ScrollTypes.h" // For OverlayScrollbarClipBehavior.
-#endif
-
-namespace blink {
-
-class PaintLayer;
-
-enum ClipRectsCacheSlot {
- // Relative to the ancestor treated as the root (e.g. transformed layer).
- // Used for hit testing.
- RootRelativeClipRects,
- RootRelativeClipRectsIgnoringViewportClip,
-
- // Relative to the LayoutView's layer. Used for compositing overlap testing.
- AbsoluteClipRects,
-
- // Relative to painting ancestor. Used for painting.
- PaintingClipRects,
- PaintingClipRectsIgnoringOverflowClip,
-
- NumberOfClipRectsCacheSlots,
- UncachedClipRects,
-};
-
-class ClipRectsCache {
- USING_FAST_MALLOC(ClipRectsCache);
-
- public:
- struct Entry {
- Entry()
- : root(nullptr)
-#if DCHECK_IS_ON()
- ,
- overlayScrollbarClipBehavior(IgnoreOverlayScrollbarSize)
-#endif
- {
- }
- const PaintLayer* root;
- RefPtr<ClipRects> clipRects;
-#if DCHECK_IS_ON()
- OverlayScrollbarClipBehavior overlayScrollbarClipBehavior;
-#endif
- };
- Entry& get(ClipRectsCacheSlot slot) {
- DCHECK(slot < NumberOfClipRectsCacheSlots);
- return m_entries[slot];
- }
- void clear(ClipRectsCacheSlot slot) {
- DCHECK(slot < NumberOfClipRectsCacheSlots);
- m_entries[slot] = Entry();
- }
-
- private:
- Entry m_entries[NumberOfClipRectsCacheSlots];
-};
-
-} // namespace blink
-
-#endif // ClipRectsCache_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/ClipRect.cpp ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698