| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "platform/Length.h" | 57 #include "platform/Length.h" |
| 58 #include "platform/LengthBox.h" | 58 #include "platform/LengthBox.h" |
| 59 #include "platform/LengthSize.h" | 59 #include "platform/LengthSize.h" |
| 60 #include "platform/ThemeTypes.h" | 60 #include "platform/ThemeTypes.h" |
| 61 #include "platform/fonts/FontBaseline.h" | 61 #include "platform/fonts/FontBaseline.h" |
| 62 #include "platform/fonts/FontDescription.h" | 62 #include "platform/fonts/FontDescription.h" |
| 63 #include "platform/geometry/LayoutBoxExtent.h" | 63 #include "platform/geometry/LayoutBoxExtent.h" |
| 64 #include "platform/geometry/RoundedRect.h" | 64 #include "platform/geometry/RoundedRect.h" |
| 65 #include "platform/graphics/Color.h" | 65 #include "platform/graphics/Color.h" |
| 66 #include "platform/graphics/GraphicsTypes.h" | 66 #include "platform/graphics/GraphicsTypes.h" |
| 67 #include "platform/scroll/ScrollableArea.h" |
| 67 #include "platform/text/TextDirection.h" | 68 #include "platform/text/TextDirection.h" |
| 68 #include "platform/text/UnicodeBidi.h" | 69 #include "platform/text/UnicodeBidi.h" |
| 69 #include "platform/transforms/TransformOperations.h" | 70 #include "platform/transforms/TransformOperations.h" |
| 70 #include "wtf/Forward.h" | 71 #include "wtf/Forward.h" |
| 71 #include "wtf/OwnPtr.h" | 72 #include "wtf/OwnPtr.h" |
| 72 #include "wtf/RefCounted.h" | 73 #include "wtf/RefCounted.h" |
| 73 #include "wtf/StdLibExtras.h" | 74 #include "wtf/StdLibExtras.h" |
| 74 #include "wtf/Vector.h" | 75 #include "wtf/Vector.h" |
| 75 | 76 |
| 76 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } | 77 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 | 943 |
| 943 EIsolation isolation() const; | 944 EIsolation isolation() const; |
| 944 void setIsolation(EIsolation v); | 945 void setIsolation(EIsolation v); |
| 945 bool hasIsolation() const; | 946 bool hasIsolation() const; |
| 946 | 947 |
| 947 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 948 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
| 948 | 949 |
| 949 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 950 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 950 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } | 951 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } |
| 951 | 952 |
| 953 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } |
| 954 |
| 952 // attribute setter methods | 955 // attribute setter methods |
| 953 | 956 |
| 954 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } | 957 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } |
| 955 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } | 958 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } |
| 956 void setPosition(EPosition v) { noninherited_flags._position = v; } | 959 void setPosition(EPosition v) { noninherited_flags._position = v; } |
| 957 void setFloating(EFloat v) { noninherited_flags._floating = v; } | 960 void setFloating(EFloat v) { noninherited_flags._floating = v; } |
| 958 | 961 |
| 959 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } | 962 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } |
| 960 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } | 963 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } |
| 961 void setTop(Length v) { SET_VAR(surround, offset.m_top, v); } | 964 void setTop(Length v) { SET_VAR(surround, offset.m_top, v); } |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1371 | 1374 |
| 1372 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } | 1375 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } |
| 1373 | 1376 |
| 1374 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1377 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 1375 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1378 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
| 1376 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1379 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 1377 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1380 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1378 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1381 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
| 1379 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } | 1382 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } |
| 1380 | 1383 |
| 1384 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } |
| 1385 |
| 1381 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1386 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
| 1382 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1387 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
| 1383 | 1388 |
| 1384 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1389 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
| 1385 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1390 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
| 1386 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | 1391 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
| 1387 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1392 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
| 1388 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 1393 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
| 1389 | 1394 |
| 1390 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s
trokePaintType(); } | 1395 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s
trokePaintType(); } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } | 1673 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } |
| 1669 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } | 1674 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } |
| 1670 static float initialImageResolution() { return 1; } | 1675 static float initialImageResolution() { return 1; } |
| 1671 static StyleImage* initialBorderImageSource() { return 0; } | 1676 static StyleImage* initialBorderImageSource() { return 0; } |
| 1672 static StyleImage* initialMaskBoxImageSource() { return 0; } | 1677 static StyleImage* initialMaskBoxImageSource() { return 0; } |
| 1673 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } | 1678 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } |
| 1674 static TouchAction initialTouchAction() { return TouchActionAuto; } | 1679 static TouchAction initialTouchAction() { return TouchActionAuto; } |
| 1675 static TouchActionDelay initialTouchActionDelay() { return TouchActionDelayS
cript; } | 1680 static TouchActionDelay initialTouchActionDelay() { return TouchActionDelayS
cript; } |
| 1676 static ShadowList* initialBoxShadow() { return 0; } | 1681 static ShadowList* initialBoxShadow() { return 0; } |
| 1677 static ShadowList* initialTextShadow() { return 0; } | 1682 static ShadowList* initialTextShadow() { return 0; } |
| 1683 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorInstant
; } |
| 1678 | 1684 |
| 1679 // The initial value is 'none' for grid tracks. | 1685 // The initial value is 'none' for grid tracks. |
| 1680 static Vector<GridTrackSize> initialGridDefinitionColumns() { return Vector<
GridTrackSize>(); } | 1686 static Vector<GridTrackSize> initialGridDefinitionColumns() { return Vector<
GridTrackSize>(); } |
| 1681 static Vector<GridTrackSize> initialGridDefinitionRows() { return Vector<Gri
dTrackSize>(); } | 1687 static Vector<GridTrackSize> initialGridDefinitionRows() { return Vector<Gri
dTrackSize>(); } |
| 1682 | 1688 |
| 1683 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } | 1689 static GridAutoFlow initialGridAutoFlow() { return AutoFlowNone; } |
| 1684 | 1690 |
| 1685 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } | 1691 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } |
| 1686 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } | 1692 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } |
| 1687 | 1693 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) | 1886 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) |
| 1881 { | 1887 { |
| 1882 ASSERT(pseudo > NOPSEUDO); | 1888 ASSERT(pseudo > NOPSEUDO); |
| 1883 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); | 1889 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); |
| 1884 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); | 1890 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); |
| 1885 } | 1891 } |
| 1886 | 1892 |
| 1887 } // namespace WebCore | 1893 } // namespace WebCore |
| 1888 | 1894 |
| 1889 #endif // RenderStyle_h | 1895 #endif // RenderStyle_h |
| OLD | NEW |