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

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: DECLARE_VIRTUAL_TRACE 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..e6e8436fd0ba2126a4317225f5fc73e115ae2ebf 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,11 @@ 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)
+ {
+ if (!(layout->d == d))
+ layout.access()->d = d;
+ }
void setCx(const Length& obj)
{
if (!(layout->cx == obj))
@@ -333,6 +339,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