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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } | 877 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } |
878 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } | 878 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } |
879 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } | 879 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } |
880 | 880 |
881 // When set, this ensures that styles compare as different. Used during acce
lerated animations. | 881 // When set, this ensures that styles compare as different. Used during acce
lerated animations. |
882 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } | 882 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } |
883 | 883 |
884 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 884 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
885 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 885 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
886 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 886 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
887 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
888 bool useTouchOverflowScrolling() const { return rareInheritedData->useTouchO
verflowScrolling; } | |
889 #endif | |
890 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 887 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } |
891 | 888 |
892 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } | 889 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } |
893 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } | 890 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } |
894 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } | 891 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } |
895 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } | 892 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } |
896 | 893 |
897 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 894 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
898 | 895 |
899 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 896 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } | 1303 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } |
1307 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } | 1304 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } |
1308 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } | 1305 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } |
1309 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } | 1306 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } |
1310 | 1307 |
1311 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } | 1308 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } |
1312 | 1309 |
1313 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1310 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
1314 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1311 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
1315 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1312 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
1316 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
1317 void setUseTouchOverflowScrolling(bool v) { SET_VAR(rareInheritedData, useTo
uchOverflowScrolling, v); } | |
1318 #endif | |
1319 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1313 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
1320 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1314 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
1321 | 1315 |
1322 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1316 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
1323 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1317 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
1324 | 1318 |
1325 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1319 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
1326 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1320 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
1327 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | 1321 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
1328 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1322 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 static const AtomicString& initialRegionThread() { return nullAtom; } | 1622 static const AtomicString& initialRegionThread() { return nullAtom; } |
1629 static RegionFragment initialRegionFragment() { return AutoRegionFragment; } | 1623 static RegionFragment initialRegionFragment() { return AutoRegionFragment; } |
1630 | 1624 |
1631 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } | 1625 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } |
1632 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } | 1626 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } |
1633 | 1627 |
1634 // Keep these at the end. | 1628 // Keep these at the end. |
1635 static LineClampValue initialLineClamp() { return LineClampValue(); } | 1629 static LineClampValue initialLineClamp() { return LineClampValue(); } |
1636 static ETextSecurity initialTextSecurity() { return TSNONE; } | 1630 static ETextSecurity initialTextSecurity() { return TSNONE; } |
1637 static Color initialTapHighlightColor(); | 1631 static Color initialTapHighlightColor(); |
1638 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
1639 static bool initialUseTouchOverflowScrolling() { return false; } | |
1640 #endif | |
1641 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } | 1632 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } |
1642 static BlendMode initialBlendMode() { return BlendModeNormal; } | 1633 static BlendMode initialBlendMode() { return BlendModeNormal; } |
1643 private: | 1634 private: |
1644 void setVisitedLinkColor(const Color&); | 1635 void setVisitedLinkColor(const Color&); |
1645 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBackgroundColor, v); } | 1636 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBackgroundColor, v); } |
1646 void setVisitedLinkBorderLeftColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBorderLeftColor, v); } | 1637 void setVisitedLinkBorderLeftColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBorderLeftColor, v); } |
1647 void setVisitedLinkBorderRightColor(const Color& v) { SET_VAR(rareNonInherit
edData, m_visitedLinkBorderRightColor, v); } | 1638 void setVisitedLinkBorderRightColor(const Color& v) { SET_VAR(rareNonInherit
edData, m_visitedLinkBorderRightColor, v); } |
1648 void setVisitedLinkBorderBottomColor(const Color& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkBorderBottomColor, v); } | 1639 void setVisitedLinkBorderBottomColor(const Color& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkBorderBottomColor, v); } |
1649 void setVisitedLinkBorderTopColor(const Color& v) { SET_VAR(rareNonInherited
Data, m_visitedLinkBorderTopColor, v); } | 1640 void setVisitedLinkBorderTopColor(const Color& v) { SET_VAR(rareNonInherited
Data, m_visitedLinkBorderTopColor, v); } |
1650 void setVisitedLinkOutlineColor(const Color& v) { SET_VAR(rareNonInheritedDa
ta, m_visitedLinkOutlineColor, v); } | 1641 void setVisitedLinkOutlineColor(const Color& v) { SET_VAR(rareNonInheritedDa
ta, m_visitedLinkOutlineColor, v); } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
1764 return false; | 1755 return false; |
1765 | 1756 |
1766 rareInheritedData.access()->m_textOrientation = textOrientation; | 1757 rareInheritedData.access()->m_textOrientation = textOrientation; |
1767 return true; | 1758 return true; |
1768 } | 1759 } |
1769 | 1760 |
1770 } // namespace WebCore | 1761 } // namespace WebCore |
1771 | 1762 |
1772 #endif // RenderStyle_h | 1763 #endif // RenderStyle_h |
OLD | NEW |