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

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

Issue 2612263002: Adding fromRect to DOMRect and DOMRectReadOnly interfaces following spec. (Closed)
Patch Set: Adding fromRect to DOMRect and DOMRectReadOnly interfaces following spec. 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/DOMRectReadOnly.h
diff --git a/third_party/WebKit/Source/core/dom/DOMRectReadOnly.h b/third_party/WebKit/Source/core/dom/DOMRectReadOnly.h
index 1a14e25499adaf9440660adb4b30c660f3ce50f2..957dfc9373b80b5fdfa6960466e0c33a10933545 100644
--- a/third_party/WebKit/Source/core/dom/DOMRectReadOnly.h
+++ b/third_party/WebKit/Source/core/dom/DOMRectReadOnly.h
@@ -11,6 +11,7 @@
namespace blink {
+class DOMRectInit;
class ScriptValue;
class ScriptState;
@@ -23,6 +24,7 @@ class CORE_EXPORT DOMRectReadOnly : public GarbageCollected<DOMRectReadOnly>,
double y,
double width,
double height);
+ static DOMRectReadOnly* fromRect(const DOMRectInit&);
double x() const { return m_x; }
double y() const { return m_y; }
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMRectInit.idl ('k') | third_party/WebKit/Source/core/dom/DOMRectReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698