| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "platform/fonts/FontDescription.h" | 67 #include "platform/fonts/FontDescription.h" |
| 68 #include "platform/geometry/FloatRoundedRect.h" | 68 #include "platform/geometry/FloatRoundedRect.h" |
| 69 #include "platform/geometry/LayoutBoxExtent.h" | 69 #include "platform/geometry/LayoutBoxExtent.h" |
| 70 #include "platform/geometry/RoundedRect.h" | 70 #include "platform/geometry/RoundedRect.h" |
| 71 #include "platform/graphics/Color.h" | 71 #include "platform/graphics/Color.h" |
| 72 #include "platform/graphics/GraphicsTypes.h" | 72 #include "platform/graphics/GraphicsTypes.h" |
| 73 #include "platform/scroll/ScrollableArea.h" | 73 #include "platform/scroll/ScrollableArea.h" |
| 74 #include "platform/text/TextDirection.h" | 74 #include "platform/text/TextDirection.h" |
| 75 #include "platform/text/UnicodeBidi.h" | 75 #include "platform/text/UnicodeBidi.h" |
| 76 #include "platform/transforms/TransformOperations.h" | 76 #include "platform/transforms/TransformOperations.h" |
| 77 #include "public/platform/WebScrollBlocksOn.h" |
| 77 #include "wtf/Forward.h" | 78 #include "wtf/Forward.h" |
| 78 #include "wtf/OwnPtr.h" | 79 #include "wtf/OwnPtr.h" |
| 79 #include "wtf/RefCounted.h" | 80 #include "wtf/RefCounted.h" |
| 80 #include "wtf/StdLibExtras.h" | 81 #include "wtf/StdLibExtras.h" |
| 81 #include "wtf/Vector.h" | 82 #include "wtf/Vector.h" |
| 82 | 83 |
| 83 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } | 84 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u
) { return t == static_cast<T>(u); } |
| 84 | 85 |
| 85 #define SET_VAR(group, variable, value) \ | 86 #define SET_VAR(group, variable, value) \ |
| 86 if (!compareEqual(group->variable, value)) \ | 87 if (!compareEqual(group->variable, value)) \ |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 | 917 |
| 917 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit
edData->m_isolation); } | 918 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit
edData->m_isolation); } |
| 918 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation
= v; } | 919 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation
= v; } |
| 919 bool hasIsolation() const { return isolation() != IsolationAuto; } | 920 bool hasIsolation() const { return isolation() != IsolationAuto; } |
| 920 | 921 |
| 921 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 922 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
| 922 | 923 |
| 923 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 924 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 924 | 925 |
| 925 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } | 926 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } |
| 926 ScrollBlocksOn scrollBlocksOn() const { return static_cast<ScrollBlocksOn>(r
areNonInheritedData->m_scrollBlocksOn); } | 927 WebScrollBlocksOn scrollBlocksOn() const { return static_cast<WebScrollBlock
sOn>(rareNonInheritedData->m_scrollBlocksOn); } |
| 928 bool hasScrollBlocksOn() const { return scrollBlocksOn() != WebScrollBlocksO
nNone; } |
| 927 | 929 |
| 928 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 930 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
| 929 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 931 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
| 930 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 932 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
| 931 bool hasWillChangeCompositingHint() const; | 933 bool hasWillChangeCompositingHint() const; |
| 932 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | 934 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } |
| 933 | 935 |
| 934 // attribute setter methods | 936 // attribute setter methods |
| 935 | 937 |
| 936 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } | 938 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar
eNonInheritedData, m_runningTransformAnimationOnCompositor, b); } | 1334 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar
eNonInheritedData, m_runningTransformAnimationOnCompositor, b); } |
| 1333 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo
nInheritedData, m_runningFilterAnimationOnCompositor, b); } | 1335 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo
nInheritedData, m_runningFilterAnimationOnCompositor, b); } |
| 1334 | 1336 |
| 1335 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1337 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 1336 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1338 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
| 1337 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1339 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 1338 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1340 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1339 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1341 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
| 1340 | 1342 |
| 1341 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } | 1343 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } |
| 1342 void setScrollBlocksOn(ScrollBlocksOn b) { SET_VAR(rareNonInheritedData, m_s
crollBlocksOn, b); } | 1344 void setScrollBlocksOn(WebScrollBlocksOn b) { SET_VAR(rareNonInheritedData,
m_scrollBlocksOn, b); } |
| 1343 | 1345 |
| 1344 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } | 1346 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } |
| 1345 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } | 1347 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } |
| 1346 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } | 1348 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } |
| 1347 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } | 1349 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } |
| 1348 | 1350 |
| 1349 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } | 1351 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } |
| 1350 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } | 1352 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } |
| 1351 | 1353 |
| 1352 const SVGRenderStyle& svgStyle() const { return *m_svgStyle.get(); } | 1354 const SVGRenderStyle& svgStyle() const { return *m_svgStyle.get(); } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } | 1610 static ImageResolutionSource initialImageResolutionSource() { return ImageRe
solutionSpecified; } |
| 1609 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } | 1611 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } |
| 1610 static float initialImageResolution() { return 1; } | 1612 static float initialImageResolution() { return 1; } |
| 1611 static StyleImage* initialBorderImageSource() { return 0; } | 1613 static StyleImage* initialBorderImageSource() { return 0; } |
| 1612 static StyleImage* initialMaskBoxImageSource() { return 0; } | 1614 static StyleImage* initialMaskBoxImageSource() { return 0; } |
| 1613 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } | 1615 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } |
| 1614 static TouchAction initialTouchAction() { return TouchActionAuto; } | 1616 static TouchAction initialTouchAction() { return TouchActionAuto; } |
| 1615 static ShadowList* initialBoxShadow() { return 0; } | 1617 static ShadowList* initialBoxShadow() { return 0; } |
| 1616 static ShadowList* initialTextShadow() { return 0; } | 1618 static ShadowList* initialTextShadow() { return 0; } |
| 1617 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } | 1619 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } |
| 1618 static ScrollBlocksOn initialScrollBlocksOn() { return ScrollBlocksOnNone; } | 1620 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN
one; } |
| 1619 | 1621 |
| 1620 // The initial value is 'none' for grid tracks. | 1622 // The initial value is 'none' for grid tracks. |
| 1621 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); } | 1623 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); } |
| 1622 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); } | 1624 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); } |
| 1623 | 1625 |
| 1624 static GridAutoFlow initialGridAutoFlow() { return AutoFlowRow; } | 1626 static GridAutoFlow initialGridAutoFlow() { return AutoFlowRow; } |
| 1625 | 1627 |
| 1626 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } | 1628 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } |
| 1627 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } | 1629 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } |
| 1628 | 1630 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1856 inline bool RenderStyle::hasPseudoElementStyle() const | 1858 inline bool RenderStyle::hasPseudoElementStyle() const |
| 1857 { | 1859 { |
| 1858 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1860 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
| 1859 } | 1861 } |
| 1860 | 1862 |
| 1861 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1863 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1862 | 1864 |
| 1863 } // namespace blink | 1865 } // namespace blink |
| 1864 | 1866 |
| 1865 #endif // RenderStyle_h | 1867 #endif // RenderStyle_h |
| OLD | NEW |