OLD | NEW |
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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 } else { | 1619 } else { |
1620 styleResolver->style()->setTextEmphasisFill(TextEmphasisFillFilled); | 1620 styleResolver->style()->setTextEmphasisFill(TextEmphasisFillFilled); |
1621 styleResolver->style()->setTextEmphasisMark(*primitiveValue); | 1621 styleResolver->style()->setTextEmphasisMark(*primitiveValue); |
1622 } | 1622 } |
1623 } | 1623 } |
1624 | 1624 |
1625 static PropertyHandler createHandler() { return PropertyHandler(&applyInheri
tValue, &applyInitialValue, &applyValue); } | 1625 static PropertyHandler createHandler() { return PropertyHandler(&applyInheri
tValue, &applyInitialValue, &applyValue); } |
1626 }; | 1626 }; |
1627 | 1627 |
1628 template <typename T, | 1628 template <typename T, |
1629 T (CSSAnimationData::*getterFunction)() const, | 1629 T (StyleAnimationData::*getterFunction)() const, |
1630 void (CSSAnimationData::*setterFunction)(T), | 1630 void (StyleAnimationData::*setterFunction)(T), |
1631 bool (CSSAnimationData::*testFunction)() const, | 1631 bool (StyleAnimationData::*testFunction)() const, |
1632 void (CSSAnimationData::*clearFunction)(), | 1632 void (StyleAnimationData::*clearFunction)(), |
1633 T (*initialFunction)(), | 1633 T (*initialFunction)(), |
1634 void (CSSToStyleMap::*mapFunction)(CSSAnimationData*, CSSValue*), | 1634 void (CSSToStyleMap::*mapFunction)(StyleAnimationData*, CSSValue*), |
1635 CSSAnimationDataList* (RenderStyle::*animationGetterFunction)(), | 1635 StyleAnimationDataList* (RenderStyle::*animationGetterFunction)(), |
1636 const CSSAnimationDataList* (RenderStyle::*immutableAnimationGetterFun
ction)() const> | 1636 const StyleAnimationDataList* (RenderStyle::*immutableAnimationGetterF
unction)() const> |
1637 class ApplyPropertyAnimation { | 1637 class ApplyPropertyAnimation { |
1638 public: | 1638 public: |
1639 static void setValue(CSSAnimationData* animation, T value) { (animation->*se
tterFunction)(value); } | 1639 static void setValue(StyleAnimationData* animation, T value) { (animation->*
setterFunction)(value); } |
1640 static T value(const CSSAnimationData* animation) { return (animation->*gett
erFunction)(); } | 1640 static T value(const StyleAnimationData* animation) { return (animation->*ge
tterFunction)(); } |
1641 static bool test(const CSSAnimationData* animation) { return (animation->*te
stFunction)(); } | 1641 static bool test(const StyleAnimationData* animation) { return (animation->*
testFunction)(); } |
1642 static void clear(CSSAnimationData* animation) { (animation->*clearFunction)
(); } | 1642 static void clear(StyleAnimationData* animation) { (animation->*clearFunctio
n)(); } |
1643 static T initial() { return (*initialFunction)(); } | 1643 static T initial() { return (*initialFunction)(); } |
1644 static void map(StyleResolver* styleResolver, CSSAnimationData* animation, C
SSValue* value) { (styleResolver->styleMap()->*mapFunction)(animation, value); } | 1644 static void map(StyleResolver* styleResolver, StyleAnimationData* animation,
CSSValue* value) { (styleResolver->styleMap()->*mapFunction)(animation, value);
} |
1645 static CSSAnimationDataList* accessAnimations(RenderStyle* style) { return (
style->*animationGetterFunction)(); } | 1645 static StyleAnimationDataList* accessAnimations(RenderStyle* style) { return
(style->*animationGetterFunction)(); } |
1646 static const CSSAnimationDataList* animations(RenderStyle* style) { return (
style->*immutableAnimationGetterFunction)(); } | 1646 static const StyleAnimationDataList* animations(RenderStyle* style) { return
(style->*immutableAnimationGetterFunction)(); } |
1647 | 1647 |
1648 static void applyInheritValue(CSSPropertyID, StyleResolver* styleResolver) | 1648 static void applyInheritValue(CSSPropertyID, StyleResolver* styleResolver) |
1649 { | 1649 { |
1650 CSSAnimationDataList* list = accessAnimations(styleResolver->style()); | 1650 StyleAnimationDataList* list = accessAnimations(styleResolver->style()); |
1651 const CSSAnimationDataList* parentList = animations(styleResolver->paren
tStyle()); | 1651 const StyleAnimationDataList* parentList = animations(styleResolver->par
entStyle()); |
1652 size_t i = 0, parentSize = parentList ? parentList->size() : 0; | 1652 size_t i = 0, parentSize = parentList ? parentList->size() : 0; |
1653 for ( ; i < parentSize && test(parentList->animation(i)); ++i) { | 1653 for ( ; i < parentSize && test(parentList->animation(i)); ++i) { |
1654 if (list->size() <= i) | 1654 if (list->size() <= i) |
1655 list->append(CSSAnimationData::create()); | 1655 list->append(StyleAnimationData::create()); |
1656 setValue(list->animation(i), value(parentList->animation(i))); | 1656 setValue(list->animation(i), value(parentList->animation(i))); |
1657 list->animation(i)->setAnimationMode(parentList->animation(i)->anima
tionMode()); | 1657 list->animation(i)->setAnimationMode(parentList->animation(i)->anima
tionMode()); |
1658 } | 1658 } |
1659 | 1659 |
1660 /* Reset any remaining animations to not have the property set. */ | 1660 /* Reset any remaining animations to not have the property set. */ |
1661 for ( ; i < list->size(); ++i) | 1661 for ( ; i < list->size(); ++i) |
1662 clear(list->animation(i)); | 1662 clear(list->animation(i)); |
1663 } | 1663 } |
1664 | 1664 |
1665 static void applyInitialValue(CSSPropertyID propertyID, StyleResolver* style
Resolver) | 1665 static void applyInitialValue(CSSPropertyID propertyID, StyleResolver* style
Resolver) |
1666 { | 1666 { |
1667 CSSAnimationDataList* list = accessAnimations(styleResolver->style()); | 1667 StyleAnimationDataList* list = accessAnimations(styleResolver->style()); |
1668 if (list->isEmpty()) | 1668 if (list->isEmpty()) |
1669 list->append(CSSAnimationData::create()); | 1669 list->append(StyleAnimationData::create()); |
1670 setValue(list->animation(0), initial()); | 1670 setValue(list->animation(0), initial()); |
1671 if (propertyID == CSSPropertyWebkitTransitionProperty) | 1671 if (propertyID == CSSPropertyWebkitTransitionProperty) |
1672 list->animation(0)->setAnimationMode(CSSAnimationData::AnimateAll); | 1672 list->animation(0)->setAnimationMode(StyleAnimationData::AnimateAll)
; |
1673 for (size_t i = 1; i < list->size(); ++i) | 1673 for (size_t i = 1; i < list->size(); ++i) |
1674 clear(list->animation(i)); | 1674 clear(list->animation(i)); |
1675 } | 1675 } |
1676 | 1676 |
1677 static void applyValue(CSSPropertyID, StyleResolver* styleResolver, CSSValue
* value) | 1677 static void applyValue(CSSPropertyID, StyleResolver* styleResolver, CSSValue
* value) |
1678 { | 1678 { |
1679 CSSAnimationDataList* list = accessAnimations(styleResolver->style()); | 1679 StyleAnimationDataList* list = accessAnimations(styleResolver->style()); |
1680 size_t childIndex = 0; | 1680 size_t childIndex = 0; |
1681 if (value->isValueList()) { | 1681 if (value->isValueList()) { |
1682 /* Walk each value and put it into an animation, creating new animat
ions as needed. */ | 1682 /* Walk each value and put it into an animation, creating new animat
ions as needed. */ |
1683 for (CSSValueListIterator i = value; i.hasMore(); i.advance()) { | 1683 for (CSSValueListIterator i = value; i.hasMore(); i.advance()) { |
1684 if (childIndex <= list->size()) | 1684 if (childIndex <= list->size()) |
1685 list->append(CSSAnimationData::create()); | 1685 list->append(StyleAnimationData::create()); |
1686 map(styleResolver, list->animation(childIndex), i.value()); | 1686 map(styleResolver, list->animation(childIndex), i.value()); |
1687 ++childIndex; | 1687 ++childIndex; |
1688 } | 1688 } |
1689 } else { | 1689 } else { |
1690 if (list->isEmpty()) | 1690 if (list->isEmpty()) |
1691 list->append(CSSAnimationData::create()); | 1691 list->append(StyleAnimationData::create()); |
1692 map(styleResolver, list->animation(childIndex), value); | 1692 map(styleResolver, list->animation(childIndex), value); |
1693 childIndex = 1; | 1693 childIndex = 1; |
1694 } | 1694 } |
1695 for ( ; childIndex < list->size(); ++childIndex) { | 1695 for ( ; childIndex < list->size(); ++childIndex) { |
1696 /* Reset all remaining animations to not have the property set. */ | 1696 /* Reset all remaining animations to not have the property set. */ |
1697 clear(list->animation(childIndex)); | 1697 clear(list->animation(childIndex)); |
1698 } | 1698 } |
1699 } | 1699 } |
1700 | 1700 |
1701 static PropertyHandler createHandler() { return PropertyHandler(&applyInheri
tValue, &applyInitialValue, &applyValue); } | 1701 static PropertyHandler createHandler() { return PropertyHandler(&applyInheri
tValue, &applyInitialValue, &applyValue); } |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2137 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText
UnderlinePosition::createHandler()); | 2137 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText
UnderlinePosition::createHandler()); |
2138 #endif // CSS3_TEXT | 2138 #endif // CSS3_TEXT |
2139 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan
dler()); | 2139 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan
dler()); |
2140 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo
w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text
Overflow, &RenderStyle::initialTextOverflow>::createHandler()); | 2140 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo
w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text
Overflow, &RenderStyle::initialTextOverflow>::createHandler()); |
2141 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering
Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod
e, AutoTextRendering>::createHandler()); | 2141 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering
Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod
e, AutoTextRendering>::createHandler()); |
2142 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans
form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor
m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler()); | 2142 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans
form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor
m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler()); |
2143 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R
enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); | 2143 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R
enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); |
2144 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi
, &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod
eBidi, &RenderStyle::initialUnicodeBidi>::createHandler()); | 2144 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi
, &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod
eBidi, &RenderStyle::initialUnicodeBidi>::createHandler()); |
2145 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre
ateHandler()); | 2145 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre
ateHandler()); |
2146 setPropertyHandler(CSSPropertyVisibility, ApplyPropertyDefault<EVisibility,
&RenderStyle::visibility, EVisibility, &RenderStyle::setVisibility, EVisibility,
&RenderStyle::initialVisibility>::createHandler()); | 2146 setPropertyHandler(CSSPropertyVisibility, ApplyPropertyDefault<EVisibility,
&RenderStyle::visibility, EVisibility, &RenderStyle::setVisibility, EVisibility,
&RenderStyle::initialVisibility>::createHandler()); |
2147 setPropertyHandler(CSSPropertyWebkitAnimationDelay, ApplyPropertyAnimation<d
ouble, &CSSAnimationData::delay, &CSSAnimationData::setDelay, &CSSAnimationData:
:isDelaySet, &CSSAnimationData::clearDelay, &CSSAnimationData::initialAnimationD
elay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessAnimations, &Render
Style::animations>::createHandler()); | 2147 setPropertyHandler(CSSPropertyWebkitAnimationDelay, ApplyPropertyAnimation<d
ouble, &StyleAnimationData::delay, &StyleAnimationData::setDelay, &StyleAnimatio
nData::isDelaySet, &StyleAnimationData::clearDelay, &StyleAnimationData::initial
AnimationDelay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessAnimation
s, &RenderStyle::animations>::createHandler()); |
2148 setPropertyHandler(CSSPropertyWebkitAnimationDirection, ApplyPropertyAnimati
on<CSSAnimationData::AnimationDirection, &CSSAnimationData::direction, &CSSAnima
tionData::setDirection, &CSSAnimationData::isDirectionSet, &CSSAnimationData::cl
earDirection, &CSSAnimationData::initialAnimationDirection, &CSSToStyleMap::mapA
nimationDirection, &RenderStyle::accessAnimations, &RenderStyle::animations>::cr
eateHandler()); | 2148 setPropertyHandler(CSSPropertyWebkitAnimationDirection, ApplyPropertyAnimati
on<StyleAnimationData::AnimationDirection, &StyleAnimationData::direction, &Styl
eAnimationData::setDirection, &StyleAnimationData::isDirectionSet, &StyleAnimati
onData::clearDirection, &StyleAnimationData::initialAnimationDirection, &CSSToSt
yleMap::mapAnimationDirection, &RenderStyle::accessAnimations, &RenderStyle::ani
mations>::createHandler()); |
2149 setPropertyHandler(CSSPropertyWebkitAnimationDuration, ApplyPropertyAnimatio
n<double, &CSSAnimationData::duration, &CSSAnimationData::setDuration, &CSSAnima
tionData::isDurationSet, &CSSAnimationData::clearDuration, &CSSAnimationData::in
itialAnimationDuration, &CSSToStyleMap::mapAnimationDuration, &RenderStyle::acce
ssAnimations, &RenderStyle::animations>::createHandler()); | 2149 setPropertyHandler(CSSPropertyWebkitAnimationDuration, ApplyPropertyAnimatio
n<double, &StyleAnimationData::duration, &StyleAnimationData::setDuration, &Styl
eAnimationData::isDurationSet, &StyleAnimationData::clearDuration, &StyleAnimati
onData::initialAnimationDuration, &CSSToStyleMap::mapAnimationDuration, &RenderS
tyle::accessAnimations, &RenderStyle::animations>::createHandler()); |
2150 setPropertyHandler(CSSPropertyWebkitAnimationFillMode, ApplyPropertyAnimatio
n<unsigned, &CSSAnimationData::fillMode, &CSSAnimationData::setFillMode, &CSSAni
mationData::isFillModeSet, &CSSAnimationData::clearFillMode, &CSSAnimationData::
initialAnimationFillMode, &CSSToStyleMap::mapAnimationFillMode, &RenderStyle::ac
cessAnimations, &RenderStyle::animations>::createHandler()); | 2150 setPropertyHandler(CSSPropertyWebkitAnimationFillMode, ApplyPropertyAnimatio
n<unsigned, &StyleAnimationData::fillMode, &StyleAnimationData::setFillMode, &St
yleAnimationData::isFillModeSet, &StyleAnimationData::clearFillMode, &StyleAnima
tionData::initialAnimationFillMode, &CSSToStyleMap::mapAnimationFillMode, &Rende
rStyle::accessAnimations, &RenderStyle::animations>::createHandler()); |
2151 setPropertyHandler(CSSPropertyWebkitAnimationIterationCount, ApplyPropertyAn
imation<double, &CSSAnimationData::iterationCount, &CSSAnimationData::setIterati
onCount, &CSSAnimationData::isIterationCountSet, &CSSAnimationData::clearIterati
onCount, &CSSAnimationData::initialAnimationIterationCount, &CSSToStyleMap::mapA
nimationIterationCount, &RenderStyle::accessAnimations, &RenderStyle::animations
>::createHandler()); | 2151 setPropertyHandler(CSSPropertyWebkitAnimationIterationCount, ApplyPropertyAn
imation<double, &StyleAnimationData::iterationCount, &StyleAnimationData::setIte
rationCount, &StyleAnimationData::isIterationCountSet, &StyleAnimationData::clea
rIterationCount, &StyleAnimationData::initialAnimationIterationCount, &CSSToStyl
eMap::mapAnimationIterationCount, &RenderStyle::accessAnimations, &RenderStyle::
animations>::createHandler()); |
2152 setPropertyHandler(CSSPropertyWebkitAnimationName, ApplyPropertyAnimation<co
nst String&, &CSSAnimationData::name, &CSSAnimationData::setName, &CSSAnimationD
ata::isNameSet, &CSSAnimationData::clearName, &CSSAnimationData::initialAnimatio
nName, &CSSToStyleMap::mapAnimationName, &RenderStyle::accessAnimations, &Render
Style::animations>::createHandler()); | 2152 setPropertyHandler(CSSPropertyWebkitAnimationName, ApplyPropertyAnimation<co
nst String&, &StyleAnimationData::name, &StyleAnimationData::setName, &StyleAnim
ationData::isNameSet, &StyleAnimationData::clearName, &StyleAnimationData::initi
alAnimationName, &CSSToStyleMap::mapAnimationName, &RenderStyle::accessAnimation
s, &RenderStyle::animations>::createHandler()); |
2153 setPropertyHandler(CSSPropertyWebkitAnimationPlayState, ApplyPropertyAnimati
on<EAnimPlayState, &CSSAnimationData::playState, &CSSAnimationData::setPlayState
, &CSSAnimationData::isPlayStateSet, &CSSAnimationData::clearPlayState, &CSSAnim
ationData::initialAnimationPlayState, &CSSToStyleMap::mapAnimationPlayState, &Re
nderStyle::accessAnimations, &RenderStyle::animations>::createHandler()); | 2153 setPropertyHandler(CSSPropertyWebkitAnimationPlayState, ApplyPropertyAnimati
on<EAnimPlayState, &StyleAnimationData::playState, &StyleAnimationData::setPlayS
tate, &StyleAnimationData::isPlayStateSet, &StyleAnimationData::clearPlayState,
&StyleAnimationData::initialAnimationPlayState, &CSSToStyleMap::mapAnimationPlay
State, &RenderStyle::accessAnimations, &RenderStyle::animations>::createHandler(
)); |
2154 setPropertyHandler(CSSPropertyWebkitAnimationTimingFunction, ApplyPropertyAn
imation<const PassRefPtr<TimingFunction>, &CSSAnimationData::timingFunction, &CS
SAnimationData::setTimingFunction, &CSSAnimationData::isTimingFunctionSet, &CSSA
nimationData::clearTimingFunction, &CSSAnimationData::initialAnimationTimingFunc
tion, &CSSToStyleMap::mapAnimationTimingFunction, &RenderStyle::accessAnimations
, &RenderStyle::animations>::createHandler()); | 2154 setPropertyHandler(CSSPropertyWebkitAnimationTimingFunction, ApplyPropertyAn
imation<const PassRefPtr<TimingFunction>, &StyleAnimationData::timingFunction, &
StyleAnimationData::setTimingFunction, &StyleAnimationData::isTimingFunctionSet,
&StyleAnimationData::clearTimingFunction, &StyleAnimationData::initialAnimation
TimingFunction, &CSSToStyleMap::mapAnimationTimingFunction, &RenderStyle::access
Animations, &RenderStyle::animations>::createHandler()); |
2155 setPropertyHandler(CSSPropertyWebkitAppearance, ApplyPropertyDefault<Control
Part, &RenderStyle::appearance, ControlPart, &RenderStyle::setAppearance, Contro
lPart, &RenderStyle::initialAppearance>::createHandler()); | 2155 setPropertyHandler(CSSPropertyWebkitAppearance, ApplyPropertyDefault<Control
Part, &RenderStyle::appearance, ControlPart, &RenderStyle::setAppearance, Contro
lPart, &RenderStyle::initialAppearance>::createHandler()); |
2156 setPropertyHandler(CSSPropertyWebkitAspectRatio, ApplyPropertyAspectRatio::c
reateHandler()); | 2156 setPropertyHandler(CSSPropertyWebkitAspectRatio, ApplyPropertyAspectRatio::c
reateHandler()); |
2157 setPropertyHandler(CSSPropertyWebkitBackfaceVisibility, ApplyPropertyDefault
<EBackfaceVisibility, &RenderStyle::backfaceVisibility, EBackfaceVisibility, &Re
nderStyle::setBackfaceVisibility, EBackfaceVisibility, &RenderStyle::initialBack
faceVisibility>::createHandler()); | 2157 setPropertyHandler(CSSPropertyWebkitBackfaceVisibility, ApplyPropertyDefault
<EBackfaceVisibility, &RenderStyle::backfaceVisibility, EBackfaceVisibility, &Re
nderStyle::setBackfaceVisibility, EBackfaceVisibility, &RenderStyle::initialBack
faceVisibility>::createHandler()); |
2158 setPropertyHandler(CSSPropertyWebkitBackgroundClip, CSSPropertyBackgroundCli
p); | 2158 setPropertyHandler(CSSPropertyWebkitBackgroundClip, CSSPropertyBackgroundCli
p); |
2159 setPropertyHandler(CSSPropertyWebkitBackgroundComposite, ApplyPropertyFillLa
yer<CompositeOperator, CSSPropertyWebkitBackgroundComposite, BackgroundFillLayer
, &RenderStyle::accessBackgroundLayers, &RenderStyle::backgroundLayers, &FillLay
er::isCompositeSet, &FillLayer::composite, &FillLayer::setComposite, &FillLayer:
:clearComposite, &FillLayer::initialFillComposite, &CSSToStyleMap::mapFillCompos
ite>::createHandler()); | 2159 setPropertyHandler(CSSPropertyWebkitBackgroundComposite, ApplyPropertyFillLa
yer<CompositeOperator, CSSPropertyWebkitBackgroundComposite, BackgroundFillLayer
, &RenderStyle::accessBackgroundLayers, &RenderStyle::backgroundLayers, &FillLay
er::isCompositeSet, &FillLayer::composite, &FillLayer::setComposite, &FillLayer:
:clearComposite, &FillLayer::initialFillComposite, &CSSToStyleMap::mapFillCompos
ite>::createHandler()); |
2160 setPropertyHandler(CSSPropertyWebkitBackgroundOrigin, CSSPropertyBackgroundO
rigin); | 2160 setPropertyHandler(CSSPropertyWebkitBackgroundOrigin, CSSPropertyBackgroundO
rigin); |
2161 setPropertyHandler(CSSPropertyWebkitBackgroundSize, CSSPropertyBackgroundSiz
e); | 2161 setPropertyHandler(CSSPropertyWebkitBackgroundSize, CSSPropertyBackgroundSiz
e); |
2162 setPropertyHandler(CSSPropertyWebkitBorderFit, ApplyPropertyDefault<EBorderF
it, &RenderStyle::borderFit, EBorderFit, &RenderStyle::setBorderFit, EBorderFit,
&RenderStyle::initialBorderFit>::createHandler()); | 2162 setPropertyHandler(CSSPropertyWebkitBorderFit, ApplyPropertyDefault<EBorderF
it, &RenderStyle::borderFit, EBorderFit, &RenderStyle::setBorderFit, EBorderFit,
&RenderStyle::initialBorderFit>::createHandler()); |
2163 setPropertyHandler(CSSPropertyWebkitBorderHorizontalSpacing, ApplyPropertyCo
mputeLength<short, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing, &RenderStyle::initialHorizontalBorderSpacing>::createHandler
()); | 2163 setPropertyHandler(CSSPropertyWebkitBorderHorizontalSpacing, ApplyPropertyCo
mputeLength<short, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing, &RenderStyle::initialHorizontalBorderSpacing>::createHandler
()); |
2164 setPropertyHandler(CSSPropertyWebkitBorderImage, ApplyPropertyBorderImage<Bo
rderImage, CSSPropertyWebkitBorderImage, &RenderStyle::borderImage, &RenderStyle
::setBorderImage>::createHandler()); | 2164 setPropertyHandler(CSSPropertyWebkitBorderImage, ApplyPropertyBorderImage<Bo
rderImage, CSSPropertyWebkitBorderImage, &RenderStyle::borderImage, &RenderStyle
::setBorderImage>::createHandler()); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 setPropertyHandler(CSSPropertyWebkitTextEmphasisColor, ApplyPropertyColor<No
InheritFromParent, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasi
sColor, &RenderStyle::setVisitedLinkTextEmphasisColor, &RenderStyle::color>::cre
ateHandler()); | 2257 setPropertyHandler(CSSPropertyWebkitTextEmphasisColor, ApplyPropertyColor<No
InheritFromParent, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasi
sColor, &RenderStyle::setVisitedLinkTextEmphasisColor, &RenderStyle::color>::cre
ateHandler()); |
2258 setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefau
lt<TextEmphasisPosition, &RenderStyle::textEmphasisPosition, TextEmphasisPositio
n, &RenderStyle::setTextEmphasisPosition, TextEmphasisPosition, &RenderStyle::in
itialTextEmphasisPosition>::createHandler()); | 2258 setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefau
lt<TextEmphasisPosition, &RenderStyle::textEmphasisPosition, TextEmphasisPositio
n, &RenderStyle::setTextEmphasisPosition, TextEmphasisPosition, &RenderStyle::in
itialTextEmphasisPosition>::createHandler()); |
2259 setPropertyHandler(CSSPropertyWebkitTextEmphasisStyle, ApplyPropertyTextEmph
asisStyle::createHandler()); | 2259 setPropertyHandler(CSSPropertyWebkitTextEmphasisStyle, ApplyPropertyTextEmph
asisStyle::createHandler()); |
2260 setPropertyHandler(CSSPropertyWebkitTextFillColor, ApplyPropertyColor<NoInhe
ritFromParent, &RenderStyle::textFillColor, &RenderStyle::setTextFillColor, &Ren
derStyle::setVisitedLinkTextFillColor, &RenderStyle::color>::createHandler()); | 2260 setPropertyHandler(CSSPropertyWebkitTextFillColor, ApplyPropertyColor<NoInhe
ritFromParent, &RenderStyle::textFillColor, &RenderStyle::setTextFillColor, &Ren
derStyle::setVisitedLinkTextFillColor, &RenderStyle::color>::createHandler()); |
2261 setPropertyHandler(CSSPropertyWebkitTextSecurity, ApplyPropertyDefault<EText
Security, &RenderStyle::textSecurity, ETextSecurity, &RenderStyle::setTextSecuri
ty, ETextSecurity, &RenderStyle::initialTextSecurity>::createHandler()); | 2261 setPropertyHandler(CSSPropertyWebkitTextSecurity, ApplyPropertyDefault<EText
Security, &RenderStyle::textSecurity, ETextSecurity, &RenderStyle::setTextSecuri
ty, ETextSecurity, &RenderStyle::initialTextSecurity>::createHandler()); |
2262 setPropertyHandler(CSSPropertyWebkitTextStrokeColor, ApplyPropertyColor<NoIn
heritFromParent, &RenderStyle::textStrokeColor, &RenderStyle::setTextStrokeColor
, &RenderStyle::setVisitedLinkTextStrokeColor, &RenderStyle::color>::createHandl
er()); | 2262 setPropertyHandler(CSSPropertyWebkitTextStrokeColor, ApplyPropertyColor<NoIn
heritFromParent, &RenderStyle::textStrokeColor, &RenderStyle::setTextStrokeColor
, &RenderStyle::setVisitedLinkTextStrokeColor, &RenderStyle::color>::createHandl
er()); |
2263 setPropertyHandler(CSSPropertyWebkitTransformOriginX, ApplyPropertyLength<&R
enderStyle::transformOriginX, &RenderStyle::setTransformOriginX, &RenderStyle::i
nitialTransformOriginX>::createHandler()); | 2263 setPropertyHandler(CSSPropertyWebkitTransformOriginX, ApplyPropertyLength<&R
enderStyle::transformOriginX, &RenderStyle::setTransformOriginX, &RenderStyle::i
nitialTransformOriginX>::createHandler()); |
2264 setPropertyHandler(CSSPropertyWebkitTransformOriginY, ApplyPropertyLength<&R
enderStyle::transformOriginY, &RenderStyle::setTransformOriginY, &RenderStyle::i
nitialTransformOriginY>::createHandler()); | 2264 setPropertyHandler(CSSPropertyWebkitTransformOriginY, ApplyPropertyLength<&R
enderStyle::transformOriginY, &RenderStyle::setTransformOriginY, &RenderStyle::i
nitialTransformOriginY>::createHandler()); |
2265 setPropertyHandler(CSSPropertyWebkitTransformOriginZ, ApplyPropertyComputeLe
ngth<float, &RenderStyle::transformOriginZ, &RenderStyle::setTransformOriginZ, &
RenderStyle::initialTransformOriginZ>::createHandler()); | 2265 setPropertyHandler(CSSPropertyWebkitTransformOriginZ, ApplyPropertyComputeLe
ngth<float, &RenderStyle::transformOriginZ, &RenderStyle::setTransformOriginZ, &
RenderStyle::initialTransformOriginZ>::createHandler()); |
2266 setPropertyHandler(CSSPropertyWebkitTransformStyle, ApplyPropertyDefault<ETr
ansformStyle3D, &RenderStyle::transformStyle3D, ETransformStyle3D, &RenderStyle:
:setTransformStyle3D, ETransformStyle3D, &RenderStyle::initialTransformStyle3D>:
:createHandler()); | 2266 setPropertyHandler(CSSPropertyWebkitTransformStyle, ApplyPropertyDefault<ETr
ansformStyle3D, &RenderStyle::transformStyle3D, ETransformStyle3D, &RenderStyle:
:setTransformStyle3D, ETransformStyle3D, &RenderStyle::initialTransformStyle3D>:
:createHandler()); |
2267 setPropertyHandler(CSSPropertyWebkitTransitionDelay, ApplyPropertyAnimation<
double, &CSSAnimationData::delay, &CSSAnimationData::setDelay, &CSSAnimationData
::isDelaySet, &CSSAnimationData::clearDelay, &CSSAnimationData::initialAnimation
Delay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessTransitions, &Rend
erStyle::transitions>::createHandler()); | 2267 setPropertyHandler(CSSPropertyWebkitTransitionDelay, ApplyPropertyAnimation<
double, &StyleAnimationData::delay, &StyleAnimationData::setDelay, &StyleAnimati
onData::isDelaySet, &StyleAnimationData::clearDelay, &StyleAnimationData::initia
lAnimationDelay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessTransiti
ons, &RenderStyle::transitions>::createHandler()); |
2268 setPropertyHandler(CSSPropertyWebkitTransitionDuration, ApplyPropertyAnimati
on<double, &CSSAnimationData::duration, &CSSAnimationData::setDuration, &CSSAnim
ationData::isDurationSet, &CSSAnimationData::clearDuration, &CSSAnimationData::i
nitialAnimationDuration, &CSSToStyleMap::mapAnimationDuration, &RenderStyle::acc
essTransitions, &RenderStyle::transitions>::createHandler()); | 2268 setPropertyHandler(CSSPropertyWebkitTransitionDuration, ApplyPropertyAnimati
on<double, &StyleAnimationData::duration, &StyleAnimationData::setDuration, &Sty
leAnimationData::isDurationSet, &StyleAnimationData::clearDuration, &StyleAnimat
ionData::initialAnimationDuration, &CSSToStyleMap::mapAnimationDuration, &Render
Style::accessTransitions, &RenderStyle::transitions>::createHandler()); |
2269 setPropertyHandler(CSSPropertyWebkitTransitionProperty, ApplyPropertyAnimati
on<CSSPropertyID, &CSSAnimationData::property, &CSSAnimationData::setProperty, &
CSSAnimationData::isPropertySet, &CSSAnimationData::clearProperty, &CSSAnimation
Data::initialAnimationProperty, &CSSToStyleMap::mapAnimationProperty, &RenderSty
le::accessTransitions, &RenderStyle::transitions>::createHandler()); | 2269 setPropertyHandler(CSSPropertyWebkitTransitionProperty, ApplyPropertyAnimati
on<CSSPropertyID, &StyleAnimationData::property, &StyleAnimationData::setPropert
y, &StyleAnimationData::isPropertySet, &StyleAnimationData::clearProperty, &Styl
eAnimationData::initialAnimationProperty, &CSSToStyleMap::mapAnimationProperty,
&RenderStyle::accessTransitions, &RenderStyle::transitions>::createHandler()); |
2270 setPropertyHandler(CSSPropertyWebkitTransitionTimingFunction, ApplyPropertyA
nimation<const PassRefPtr<TimingFunction>, &CSSAnimationData::timingFunction, &C
SSAnimationData::setTimingFunction, &CSSAnimationData::isTimingFunctionSet, &CSS
AnimationData::clearTimingFunction, &CSSAnimationData::initialAnimationTimingFun
ction, &CSSToStyleMap::mapAnimationTimingFunction, &RenderStyle::accessTransitio
ns, &RenderStyle::transitions>::createHandler()); | 2270 setPropertyHandler(CSSPropertyWebkitTransitionTimingFunction, ApplyPropertyA
nimation<const PassRefPtr<TimingFunction>, &StyleAnimationData::timingFunction,
&StyleAnimationData::setTimingFunction, &StyleAnimationData::isTimingFunctionSet
, &StyleAnimationData::clearTimingFunction, &StyleAnimationData::initialAnimatio
nTimingFunction, &CSSToStyleMap::mapAnimationTimingFunction, &RenderStyle::acces
sTransitions, &RenderStyle::transitions>::createHandler()); |
2271 setPropertyHandler(CSSPropertyWebkitUserDrag, ApplyPropertyDefault<EUserDrag
, &RenderStyle::userDrag, EUserDrag, &RenderStyle::setUserDrag, EUserDrag, &Rend
erStyle::initialUserDrag>::createHandler()); | 2271 setPropertyHandler(CSSPropertyWebkitUserDrag, ApplyPropertyDefault<EUserDrag
, &RenderStyle::userDrag, EUserDrag, &RenderStyle::setUserDrag, EUserDrag, &Rend
erStyle::initialUserDrag>::createHandler()); |
2272 setPropertyHandler(CSSPropertyWebkitUserModify, ApplyPropertyDefault<EUserMo
dify, &RenderStyle::userModify, EUserModify, &RenderStyle::setUserModify, EUserM
odify, &RenderStyle::initialUserModify>::createHandler()); | 2272 setPropertyHandler(CSSPropertyWebkitUserModify, ApplyPropertyDefault<EUserMo
dify, &RenderStyle::userModify, EUserModify, &RenderStyle::setUserModify, EUserM
odify, &RenderStyle::initialUserModify>::createHandler()); |
2273 setPropertyHandler(CSSPropertyWebkitUserSelect, ApplyPropertyDefault<EUserSe
lect, &RenderStyle::userSelect, EUserSelect, &RenderStyle::setUserSelect, EUserS
elect, &RenderStyle::initialUserSelect>::createHandler()); | 2273 setPropertyHandler(CSSPropertyWebkitUserSelect, ApplyPropertyDefault<EUserSe
lect, &RenderStyle::userSelect, EUserSelect, &RenderStyle::setUserSelect, EUserS
elect, &RenderStyle::initialUserSelect>::createHandler()); |
2274 setPropertyHandler(CSSPropertyWebkitClipPath, ApplyPropertyClipPath<&RenderS
tyle::clipPath, &RenderStyle::setClipPath, &RenderStyle::initialClipPath>::creat
eHandler()); | 2274 setPropertyHandler(CSSPropertyWebkitClipPath, ApplyPropertyClipPath<&RenderS
tyle::clipPath, &RenderStyle::setClipPath, &RenderStyle::initialClipPath>::creat
eHandler()); |
2275 | 2275 |
2276 #if ENABLE(CSS_EXCLUSIONS) | 2276 #if ENABLE(CSS_EXCLUSIONS) |
2277 setPropertyHandler(CSSPropertyWebkitWrapFlow, ApplyPropertyDefault<WrapFlow,
&RenderStyle::wrapFlow, WrapFlow, &RenderStyle::setWrapFlow, WrapFlow, &RenderS
tyle::initialWrapFlow>::createHandler()); | 2277 setPropertyHandler(CSSPropertyWebkitWrapFlow, ApplyPropertyDefault<WrapFlow,
&RenderStyle::wrapFlow, WrapFlow, &RenderStyle::setWrapFlow, WrapFlow, &RenderS
tyle::initialWrapFlow>::createHandler()); |
2278 setPropertyHandler(CSSPropertyWebkitShapeMargin, ApplyPropertyLength<&Render
Style::shapeMargin, &RenderStyle::setShapeMargin, &RenderStyle::initialShapeMarg
in>::createHandler()); | 2278 setPropertyHandler(CSSPropertyWebkitShapeMargin, ApplyPropertyLength<&Render
Style::shapeMargin, &RenderStyle::setShapeMargin, &RenderStyle::initialShapeMarg
in>::createHandler()); |
2279 setPropertyHandler(CSSPropertyWebkitShapePadding, ApplyPropertyLength<&Rende
rStyle::shapePadding, &RenderStyle::setShapePadding, &RenderStyle::initialShapeP
adding>::createHandler()); | 2279 setPropertyHandler(CSSPropertyWebkitShapePadding, ApplyPropertyLength<&Rende
rStyle::shapePadding, &RenderStyle::setShapePadding, &RenderStyle::initialShapeP
adding>::createHandler()); |
2280 setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault<WrapTh
rough, &RenderStyle::wrapThrough, WrapThrough, &RenderStyle::setWrapThrough, Wra
pThrough, &RenderStyle::initialWrapThrough>::createHandler()); | 2280 setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault<WrapTh
rough, &RenderStyle::wrapThrough, WrapThrough, &RenderStyle::setWrapThrough, Wra
pThrough, &RenderStyle::initialWrapThrough>::createHandler()); |
2281 setPropertyHandler(CSSPropertyWebkitShapeInside, ApplyPropertyExclusionShape
<&RenderStyle::shapeInside, &RenderStyle::setShapeInside, &RenderStyle::initialS
hapeInside>::createHandler()); | 2281 setPropertyHandler(CSSPropertyWebkitShapeInside, ApplyPropertyExclusionShape
<&RenderStyle::shapeInside, &RenderStyle::setShapeInside, &RenderStyle::initialS
hapeInside>::createHandler()); |
2282 setPropertyHandler(CSSPropertyWebkitShapeOutside, ApplyPropertyExclusionShap
e<&RenderStyle::shapeOutside, &RenderStyle::setShapeOutside, &RenderStyle::initi
alShapeOutside>::createHandler()); | 2282 setPropertyHandler(CSSPropertyWebkitShapeOutside, ApplyPropertyExclusionShap
e<&RenderStyle::shapeOutside, &RenderStyle::setShapeOutside, &RenderStyle::initi
alShapeOutside>::createHandler()); |
2283 #endif | 2283 #endif |
2284 setPropertyHandler(CSSPropertyWhiteSpace, ApplyPropertyDefault<EWhiteSpace,
&RenderStyle::whiteSpace, EWhiteSpace, &RenderStyle::setWhiteSpace, EWhiteSpace,
&RenderStyle::initialWhiteSpace>::createHandler()); | 2284 setPropertyHandler(CSSPropertyWhiteSpace, ApplyPropertyDefault<EWhiteSpace,
&RenderStyle::whiteSpace, EWhiteSpace, &RenderStyle::setWhiteSpace, EWhiteSpace,
&RenderStyle::initialWhiteSpace>::createHandler()); |
2285 setPropertyHandler(CSSPropertyWidows, ApplyPropertyAuto<short, &RenderStyle:
:widows, &RenderStyle::setWidows, &RenderStyle::hasAutoWidows, &RenderStyle::set
HasAutoWidows>::createHandler()); | 2285 setPropertyHandler(CSSPropertyWidows, ApplyPropertyAuto<short, &RenderStyle:
:widows, &RenderStyle::setWidows, &RenderStyle::hasAutoWidows, &RenderStyle::set
HasAutoWidows>::createHandler()); |
2286 setPropertyHandler(CSSPropertyWidth, ApplyPropertyLength<&RenderStyle::width
, &RenderStyle::setWidth, &RenderStyle::initialSize, AutoEnabled, LegacyIntrinsi
cEnabled, IntrinsicEnabled, NoneDisabled, UndefinedDisabled>::createHandler()); | 2286 setPropertyHandler(CSSPropertyWidth, ApplyPropertyLength<&RenderStyle::width
, &RenderStyle::setWidth, &RenderStyle::initialSize, AutoEnabled, LegacyIntrinsi
cEnabled, IntrinsicEnabled, NoneDisabled, UndefinedDisabled>::createHandler()); |
2287 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R
enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend
erStyle::initialWordBreak>::createHandler()); | 2287 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R
enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend
erStyle::initialWordBreak>::createHandler()); |
2288 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, &
RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet
terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler
()); | 2288 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, &
RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet
terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler
()); |
2289 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p
roperty. So using the same handlers. | 2289 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p
roperty. So using the same handlers. |
2290 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap,
&RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf
lowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); | 2290 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap,
&RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf
lowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); |
2291 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z
Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa
sAutoZIndex>::createHandler()); | 2291 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z
Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa
sAutoZIndex>::createHandler()); |
2292 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); | 2292 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); |
2293 } | 2293 } |
2294 | 2294 |
2295 | 2295 |
2296 } | 2296 } |
OLD | NEW |