Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sky/engine/core/css/resolver/StyleResolver.cpp

Issue 689743002: First past at removing writing mode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // lastCSSPropertyId<HighPriorityProperties>. 727 // lastCSSPropertyId<HighPriorityProperties>.
728 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::HighPr iorityProperties>() 728 template<> CSSPropertyID StyleResolver::firstCSSPropertyId<StyleResolver::HighPr iorityProperties>()
729 { 729 {
730 COMPILE_ASSERT(CSSPropertyColor == firstCSSProperty, CSS_color_is_first_high _priority_property); 730 COMPILE_ASSERT(CSSPropertyColor == firstCSSProperty, CSS_color_is_first_high _priority_property);
731 return CSSPropertyColor; 731 return CSSPropertyColor;
732 } 732 }
733 733
734 // This method returns the last CSSPropertyId of high priority properties. 734 // This method returns the last CSSPropertyId of high priority properties.
735 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::HighPri orityProperties>() 735 template<> CSSPropertyID StyleResolver::lastCSSPropertyId<StyleResolver::HighPri orityProperties>()
736 { 736 {
737 COMPILE_ASSERT(CSSPropertyLineHeight == CSSPropertyColor + 18, CSS_line_heig ht_is_end_of_high_prioity_property_range); 737 COMPILE_ASSERT(CSSPropertyLineHeight == CSSPropertyColor + 17, CSS_line_heig ht_is_end_of_high_prioity_property_range);
738 COMPILE_ASSERT(CSSPropertyZoom == CSSPropertyLineHeight - 1, CSS_zoom_is_bef ore_line_height); 738 COMPILE_ASSERT(CSSPropertyZoom == CSSPropertyLineHeight - 1, CSS_zoom_is_bef ore_line_height);
739 return CSSPropertyLineHeight; 739 return CSSPropertyLineHeight;
740 } 740 }
741 741
742 // This method returns the first CSSPropertyId of remaining properties, 742 // This method returns the first CSSPropertyId of remaining properties,
743 // i.e. low priority properties. No properties depend on low priority 743 // i.e. low priority properties. No properties depend on low priority
744 // properties. So we don't need to resolve such properties quickly. 744 // properties. So we don't need to resolve such properties quickly.
745 // All low priority properties are obtained by using 745 // All low priority properties are obtained by using
746 // firstCSSPropertyId<LowPriorityProperties> and 746 // firstCSSPropertyId<LowPriorityProperties> and
747 // lastCSSPropertyId<LowPriorityProperties>. 747 // lastCSSPropertyId<LowPriorityProperties>.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 visitor->trace(m_viewportDependentMediaQueryResults); 1013 visitor->trace(m_viewportDependentMediaQueryResults);
1014 visitor->trace(m_features); 1014 visitor->trace(m_features);
1015 visitor->trace(m_attributeRuleSet); 1015 visitor->trace(m_attributeRuleSet);
1016 visitor->trace(m_styleSharingLists); 1016 visitor->trace(m_styleSharingLists);
1017 visitor->trace(m_pendingStyleSheets); 1017 visitor->trace(m_pendingStyleSheets);
1018 visitor->trace(m_document); 1018 visitor->trace(m_document);
1019 #endif 1019 #endif
1020 } 1020 }
1021 1021
1022 } // namespace blink 1022 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleBuilderCustom.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698