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

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

Issue 1532923002: Add a Path::contains() version that use the Path's winding rule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare Path in GC.h Created 5 years 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
Index: third_party/WebKit/Source/core/layout/ClipPathOperation.h
diff --git a/third_party/WebKit/Source/core/layout/ClipPathOperation.h b/third_party/WebKit/Source/core/layout/ClipPathOperation.h
index 75d23d31999b9c5c69ee6906a47904628766793b..385b101eccb01f789f5fa814fba7b417d7d2c1f6 100644
--- a/third_party/WebKit/Source/core/layout/ClipPathOperation.h
+++ b/third_party/WebKit/Source/core/layout/ClipPathOperation.h
@@ -101,14 +101,13 @@ public:
const BasicShape* basicShape() const { return m_shape.get(); }
bool isValid() const { return m_shape.get(); }
- WindRule windRule() const { return m_shape->windRule(); }
const Path& path(const FloatRect& boundingRect)
{
ASSERT(m_shape);
m_path.clear();
m_path = adoptPtr(new Path);
m_shape->path(*m_path, boundingRect);
- m_path->setWindRule(windRule());
+ m_path->setWindRule(m_shape->windRule());
return *m_path;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698