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

Unified Diff: third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp

Issue 1439793003: SVG: Promote d to a property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DECLARE_VIRTUAL_TRACE 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/style/SVGComputedStyleDefs.cpp
diff --git a/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp b/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
index 756a211029e404eee1f2db9190077ef2ca7d62ca..d1fb935066e254d0cbb57a4a0b831d93c689d9f1 100644
--- a/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
+++ b/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
@@ -201,7 +201,8 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
}
StyleLayoutData::StyleLayoutData()
- : cx(SVGComputedStyle::initialCx())
+ : d(CSSPathValue::emptyPathValue())
+ , cx(SVGComputedStyle::initialCx())
, cy(SVGComputedStyle::initialCy())
, x(SVGComputedStyle::initialX())
, y(SVGComputedStyle::initialY())
@@ -213,6 +214,7 @@ StyleLayoutData::StyleLayoutData()
inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other)
: RefCounted<StyleLayoutData>()
+ , d(other.d)
, cx(other.cx)
, cy(other.cy)
, x(other.x)
@@ -236,7 +238,8 @@ bool StyleLayoutData::operator==(const StyleLayoutData& other) const
&& rx == other.rx
&& ry == other.ry
&& cx == other.cx
- && cy == other.cy;
+ && cy == other.cy
+ && d->equals(*other.d);
}
}

Powered by Google App Engine
This is Rietveld 408576698