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

Unified Diff: Source/core/layout/style/SVGLayoutStyle.h

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/LayoutStyle.h ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/SVGLayoutStyle.h
diff --git a/Source/core/layout/style/SVGLayoutStyle.h b/Source/core/layout/style/SVGLayoutStyle.h
index e4338dab45a95108322d27b02e0ff1120550f684..c5319bbdd5df7796434468e9f62733976bcdcd2d 100644
--- a/Source/core/layout/style/SVGLayoutStyle.h
+++ b/Source/core/layout/style/SVGLayoutStyle.h
@@ -91,6 +91,8 @@ public:
static EPaintOrder initialPaintOrder() { return PO_NORMAL; }
static Length initialX() { return Length(Fixed); }
static Length initialY() { return Length(Fixed); }
+ static Length initialRx() { return Length(Fixed); }
+ static Length initialRy() { return Length(Fixed); }
static PassRefPtrWillBeRawPtr<SVGLength> initialBaselineShiftValue()
{
@@ -143,6 +145,16 @@ public:
if (!(layout->y == obj))
layout.access()->y = obj;
}
+ void setRx(const Length& obj)
+ {
+ if (!(layout->rx == obj))
+ layout.access()->rx = obj;
+ }
+ void setRy(const Length& obj)
+ {
+ if (!(layout->ry == obj))
+ layout.access()->ry = obj;
+ }
void setFillOpacity(float obj)
{
if (!(fill->opacity == obj))
@@ -331,6 +343,8 @@ public:
SVGLength* baselineShiftValue() const { return misc->baselineShiftValue.get(); }
const Length& x() const { return layout->x; }
const Length& y() const { return layout->y; }
+ const Length& rx() const { return layout->rx; }
+ const Length& ry() const { return layout->ry; }
const AtomicString& clipperResource() const { return resources->clipper; }
const AtomicString& filterResource() const { return resources->filter; }
const AtomicString& maskerResource() const { return resources->masker; }
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698