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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 905 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } |
906 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 906 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } |
907 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 907 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } |
908 | 908 |
909 BlendMode blendMode() const; | 909 BlendMode blendMode() const; |
910 void setBlendMode(BlendMode v); | 910 void setBlendMode(BlendMode v); |
911 bool hasBlendMode() const; | 911 bool hasBlendMode() const; |
912 | 912 |
913 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 913 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
914 | 914 |
| 915 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 916 |
915 // attribute setter methods | 917 // attribute setter methods |
916 | 918 |
917 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } | 919 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } |
918 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } | 920 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } |
919 void setPosition(EPosition v) { noninherited_flags._position = v; } | 921 void setPosition(EPosition v) { noninherited_flags._position = v; } |
920 void setFloating(EFloat v) { noninherited_flags._floating = v; } | 922 void setFloating(EFloat v) { noninherited_flags._floating = v; } |
921 | 923 |
922 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } | 924 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } |
923 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } | 925 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } |
924 void setTop(Length v) { SET_VAR(surround, offset.m_top, v); } | 926 void setTop(Length v) { SET_VAR(surround, offset.m_top, v); } |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 | 1317 |
1316 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } | 1318 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } |
1317 | 1319 |
1318 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1320 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
1319 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1321 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
1320 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1322 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
1321 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | 1323 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) |
1322 void setUseTouchOverflowScrolling(bool v) { SET_VAR(rareInheritedData, useTo
uchOverflowScrolling, v); } | 1324 void setUseTouchOverflowScrolling(bool v) { SET_VAR(rareInheritedData, useTo
uchOverflowScrolling, v); } |
1323 #endif | 1325 #endif |
1324 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1326 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1327 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
1325 | 1328 |
1326 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1329 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
1327 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1330 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
1328 | 1331 |
1329 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1332 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
1330 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1333 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
1331 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | 1334 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
1332 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1335 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
1333 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 1336 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
1334 | 1337 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 static RubyPosition initialRubyPosition() { return RubyPositionBefore; } | 1599 static RubyPosition initialRubyPosition() { return RubyPositionBefore; } |
1597 static LineBoxContain initialLineBoxContain() { return LineBoxContainBlock |
LineBoxContainInline | LineBoxContainReplaced; } | 1600 static LineBoxContain initialLineBoxContain() { return LineBoxContainBlock |
LineBoxContainInline | LineBoxContainReplaced; } |
1598 static ImageOrientationEnum initialImageOrientation() { return OriginTopLeft
; } | 1601 static ImageOrientationEnum initialImageOrientation() { return OriginTopLeft
; } |
1599 static EImageRendering initialImageRendering() { return ImageRenderingAuto;
} | 1602 static EImageRendering initialImageRendering() { return ImageRenderingAuto;
} |
1600 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } | 1603 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } |
1601 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } | 1604 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } |
1602 static float initialImageResolution() { return 1; } | 1605 static float initialImageResolution() { return 1; } |
1603 static StyleImage* initialBorderImageSource() { return 0; } | 1606 static StyleImage* initialBorderImageSource() { return 0; } |
1604 static StyleImage* initialMaskBoxImageSource() { return 0; } | 1607 static StyleImage* initialMaskBoxImageSource() { return 0; } |
1605 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } | 1608 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } |
| 1609 static TouchAction initialTouchAction() { return TouchActionAuto; } |
1606 | 1610 |
1607 // The initial value is 'none' for grid tracks. | 1611 // The initial value is 'none' for grid tracks. |
1608 static Vector<GridTrackSize> initialGridColumns() { return Vector<GridTrackS
ize>(); } | 1612 static Vector<GridTrackSize> initialGridColumns() { return Vector<GridTrackS
ize>(); } |
1609 static Vector<GridTrackSize> initialGridRows() { return Vector<GridTrackSize
>(); } | 1613 static Vector<GridTrackSize> initialGridRows() { return Vector<GridTrackSize
>(); } |
1610 | 1614 |
1611 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } | 1615 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } |
1612 | 1616 |
1613 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Auto);
} | 1617 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Auto);
} |
1614 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Auto); } | 1618 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Auto); } |
1615 | 1619 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1775 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
1772 return false; | 1776 return false; |
1773 | 1777 |
1774 rareInheritedData.access()->m_textOrientation = textOrientation; | 1778 rareInheritedData.access()->m_textOrientation = textOrientation; |
1775 return true; | 1779 return true; |
1776 } | 1780 } |
1777 | 1781 |
1778 } // namespace WebCore | 1782 } // namespace WebCore |
1779 | 1783 |
1780 #endif // RenderStyle_h | 1784 #endif // RenderStyle_h |
OLD | NEW |