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

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

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/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 f87dd45759144f1b9fbcd45a67686470d03bd044..f3710128ea83b020c5dbdf7f32fb1a8faed8c5bf 100644
--- a/Source/core/layout/style/SVGLayoutStyle.h
+++ b/Source/core/layout/style/SVGLayoutStyle.h
@@ -92,8 +92,11 @@ public:
static const AtomicString& initialMarkerEndResource() { return nullAtom; }
static EMaskType initialMaskType() { return MT_LUMINANCE; }
static EPaintOrder initialPaintOrder() { return PO_NORMAL; }
+ static Length initialCx() { return Length(Fixed); }
+ static Length initialCy() { return Length(Fixed); }
static Length initialX() { return Length(Fixed); }
static Length initialY() { return Length(Fixed); }
+ static Length initialR() { return Length(Fixed); }
static Length initialRx() { return Length(Fixed); }
static Length initialRy() { return Length(Fixed); }
@@ -117,6 +120,16 @@ public:
void setGlyphOrientationVertical(EGlyphOrientation val) { svg_inherited_flags._glyphOrientationVertical = val; }
void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; }
void setPaintOrder(EPaintOrder val) { svg_inherited_flags._paintOrder = (int)val; }
+ void setCx(const Length& obj)
+ {
+ if (!(layout->cx == obj))
+ layout.access()->cx = obj;
+ }
+ void setCy(const Length& obj)
+ {
+ if (!(layout->cy == obj))
+ layout.access()->cy = obj;
+ }
void setX(const Length& obj)
{
if (!(layout->x == obj))
@@ -127,6 +140,11 @@ public:
if (!(layout->y == obj))
layout.access()->y = obj;
}
+ void setR(const Length& obj)
+ {
+ if (!(layout->r == obj))
+ layout.access()->r = obj;
+ }
void setRx(const Length& obj)
{
if (!(layout->rx == obj))
@@ -323,8 +341,11 @@ public:
const Color& floodColor() const { return misc->floodColor; }
const Color& lightingColor() const { return misc->lightingColor; }
const Length& baselineShiftValue() const { return misc->baselineShiftValue; }
+ const Length& cx() const { return layout->cx; }
+ const Length& cy() const { return layout->cy; }
const Length& x() const { return layout->x; }
const Length& y() const { return layout->y; }
+ const Length& r() const { return layout->r; }
const Length& rx() const { return layout->rx; }
const Length& ry() const { return layout->ry; }
const AtomicString& clipperResource() const { return resources->clipper; }
« 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