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

Unified Diff: Source/core/dom/DOMPoint.cpp

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/css/FontFace.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMPoint.cpp
diff --git a/Source/core/dom/DOMPoint.cpp b/Source/core/dom/DOMPoint.cpp
index 56cbd020a1255808ac6d801c18ff313c39896f51..e9909f9b4a646823e0c256f44958d1f61060a58d 100644
--- a/Source/core/dom/DOMPoint.cpp
+++ b/Source/core/dom/DOMPoint.cpp
@@ -14,13 +14,13 @@ DOMPoint* DOMPoint::create(const Dictionary& point)
double z = 0;
double w = 0;
- if (!DictionaryHelper::get(point, "x", x))
+ if (!point.get("x", x))
x = 0;
- if (!DictionaryHelper::get(point, "y", y))
+ if (!point.get("y", y))
y = 0;
- if (!DictionaryHelper::get(point, "z", z))
+ if (!point.get("z", z))
z = 0;
- if (!DictionaryHelper::get(point, "w", w))
+ if (!point.get("w", w))
w = 1;
return new DOMPoint(x, y, z, w);
« no previous file with comments | « Source/core/css/FontFace.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698