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

Unified Diff: Source/core/style/ComputedStyle.h

Issue 1243313002: Migrate the remaining CSS properties interpolable as Lengths to LengthInterpolationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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
Index: Source/core/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index e8f1dd447b7c3da63b8cea7aa1f136bd3b89779c..5e4aabdbc4627aebd9ffc7e748c9fa125e28b3e7 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -1470,8 +1470,14 @@ public:
void setFloodColor(const Color& c) { accessSVGStyle().setFloodColor(c); }
void setLightingColor(const Color& c) { accessSVGStyle().setLightingColor(c); }
+ EBaselineShift baselineShift() const { return svgStyle().baselineShift(); }
const Length& baselineShiftValue() const { return svgStyle().baselineShiftValue(); }
- void setBaselineShiftValue(const Length& s) { accessSVGStyle().setBaselineShiftValue(s); }
+ void setBaselineShiftValue(const Length& value)
+ {
+ SVGComputedStyle& svgStyle = accessSVGStyle();
+ svgStyle.setBaselineShift(BS_LENGTH);
+ svgStyle.setBaselineShiftValue(value);
+ }
void setShapeOutside(PassRefPtrWillBeRawPtr<ShapeValue> value)
{

Powered by Google App Engine
This is Rietveld 408576698