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

Unified Diff: third_party/WebKit/Source/core/paint/ClipRect.h

Issue 2694903009: Remove un-used isClippedByCssClip (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/ClipRect.h
diff --git a/third_party/WebKit/Source/core/paint/ClipRect.h b/third_party/WebKit/Source/core/paint/ClipRect.h
index 4a12cdb4afc0e046165bc26eb68e5ac70e7e9813..5999fbc8dad2b93a1b20dcc05b52e1f647a6d5d2 100644
--- a/third_party/WebKit/Source/core/paint/ClipRect.h
+++ b/third_party/WebKit/Source/core/paint/ClipRect.h
@@ -37,10 +37,9 @@ class ClipRect {
USING_FAST_MALLOC(ClipRect);
public:
- ClipRect() : m_hasRadius(false), m_isClippedByClipCss(false) {}
+ ClipRect() : m_hasRadius(false) {}
- ClipRect(const LayoutRect& rect)
- : m_rect(rect), m_hasRadius(false), m_isClippedByClipCss(false) {}
+ ClipRect(const LayoutRect& rect) : m_rect(rect), m_hasRadius(false) {}
const LayoutRect& rect() const { return m_rect; }
@@ -70,19 +69,11 @@ class ClipRect {
bool isEmpty() const { return m_rect.isEmpty(); }
bool intersects(const HitTestLocation&) const;
- // These have no semantic use. They are used for use-counting.
- bool isClippedByClipCss() const { return m_isClippedByClipCss; }
- ClipRect& setIsClippedByClipCss() {
- m_isClippedByClipCss = true;
- return *this;
- }
-
String toString() const { return m_rect.toString(); }
private:
LayoutRect m_rect;
bool m_hasRadius;
- bool m_isClippedByClipCss;
};
inline ClipRect intersection(const ClipRect& a, const ClipRect& b) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698