OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 case CSSPropertyBackgroundPositionX: | 1115 case CSSPropertyBackgroundPositionX: |
1116 case CSSPropertyBackgroundPositionY: | 1116 case CSSPropertyBackgroundPositionY: |
1117 case CSSPropertyBackgroundRepeat: | 1117 case CSSPropertyBackgroundRepeat: |
1118 case CSSPropertyBackgroundRepeatX: | 1118 case CSSPropertyBackgroundRepeatX: |
1119 case CSSPropertyBackgroundRepeatY: | 1119 case CSSPropertyBackgroundRepeatY: |
1120 case CSSPropertyBackgroundSize: | 1120 case CSSPropertyBackgroundSize: |
1121 case CSSPropertyColor: | 1121 case CSSPropertyColor: |
1122 case CSSPropertyFont: | 1122 case CSSPropertyFont: |
1123 case CSSPropertyFontFamily: | 1123 case CSSPropertyFontFamily: |
1124 case CSSPropertyFontSize: | 1124 case CSSPropertyFontSize: |
| 1125 case CSSPropertyFontStretch: |
1125 case CSSPropertyFontStyle: | 1126 case CSSPropertyFontStyle: |
1126 case CSSPropertyFontVariant: | 1127 case CSSPropertyFontVariant: |
1127 case CSSPropertyFontWeight: | 1128 case CSSPropertyFontWeight: |
1128 case CSSPropertyLineHeight: | 1129 case CSSPropertyLineHeight: |
1129 case CSSPropertyOpacity: | 1130 case CSSPropertyOpacity: |
1130 case CSSPropertyOutline: | 1131 case CSSPropertyOutline: |
1131 case CSSPropertyOutlineColor: | 1132 case CSSPropertyOutlineColor: |
1132 case CSSPropertyOutlineOffset: | 1133 case CSSPropertyOutlineOffset: |
1133 case CSSPropertyOutlineStyle: | 1134 case CSSPropertyOutlineStyle: |
1134 case CSSPropertyOutlineWidth: | 1135 case CSSPropertyOutlineWidth: |
(...skipping 17 matching lines...) Expand all Loading... |
1152 | 1153 |
1153 template <StyleResolver::StyleApplicationPass pass> | 1154 template <StyleResolver::StyleApplicationPass pass> |
1154 bool StyleResolver::isPropertyForPass(CSSPropertyID property) | 1155 bool StyleResolver::isPropertyForPass(CSSPropertyID property) |
1155 { | 1156 { |
1156 const CSSPropertyID firstAnimationProperty = CSSPropertyDisplay; | 1157 const CSSPropertyID firstAnimationProperty = CSSPropertyDisplay; |
1157 const CSSPropertyID lastAnimationProperty = CSSPropertyTransitionTimingFunct
ion; | 1158 const CSSPropertyID lastAnimationProperty = CSSPropertyTransitionTimingFunct
ion; |
1158 COMPILE_ASSERT(firstCSSProperty == firstAnimationProperty, CSS_first_animati
on_property_should_be_first_property); | 1159 COMPILE_ASSERT(firstCSSProperty == firstAnimationProperty, CSS_first_animati
on_property_should_be_first_property); |
1159 const CSSPropertyID firstHighPriorityProperty = CSSPropertyColor; | 1160 const CSSPropertyID firstHighPriorityProperty = CSSPropertyColor; |
1160 const CSSPropertyID lastHighPriorityProperty = CSSPropertyLineHeight; | 1161 const CSSPropertyID lastHighPriorityProperty = CSSPropertyLineHeight; |
1161 COMPILE_ASSERT(lastAnimationProperty + 1 == firstHighPriorityProperty, CSS_c
olor_is_first_high_priority_property); | 1162 COMPILE_ASSERT(lastAnimationProperty + 1 == firstHighPriorityProperty, CSS_c
olor_is_first_high_priority_property); |
1162 COMPILE_ASSERT(CSSPropertyLineHeight == firstHighPriorityProperty + 17, CSS_
line_height_is_end_of_high_prioity_property_range); | 1163 COMPILE_ASSERT(CSSPropertyLineHeight == firstHighPriorityProperty + 18, CSS_
line_height_is_end_of_high_prioity_property_range); |
1163 COMPILE_ASSERT(CSSPropertyZoom == lastHighPriorityProperty - 1, CSS_zoom_is_
before_line_height); | 1164 COMPILE_ASSERT(CSSPropertyZoom == lastHighPriorityProperty - 1, CSS_zoom_is_
before_line_height); |
1164 switch (pass) { | 1165 switch (pass) { |
1165 case AnimationProperties: | 1166 case AnimationProperties: |
1166 return property >= firstAnimationProperty && property <= lastAnimationPr
operty; | 1167 return property >= firstAnimationProperty && property <= lastAnimationPr
operty; |
1167 case HighPriorityProperties: | 1168 case HighPriorityProperties: |
1168 return property >= firstHighPriorityProperty && property <= lastHighPrio
rityProperty; | 1169 return property >= firstHighPriorityProperty && property <= lastHighPrio
rityProperty; |
1169 case LowPriorityProperties: | 1170 case LowPriorityProperties: |
1170 return property > lastHighPriorityProperty; | 1171 return property > lastHighPriorityProperty; |
1171 } | 1172 } |
1172 ASSERT_NOT_REACHED(); | 1173 ASSERT_NOT_REACHED(); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 bool StyleResolver::mediaQueryAffectedByViewportChange() const | 1409 bool StyleResolver::mediaQueryAffectedByViewportChange() const |
1409 { | 1410 { |
1410 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { | 1411 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { |
1411 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio
n) != m_viewportDependentMediaQueryResults[i]->m_result) | 1412 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio
n) != m_viewportDependentMediaQueryResults[i]->m_result) |
1412 return true; | 1413 return true; |
1413 } | 1414 } |
1414 return false; | 1415 return false; |
1415 } | 1416 } |
1416 | 1417 |
1417 } // namespace WebCore | 1418 } // namespace WebCore |
OLD | NEW |