OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #include "wtf/RefCounted.h" | 75 #include "wtf/RefCounted.h" |
76 #include "wtf/StdLibExtras.h" | 76 #include "wtf/StdLibExtras.h" |
77 #include "wtf/Vector.h" | 77 #include "wtf/Vector.h" |
78 | 78 |
79 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } | 79 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } |
80 | 80 |
81 #define SET_VAR(group, variable, value) \ | 81 #define SET_VAR(group, variable, value) \ |
82 if (!compareEqual(group->variable, value)) \ | 82 if (!compareEqual(group->variable, value)) \ |
83 group.access()->variable = value | 83 group.access()->variable = value |
84 | 84 |
| 85 #define SET_VAR_WITH_SETTER(group, getter, setter, value) \ |
| 86 if (!compareEqual(group->getter(), value)) \ |
| 87 group.access()->setter(value) |
| 88 |
85 #define SET_BORDERVALUE_COLOR(group, variable, value) \ | 89 #define SET_BORDERVALUE_COLOR(group, variable, value) \ |
86 if (!compareEqual(group->variable.color(), value)) \ | 90 if (!compareEqual(group->variable.color(), value)) \ |
87 group.access()->variable.setColor(value) | 91 group.access()->variable.setColor(value) |
88 | 92 |
89 namespace WebCore { | 93 namespace WebCore { |
90 | 94 |
91 using std::max; | 95 using std::max; |
92 | 96 |
93 class FilterOperations; | 97 class FilterOperations; |
94 | 98 |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } | 1227 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } |
1224 | 1228 |
1225 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props | 1229 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props |
1226 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags._page_break_inside = b; } | 1230 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags._page_break_inside = b; } |
1227 void setPageBreakBefore(EPageBreak b) { noninherited_flags._page_break_befor
e = b; } | 1231 void setPageBreakBefore(EPageBreak b) { noninherited_flags._page_break_befor
e = b; } |
1228 void setPageBreakAfter(EPageBreak b) { noninherited_flags._page_break_after
= b; } | 1232 void setPageBreakAfter(EPageBreak b) { noninherited_flags._page_break_after
= b; } |
1229 | 1233 |
1230 // CSS3 Setters | 1234 // CSS3 Setters |
1231 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 1235 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
1232 void setTextShadow(PassRefPtr<ShadowList>); | 1236 void setTextShadow(PassRefPtr<ShadowList>); |
1233 void setTextStrokeColor(const StyleColor& c) { SET_VAR(rareInheritedData, te
xtStrokeColor, c); } | 1237 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } |
1234 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 1238 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } |
1235 void setTextFillColor(const StyleColor& c) { SET_VAR(rareInheritedData, text
FillColor, c); } | 1239 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } |
1236 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } | 1240 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } |
1237 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } | 1241 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } |
1238 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment | 1242 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment |
1239 void setBoxAlign(EBoxAlignment a) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, align, a); } | 1243 void setBoxAlign(EBoxAlignment a) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, align, a); } |
1240 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } | 1244 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } |
1241 void setBoxDirection(EBoxDirection d) { inherited_flags._box_direction = d;
} | 1245 void setBoxDirection(EBoxDirection d) { inherited_flags._box_direction = d;
} |
1242 void setBoxFlex(float f) { SET_VAR(rareNonInheritedData.access()->m_deprecat
edFlexibleBox, flex, f); } | 1246 void setBoxFlex(float f) { SET_VAR(rareNonInheritedData.access()->m_deprecat
edFlexibleBox, flex, f); } |
1243 void setBoxFlexGroup(unsigned int fg) { SET_VAR(rareNonInheritedData.access(
)->m_deprecatedFlexibleBox, flex_group, fg); } | 1247 void setBoxFlexGroup(unsigned int fg) { SET_VAR(rareNonInheritedData.access(
)->m_deprecatedFlexibleBox, flex_group, fg); } |
1244 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } | 1248 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } |
1245 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } | 1249 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } | 1325 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } |
1322 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } | 1326 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } |
1323 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } | 1327 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } |
1324 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } | 1328 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } |
1325 void setTransformOriginX(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_x, l); } | 1329 void setTransformOriginX(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_x, l); } |
1326 void setTransformOriginY(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_y, l); } | 1330 void setTransformOriginY(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_y, l); } |
1327 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } | 1331 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } |
1328 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1332 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } |
1329 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } | 1333 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } |
1330 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } | 1334 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } |
1331 void setTextEmphasisColor(const StyleColor& c) { SET_VAR(rareInheritedData,
textEmphasisColor, c); } | 1335 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } |
1332 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } | 1336 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } |
1333 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } | 1337 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } |
1334 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } | 1338 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } |
1335 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } | 1339 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } |
1336 bool setTextOrientation(TextOrientation); | 1340 bool setTextOrientation(TextOrientation); |
1337 | 1341 |
1338 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } | 1342 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } |
1339 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData,
m_objectPosition, position); } | 1343 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData,
m_objectPosition, position); } |
1340 | 1344 |
1341 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r
ubyPosition, position); } | 1345 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r
ubyPosition, position); } |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 private: | 1728 private: |
1725 void setVisitedLinkColor(const Color&); | 1729 void setVisitedLinkColor(const Color&); |
1726 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBackgroundColor, v); } | 1730 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBackgroundColor, v); } |
1727 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBorderLeftColor, v); } | 1731 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBorderLeftColor, v); } |
1728 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn
heritedData, m_visitedLinkBorderRightColor, v); } | 1732 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn
heritedData, m_visitedLinkBorderRightColor, v); } |
1729 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI
nheritedData, m_visitedLinkBorderBottomColor, v); } | 1733 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI
nheritedData, m_visitedLinkBorderBottomColor, v); } |
1730 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe
ritedData, m_visitedLinkBorderTopColor, v); } | 1734 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe
ritedData, m_visitedLinkBorderTopColor, v); } |
1731 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkOutlineColor, v); } | 1735 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkOutlineColor, v); } |
1732 void setVisitedLinkColumnRuleColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); } | 1736 void setVisitedLinkColumnRuleColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); } |
1733 void setVisitedLinkTextDecorationColor(const StyleColor& v) { SET_VAR(rareNo
nInheritedData, m_visitedLinkTextDecorationColor, v); } | 1737 void setVisitedLinkTextDecorationColor(const StyleColor& v) { SET_VAR(rareNo
nInheritedData, m_visitedLinkTextDecorationColor, v); } |
1734 void setVisitedLinkTextEmphasisColor(const StyleColor& v) { SET_VAR(rareInhe
ritedData, visitedLinkTextEmphasisColor, v); } | 1738 void setVisitedLinkTextEmphasisColor(const StyleColor& v) { SET_VAR_WITH_SET
TER(rareInheritedData, visitedLinkTextEmphasisColor, setVisitedLinkTextEmphasisC
olor, v); } |
1735 void setVisitedLinkTextFillColor(const StyleColor& v) { SET_VAR(rareInherite
dData, visitedLinkTextFillColor, v); } | 1739 void setVisitedLinkTextFillColor(const StyleColor& v) { SET_VAR_WITH_SETTER(
rareInheritedData, visitedLinkTextFillColor, setVisitedLinkTextFillColor, v); } |
1736 void setVisitedLinkTextStrokeColor(const StyleColor& v) { SET_VAR(rareInheri
tedData, visitedLinkTextStrokeColor, v); } | 1740 void setVisitedLinkTextStrokeColor(const StyleColor& v) { SET_VAR_WITH_SETTE
R(rareInheritedData, visitedLinkTextStrokeColor, setVisitedLinkTextStrokeColor,
v); } |
1737 | 1741 |
1738 void inheritUnicodeBidiFrom(const RenderStyle* parent) { noninherited_flags.
_unicodeBidi = parent->noninherited_flags._unicodeBidi; } | 1742 void inheritUnicodeBidiFrom(const RenderStyle* parent) { noninherited_flags.
_unicodeBidi = parent->noninherited_flags._unicodeBidi; } |
1739 void getShadowExtent(const ShadowList*, LayoutUnit& top, LayoutUnit& right,
LayoutUnit& bottom, LayoutUnit& left) const; | 1743 void getShadowExtent(const ShadowList*, LayoutUnit& top, LayoutUnit& right,
LayoutUnit& bottom, LayoutUnit& left) const; |
1740 LayoutBoxExtent getShadowInsetExtent(const ShadowList*) const; | 1744 LayoutBoxExtent getShadowInsetExtent(const ShadowList*) const; |
1741 void getShadowHorizontalExtent(const ShadowList*, LayoutUnit& left, LayoutUn
it& right) const; | 1745 void getShadowHorizontalExtent(const ShadowList*, LayoutUnit& left, LayoutUn
it& right) const; |
1742 void getShadowVerticalExtent(const ShadowList*, LayoutUnit& top, LayoutUnit&
bottom) const; | 1746 void getShadowVerticalExtent(const ShadowList*, LayoutUnit& top, LayoutUnit&
bottom) const; |
1743 void getShadowInlineDirectionExtent(const ShadowList* shadow, LayoutUnit& lo
gicalLeft, LayoutUnit& logicalRight) const | 1747 void getShadowInlineDirectionExtent(const ShadowList* shadow, LayoutUnit& lo
gicalLeft, LayoutUnit& logicalRight) const |
1744 { | 1748 { |
1745 return isHorizontalWritingMode() ? getShadowHorizontalExtent(shadow, log
icalLeft, logicalRight) : getShadowVerticalExtent(shadow, logicalLeft, logicalRi
ght); | 1749 return isHorizontalWritingMode() ? getShadowHorizontalExtent(shadow, log
icalLeft, logicalRight) : getShadowVerticalExtent(shadow, logicalLeft, logicalRi
ght); |
1746 } | 1750 } |
(...skipping 15 matching lines...) Expand all Loading... |
1762 | 1766 |
1763 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. | 1767 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. |
1764 StyleColor borderLeftColor() const { return surround->border.left().color();
} | 1768 StyleColor borderLeftColor() const { return surround->border.left().color();
} |
1765 StyleColor borderRightColor() const { return surround->border.right().color(
); } | 1769 StyleColor borderRightColor() const { return surround->border.right().color(
); } |
1766 StyleColor borderTopColor() const { return surround->border.top().color(); } | 1770 StyleColor borderTopColor() const { return surround->border.top().color(); } |
1767 StyleColor borderBottomColor() const { return surround->border.bottom().colo
r(); } | 1771 StyleColor borderBottomColor() const { return surround->border.bottom().colo
r(); } |
1768 StyleColor backgroundColor() const { return m_background->color(); } | 1772 StyleColor backgroundColor() const { return m_background->color(); } |
1769 Color color() const; | 1773 Color color() const; |
1770 StyleColor columnRuleColor() const { return rareNonInheritedData->m_multiCol
->m_rule.color(); } | 1774 StyleColor columnRuleColor() const { return rareNonInheritedData->m_multiCol
->m_rule.color(); } |
1771 StyleColor outlineColor() const { return m_background->outline().color(); } | 1775 StyleColor outlineColor() const { return m_background->outline().color(); } |
1772 StyleColor textEmphasisColor() const { return rareInheritedData->textEmphasi
sColor; } | 1776 StyleColor textEmphasisColor() const { return rareInheritedData->textEmphasi
sColor(); } |
1773 StyleColor textFillColor() const { return rareInheritedData->textFillColor;
} | 1777 StyleColor textFillColor() const { return rareInheritedData->textFillColor()
; } |
1774 StyleColor textStrokeColor() const { return rareInheritedData->textStrokeCol
or; } | 1778 StyleColor textStrokeColor() const { return rareInheritedData->textStrokeCol
or(); } |
1775 Color visitedLinkColor() const; | 1779 Color visitedLinkColor() const; |
1776 StyleColor visitedLinkBackgroundColor() const { return rareNonInheritedData-
>m_visitedLinkBackgroundColor; } | 1780 StyleColor visitedLinkBackgroundColor() const { return rareNonInheritedData-
>m_visitedLinkBackgroundColor; } |
1777 StyleColor visitedLinkBorderLeftColor() const { return rareNonInheritedData-
>m_visitedLinkBorderLeftColor; } | 1781 StyleColor visitedLinkBorderLeftColor() const { return rareNonInheritedData-
>m_visitedLinkBorderLeftColor; } |
1778 StyleColor visitedLinkBorderRightColor() const { return rareNonInheritedData
->m_visitedLinkBorderRightColor; } | 1782 StyleColor visitedLinkBorderRightColor() const { return rareNonInheritedData
->m_visitedLinkBorderRightColor; } |
1779 StyleColor visitedLinkBorderBottomColor() const { return rareNonInheritedDat
a->m_visitedLinkBorderBottomColor; } | 1783 StyleColor visitedLinkBorderBottomColor() const { return rareNonInheritedDat
a->m_visitedLinkBorderBottomColor; } |
1780 StyleColor visitedLinkBorderTopColor() const { return rareNonInheritedData->
m_visitedLinkBorderTopColor; } | 1784 StyleColor visitedLinkBorderTopColor() const { return rareNonInheritedData->
m_visitedLinkBorderTopColor; } |
1781 StyleColor visitedLinkOutlineColor() const { return rareNonInheritedData->m_
visitedLinkOutlineColor; } | 1785 StyleColor visitedLinkOutlineColor() const { return rareNonInheritedData->m_
visitedLinkOutlineColor; } |
1782 StyleColor visitedLinkColumnRuleColor() const { return rareNonInheritedData-
>m_multiCol->m_visitedLinkColumnRuleColor; } | 1786 StyleColor visitedLinkColumnRuleColor() const { return rareNonInheritedData-
>m_multiCol->m_visitedLinkColumnRuleColor; } |
1783 StyleColor textDecorationColor() const { return rareNonInheritedData->m_text
DecorationColor; } | 1787 StyleColor textDecorationColor() const { return rareNonInheritedData->m_text
DecorationColor; } |
1784 StyleColor visitedLinkTextDecorationColor() const { return rareNonInheritedD
ata->m_visitedLinkTextDecorationColor; } | 1788 StyleColor visitedLinkTextDecorationColor() const { return rareNonInheritedD
ata->m_visitedLinkTextDecorationColor; } |
1785 StyleColor visitedLinkTextEmphasisColor() const { return rareInheritedData->
visitedLinkTextEmphasisColor; } | 1789 StyleColor visitedLinkTextEmphasisColor() const { return rareInheritedData->
visitedLinkTextEmphasisColor(); } |
1786 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi
tedLinkTextFillColor; } | 1790 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi
tedLinkTextFillColor(); } |
1787 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi
sitedLinkTextStrokeColor; } | 1791 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi
sitedLinkTextStrokeColor(); } |
1788 | 1792 |
1789 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; | 1793 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; |
1790 | 1794 |
1791 Color stopColor() const { return svgStyle()->stopColor(); } | 1795 Color stopColor() const { return svgStyle()->stopColor(); } |
1792 Color floodColor() const { return svgStyle()->floodColor(); } | 1796 Color floodColor() const { return svgStyle()->floodColor(); } |
1793 Color lightingColor() const { return svgStyle()->lightingColor(); } | 1797 Color lightingColor() const { return svgStyle()->lightingColor(); } |
1794 | 1798 |
1795 void appendContent(PassOwnPtr<ContentData>); | 1799 void appendContent(PassOwnPtr<ContentData>); |
1796 StyleDifference repaintOnlyDiff(const RenderStyle* other, unsigned& changedC
ontextSensitiveProperties) const; | 1800 StyleDifference repaintOnlyDiff(const RenderStyle* other, unsigned& changedC
ontextSensitiveProperties) const; |
1797 }; | 1801 }; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 inline bool RenderStyle::hasPseudoElementStyle() const | 1887 inline bool RenderStyle::hasPseudoElementStyle() const |
1884 { | 1888 { |
1885 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1889 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1886 } | 1890 } |
1887 | 1891 |
1888 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1892 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1889 | 1893 |
1890 } // namespace WebCore | 1894 } // namespace WebCore |
1891 | 1895 |
1892 #endif // RenderStyle_h | 1896 #endif // RenderStyle_h |
OLD | NEW |