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

Side by Side Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 14576017: Implement CSS3TextDecorations runtime flag in favor of CSS3_TEXT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed updated on text-underline-position for now (to be discussed & re-added later) Created 7 years, 7 months 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
« no previous file with comments | « Source/core/css/DeprecatedStyleBuilder.cpp ('k') | Source/core/page/RuntimeCSSEnabled.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 inline bool isValidVisitedLinkProperty(CSSPropertyID id) 2136 inline bool isValidVisitedLinkProperty(CSSPropertyID id)
2137 { 2137 {
2138 switch (id) { 2138 switch (id) {
2139 case CSSPropertyBackgroundColor: 2139 case CSSPropertyBackgroundColor:
2140 case CSSPropertyBorderLeftColor: 2140 case CSSPropertyBorderLeftColor:
2141 case CSSPropertyBorderRightColor: 2141 case CSSPropertyBorderRightColor:
2142 case CSSPropertyBorderTopColor: 2142 case CSSPropertyBorderTopColor:
2143 case CSSPropertyBorderBottomColor: 2143 case CSSPropertyBorderBottomColor:
2144 case CSSPropertyColor: 2144 case CSSPropertyColor:
2145 case CSSPropertyOutlineColor: 2145 case CSSPropertyOutlineColor:
2146 case CSSPropertyTextDecorationColor:
2146 case CSSPropertyWebkitColumnRuleColor: 2147 case CSSPropertyWebkitColumnRuleColor:
2147 #if ENABLE(CSS3_TEXT)
2148 case CSSPropertyWebkitTextDecorationColor:
2149 #endif // CSS3_TEXT
2150 case CSSPropertyWebkitTextEmphasisColor: 2148 case CSSPropertyWebkitTextEmphasisColor:
2151 case CSSPropertyWebkitTextFillColor: 2149 case CSSPropertyWebkitTextFillColor:
2152 case CSSPropertyWebkitTextStrokeColor: 2150 case CSSPropertyWebkitTextStrokeColor:
2153 #if ENABLE(SVG) 2151 #if ENABLE(SVG)
2154 case CSSPropertyFill: 2152 case CSSPropertyFill:
2155 case CSSPropertyStroke: 2153 case CSSPropertyStroke:
2156 #endif 2154 #endif
2157 return true; 2155 return true;
2158 default: 2156 default:
2159 break; 2157 break;
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
3121 case CSSPropertyPointerEvents: 3119 case CSSPropertyPointerEvents:
3122 case CSSPropertyPosition: 3120 case CSSPropertyPosition:
3123 case CSSPropertyResize: 3121 case CSSPropertyResize:
3124 case CSSPropertyRight: 3122 case CSSPropertyRight:
3125 case CSSPropertySize: 3123 case CSSPropertySize:
3126 case CSSPropertySpeak: 3124 case CSSPropertySpeak:
3127 case CSSPropertyTabSize: 3125 case CSSPropertyTabSize:
3128 case CSSPropertyTableLayout: 3126 case CSSPropertyTableLayout:
3129 case CSSPropertyTextAlign: 3127 case CSSPropertyTextAlign:
3130 case CSSPropertyTextDecoration: 3128 case CSSPropertyTextDecoration:
3129 case CSSPropertyTextDecorationLine:
3130 case CSSPropertyTextDecorationStyle:
3131 case CSSPropertyTextDecorationColor:
3131 case CSSPropertyTextIndent: 3132 case CSSPropertyTextIndent:
3132 case CSSPropertyTextOverflow: 3133 case CSSPropertyTextOverflow:
3133 case CSSPropertyTextRendering: 3134 case CSSPropertyTextRendering:
3134 case CSSPropertyTextTransform: 3135 case CSSPropertyTextTransform:
3135 case CSSPropertyTop: 3136 case CSSPropertyTop:
3136 case CSSPropertyUnicodeBidi: 3137 case CSSPropertyUnicodeBidi:
3137 case CSSPropertyVariable: 3138 case CSSPropertyVariable:
3138 case CSSPropertyVerticalAlign: 3139 case CSSPropertyVerticalAlign:
3139 case CSSPropertyVisibility: 3140 case CSSPropertyVisibility:
3140 case CSSPropertyWebkitAnimationDelay: 3141 case CSSPropertyWebkitAnimationDelay:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
3229 case CSSPropertyWebkitPerspectiveOriginY: 3230 case CSSPropertyWebkitPerspectiveOriginY:
3230 case CSSPropertyWebkitPrintColorAdjust: 3231 case CSSPropertyWebkitPrintColorAdjust:
3231 case CSSPropertyWebkitRegionBreakAfter: 3232 case CSSPropertyWebkitRegionBreakAfter:
3232 case CSSPropertyWebkitRegionBreakBefore: 3233 case CSSPropertyWebkitRegionBreakBefore:
3233 case CSSPropertyWebkitRegionBreakInside: 3234 case CSSPropertyWebkitRegionBreakInside:
3234 case CSSPropertyWebkitRegionOverflow: 3235 case CSSPropertyWebkitRegionOverflow:
3235 case CSSPropertyWebkitRtlOrdering: 3236 case CSSPropertyWebkitRtlOrdering:
3236 case CSSPropertyWebkitRubyPosition: 3237 case CSSPropertyWebkitRubyPosition:
3237 case CSSPropertyWebkitTextCombine: 3238 case CSSPropertyWebkitTextCombine:
3238 #if ENABLE(CSS3_TEXT) 3239 #if ENABLE(CSS3_TEXT)
3239 case CSSPropertyWebkitTextDecorationLine:
3240 case CSSPropertyWebkitTextDecorationStyle:
3241 case CSSPropertyWebkitTextDecorationColor:
3242 case CSSPropertyWebkitTextAlignLast: 3240 case CSSPropertyWebkitTextAlignLast:
3243 case CSSPropertyWebkitTextUnderlinePosition: 3241 case CSSPropertyWebkitTextUnderlinePosition:
3244 #endif // CSS3_TEXT 3242 #endif // CSS3_TEXT
3245 case CSSPropertyWebkitTextEmphasisColor: 3243 case CSSPropertyWebkitTextEmphasisColor:
3246 case CSSPropertyWebkitTextEmphasisPosition: 3244 case CSSPropertyWebkitTextEmphasisPosition:
3247 case CSSPropertyWebkitTextEmphasisStyle: 3245 case CSSPropertyWebkitTextEmphasisStyle:
3248 case CSSPropertyWebkitTextFillColor: 3246 case CSSPropertyWebkitTextFillColor:
3249 case CSSPropertyWebkitTextSecurity: 3247 case CSSPropertyWebkitTextSecurity:
3250 case CSSPropertyWebkitTextStrokeColor: 3248 case CSSPropertyWebkitTextStrokeColor:
3251 case CSSPropertyWebkitTransformOriginX: 3249 case CSSPropertyWebkitTransformOriginX:
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
3834 info.addMember(m_state, "state"); 3832 info.addMember(m_state, "state");
3835 3833
3836 // FIXME: move this to a place where it would be called only once? 3834 // FIXME: move this to a place where it would be called only once?
3837 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); 3835 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle");
3838 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl e"); 3836 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl e");
3839 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle" ); 3837 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle" );
3840 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo urceStyle"); 3838 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo urceStyle");
3841 } 3839 }
3842 3840
3843 } // namespace WebCore 3841 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/DeprecatedStyleBuilder.cpp ('k') | Source/core/page/RuntimeCSSEnabled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698