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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 return; | 1171 return; |
1172 } | 1172 } |
1173 | 1173 |
1174 if (!primitiveValue->isLength()) | 1174 if (!primitiveValue->isLength()) |
1175 return; | 1175 return; |
1176 float perspectiveValue = primitiveValue->computeLength<float>(state.cssToLen
gthConversionData()); | 1176 float perspectiveValue = primitiveValue->computeLength<float>(state.cssToLen
gthConversionData()); |
1177 if (perspectiveValue >= 0.0f) | 1177 if (perspectiveValue >= 0.0f) |
1178 state.style()->setPerspective(perspectiveValue); | 1178 state.style()->setPerspective(perspectiveValue); |
1179 } | 1179 } |
1180 | 1180 |
1181 void StyleBuilderFunctions::applyInitialCSSPropertyInternalCallback(StyleResolve
rState& state) | |
1182 { | |
1183 } | |
1184 | |
1185 void StyleBuilderFunctions::applyInheritCSSPropertyInternalCallback(StyleResolve
rState& state) | |
1186 { | |
1187 } | |
1188 | |
1189 void StyleBuilderFunctions::applyValueCSSPropertyInternalCallback(StyleResolverS
tate& state, CSSValue* value) | |
1190 { | |
1191 if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() ==
CSSValueInternalPresence) | |
1192 state.style()->addCallbackSelector(state.currentRule()->selectorList().s
electorsText()); | |
1193 } | |
1194 | |
1195 void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(StyleResolver
State& state, CSSValue* value) | 1181 void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(StyleResolver
State& state, CSSValue* value) |
1196 { | 1182 { |
1197 if (value->isPrimitiveValue()) | 1183 if (value->isPrimitiveValue()) |
1198 state.setWritingMode(*toCSSPrimitiveValue(value)); | 1184 state.setWritingMode(*toCSSPrimitiveValue(value)); |
1199 | 1185 |
1200 // FIXME: It is not ok to modify document state while applying style. | 1186 // FIXME: It is not ok to modify document state while applying style. |
1201 if (state.element() && state.element() == state.document().documentElement()
) | 1187 if (state.element() && state.element() == state.document().documentElement()
) |
1202 state.document().setWritingModeSetOnDocumentElement(true); | 1188 state.document().setWritingModeSetOnDocumentElement(true); |
1203 } | 1189 } |
1204 | 1190 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 break; | 1281 break; |
1296 default: | 1282 default: |
1297 ASSERT_NOT_REACHED(); | 1283 ASSERT_NOT_REACHED(); |
1298 break; | 1284 break; |
1299 } | 1285 } |
1300 | 1286 |
1301 state.style()->setGridAutoFlow(autoFlow); | 1287 state.style()->setGridAutoFlow(autoFlow); |
1302 } | 1288 } |
1303 | 1289 |
1304 } // namespace blink | 1290 } // namespace blink |
OLD | NEW |