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

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
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/svg/LayoutSVGEllipse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/SVGLayoutStyleDefs.cpp
diff --git a/Source/core/layout/style/SVGLayoutStyleDefs.cpp b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
index 886507017cefdf972fcf86ba544d851437f43f36..4838057be7bec947d8890908bd850aea5f4bf946 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;
}
}
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/svg/LayoutSVGEllipse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698