OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } else { | 199 } else { |
200 state.style()->setCursor(toCSSPrimitiveValue(value)->convertTo<ECursor>(
)); | 200 state.style()->setCursor(toCSSPrimitiveValue(value)->convertTo<ECursor>(
)); |
201 } | 201 } |
202 } | 202 } |
203 | 203 |
204 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s
tate, CSSValue* value) | 204 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s
tate, CSSValue* value) |
205 { | 205 { |
206 state.style()->setDirection(toCSSPrimitiveValue(value)->convertTo<TextDirect
ion>()); | 206 state.style()->setDirection(toCSSPrimitiveValue(value)->convertTo<TextDirect
ion>()); |
207 } | 207 } |
208 | 208 |
209 void StyleBuilderFunctions::applyValueCSSPropertyGlyphOrientationVertical(StyleR
esolverState& state, CSSValue* value) | |
210 { | |
211 if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() ==
CSSValueAuto) | |
212 state.style()->accessSVGStyle().setGlyphOrientationVertical(GO_AUTO); | |
213 else | |
214 state.style()->accessSVGStyle().setGlyphOrientationVertical(StyleBuilder
Converter::convertGlyphOrientation(state, *value)); | |
215 } | |
216 | |
217 void StyleBuilderFunctions::applyInitialCSSPropertyGridTemplateAreas(StyleResolv
erState& state) | 209 void StyleBuilderFunctions::applyInitialCSSPropertyGridTemplateAreas(StyleResolv
erState& state) |
218 { | 210 { |
219 state.style()->setNamedGridArea(ComputedStyle::initialNamedGridArea()); | 211 state.style()->setNamedGridArea(ComputedStyle::initialNamedGridArea()); |
220 state.style()->setNamedGridAreaRowCount(ComputedStyle::initialNamedGridAreaC
ount()); | 212 state.style()->setNamedGridAreaRowCount(ComputedStyle::initialNamedGridAreaC
ount()); |
221 state.style()->setNamedGridAreaColumnCount(ComputedStyle::initialNamedGridAr
eaCount()); | 213 state.style()->setNamedGridAreaColumnCount(ComputedStyle::initialNamedGridAr
eaCount()); |
222 } | 214 } |
223 | 215 |
224 void StyleBuilderFunctions::applyInheritCSSPropertyGridTemplateAreas(StyleResolv
erState& state) | 216 void StyleBuilderFunctions::applyInheritCSSPropertyGridTemplateAreas(StyleResolv
erState& state) |
225 { | 217 { |
226 state.style()->setNamedGridArea(state.parentStyle()->namedGridArea()); | 218 state.style()->setNamedGridArea(state.parentStyle()->namedGridArea()); |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 return; | 842 return; |
851 case CSSValueSuper: | 843 case CSSValueSuper: |
852 svgStyle.setBaselineShift(BS_SUPER); | 844 svgStyle.setBaselineShift(BS_SUPER); |
853 return; | 845 return; |
854 default: | 846 default: |
855 ASSERT_NOT_REACHED(); | 847 ASSERT_NOT_REACHED(); |
856 } | 848 } |
857 } | 849 } |
858 | 850 |
859 } // namespace blink | 851 } // namespace blink |
OLD | NEW |