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

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

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes Created 5 years, 10 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/LayoutSVGRect.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 8a0bfc441b94bdacef65b62b3fdfd6cc364d2771..4fe694b418151acf088b852308f1080bc40c47ad 100644
--- a/Source/core/layout/style/SVGLayoutStyleDefs.cpp
+++ b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
@@ -203,6 +203,8 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
StyleLayoutData::StyleLayoutData()
: x(SVGLayoutStyle::initialX())
, y(SVGLayoutStyle::initialY())
+ , rx(SVGLayoutStyle::initialRx())
+ , ry(SVGLayoutStyle::initialRy())
{
}
@@ -210,6 +212,8 @@ inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other)
: RefCounted<StyleLayoutData>()
, x(other.x)
, y(other.y)
+ , rx(other.rx)
+ , ry(other.ry)
{
}
@@ -221,7 +225,9 @@ PassRefPtr<StyleLayoutData> StyleLayoutData::copy() const
bool StyleLayoutData::operator==(const StyleLayoutData& other) const
{
return x == other.x
- && y == other.y;
+ && y == other.y
+ && rx == other.rx
+ && ry == other.ry;
}
}
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/svg/LayoutSVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698