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

Unified Diff: third_party/WebKit/Source/core/dom/DOMQuad.h

Issue 2639983002: [GeometryInterface] add fromRect function in DOMQuad. (Closed)
Patch Set: [GeometryInterface] add fromRect function in DOMQuad. 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
Index: third_party/WebKit/Source/core/dom/DOMQuad.h
diff --git a/third_party/WebKit/Source/core/dom/DOMQuad.h b/third_party/WebKit/Source/core/dom/DOMQuad.h
index d13c4c0994cf8fc44fc828b1dc940c1c00ad4a36..19ef067a599ba82c477c6c09df1f5c07e4fdb9e2 100644
--- a/third_party/WebKit/Source/core/dom/DOMQuad.h
+++ b/third_party/WebKit/Source/core/dom/DOMQuad.h
@@ -13,6 +13,7 @@ namespace blink {
class DOMPoint;
class DOMPointInit;
+class DOMRectInit;
class CORE_EXPORT DOMQuad : public GarbageCollected<DOMQuad>,
public ScriptWrappable {
@@ -23,6 +24,7 @@ class CORE_EXPORT DOMQuad : public GarbageCollected<DOMQuad>,
const DOMPointInit& p2,
const DOMPointInit& p3,
const DOMPointInit& p4);
+ static DOMQuad* fromRect(const DOMRectInit&);
DOMPoint* p1() const { return m_p1; }
DOMPoint* p2() const { return m_p2; }
@@ -43,6 +45,7 @@ class CORE_EXPORT DOMQuad : public GarbageCollected<DOMQuad>,
const DOMPointInit& p2,
const DOMPointInit& p3,
const DOMPointInit& p4);
+ DOMQuad(double x, double y, double width, double height);
Member<DOMPoint> m_p1;
Member<DOMPoint> m_p2;

Powered by Google App Engine
This is Rietveld 408576698