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

Unified Diff: Source/core/layout/ClipRect.h

Issue 1307203004: Revert "Reworks the clipping logic" and follow-up. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/ClipRects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/ClipRect.h
diff --git a/Source/core/layout/ClipRect.h b/Source/core/layout/ClipRect.h
index 7e3f429ad75492da15d6a9316531187dd0020517..e04690d9cfa25df26a80c78f99fbd9f591fe46e8 100644
--- a/Source/core/layout/ClipRect.h
+++ b/Source/core/layout/ClipRect.h
@@ -28,21 +28,14 @@
#include "platform/geometry/LayoutRect.h"
#include "wtf/FastAllocBase.h"
-#include "wtf/PassOwnPtr.h"
namespace blink {
-class DeprecatedPaintLayer;
class HitTestLocation;
class ClipRect {
WTF_MAKE_FAST_ALLOCATED(ClipRect);
public:
- static PassOwnPtr<ClipRect> create(const ClipRect& other)
- {
- return adoptPtr(new ClipRect(other));
- }
-
ClipRect()
: m_hasRadius(false)
{ }
@@ -75,18 +68,7 @@ public:
bool isEmpty() const { return m_rect.isEmpty(); }
bool intersects(const HitTestLocation&) const;
- const DeprecatedPaintLayer* rootLayer() const
- {
- return m_rootLayer;
- }
-
- void setRootLayer(const DeprecatedPaintLayer* rootLayer)
- {
- m_rootLayer = rootLayer;
- }
-
private:
- const DeprecatedPaintLayer* m_rootLayer;
LayoutRect m_rect;
bool m_hasRadius;
};
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/ClipRects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698