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

Unified Diff: Source/core/layout/style/SVGLayoutStyleDefs.cpp

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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: Source/core/layout/style/SVGLayoutStyleDefs.cpp
diff --git a/Source/core/layout/style/SVGLayoutStyleDefs.cpp b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
index 44b837e4dc46bfc15582e3dea34db3da9a9a238c..727b809d2701d3c8ee031f29dea531829273f751 100644
--- a/Source/core/layout/style/SVGLayoutStyleDefs.cpp
+++ b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
@@ -201,8 +201,11 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
}
StyleLayoutData::StyleLayoutData()
- : x(SVGLayoutStyle::initialX())
+ : cx(SVGLayoutStyle::initialCx())
+ , cy(SVGLayoutStyle::initialCy())
+ , x(SVGLayoutStyle::initialX())
, y(SVGLayoutStyle::initialY())
+ , r(SVGLayoutStyle::initialR())
, rx(SVGLayoutStyle::initialRx())
, ry(SVGLayoutStyle::initialRy())
{
@@ -210,8 +213,11 @@ StyleLayoutData::StyleLayoutData()
inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other)
: RefCounted<StyleLayoutData>()
+ , cx(other.cx)
+ , cy(other.cy)
, x(other.x)
, y(other.y)
+ , r(other.r)
, rx(other.rx)
, ry(other.ry)
{
@@ -226,8 +232,11 @@ bool StyleLayoutData::operator==(const StyleLayoutData& other) const
{
return x == other.x
&& y == other.y
+ && r == other.r
&& rx == other.rx
- && ry == other.ry;
+ && ry == other.ry
+ && cx == other.cx
+ && cy == other.cy;
}
}

Powered by Google App Engine
This is Rietveld 408576698