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

Side by Side Diff: Source/core/css/DeprecatedStyleBuilder.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/CSSValueKeywords.in ('k') | Source/core/css/resolver/StyleResolver.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 setPropertyHandler(CSSPropertyPointerEvents, ApplyPropertyDefault<EPointerEv ents, &RenderStyle::pointerEvents, EPointerEvents, &RenderStyle::setPointerEvent s, EPointerEvents, &RenderStyle::initialPointerEvents>::createHandler()); 2107 setPropertyHandler(CSSPropertyPointerEvents, ApplyPropertyDefault<EPointerEv ents, &RenderStyle::pointerEvents, EPointerEvents, &RenderStyle::setPointerEvent s, EPointerEvents, &RenderStyle::initialPointerEvents>::createHandler());
2108 setPropertyHandler(CSSPropertyPosition, ApplyPropertyDefault<EPosition, &Ren derStyle::position, EPosition, &RenderStyle::setPosition, EPosition, &RenderStyl e::initialPosition>::createHandler()); 2108 setPropertyHandler(CSSPropertyPosition, ApplyPropertyDefault<EPosition, &Ren derStyle::position, EPosition, &RenderStyle::setPosition, EPosition, &RenderStyl e::initialPosition>::createHandler());
2109 setPropertyHandler(CSSPropertyResize, ApplyPropertyResize::createHandler()); 2109 setPropertyHandler(CSSPropertyResize, ApplyPropertyResize::createHandler());
2110 setPropertyHandler(CSSPropertyRight, ApplyPropertyLength<&RenderStyle::right , &RenderStyle::setRight, &RenderStyle::initialOffset, AutoEnabled>::createHandl er()); 2110 setPropertyHandler(CSSPropertyRight, ApplyPropertyLength<&RenderStyle::right , &RenderStyle::setRight, &RenderStyle::initialOffset, AutoEnabled>::createHandl er());
2111 setPropertyHandler(CSSPropertySize, ApplyPropertyPageSize::createHandler()); 2111 setPropertyHandler(CSSPropertySize, ApplyPropertyPageSize::createHandler());
2112 setPropertyHandler(CSSPropertySpeak, ApplyPropertyDefault<ESpeak, &RenderSty le::speak, ESpeak, &RenderStyle::setSpeak, ESpeak, &RenderStyle::initialSpeak>:: createHandler()); 2112 setPropertyHandler(CSSPropertySpeak, ApplyPropertyDefault<ESpeak, &RenderSty le::speak, ESpeak, &RenderStyle::setSpeak, ESpeak, &RenderStyle::initialSpeak>:: createHandler());
2113 setPropertyHandler(CSSPropertyTableLayout, ApplyPropertyDefault<ETableLayout , &RenderStyle::tableLayout, ETableLayout, &RenderStyle::setTableLayout, ETableL ayout, &RenderStyle::initialTableLayout>::createHandler()); 2113 setPropertyHandler(CSSPropertyTableLayout, ApplyPropertyDefault<ETableLayout , &RenderStyle::tableLayout, ETableLayout, &RenderStyle::setTableLayout, ETableL ayout, &RenderStyle::initialTableLayout>::createHandler());
2114 setPropertyHandler(CSSPropertyTabSize, ApplyPropertyDefault<unsigned, &Rende rStyle::tabSize, unsigned, &RenderStyle::setTabSize, unsigned, &RenderStyle::ini tialTabSize>::createHandler()); 2114 setPropertyHandler(CSSPropertyTabSize, ApplyPropertyDefault<unsigned, &Rende rStyle::tabSize, unsigned, &RenderStyle::setTabSize, unsigned, &RenderStyle::ini tialTabSize>::createHandler());
2115 setPropertyHandler(CSSPropertyTextAlign, ApplyPropertyTextAlign::createHandl er()); 2115 setPropertyHandler(CSSPropertyTextAlign, ApplyPropertyTextAlign::createHandl er());
2116 setPropertyHandler(CSSPropertyTextDecoration, ApplyPropertyTextDecoration::c reateHandler()); 2116 setPropertyHandler(CSSPropertyTextDecoration, ApplyPropertyTextDecoration::c reateHandler());
2117 setPropertyHandler(CSSPropertyTextDecorationLine, ApplyPropertyTextDecoratio n::createHandler());
2118 setPropertyHandler(CSSPropertyTextDecorationStyle, ApplyPropertyDefault<Text DecorationStyle, &RenderStyle::textDecorationStyle, TextDecorationStyle, &Render Style::setTextDecorationStyle, TextDecorationStyle, &RenderStyle::initialTextDec orationStyle>::createHandler());
2119 setPropertyHandler(CSSPropertyTextDecorationColor, ApplyPropertyColor<NoInhe ritFromParent, &RenderStyle::textDecorationColor, &RenderStyle::setTextDecoratio nColor, &RenderStyle::setVisitedLinkTextDecorationColor, &RenderStyle::color>::c reateHandler());
2120
2117 #if ENABLE(CSS3_TEXT) 2121 #if ENABLE(CSS3_TEXT)
2118 setPropertyHandler(CSSPropertyWebkitTextDecorationLine, ApplyPropertyTextDec oration::createHandler());
2119 setPropertyHandler(CSSPropertyWebkitTextDecorationStyle, ApplyPropertyDefaul t<TextDecorationStyle, &RenderStyle::textDecorationStyle, TextDecorationStyle, & RenderStyle::setTextDecorationStyle, TextDecorationStyle, &RenderStyle::initialT extDecorationStyle>::createHandler());
2120 setPropertyHandler(CSSPropertyWebkitTextDecorationColor, ApplyPropertyColor< NoInheritFromParent, &RenderStyle::textDecorationColor, &RenderStyle::setTextDec orationColor, &RenderStyle::setVisitedLinkTextDecorationColor, &RenderStyle::col or>::createHandler());
2121 setPropertyHandler(CSSPropertyWebkitTextAlignLast, ApplyPropertyDefault<Text AlignLast, &RenderStyle::textAlignLast, TextAlignLast, &RenderStyle::setTextAlig nLast, TextAlignLast, &RenderStyle::initialTextAlignLast>::createHandler()); 2122 setPropertyHandler(CSSPropertyWebkitTextAlignLast, ApplyPropertyDefault<Text AlignLast, &RenderStyle::textAlignLast, TextAlignLast, &RenderStyle::setTextAlig nLast, TextAlignLast, &RenderStyle::initialTextAlignLast>::createHandler());
2122 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText UnderlinePosition::createHandler()); 2123 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText UnderlinePosition::createHandler());
2123 #endif // CSS3_TEXT 2124 #endif // CSS3_TEXT
2124 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan dler()); 2125 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan dler());
2125 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text Overflow, &RenderStyle::initialTextOverflow>::createHandler()); 2126 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text Overflow, &RenderStyle::initialTextOverflow>::createHandler());
2126 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod e, AutoTextRendering>::createHandler()); 2127 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod e, AutoTextRendering>::createHandler());
2127 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler()); 2128 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler());
2128 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); 2129 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler());
2129 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi , &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod eBidi, &RenderStyle::initialUnicodeBidi>::createHandler()); 2130 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi , &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod eBidi, &RenderStyle::initialUnicodeBidi>::createHandler());
2130 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre ateHandler()); 2131 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre ateHandler());
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend erStyle::initialWordBreak>::createHandler()); 2263 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend erStyle::initialWordBreak>::createHandler());
2263 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, & RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler ()); 2264 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, & RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler ());
2264 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p roperty. So using the same handlers. 2265 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p roperty. So using the same handlers.
2265 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap, &RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf lowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); 2266 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap, &RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf lowWrap, &RenderStyle::initialOverflowWrap>::createHandler());
2266 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa sAutoZIndex>::createHandler()); 2267 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa sAutoZIndex>::createHandler());
2267 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); 2268 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler());
2268 } 2269 }
2269 2270
2270 2271
2271 } 2272 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698