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

Unified Diff: third_party/WebKit/Source/core/style/SVGComputedStyle.h

Issue 1439793003: SVG: Promote d to a property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RefPtrWillBePersistent Created 5 years 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: third_party/WebKit/Source/core/style/SVGComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/SVGComputedStyle.h b/third_party/WebKit/Source/core/style/SVGComputedStyle.h
index f8925f1c3a6dd041bab6ccb4265330117ddca37f..ffb1da3def32b70322dd58275ce83465d72871d9 100644
--- a/third_party/WebKit/Source/core/style/SVGComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/SVGComputedStyle.h
@@ -90,6 +90,7 @@ public:
static const AtomicString& initialMarkerEndResource() { return nullAtom; }
static EMaskType initialMaskType() { return MT_LUMINANCE; }
static EPaintOrder initialPaintOrder() { return PaintOrderNormal; }
+ static CSSPathValue* initialD() { return CSSPathValue::emptyPathValue(); }
static Length initialCx() { return Length(Fixed); }
static Length initialCy() { return Length(Fixed); }
static Length initialX() { return Length(Fixed); }
@@ -115,6 +116,10 @@ public:
void setTextAnchor(ETextAnchor val) { svg_inherited_flags.textAnchor = val; }
void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; }
void setPaintOrder(EPaintOrder val) { svg_inherited_flags.paintOrder = (int)val; }
+ void setD(PassRefPtrWillBeRawPtr<CSSPathValue> d)
+ {
+ layout.access()->d = d;
fs 2015/12/11 13:01:58 I think there might still be some use in doing "if
Eric Willigers 2015/12/14 05:36:46 Done.
+ }
void setCx(const Length& obj)
{
if (!(layout->cx == obj))
@@ -333,6 +338,7 @@ public:
const Color& floodColor() const { return misc->floodColor; }
const Color& lightingColor() const { return misc->lightingColor; }
const Length& baselineShiftValue() const { return misc->baselineShiftValue; }
+ CSSPathValue* d() const { return layout->d.get(); }
const Length& cx() const { return layout->cx; }
const Length& cy() const { return layout->cy; }
const Length& x() const { return layout->x; }

Powered by Google App Engine
This is Rietveld 408576698