| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "core/style/StyleFilterData.h" | 48 #include "core/style/StyleFilterData.h" |
| 49 #include "core/style/StyleFlexibleBoxData.h" | 49 #include "core/style/StyleFlexibleBoxData.h" |
| 50 #include "core/style/StyleGridData.h" | 50 #include "core/style/StyleGridData.h" |
| 51 #include "core/style/StyleGridItemData.h" | 51 #include "core/style/StyleGridItemData.h" |
| 52 #include "core/style/StyleInheritedData.h" | 52 #include "core/style/StyleInheritedData.h" |
| 53 #include "core/style/StyleMotionPath.h" | 53 #include "core/style/StyleMotionPath.h" |
| 54 #include "core/style/StyleMultiColData.h" | 54 #include "core/style/StyleMultiColData.h" |
| 55 #include "core/style/StyleRareInheritedData.h" | 55 #include "core/style/StyleRareInheritedData.h" |
| 56 #include "core/style/StyleRareNonInheritedData.h" | 56 #include "core/style/StyleRareNonInheritedData.h" |
| 57 #include "core/style/StyleReflection.h" | 57 #include "core/style/StyleReflection.h" |
| 58 #include "core/style/StyleScrollSnapData.h" |
| 58 #include "core/style/StyleSelfAlignmentData.h" | 59 #include "core/style/StyleSelfAlignmentData.h" |
| 59 #include "core/style/StyleSurroundData.h" | 60 #include "core/style/StyleSurroundData.h" |
| 60 #include "core/style/StyleTransformData.h" | 61 #include "core/style/StyleTransformData.h" |
| 61 #include "core/style/StyleVisualData.h" | 62 #include "core/style/StyleVisualData.h" |
| 62 #include "core/style/StyleWillChangeData.h" | 63 #include "core/style/StyleWillChangeData.h" |
| 63 #include "core/style/TransformOrigin.h" | 64 #include "core/style/TransformOrigin.h" |
| 64 #include "platform/Length.h" | 65 #include "platform/Length.h" |
| 65 #include "platform/LengthBox.h" | 66 #include "platform/LengthBox.h" |
| 66 #include "platform/LengthPoint.h" | 67 #include "platform/LengthPoint.h" |
| 67 #include "platform/LengthSize.h" | 68 #include "platform/LengthSize.h" |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 bool hasIsolation() const { return isolation() != IsolationAuto; } | 941 bool hasIsolation() const { return isolation() != IsolationAuto; } |
| 941 | 942 |
| 942 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 943 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
| 943 | 944 |
| 944 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 945 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 945 | 946 |
| 946 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } | 947 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } |
| 947 WebScrollBlocksOn scrollBlocksOn() const { return static_cast<WebScrollBlock
sOn>(rareNonInheritedData->m_scrollBlocksOn); } | 948 WebScrollBlocksOn scrollBlocksOn() const { return static_cast<WebScrollBlock
sOn>(rareNonInheritedData->m_scrollBlocksOn); } |
| 948 bool hasScrollBlocksOn() const { return scrollBlocksOn() != WebScrollBlocksO
nNone; } | 949 bool hasScrollBlocksOn() const { return scrollBlocksOn() != WebScrollBlocksO
nNone; } |
| 949 | 950 |
| 951 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r
areNonInheritedData->m_scrollSnapType); } |
| 952 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_
scrollSnap->m_xPoints; } |
| 953 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_
scrollSnap->m_yPoints; } |
| 954 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa
ta->m_scrollSnap->m_coordinates; } |
| 955 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s
crollSnap->m_destination; } |
| 956 |
| 950 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 957 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
| 951 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 958 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
| 952 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 959 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
| 953 bool hasWillChangeCompositingHint() const; | 960 bool hasWillChangeCompositingHint() const; |
| 954 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | 961 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } |
| 955 | 962 |
| 956 // attribute setter methods | 963 // attribute setter methods |
| 957 | 964 |
| 958 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } | 965 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } |
| 959 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } | 966 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 | 1375 |
| 1369 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1376 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 1370 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1377 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
| 1371 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1378 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 1372 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1379 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1373 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1380 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
| 1374 | 1381 |
| 1375 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } | 1382 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } |
| 1376 void setScrollBlocksOn(WebScrollBlocksOn b) { SET_VAR(rareNonInheritedData,
m_scrollBlocksOn, b); } | 1383 void setScrollBlocksOn(WebScrollBlocksOn b) { SET_VAR(rareNonInheritedData,
m_scrollBlocksOn, b); } |
| 1377 | 1384 |
| 1385 void setScrollSnapType(ScrollSnapType b) { SET_VAR(rareNonInheritedData, m_s
crollSnapType, b); } |
| 1386 void setScrollSnapPointsX(const ScrollSnapPoints& b) { SET_VAR(rareNonInheri
tedData.access()->m_scrollSnap, m_xPoints, b); } |
| 1387 void setScrollSnapPointsY(const ScrollSnapPoints& b) { SET_VAR(rareNonInheri
tedData.access()->m_scrollSnap, m_yPoints, b); } |
| 1388 void setScrollSnapDestination(const LengthPoint& b) { SET_VAR(rareNonInherit
edData.access()->m_scrollSnap, m_destination, b); } |
| 1389 void setScrollSnapCoordinate(const Vector<LengthPoint>& b) { SET_VAR(rareNon
InheritedData.access()->m_scrollSnap, m_coordinates, b); } |
| 1390 |
| 1378 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); } |
| 1379 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); } |
| 1380 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); } |
| 1381 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } | 1394 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } |
| 1382 | 1395 |
| 1383 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } | 1396 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } |
| 1384 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } | 1397 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } |
| 1385 | 1398 |
| 1386 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } | 1399 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } |
| 1387 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } | 1400 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } | 1658 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu
tionNoSnap; } |
| 1646 static float initialImageResolution() { return 1; } | 1659 static float initialImageResolution() { return 1; } |
| 1647 static StyleImage* initialBorderImageSource() { return 0; } | 1660 static StyleImage* initialBorderImageSource() { return 0; } |
| 1648 static StyleImage* initialMaskBoxImageSource() { return 0; } | 1661 static StyleImage* initialMaskBoxImageSource() { return 0; } |
| 1649 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } | 1662 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } |
| 1650 static TouchAction initialTouchAction() { return TouchActionAuto; } | 1663 static TouchAction initialTouchAction() { return TouchActionAuto; } |
| 1651 static ShadowList* initialBoxShadow() { return 0; } | 1664 static ShadowList* initialBoxShadow() { return 0; } |
| 1652 static ShadowList* initialTextShadow() { return 0; } | 1665 static ShadowList* initialTextShadow() { return 0; } |
| 1653 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } | 1666 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } |
| 1654 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN
one; } | 1667 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN
one; } |
| 1668 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; } |
| 1669 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints
(); } |
| 1670 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints
(); } |
| 1671 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt
h(0, Fixed), Length(0, Fixed)); } |
| 1672 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len
gthPoint>(); } |
| 1655 | 1673 |
| 1656 // The initial value is 'none' for grid tracks. | 1674 // The initial value is 'none' for grid tracks. |
| 1657 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); } | 1675 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); } |
| 1658 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); } | 1676 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); } |
| 1659 | 1677 |
| 1660 static GridAutoFlow initialGridAutoFlow() { return AutoFlowRow; } | 1678 static GridAutoFlow initialGridAutoFlow() { return AutoFlowRow; } |
| 1661 | 1679 |
| 1662 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } | 1680 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } |
| 1663 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } | 1681 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } |
| 1664 | 1682 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 } | 1899 } |
| 1882 | 1900 |
| 1883 inline bool ComputedStyle::hasPseudoElementStyle() const | 1901 inline bool ComputedStyle::hasPseudoElementStyle() const |
| 1884 { | 1902 { |
| 1885 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1903 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
| 1886 } | 1904 } |
| 1887 | 1905 |
| 1888 } // namespace blink | 1906 } // namespace blink |
| 1889 | 1907 |
| 1890 #endif // ComputedStyle_h | 1908 #endif // ComputedStyle_h |
| OLD | NEW |