| 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 Length perspectiveOriginX() const { return rareNonInheritedData->m_perspecti
veOriginX; } | 898 Length perspectiveOriginX() const { return rareNonInheritedData->m_perspecti
veOriginX; } |
| 899 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } | 899 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } |
| 900 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } | 900 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } |
| 901 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } | 901 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } |
| 902 | 902 |
| 903 // When set, this ensures that styles compare as different. Used during acce
lerated animations. | 903 // When set, this ensures that styles compare as different. Used during acce
lerated animations. |
| 904 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } | 904 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } |
| 905 | 905 |
| 906 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 906 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
| 907 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 907 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
| 908 #if ENABLE(TOUCH_EVENTS) |
| 908 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 909 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
| 910 #endif |
| 909 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | 911 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) |
| 910 bool useTouchOverflowScrolling() const { return rareInheritedData->useTouchO
verflowScrolling; } | 912 bool useTouchOverflowScrolling() const { return rareInheritedData->useTouchO
verflowScrolling; } |
| 911 #endif | 913 #endif |
| 912 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 914 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } |
| 913 | 915 |
| 914 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } | 916 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } |
| 915 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } | 917 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } |
| 916 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } | 918 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } |
| 917 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } | 919 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } |
| 918 | 920 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 void setPerspectiveOriginX(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginX, l); } | 1343 void setPerspectiveOriginX(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginX, l); } |
| 1342 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } | 1344 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } |
| 1343 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } | 1345 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } |
| 1344 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } | 1346 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } |
| 1345 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } | 1347 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } |
| 1346 | 1348 |
| 1347 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } | 1349 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } |
| 1348 | 1350 |
| 1349 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1351 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 1350 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1352 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
| 1353 #if ENABLE(TOUCH_EVENTS) |
| 1351 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1354 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 1355 #endif |
| 1352 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | 1356 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) |
| 1353 void setUseTouchOverflowScrolling(bool v) { SET_VAR(rareInheritedData, useTo
uchOverflowScrolling, v); } | 1357 void setUseTouchOverflowScrolling(bool v) { SET_VAR(rareInheritedData, useTo
uchOverflowScrolling, v); } |
| 1354 #endif | 1358 #endif |
| 1355 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1359 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1356 | 1360 |
| 1357 #if ENABLE(SVG) | 1361 #if ENABLE(SVG) |
| 1358 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1362 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
| 1359 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1363 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
| 1360 | 1364 |
| 1361 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1365 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; } |
| 1664 | 1668 |
| 1665 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } | 1669 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } |
| 1666 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } | 1670 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } |
| 1667 | 1671 |
| 1668 // Keep these at the end. | 1672 // Keep these at the end. |
| 1669 static LineClampValue initialLineClamp() { return LineClampValue(); } | 1673 static LineClampValue initialLineClamp() { return LineClampValue(); } |
| 1670 static ETextSecurity initialTextSecurity() { return TSNONE; } | 1674 static ETextSecurity initialTextSecurity() { return TSNONE; } |
| 1675 #if ENABLE(TOUCH_EVENTS) |
| 1671 static Color initialTapHighlightColor(); | 1676 static Color initialTapHighlightColor(); |
| 1677 #endif |
| 1672 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | 1678 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) |
| 1673 static bool initialUseTouchOverflowScrolling() { return false; } | 1679 static bool initialUseTouchOverflowScrolling() { return false; } |
| 1674 #endif | 1680 #endif |
| 1675 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } | 1681 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } |
| 1676 #if ENABLE(CSS_COMPOSITING) | 1682 #if ENABLE(CSS_COMPOSITING) |
| 1677 static BlendMode initialBlendMode() { return BlendModeNormal; } | 1683 static BlendMode initialBlendMode() { return BlendModeNormal; } |
| 1678 #endif | 1684 #endif |
| 1679 private: | 1685 private: |
| 1680 void setVisitedLinkColor(const Color&); | 1686 void setVisitedLinkColor(const Color&); |
| 1681 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBackgroundColor, v); } | 1687 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBackgroundColor, v); } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1811 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
| 1806 return false; | 1812 return false; |
| 1807 | 1813 |
| 1808 rareInheritedData.access()->m_textOrientation = textOrientation; | 1814 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1809 return true; | 1815 return true; |
| 1810 } | 1816 } |
| 1811 | 1817 |
| 1812 } // namespace WebCore | 1818 } // namespace WebCore |
| 1813 | 1819 |
| 1814 #endif // RenderStyle_h | 1820 #endif // RenderStyle_h |
| OLD | NEW |