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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 if (!compareEqual(group->variable.color(), value)) \ | 85 if (!compareEqual(group->variable.color(), value)) \ |
86 group.access()->variable.setColor(value) | 86 group.access()->variable.setColor(value) |
87 | 87 |
88 namespace WebCore { | 88 namespace WebCore { |
89 | 89 |
90 using std::max; | 90 using std::max; |
91 | 91 |
92 class FilterOperations; | 92 class FilterOperations; |
93 | 93 |
94 class BorderData; | 94 class BorderData; |
| 95 class CSSSelectorWatch; |
95 class CounterContent; | 96 class CounterContent; |
96 class CursorList; | 97 class CursorList; |
97 class Font; | 98 class Font; |
98 class FontMetrics; | 99 class FontMetrics; |
99 class IntRect; | 100 class IntRect; |
100 class Pair; | 101 class Pair; |
101 class ShadowData; | 102 class ShadowData; |
102 class StyleImage; | 103 class StyleImage; |
103 class StyleInheritedData; | 104 class StyleInheritedData; |
104 class StyleResolver; | 105 class StyleResolver; |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn
heritedData->m_deprecatedFlexibleBox->align); } | 726 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn
heritedData->m_deprecatedFlexibleBox->align); } |
726 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher
ited_flags._box_direction); } | 727 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher
ited_flags._box_direction); } |
727 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox
->flex; } | 728 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox
->flex; } |
728 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate
dFlexibleBox->flex_group; } | 729 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate
dFlexibleBox->flex_group; } |
729 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD
ata->m_deprecatedFlexibleBox->lines); } | 730 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD
ata->m_deprecatedFlexibleBox->lines); } |
730 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec
atedFlexibleBox->ordinal_group; } | 731 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec
atedFlexibleBox->ordinal_group; } |
731 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit
edData->m_deprecatedFlexibleBox->orient); } | 732 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit
edData->m_deprecatedFlexibleBox->orient); } |
732 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData
->m_deprecatedFlexibleBox->pack); } | 733 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData
->m_deprecatedFlexibleBox->pack); } |
733 | 734 |
734 int order() const { return rareNonInheritedData->m_order; } | 735 int order() const { return rareNonInheritedData->m_order; } |
| 736 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat
a->m_callbackSelectors; } |
735 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG
row; } | 737 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG
row; } |
736 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle
xShrink; } | 738 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle
xShrink; } |
737 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle
xBasis; } | 739 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle
xBasis; } |
738 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } | 740 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } |
739 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe
ritedData->m_alignItems); } | 741 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe
ritedData->m_alignItems); } |
740 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher
itedData->m_alignSelf); } | 742 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher
itedData->m_alignSelf); } |
741 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } | 743 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } |
742 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } | 744 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } |
743 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 745 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
744 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 746 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } | 1181 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } |
1180 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d
eprecatedFlexibleBox, orient, o); } | 1182 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d
eprecatedFlexibleBox, orient, o); } |
1181 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre
catedFlexibleBox, pack, p); } | 1183 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre
catedFlexibleBox, pack, p); } |
1182 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false); | 1184 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false); |
1183 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit
edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r
eflect; } | 1185 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit
edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r
eflect; } |
1184 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } | 1186 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } |
1185 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl
eBox, m_flexGrow, f); } | 1187 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl
eBox, m_flexGrow, f); } |
1186 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi
bleBox, m_flexShrink, f); } | 1188 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi
bleBox, m_flexShrink, f); } |
1187 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_
flexibleBox, m_flexBasis, length); } | 1189 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_
flexibleBox, m_flexBasis, length); } |
1188 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } | 1190 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } |
| 1191 void addCallbackSelector(const String& selector, CSSSelectorWatch*); |
| 1192 void removeCallbackSelector(const String& selector); |
1189 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } | 1193 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } |
1190 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } | 1194 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } |
1191 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf
, a); } | 1195 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf
, a); } |
1192 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } | 1196 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } |
1193 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } | 1197 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } |
1194 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } | 1198 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } |
1195 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } | 1199 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } |
1196 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } | 1200 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } |
1197 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA
R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); } | 1201 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA
R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); } |
1198 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r
areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); } | 1202 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r
areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); } |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1762 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1766 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
1763 return false; | 1767 return false; |
1764 | 1768 |
1765 rareInheritedData.access()->m_textOrientation = textOrientation; | 1769 rareInheritedData.access()->m_textOrientation = textOrientation; |
1766 return true; | 1770 return true; |
1767 } | 1771 } |
1768 | 1772 |
1769 } // namespace WebCore | 1773 } // namespace WebCore |
1770 | 1774 |
1771 #endif // RenderStyle_h | 1775 #endif // RenderStyle_h |
OLD | NEW |