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

Unified Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 330913005: Fix inheritance of baseline-shift <length> values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/css/CSSProperties.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
index c9e9af60fb0ef27727a9db1c944eb2c7f89edc94..ccd7365f089e27626b2e109ffd8c65614121b792 100644
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -1363,6 +1363,15 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitFontFeatureSettings(Style
state.fontBuilder().setFeatureSettingsValue(value);
}
+void StyleBuilderFunctions::applyInheritCSSPropertyBaselineShift(StyleResolverState& state)
+{
+ const SVGRenderStyle* parentSvgStyle = state.parentStyle()->svgStyle();
+ EBaselineShift baselineShift = parentSvgStyle->baselineShift();
+ SVGRenderStyle* svgStyle = state.style()->accessSVGStyle();
+ svgStyle->setBaselineShift(baselineShift);
pdr. 2014/06/24 19:56:33 Can this lead to either svgStyle or parentSvgStyle
Timothy Loh 2014/06/25 01:33:46 I'm pretty sure this is fine.
fs 2014/06/25 08:02:26 This is: void setBaselineShift(EBaselineShift val
+ if (baselineShift == BS_LENGTH)
+ svgStyle->setBaselineShiftValue(parentSvgStyle->baselineShiftValue());
+}
void StyleBuilderFunctions::applyValueCSSPropertyBaselineShift(StyleResolverState& state, CSSValue* value)
{
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698