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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 960 |
961 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 961 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
962 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } | 962 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } |
963 | 963 |
964 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } | 964 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } |
965 | 965 |
966 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 966 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
967 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 967 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
968 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 968 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
969 bool hasWillChangeCompositingHint() const; | 969 bool hasWillChangeCompositingHint() const; |
| 970 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } |
970 | 971 |
971 // attribute setter methods | 972 // attribute setter methods |
972 | 973 |
973 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } | 974 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } |
974 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } | 975 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } |
975 void setPosition(EPosition v) { noninherited_flags._position = v; } | 976 void setPosition(EPosition v) { noninherited_flags._position = v; } |
976 void setFloating(EFloat v) { noninherited_flags._floating = v; } | 977 void setFloating(EFloat v) { noninherited_flags._floating = v; } |
977 | 978 |
978 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } | 979 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } |
979 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } | 980 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1384 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
1384 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1385 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
1385 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1386 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
1386 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } | 1387 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } |
1387 | 1388 |
1388 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } | 1389 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } |
1389 | 1390 |
1390 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } | 1391 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } |
1391 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } | 1392 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } |
1392 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } | 1393 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } |
| 1394 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } |
1393 | 1395 |
1394 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1396 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
1395 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1397 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
1396 | 1398 |
1397 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1399 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
1398 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1400 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
1399 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | 1401 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
1400 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1402 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
1401 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 1403 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
1402 | 1404 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 inline bool RenderStyle::hasPseudoElementStyle() const | 1878 inline bool RenderStyle::hasPseudoElementStyle() const |
1877 { | 1879 { |
1878 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1880 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1879 } | 1881 } |
1880 | 1882 |
1881 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1883 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1882 | 1884 |
1883 } // namespace WebCore | 1885 } // namespace WebCore |
1884 | 1886 |
1885 #endif // RenderStyle_h | 1887 #endif // RenderStyle_h |
OLD | NEW |