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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s
tate, CSSValue* value) | 227 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s
tate, CSSValue* value) |
228 { | 228 { |
229 state.style()->setDirection(*toCSSPrimitiveValue(value)); | 229 state.style()->setDirection(*toCSSPrimitiveValue(value)); |
230 Element* element = state.element(); | 230 Element* element = state.element(); |
231 if (element && element == element->document().documentElement()) | 231 if (element && element == element->document().documentElement()) |
232 element->document().setDirectionSetOnDocumentElement(true); | 232 element->document().setDirectionSetOnDocumentElement(true); |
233 } | 233 } |
234 | 234 |
235 void StyleBuilderFunctions::applyInitialCSSPropertyFontFamily(StyleResolverState
& state) | |
236 { | |
237 state.fontBuilder().setFontFamilyInitial(); | |
238 } | |
239 | |
240 void StyleBuilderFunctions::applyInheritCSSPropertyFontFamily(StyleResolverState
& state) | |
241 { | |
242 state.fontBuilder().setFontFamilyInherit(state.parentFontDescription()); | |
243 } | |
244 | |
245 void StyleBuilderFunctions::applyValueCSSPropertyFontFamily(StyleResolverState&
state, CSSValue* value) | |
246 { | |
247 state.fontBuilder().setFontFamilyValue(value); | |
248 } | |
249 | |
250 void StyleBuilderFunctions::applyValueCSSPropertyGlyphOrientationVertical(StyleR
esolverState& state, CSSValue* value) | 235 void StyleBuilderFunctions::applyValueCSSPropertyGlyphOrientationVertical(StyleR
esolverState& state, CSSValue* value) |
251 { | 236 { |
252 if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() ==
CSSValueAuto) | 237 if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() ==
CSSValueAuto) |
253 state.style()->accessSVGStyle().setGlyphOrientationVertical(GO_AUTO); | 238 state.style()->accessSVGStyle().setGlyphOrientationVertical(GO_AUTO); |
254 else | 239 else |
255 state.style()->accessSVGStyle().setGlyphOrientationVertical(StyleBuilder
Converter::convertGlyphOrientation(state, value)); | 240 state.style()->accessSVGStyle().setGlyphOrientationVertical(StyleBuilder
Converter::convertGlyphOrientation(state, value)); |
256 } | 241 } |
257 | 242 |
258 void StyleBuilderFunctions::applyInitialCSSPropertyGridTemplateAreas(StyleResolv
erState& state) | 243 void StyleBuilderFunctions::applyInitialCSSPropertyGridTemplateAreas(StyleResolv
erState& state) |
259 { | 244 { |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 break; | 1184 break; |
1200 default: | 1185 default: |
1201 ASSERT_NOT_REACHED(); | 1186 ASSERT_NOT_REACHED(); |
1202 break; | 1187 break; |
1203 } | 1188 } |
1204 | 1189 |
1205 state.style()->setGridAutoFlow(autoFlow); | 1190 state.style()->setGridAutoFlow(autoFlow); |
1206 } | 1191 } |
1207 | 1192 |
1208 } // namespace blink | 1193 } // namespace blink |
OLD | NEW |