| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 | 697 |
| 698 if (state.style()->hasViewportUnits()) | 698 if (state.style()->hasViewportUnits()) |
| 699 document().setHasViewportUnits(); | 699 document().setHasViewportUnits(); |
| 700 | 700 |
| 701 // Now return the style. | 701 // Now return the style. |
| 702 return state.takeStyle(); | 702 return state.takeStyle(); |
| 703 } | 703 } |
| 704 | 704 |
| 705 // FIXME: Consider refactoring to create a new class which owns the following | 705 // FIXME: Consider refactoring to create a new class which owns the following |
| 706 // first/last/range properties. | 706 // first/last/range properties. |
| 707 // c.f. //src/third_party/WebKit/Source/core/css/CSSPropertyNames.in. | 707 // c.f. //src/third_party/WebKit/Source/core/css/CSSProperties.in. |
| 708 | 708 |
| 709 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::HighPr
iorityProperties>() | 709 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::HighPr
iorityProperties>() |
| 710 { | 710 { |
| 711 COMPILE_ASSERT(CSSPropertyColor == CSSPropertyWebkitWritingMode + 1, CSS_col
or_is_first_high_priority_property); | 711 COMPILE_ASSERT(CSSPropertyColor == CSSPropertyWebkitWritingMode + 1, CSS_col
or_is_first_high_priority_property); |
| 712 return CSSPropertyColor; | 712 return CSSPropertyColor; |
| 713 } | 713 } |
| 714 | 714 |
| 715 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::HighPri
orityProperties>() | 715 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::HighPri
orityProperties>() |
| 716 { | 716 { |
| 717 return CSSPropertyZoom; | 717 return CSSPropertyZoom; |
| 718 } | 718 } |
| 719 | 719 |
| 720 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::LowPri
orityProperties>() | 720 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::LowPri
orityProperties>() |
| 721 { | 721 { |
| 722 COMPILE_ASSERT(CSSPropertyBackground == CSSPropertyZoom + 1, CSS_background_
is_first_low_priority_property); | 722 COMPILE_ASSERT(CSSPropertyWebkitBorderImage == CSSPropertyZoom + 1, CSS_webk
it_border_image_is_first_low_priority_property); |
| 723 return CSSPropertyBackground; | 723 return CSSPropertyWebkitBorderImage; |
| 724 } | 724 } |
| 725 | 725 |
| 726 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::LowPrio
rityProperties>() | 726 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::LowPrio
rityProperties>() |
| 727 { | 727 { |
| 728 return convertToCSSPropertyID(lastCSSProperty); | 728 return convertToCSSPropertyID(lastCSSProperty); |
| 729 } | 729 } |
| 730 | 730 |
| 731 template <StyleResolver::StyleApplicationPass pass> | 731 template <StyleResolver::StyleApplicationPass pass> |
| 732 bool StyleResolver::isPropertyForPass(CSSPropertyID property) | 732 bool StyleResolver::isPropertyForPass(CSSPropertyID property) |
| 733 { | 733 { |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 visitor->trace(m_features); | 1267 visitor->trace(m_features); |
| 1268 visitor->trace(m_siblingRuleSet); | 1268 visitor->trace(m_siblingRuleSet); |
| 1269 visitor->trace(m_uncommonAttributeRuleSet); | 1269 visitor->trace(m_uncommonAttributeRuleSet); |
| 1270 visitor->trace(m_watchedSelectorsRules); | 1270 visitor->trace(m_watchedSelectorsRules); |
| 1271 visitor->trace(m_treeBoundaryCrossingRules); | 1271 visitor->trace(m_treeBoundaryCrossingRules); |
| 1272 visitor->trace(m_pendingStyleSheets); | 1272 visitor->trace(m_pendingStyleSheets); |
| 1273 #endif | 1273 #endif |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 } // namespace blink | 1276 } // namespace blink |
| OLD | NEW |