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 (Animation::*getterFunction)() const, | 1629 T (CSSAnimationData::*getterFunction)() const, |
1630 void (Animation::*setterFunction)(T), | 1630 void (CSSAnimationData::*setterFunction)(T), |
1631 bool (Animation::*testFunction)() const, | 1631 bool (CSSAnimationData::*testFunction)() const, |
1632 void (Animation::*clearFunction)(), | 1632 void (CSSAnimationData::*clearFunction)(), |
1633 T (*initialFunction)(), | 1633 T (*initialFunction)(), |
1634 void (CSSToStyleMap::*mapFunction)(Animation*, CSSValue*), | 1634 void (CSSToStyleMap::*mapFunction)(CSSAnimationData*, CSSValue*), |
1635 AnimationList* (RenderStyle::*animationGetterFunction)(), | 1635 AnimationList* (RenderStyle::*animationGetterFunction)(), |
1636 const AnimationList* (RenderStyle::*immutableAnimationGetterFunction)(
) const> | 1636 const AnimationList* (RenderStyle::*immutableAnimationGetterFunction)(
) const> |
1637 class ApplyPropertyAnimation { | 1637 class ApplyPropertyAnimation { |
1638 public: | 1638 public: |
1639 static void setValue(Animation* animation, T value) { (animation->*setterFun
ction)(value); } | 1639 static void setValue(CSSAnimationData* animation, T value) { (animation->*se
tterFunction)(value); } |
1640 static T value(const Animation* animation) { return (animation->*getterFunct
ion)(); } | 1640 static T value(const CSSAnimationData* animation) { return (animation->*gett
erFunction)(); } |
1641 static bool test(const Animation* animation) { return (animation->*testFunct
ion)(); } | 1641 static bool test(const CSSAnimationData* animation) { return (animation->*te
stFunction)(); } |
1642 static void clear(Animation* animation) { (animation->*clearFunction)(); } | 1642 static void clear(CSSAnimationData* animation) { (animation->*clearFunction)
(); } |
1643 static T initial() { return (*initialFunction)(); } | 1643 static T initial() { return (*initialFunction)(); } |
1644 static void map(StyleResolver* styleResolver, Animation* animation, CSSValue
* value) { (styleResolver->styleMap()->*mapFunction)(animation, value); } | 1644 static void map(StyleResolver* styleResolver, CSSAnimationData* animation, C
SSValue* value) { (styleResolver->styleMap()->*mapFunction)(animation, value); } |
1645 static AnimationList* accessAnimations(RenderStyle* style) { return (style->
*animationGetterFunction)(); } | 1645 static AnimationList* accessAnimations(RenderStyle* style) { return (style->
*animationGetterFunction)(); } |
1646 static const AnimationList* animations(RenderStyle* style) { return (style->
*immutableAnimationGetterFunction)(); } | 1646 static const AnimationList* 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 AnimationList* list = accessAnimations(styleResolver->style()); | 1650 AnimationList* list = accessAnimations(styleResolver->style()); |
1651 const AnimationList* parentList = animations(styleResolver->parentStyle(
)); | 1651 const AnimationList* parentList = animations(styleResolver->parentStyle(
)); |
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(Animation::create()); | 1655 list->append(CSSAnimationData::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 AnimationList* list = accessAnimations(styleResolver->style()); | 1667 AnimationList* list = accessAnimations(styleResolver->style()); |
1668 if (list->isEmpty()) | 1668 if (list->isEmpty()) |
1669 list->append(Animation::create()); | 1669 list->append(CSSAnimationData::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(Animation::AnimateAll); | 1672 list->animation(0)->setAnimationMode(CSSAnimationData::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 AnimationList* list = accessAnimations(styleResolver->style()); | 1679 AnimationList* 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(Animation::create()); | 1685 list->append(CSSAnimationData::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(Animation::create()); | 1691 list->append(CSSAnimationData::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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText
UnderlinePosition::createHandler()); | 2140 setPropertyHandler(CSSPropertyWebkitTextUnderlinePosition, ApplyPropertyText
UnderlinePosition::createHandler()); |
2141 #endif // CSS3_TEXT | 2141 #endif // CSS3_TEXT |
2142 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan
dler()); | 2142 setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyTextIndent::createHan
dler()); |
2143 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo
w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text
Overflow, &RenderStyle::initialTextOverflow>::createHandler()); | 2143 setPropertyHandler(CSSPropertyTextOverflow, ApplyPropertyDefault<TextOverflo
w, &RenderStyle::textOverflow, TextOverflow, &RenderStyle::setTextOverflow, Text
Overflow, &RenderStyle::initialTextOverflow>::createHandler()); |
2144 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering
Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod
e, AutoTextRendering>::createHandler()); | 2144 setPropertyHandler(CSSPropertyTextRendering, ApplyPropertyFont<TextRendering
Mode, &FontDescription::textRenderingMode, &FontDescription::setTextRenderingMod
e, AutoTextRendering>::createHandler()); |
2145 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans
form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor
m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler()); | 2145 setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault<ETextTrans
form, &RenderStyle::textTransform, ETextTransform, &RenderStyle::setTextTransfor
m, ETextTransform, &RenderStyle::initialTextTransform>::createHandler()); |
2146 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R
enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); | 2146 setPropertyHandler(CSSPropertyTop, ApplyPropertyLength<&RenderStyle::top, &R
enderStyle::setTop, &RenderStyle::initialOffset, AutoEnabled>::createHandler()); |
2147 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi
, &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod
eBidi, &RenderStyle::initialUnicodeBidi>::createHandler()); | 2147 setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault<EUnicodeBidi
, &RenderStyle::unicodeBidi, EUnicodeBidi, &RenderStyle::setUnicodeBidi, EUnicod
eBidi, &RenderStyle::initialUnicodeBidi>::createHandler()); |
2148 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre
ateHandler()); | 2148 setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::cre
ateHandler()); |
2149 setPropertyHandler(CSSPropertyVisibility, ApplyPropertyDefault<EVisibility,
&RenderStyle::visibility, EVisibility, &RenderStyle::setVisibility, EVisibility,
&RenderStyle::initialVisibility>::createHandler()); | 2149 setPropertyHandler(CSSPropertyVisibility, ApplyPropertyDefault<EVisibility,
&RenderStyle::visibility, EVisibility, &RenderStyle::setVisibility, EVisibility,
&RenderStyle::initialVisibility>::createHandler()); |
2150 setPropertyHandler(CSSPropertyWebkitAnimationDelay, ApplyPropertyAnimation<d
ouble, &Animation::delay, &Animation::setDelay, &Animation::isDelaySet, &Animati
on::clearDelay, &Animation::initialAnimationDelay, &CSSToStyleMap::mapAnimationD
elay, &RenderStyle::accessAnimations, &RenderStyle::animations>::createHandler()
); | 2150 setPropertyHandler(CSSPropertyWebkitAnimationDelay, ApplyPropertyAnimation<d
ouble, &CSSAnimationData::delay, &CSSAnimationData::setDelay, &CSSAnimationData:
:isDelaySet, &CSSAnimationData::clearDelay, &CSSAnimationData::initialAnimationD
elay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessAnimations, &Render
Style::animations>::createHandler()); |
2151 setPropertyHandler(CSSPropertyWebkitAnimationDirection, ApplyPropertyAnimati
on<Animation::AnimationDirection, &Animation::direction, &Animation::setDirectio
n, &Animation::isDirectionSet, &Animation::clearDirection, &Animation::initialAn
imationDirection, &CSSToStyleMap::mapAnimationDirection, &RenderStyle::accessAni
mations, &RenderStyle::animations>::createHandler()); | 2151 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()); |
2152 setPropertyHandler(CSSPropertyWebkitAnimationDuration, ApplyPropertyAnimatio
n<double, &Animation::duration, &Animation::setDuration, &Animation::isDurationS
et, &Animation::clearDuration, &Animation::initialAnimationDuration, &CSSToStyle
Map::mapAnimationDuration, &RenderStyle::accessAnimations, &RenderStyle::animati
ons>::createHandler()); | 2152 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()); |
2153 setPropertyHandler(CSSPropertyWebkitAnimationFillMode, ApplyPropertyAnimatio
n<unsigned, &Animation::fillMode, &Animation::setFillMode, &Animation::isFillMod
eSet, &Animation::clearFillMode, &Animation::initialAnimationFillMode, &CSSToSty
leMap::mapAnimationFillMode, &RenderStyle::accessAnimations, &RenderStyle::anima
tions>::createHandler()); | 2153 setPropertyHandler(CSSPropertyWebkitAnimationFillMode, ApplyPropertyAnimatio
n<unsigned, &CSSAnimationData::fillMode, &CSSAnimationData::setFillMode, &CSSAni
mationData::isFillModeSet, &CSSAnimationData::clearFillMode, &CSSAnimationData::
initialAnimationFillMode, &CSSToStyleMap::mapAnimationFillMode, &RenderStyle::ac
cessAnimations, &RenderStyle::animations>::createHandler()); |
2154 setPropertyHandler(CSSPropertyWebkitAnimationIterationCount, ApplyPropertyAn
imation<double, &Animation::iterationCount, &Animation::setIterationCount, &Anim
ation::isIterationCountSet, &Animation::clearIterationCount, &Animation::initial
AnimationIterationCount, &CSSToStyleMap::mapAnimationIterationCount, &RenderStyl
e::accessAnimations, &RenderStyle::animations>::createHandler()); | 2154 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()); |
2155 setPropertyHandler(CSSPropertyWebkitAnimationName, ApplyPropertyAnimation<co
nst String&, &Animation::name, &Animation::setName, &Animation::isNameSet, &Anim
ation::clearName, &Animation::initialAnimationName, &CSSToStyleMap::mapAnimation
Name, &RenderStyle::accessAnimations, &RenderStyle::animations>::createHandler()
); | 2155 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()); |
2156 setPropertyHandler(CSSPropertyWebkitAnimationPlayState, ApplyPropertyAnimati
on<EAnimPlayState, &Animation::playState, &Animation::setPlayState, &Animation::
isPlayStateSet, &Animation::clearPlayState, &Animation::initialAnimationPlayStat
e, &CSSToStyleMap::mapAnimationPlayState, &RenderStyle::accessAnimations, &Rende
rStyle::animations>::createHandler()); | 2156 setPropertyHandler(CSSPropertyWebkitAnimationPlayState, ApplyPropertyAnimati
on<EAnimPlayState, &CSSAnimationData::playState, &CSSAnimationData::setPlayState
, &CSSAnimationData::isPlayStateSet, &CSSAnimationData::clearPlayState, &CSSAnim
ationData::initialAnimationPlayState, &CSSToStyleMap::mapAnimationPlayState, &Re
nderStyle::accessAnimations, &RenderStyle::animations>::createHandler()); |
2157 setPropertyHandler(CSSPropertyWebkitAnimationTimingFunction, ApplyPropertyAn
imation<const PassRefPtr<TimingFunction>, &Animation::timingFunction, &Animation
::setTimingFunction, &Animation::isTimingFunctionSet, &Animation::clearTimingFun
ction, &Animation::initialAnimationTimingFunction, &CSSToStyleMap::mapAnimationT
imingFunction, &RenderStyle::accessAnimations, &RenderStyle::animations>::create
Handler()); | 2157 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()); |
2158 setPropertyHandler(CSSPropertyWebkitAppearance, ApplyPropertyDefault<Control
Part, &RenderStyle::appearance, ControlPart, &RenderStyle::setAppearance, Contro
lPart, &RenderStyle::initialAppearance>::createHandler()); | 2158 setPropertyHandler(CSSPropertyWebkitAppearance, ApplyPropertyDefault<Control
Part, &RenderStyle::appearance, ControlPart, &RenderStyle::setAppearance, Contro
lPart, &RenderStyle::initialAppearance>::createHandler()); |
2159 setPropertyHandler(CSSPropertyWebkitAspectRatio, ApplyPropertyAspectRatio::c
reateHandler()); | 2159 setPropertyHandler(CSSPropertyWebkitAspectRatio, ApplyPropertyAspectRatio::c
reateHandler()); |
2160 setPropertyHandler(CSSPropertyWebkitBackfaceVisibility, ApplyPropertyDefault
<EBackfaceVisibility, &RenderStyle::backfaceVisibility, EBackfaceVisibility, &Re
nderStyle::setBackfaceVisibility, EBackfaceVisibility, &RenderStyle::initialBack
faceVisibility>::createHandler()); | 2160 setPropertyHandler(CSSPropertyWebkitBackfaceVisibility, ApplyPropertyDefault
<EBackfaceVisibility, &RenderStyle::backfaceVisibility, EBackfaceVisibility, &Re
nderStyle::setBackfaceVisibility, EBackfaceVisibility, &RenderStyle::initialBack
faceVisibility>::createHandler()); |
2161 setPropertyHandler(CSSPropertyWebkitBackgroundClip, CSSPropertyBackgroundCli
p); | 2161 setPropertyHandler(CSSPropertyWebkitBackgroundClip, CSSPropertyBackgroundCli
p); |
2162 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()); | 2162 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()); |
2163 setPropertyHandler(CSSPropertyWebkitBackgroundOrigin, CSSPropertyBackgroundO
rigin); | 2163 setPropertyHandler(CSSPropertyWebkitBackgroundOrigin, CSSPropertyBackgroundO
rigin); |
2164 setPropertyHandler(CSSPropertyWebkitBackgroundSize, CSSPropertyBackgroundSiz
e); | 2164 setPropertyHandler(CSSPropertyWebkitBackgroundSize, CSSPropertyBackgroundSiz
e); |
2165 setPropertyHandler(CSSPropertyWebkitBorderFit, ApplyPropertyDefault<EBorderF
it, &RenderStyle::borderFit, EBorderFit, &RenderStyle::setBorderFit, EBorderFit,
&RenderStyle::initialBorderFit>::createHandler()); | 2165 setPropertyHandler(CSSPropertyWebkitBorderFit, ApplyPropertyDefault<EBorderF
it, &RenderStyle::borderFit, EBorderFit, &RenderStyle::setBorderFit, EBorderFit,
&RenderStyle::initialBorderFit>::createHandler()); |
2166 setPropertyHandler(CSSPropertyWebkitBorderHorizontalSpacing, ApplyPropertyCo
mputeLength<short, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing, &RenderStyle::initialHorizontalBorderSpacing>::createHandler
()); | 2166 setPropertyHandler(CSSPropertyWebkitBorderHorizontalSpacing, ApplyPropertyCo
mputeLength<short, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing, &RenderStyle::initialHorizontalBorderSpacing>::createHandler
()); |
2167 setPropertyHandler(CSSPropertyWebkitBorderImage, ApplyPropertyBorderImage<Bo
rderImage, CSSPropertyWebkitBorderImage, &RenderStyle::borderImage, &RenderStyle
::setBorderImage>::createHandler()); | 2167 setPropertyHandler(CSSPropertyWebkitBorderImage, ApplyPropertyBorderImage<Bo
rderImage, CSSPropertyWebkitBorderImage, &RenderStyle::borderImage, &RenderStyle
::setBorderImage>::createHandler()); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2260 setPropertyHandler(CSSPropertyWebkitTextEmphasisColor, ApplyPropertyColor<No
InheritFromParent, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasi
sColor, &RenderStyle::setVisitedLinkTextEmphasisColor, &RenderStyle::color>::cre
ateHandler()); | 2260 setPropertyHandler(CSSPropertyWebkitTextEmphasisColor, ApplyPropertyColor<No
InheritFromParent, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasi
sColor, &RenderStyle::setVisitedLinkTextEmphasisColor, &RenderStyle::color>::cre
ateHandler()); |
2261 setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefau
lt<TextEmphasisPosition, &RenderStyle::textEmphasisPosition, TextEmphasisPositio
n, &RenderStyle::setTextEmphasisPosition, TextEmphasisPosition, &RenderStyle::in
itialTextEmphasisPosition>::createHandler()); | 2261 setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefau
lt<TextEmphasisPosition, &RenderStyle::textEmphasisPosition, TextEmphasisPositio
n, &RenderStyle::setTextEmphasisPosition, TextEmphasisPosition, &RenderStyle::in
itialTextEmphasisPosition>::createHandler()); |
2262 setPropertyHandler(CSSPropertyWebkitTextEmphasisStyle, ApplyPropertyTextEmph
asisStyle::createHandler()); | 2262 setPropertyHandler(CSSPropertyWebkitTextEmphasisStyle, ApplyPropertyTextEmph
asisStyle::createHandler()); |
2263 setPropertyHandler(CSSPropertyWebkitTextFillColor, ApplyPropertyColor<NoInhe
ritFromParent, &RenderStyle::textFillColor, &RenderStyle::setTextFillColor, &Ren
derStyle::setVisitedLinkTextFillColor, &RenderStyle::color>::createHandler()); | 2263 setPropertyHandler(CSSPropertyWebkitTextFillColor, ApplyPropertyColor<NoInhe
ritFromParent, &RenderStyle::textFillColor, &RenderStyle::setTextFillColor, &Ren
derStyle::setVisitedLinkTextFillColor, &RenderStyle::color>::createHandler()); |
2264 setPropertyHandler(CSSPropertyWebkitTextSecurity, ApplyPropertyDefault<EText
Security, &RenderStyle::textSecurity, ETextSecurity, &RenderStyle::setTextSecuri
ty, ETextSecurity, &RenderStyle::initialTextSecurity>::createHandler()); | 2264 setPropertyHandler(CSSPropertyWebkitTextSecurity, ApplyPropertyDefault<EText
Security, &RenderStyle::textSecurity, ETextSecurity, &RenderStyle::setTextSecuri
ty, ETextSecurity, &RenderStyle::initialTextSecurity>::createHandler()); |
2265 setPropertyHandler(CSSPropertyWebkitTextStrokeColor, ApplyPropertyColor<NoIn
heritFromParent, &RenderStyle::textStrokeColor, &RenderStyle::setTextStrokeColor
, &RenderStyle::setVisitedLinkTextStrokeColor, &RenderStyle::color>::createHandl
er()); | 2265 setPropertyHandler(CSSPropertyWebkitTextStrokeColor, ApplyPropertyColor<NoIn
heritFromParent, &RenderStyle::textStrokeColor, &RenderStyle::setTextStrokeColor
, &RenderStyle::setVisitedLinkTextStrokeColor, &RenderStyle::color>::createHandl
er()); |
2266 setPropertyHandler(CSSPropertyWebkitTransformOriginX, ApplyPropertyLength<&R
enderStyle::transformOriginX, &RenderStyle::setTransformOriginX, &RenderStyle::i
nitialTransformOriginX>::createHandler()); | 2266 setPropertyHandler(CSSPropertyWebkitTransformOriginX, ApplyPropertyLength<&R
enderStyle::transformOriginX, &RenderStyle::setTransformOriginX, &RenderStyle::i
nitialTransformOriginX>::createHandler()); |
2267 setPropertyHandler(CSSPropertyWebkitTransformOriginY, ApplyPropertyLength<&R
enderStyle::transformOriginY, &RenderStyle::setTransformOriginY, &RenderStyle::i
nitialTransformOriginY>::createHandler()); | 2267 setPropertyHandler(CSSPropertyWebkitTransformOriginY, ApplyPropertyLength<&R
enderStyle::transformOriginY, &RenderStyle::setTransformOriginY, &RenderStyle::i
nitialTransformOriginY>::createHandler()); |
2268 setPropertyHandler(CSSPropertyWebkitTransformOriginZ, ApplyPropertyComputeLe
ngth<float, &RenderStyle::transformOriginZ, &RenderStyle::setTransformOriginZ, &
RenderStyle::initialTransformOriginZ>::createHandler()); | 2268 setPropertyHandler(CSSPropertyWebkitTransformOriginZ, ApplyPropertyComputeLe
ngth<float, &RenderStyle::transformOriginZ, &RenderStyle::setTransformOriginZ, &
RenderStyle::initialTransformOriginZ>::createHandler()); |
2269 setPropertyHandler(CSSPropertyWebkitTransformStyle, ApplyPropertyDefault<ETr
ansformStyle3D, &RenderStyle::transformStyle3D, ETransformStyle3D, &RenderStyle:
:setTransformStyle3D, ETransformStyle3D, &RenderStyle::initialTransformStyle3D>:
:createHandler()); | 2269 setPropertyHandler(CSSPropertyWebkitTransformStyle, ApplyPropertyDefault<ETr
ansformStyle3D, &RenderStyle::transformStyle3D, ETransformStyle3D, &RenderStyle:
:setTransformStyle3D, ETransformStyle3D, &RenderStyle::initialTransformStyle3D>:
:createHandler()); |
2270 setPropertyHandler(CSSPropertyWebkitTransitionDelay, ApplyPropertyAnimation<
double, &Animation::delay, &Animation::setDelay, &Animation::isDelaySet, &Animat
ion::clearDelay, &Animation::initialAnimationDelay, &CSSToStyleMap::mapAnimation
Delay, &RenderStyle::accessTransitions, &RenderStyle::transitions>::createHandle
r()); | 2270 setPropertyHandler(CSSPropertyWebkitTransitionDelay, ApplyPropertyAnimation<
double, &CSSAnimationData::delay, &CSSAnimationData::setDelay, &CSSAnimationData
::isDelaySet, &CSSAnimationData::clearDelay, &CSSAnimationData::initialAnimation
Delay, &CSSToStyleMap::mapAnimationDelay, &RenderStyle::accessTransitions, &Rend
erStyle::transitions>::createHandler()); |
2271 setPropertyHandler(CSSPropertyWebkitTransitionDuration, ApplyPropertyAnimati
on<double, &Animation::duration, &Animation::setDuration, &Animation::isDuration
Set, &Animation::clearDuration, &Animation::initialAnimationDuration, &CSSToStyl
eMap::mapAnimationDuration, &RenderStyle::accessTransitions, &RenderStyle::trans
itions>::createHandler()); | 2271 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()); |
2272 setPropertyHandler(CSSPropertyWebkitTransitionProperty, ApplyPropertyAnimati
on<CSSPropertyID, &Animation::property, &Animation::setProperty, &Animation::isP
ropertySet, &Animation::clearProperty, &Animation::initialAnimationProperty, &CS
SToStyleMap::mapAnimationProperty, &RenderStyle::accessTransitions, &RenderStyle
::transitions>::createHandler()); | 2272 setPropertyHandler(CSSPropertyWebkitTransitionProperty, ApplyPropertyAnimati
on<CSSPropertyID, &CSSAnimationData::property, &CSSAnimationData::setProperty, &
CSSAnimationData::isPropertySet, &CSSAnimationData::clearProperty, &CSSAnimation
Data::initialAnimationProperty, &CSSToStyleMap::mapAnimationProperty, &RenderSty
le::accessTransitions, &RenderStyle::transitions>::createHandler()); |
2273 setPropertyHandler(CSSPropertyWebkitTransitionTimingFunction, ApplyPropertyA
nimation<const PassRefPtr<TimingFunction>, &Animation::timingFunction, &Animatio
n::setTimingFunction, &Animation::isTimingFunctionSet, &Animation::clearTimingFu
nction, &Animation::initialAnimationTimingFunction, &CSSToStyleMap::mapAnimation
TimingFunction, &RenderStyle::accessTransitions, &RenderStyle::transitions>::cre
ateHandler()); | 2273 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()); |
2274 setPropertyHandler(CSSPropertyWebkitUserDrag, ApplyPropertyDefault<EUserDrag
, &RenderStyle::userDrag, EUserDrag, &RenderStyle::setUserDrag, EUserDrag, &Rend
erStyle::initialUserDrag>::createHandler()); | 2274 setPropertyHandler(CSSPropertyWebkitUserDrag, ApplyPropertyDefault<EUserDrag
, &RenderStyle::userDrag, EUserDrag, &RenderStyle::setUserDrag, EUserDrag, &Rend
erStyle::initialUserDrag>::createHandler()); |
2275 setPropertyHandler(CSSPropertyWebkitUserModify, ApplyPropertyDefault<EUserMo
dify, &RenderStyle::userModify, EUserModify, &RenderStyle::setUserModify, EUserM
odify, &RenderStyle::initialUserModify>::createHandler()); | 2275 setPropertyHandler(CSSPropertyWebkitUserModify, ApplyPropertyDefault<EUserMo
dify, &RenderStyle::userModify, EUserModify, &RenderStyle::setUserModify, EUserM
odify, &RenderStyle::initialUserModify>::createHandler()); |
2276 setPropertyHandler(CSSPropertyWebkitUserSelect, ApplyPropertyDefault<EUserSe
lect, &RenderStyle::userSelect, EUserSelect, &RenderStyle::setUserSelect, EUserS
elect, &RenderStyle::initialUserSelect>::createHandler()); | 2276 setPropertyHandler(CSSPropertyWebkitUserSelect, ApplyPropertyDefault<EUserSe
lect, &RenderStyle::userSelect, EUserSelect, &RenderStyle::setUserSelect, EUserS
elect, &RenderStyle::initialUserSelect>::createHandler()); |
2277 setPropertyHandler(CSSPropertyWebkitClipPath, ApplyPropertyClipPath<&RenderS
tyle::clipPath, &RenderStyle::setClipPath, &RenderStyle::initialClipPath>::creat
eHandler()); | 2277 setPropertyHandler(CSSPropertyWebkitClipPath, ApplyPropertyClipPath<&RenderS
tyle::clipPath, &RenderStyle::setClipPath, &RenderStyle::initialClipPath>::creat
eHandler()); |
2278 | 2278 |
2279 #if ENABLE(CSS_EXCLUSIONS) | 2279 #if ENABLE(CSS_EXCLUSIONS) |
2280 setPropertyHandler(CSSPropertyWebkitWrapFlow, ApplyPropertyDefault<WrapFlow,
&RenderStyle::wrapFlow, WrapFlow, &RenderStyle::setWrapFlow, WrapFlow, &RenderS
tyle::initialWrapFlow>::createHandler()); | 2280 setPropertyHandler(CSSPropertyWebkitWrapFlow, ApplyPropertyDefault<WrapFlow,
&RenderStyle::wrapFlow, WrapFlow, &RenderStyle::setWrapFlow, WrapFlow, &RenderS
tyle::initialWrapFlow>::createHandler()); |
2281 setPropertyHandler(CSSPropertyWebkitShapeMargin, ApplyPropertyLength<&Render
Style::shapeMargin, &RenderStyle::setShapeMargin, &RenderStyle::initialShapeMarg
in>::createHandler()); | 2281 setPropertyHandler(CSSPropertyWebkitShapeMargin, ApplyPropertyLength<&Render
Style::shapeMargin, &RenderStyle::setShapeMargin, &RenderStyle::initialShapeMarg
in>::createHandler()); |
2282 setPropertyHandler(CSSPropertyWebkitShapePadding, ApplyPropertyLength<&Rende
rStyle::shapePadding, &RenderStyle::setShapePadding, &RenderStyle::initialShapeP
adding>::createHandler()); | 2282 setPropertyHandler(CSSPropertyWebkitShapePadding, ApplyPropertyLength<&Rende
rStyle::shapePadding, &RenderStyle::setShapePadding, &RenderStyle::initialShapeP
adding>::createHandler()); |
2283 setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault<WrapTh
rough, &RenderStyle::wrapThrough, WrapThrough, &RenderStyle::setWrapThrough, Wra
pThrough, &RenderStyle::initialWrapThrough>::createHandler()); | 2283 setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault<WrapTh
rough, &RenderStyle::wrapThrough, WrapThrough, &RenderStyle::setWrapThrough, Wra
pThrough, &RenderStyle::initialWrapThrough>::createHandler()); |
2284 setPropertyHandler(CSSPropertyWebkitShapeInside, ApplyPropertyExclusionShape
<&RenderStyle::shapeInside, &RenderStyle::setShapeInside, &RenderStyle::initialS
hapeInside>::createHandler()); | 2284 setPropertyHandler(CSSPropertyWebkitShapeInside, ApplyPropertyExclusionShape
<&RenderStyle::shapeInside, &RenderStyle::setShapeInside, &RenderStyle::initialS
hapeInside>::createHandler()); |
2285 setPropertyHandler(CSSPropertyWebkitShapeOutside, ApplyPropertyExclusionShap
e<&RenderStyle::shapeOutside, &RenderStyle::setShapeOutside, &RenderStyle::initi
alShapeOutside>::createHandler()); | 2285 setPropertyHandler(CSSPropertyWebkitShapeOutside, ApplyPropertyExclusionShap
e<&RenderStyle::shapeOutside, &RenderStyle::setShapeOutside, &RenderStyle::initi
alShapeOutside>::createHandler()); |
2286 #endif | 2286 #endif |
2287 setPropertyHandler(CSSPropertyWhiteSpace, ApplyPropertyDefault<EWhiteSpace,
&RenderStyle::whiteSpace, EWhiteSpace, &RenderStyle::setWhiteSpace, EWhiteSpace,
&RenderStyle::initialWhiteSpace>::createHandler()); | 2287 setPropertyHandler(CSSPropertyWhiteSpace, ApplyPropertyDefault<EWhiteSpace,
&RenderStyle::whiteSpace, EWhiteSpace, &RenderStyle::setWhiteSpace, EWhiteSpace,
&RenderStyle::initialWhiteSpace>::createHandler()); |
2288 setPropertyHandler(CSSPropertyWidows, ApplyPropertyAuto<short, &RenderStyle:
:widows, &RenderStyle::setWidows, &RenderStyle::hasAutoWidows, &RenderStyle::set
HasAutoWidows>::createHandler()); | 2288 setPropertyHandler(CSSPropertyWidows, ApplyPropertyAuto<short, &RenderStyle:
:widows, &RenderStyle::setWidows, &RenderStyle::hasAutoWidows, &RenderStyle::set
HasAutoWidows>::createHandler()); |
2289 setPropertyHandler(CSSPropertyWidth, ApplyPropertyLength<&RenderStyle::width
, &RenderStyle::setWidth, &RenderStyle::initialSize, AutoEnabled, LegacyIntrinsi
cEnabled, IntrinsicEnabled, NoneDisabled, UndefinedDisabled>::createHandler()); | 2289 setPropertyHandler(CSSPropertyWidth, ApplyPropertyLength<&RenderStyle::width
, &RenderStyle::setWidth, &RenderStyle::initialSize, AutoEnabled, LegacyIntrinsi
cEnabled, IntrinsicEnabled, NoneDisabled, UndefinedDisabled>::createHandler()); |
2290 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R
enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend
erStyle::initialWordBreak>::createHandler()); | 2290 setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault<EWordBreak, &R
enderStyle::wordBreak, EWordBreak, &RenderStyle::setWordBreak, EWordBreak, &Rend
erStyle::initialWordBreak>::createHandler()); |
2291 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, &
RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet
terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler
()); | 2291 setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength<int, &
RenderStyle::wordSpacing, &RenderStyle::setWordSpacing, &RenderStyle::initialLet
terWordSpacing, NormalEnabled, ThicknessDisabled, SVGZoomEnabled>::createHandler
()); |
2292 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p
roperty. So using the same handlers. | 2292 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' p
roperty. So using the same handlers. |
2293 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap,
&RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf
lowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); | 2293 setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault<EOverflowWrap,
&RenderStyle::overflowWrap, EOverflowWrap, &RenderStyle::setOverflowWrap, EOverf
lowWrap, &RenderStyle::initialOverflowWrap>::createHandler()); |
2294 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z
Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa
sAutoZIndex>::createHandler()); | 2294 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::z
Index, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHa
sAutoZIndex>::createHandler()); |
2295 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); | 2295 setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); |
2296 } | 2296 } |
2297 | 2297 |
2298 | 2298 |
2299 } | 2299 } |
OLD | NEW |