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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 762 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
763 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 763 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } |
764 EJustifyContent justifyContent() const { return static_cast<EJustifyContent>
(rareNonInheritedData->m_justifyContent); } | 764 EJustifyContent justifyContent() const { return static_cast<EJustifyContent>
(rareNonInheritedData->m_justifyContent); } |
765 | 765 |
766 const Vector<GridTrackSize>& gridColumns() const { return rareNonInheritedDa
ta->m_grid->m_gridColumns; } | 766 const Vector<GridTrackSize>& gridColumns() const { return rareNonInheritedDa
ta->m_grid->m_gridColumns; } |
767 const Vector<GridTrackSize>& gridRows() const { return rareNonInheritedData-
>m_grid->m_gridRows; } | 767 const Vector<GridTrackSize>& gridRows() const { return rareNonInheritedData-
>m_grid->m_gridRows; } |
768 GridAutoFlow gridAutoFlow() const { return rareNonInheritedData->m_grid->m_g
ridAutoFlow; } | 768 GridAutoFlow gridAutoFlow() const { return rareNonInheritedData->m_grid->m_g
ridAutoFlow; } |
769 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } | 769 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } |
770 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } | 770 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } |
771 | 771 |
772 const GridPosition& gridItemStart() const { return rareNonInheritedData->m_g
ridItem->m_gridStart; } | 772 const GridPosition& gridStart() const { return rareNonInheritedData->m_gridI
tem->m_gridStart; } |
773 const GridPosition& gridItemEnd() const { return rareNonInheritedData->m_gri
dItem->m_gridEnd; } | 773 const GridPosition& gridEnd() const { return rareNonInheritedData->m_gridIte
m->m_gridEnd; } |
774 const GridPosition& gridItemBefore() const { return rareNonInheritedData->m_
gridItem->m_gridBefore; } | 774 const GridPosition& gridBefore() const { return rareNonInheritedData->m_grid
Item->m_gridBefore; } |
775 const GridPosition& gridItemAfter() const { return rareNonInheritedData->m_g
ridItem->m_gridAfter; } | 775 const GridPosition& gridAfter() const { return rareNonInheritedData->m_gridI
tem->m_gridAfter; } |
776 | 776 |
777 const ShadowData* boxShadow() const { return rareNonInheritedData->m_boxShad
ow.get(); } | 777 const ShadowData* boxShadow() const { return rareNonInheritedData->m_boxShad
ow.get(); } |
778 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott
om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l
eft); } | 778 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott
om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l
eft); } |
779 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten
t(boxShadow()); } | 779 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten
t(boxShadow()); } |
780 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const
{ getShadowHorizontalExtent(boxShadow(), left, right); } | 780 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const
{ getShadowHorizontalExtent(boxShadow(), left, right); } |
781 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const {
getShadowVerticalExtent(boxShadow(), top, bottom); } | 781 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const {
getShadowVerticalExtent(boxShadow(), top, bottom); } |
782 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit&
logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical
Right); } | 782 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit&
logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical
Right); } |
783 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo
gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot
tom); } | 783 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo
gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot
tom); } |
784 | 784 |
785 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } | 785 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } | 1226 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte
ms, a); } |
1227 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf
, a); } | 1227 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf
, a); } |
1228 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } | 1228 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } |
1229 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } | 1229 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } |
1230 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } | 1230 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } |
1231 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } | 1231 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } |
1232 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } | 1232 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } |
1233 void setGridColumns(const Vector<GridTrackSize>& lengths) { SET_VAR(rareNonI
nheritedData.access()->m_grid, m_gridColumns, lengths); } | 1233 void setGridColumns(const Vector<GridTrackSize>& lengths) { SET_VAR(rareNonI
nheritedData.access()->m_grid, m_gridColumns, lengths); } |
1234 void setGridRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rareNonInhe
ritedData.access()->m_grid, m_gridRows, lengths); } | 1234 void setGridRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rareNonInhe
ritedData.access()->m_grid, m_gridRows, lengths); } |
1235 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces
s()->m_grid, m_gridAutoFlow, flow); } | 1235 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces
s()->m_grid, m_gridAutoFlow, flow); } |
1236 void setGridItemStart(const GridPosition& startPosition) { SET_VAR(rareNonIn
heritedData.access()->m_gridItem, m_gridStart, startPosition); } | 1236 |
1237 void setGridItemEnd(const GridPosition& endPosition) { SET_VAR(rareNonInheri
tedData.access()->m_gridItem, m_gridEnd, endPosition); } | 1237 void setGridStart(const GridPosition& startPosition) { SET_VAR(rareNonInheri
tedData.access()->m_gridItem, m_gridStart, startPosition); } |
1238 void setGridItemBefore(const GridPosition& beforePosition) { SET_VAR(rareNon
InheritedData.access()->m_gridItem, m_gridBefore, beforePosition); } | 1238 void setGridEnd(const GridPosition& endPosition) { SET_VAR(rareNonInheritedD
ata.access()->m_gridItem, m_gridEnd, endPosition); } |
1239 void setGridItemAfter(const GridPosition& afterPosition) { SET_VAR(rareNonIn
heritedData.access()->m_gridItem, m_gridAfter, afterPosition); } | 1239 void setGridBefore(const GridPosition& beforePosition) { SET_VAR(rareNonInhe
ritedData.access()->m_gridItem, m_gridBefore, beforePosition); } |
| 1240 void setGridAfter(const GridPosition& afterPosition) { SET_VAR(rareNonInheri
tedData.access()->m_gridItem, m_gridAfter, afterPosition); } |
1240 | 1241 |
1241 void setMarqueeIncrement(Length f) { SET_VAR(rareNonInheritedData.access()->
m_marquee, increment, f); } | 1242 void setMarqueeIncrement(Length f) { SET_VAR(rareNonInheritedData.access()->
m_marquee, increment, f); } |
1242 void setMarqueeSpeed(int f) { SET_VAR(rareNonInheritedData.access()->m_marqu
ee, speed, f); } | 1243 void setMarqueeSpeed(int f) { SET_VAR(rareNonInheritedData.access()->m_marqu
ee, speed, f); } |
1243 void setMarqueeDirection(EMarqueeDirection d) { SET_VAR(rareNonInheritedData
.access()->m_marquee, direction, d); } | 1244 void setMarqueeDirection(EMarqueeDirection d) { SET_VAR(rareNonInheritedData
.access()->m_marquee, direction, d); } |
1244 void setMarqueeBehavior(EMarqueeBehavior b) { SET_VAR(rareNonInheritedData.a
ccess()->m_marquee, behavior, b); } | 1245 void setMarqueeBehavior(EMarqueeBehavior b) { SET_VAR(rareNonInheritedData.a
ccess()->m_marquee, behavior, b); } |
1245 void setMarqueeLoopCount(int i) { SET_VAR(rareNonInheritedData.access()->m_m
arquee, loops, i); } | 1246 void setMarqueeLoopCount(int i) { SET_VAR(rareNonInheritedData.access()->m_m
arquee, loops, i); } |
1246 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } | 1247 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } |
1247 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} | 1248 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} |
1248 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } | 1249 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } |
1249 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } | 1250 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 // The initial value is 'none' for grid tracks. | 1644 // The initial value is 'none' for grid tracks. |
1644 static Vector<GridTrackSize> initialGridColumns() { return Vector<GridTrackS
ize>(); } | 1645 static Vector<GridTrackSize> initialGridColumns() { return Vector<GridTrackS
ize>(); } |
1645 static Vector<GridTrackSize> initialGridRows() { return Vector<GridTrackSize
>(); } | 1646 static Vector<GridTrackSize> initialGridRows() { return Vector<GridTrackSize
>(); } |
1646 | 1647 |
1647 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } | 1648 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } |
1648 | 1649 |
1649 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Auto);
} | 1650 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Auto);
} |
1650 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Auto); } | 1651 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Auto); } |
1651 | 1652 |
1652 // 'auto' is the default. | 1653 // 'auto' is the default. |
1653 static GridPosition initialGridPosition() { return GridPosition(); } | 1654 static GridPosition initialGridStart() { return GridPosition(); } |
| 1655 static GridPosition initialGridEnd() { return GridPosition(); } |
| 1656 static GridPosition initialGridBefore() { return GridPosition(); } |
| 1657 static GridPosition initialGridAfter() { return GridPosition(); } |
1654 | 1658 |
1655 static unsigned initialTabSize() { return 8; } | 1659 static unsigned initialTabSize() { return 8; } |
1656 | 1660 |
1657 static const AtomicString& initialLineGrid() { return nullAtom; } | 1661 static const AtomicString& initialLineGrid() { return nullAtom; } |
1658 static LineSnap initialLineSnap() { return LineSnapNone; } | 1662 static LineSnap initialLineSnap() { return LineSnapNone; } |
1659 static LineAlign initialLineAlign() { return LineAlignNone; } | 1663 static LineAlign initialLineAlign() { return LineAlignNone; } |
1660 | 1664 |
1661 static const AtomicString& initialFlowThread() { return nullAtom; } | 1665 static const AtomicString& initialFlowThread() { return nullAtom; } |
1662 static const AtomicString& initialRegionThread() { return nullAtom; } | 1666 static const AtomicString& initialRegionThread() { return nullAtom; } |
1663 static RegionOverflow initialRegionOverflow() { return AutoRegionOverflow; } | 1667 static RegionOverflow initialRegionOverflow() { return AutoRegionOverflow; } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1809 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
1806 return false; | 1810 return false; |
1807 | 1811 |
1808 rareInheritedData.access()->m_textOrientation = textOrientation; | 1812 rareInheritedData.access()->m_textOrientation = textOrientation; |
1809 return true; | 1813 return true; |
1810 } | 1814 } |
1811 | 1815 |
1812 } // namespace WebCore | 1816 } // namespace WebCore |
1813 | 1817 |
1814 #endif // RenderStyle_h | 1818 #endif // RenderStyle_h |
OLD | NEW |