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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn
heritedData->m_deprecatedFlexibleBox->align); } | 725 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); } | 726 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher
ited_flags._box_direction); } |
727 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox
->flex; } | 727 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox
->flex; } |
728 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate
dFlexibleBox->flex_group; } | 728 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate
dFlexibleBox->flex_group; } |
729 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD
ata->m_deprecatedFlexibleBox->lines); } | 729 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD
ata->m_deprecatedFlexibleBox->lines); } |
730 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec
atedFlexibleBox->ordinal_group; } | 730 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec
atedFlexibleBox->ordinal_group; } |
731 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit
edData->m_deprecatedFlexibleBox->orient); } | 731 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit
edData->m_deprecatedFlexibleBox->orient); } |
732 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData
->m_deprecatedFlexibleBox->pack); } | 732 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData
->m_deprecatedFlexibleBox->pack); } |
733 | 733 |
734 int order() const { return rareNonInheritedData->m_order; } | 734 int order() const { return rareNonInheritedData->m_order; } |
| 735 #if ENABLE(CSS_CALLBACKS) |
| 736 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat
a->m_callbackSelectors; } |
| 737 #endif |
735 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG
row; } | 738 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG
row; } |
736 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle
xShrink; } | 739 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle
xShrink; } |
737 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle
xBasis; } | 740 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle
xBasis; } |
738 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } | 741 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } |
739 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe
ritedData->m_alignItems); } | 742 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe
ritedData->m_alignItems); } |
740 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher
itedData->m_alignSelf); } | 743 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); } | 744 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } |
742 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } | 745 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } |
743 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 746 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
744 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 747 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); } | 1182 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); } | 1183 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); } | 1184 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre
catedFlexibleBox, pack, p); } |
1182 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false); | 1185 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; } | 1186 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); } | 1187 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); } | 1188 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); } | 1189 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); } | 1190 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_
flexibleBox, m_flexBasis, length); } |
1188 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } | 1191 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } |
| 1192 #if ENABLE(CSS_CALLBACKS) |
| 1193 void addCallbackSelector(const String& selector, Document*); |
| 1194 void removeCallbackSelector(const String& selector); |
| 1195 #endif |
1189 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } | 1196 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } |
1190 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } | 1197 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } |
1191 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf
, a); } | 1198 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); } | 1199 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); } | 1200 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); } | 1201 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); } | 1202 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); } | 1203 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); } | 1204 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); } | 1205 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)) | 1769 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
1763 return false; | 1770 return false; |
1764 | 1771 |
1765 rareInheritedData.access()->m_textOrientation = textOrientation; | 1772 rareInheritedData.access()->m_textOrientation = textOrientation; |
1766 return true; | 1773 return true; |
1767 } | 1774 } |
1768 | 1775 |
1769 } // namespace WebCore | 1776 } // namespace WebCore |
1770 | 1777 |
1771 #endif // RenderStyle_h | 1778 #endif // RenderStyle_h |
OLD | NEW |