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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 } | 1651 } |
1652 | 1652 |
1653 bool borderObscuresBackground() const; | 1653 bool borderObscuresBackground() const; |
1654 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; | 1654 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; |
1655 | 1655 |
1656 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite
dData, m_hasAuthorBackground, authorBackground); } | 1656 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite
dData, m_hasAuthorBackground, authorBackground); } |
1657 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m
_hasAuthorBorder, authorBorder); } | 1657 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m
_hasAuthorBorder, authorBorder); } |
1658 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB
ackground; }; | 1658 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB
ackground; }; |
1659 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde
r; }; | 1659 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde
r; }; |
1660 | 1660 |
| 1661 void addPaintImage(StyleImage*); |
| 1662 |
1661 // Initial values for all the properties | 1663 // Initial values for all the properties |
1662 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara
te; } | 1664 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara
te; } |
1663 static EBorderStyle initialBorderStyle() { return BorderStyleNone; } | 1665 static EBorderStyle initialBorderStyle() { return BorderStyleNone; } |
1664 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff;
} | 1666 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff;
} |
1665 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1667 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
1666 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1668 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
1667 static ECaptionSide initialCaptionSide() { return CaptionSideTop; } | 1669 static ECaptionSide initialCaptionSide() { return CaptionSideTop; } |
1668 static EClear initialClear() { return ClearNone; } | 1670 static EClear initialClear() { return ClearNone; } |
1669 static LengthBox initialClip() { return LengthBox(); } | 1671 static LengthBox initialClip() { return LengthBox(); } |
1670 static Containment initialContain() { return ContainsNone; } | 1672 static Containment initialContain() { return ContainsNone; } |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 Color floodColor() const { return svgStyle().floodColor(); } | 1922 Color floodColor() const { return svgStyle().floodColor(); } |
1921 Color lightingColor() const { return svgStyle().lightingColor(); } | 1923 Color lightingColor() const { return svgStyle().lightingColor(); } |
1922 | 1924 |
1923 void addAppliedTextDecoration(const AppliedTextDecoration&); | 1925 void addAppliedTextDecoration(const AppliedTextDecoration&); |
1924 void applyMotionPathTransform(float originX, float originY, TransformationMa
trix&) const; | 1926 void applyMotionPathTransform(float originX, float originY, TransformationMa
trix&) const; |
1925 | 1927 |
1926 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con
st; | 1928 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con
st; |
1927 bool diffNeedsFullLayout(const ComputedStyle& other) const; | 1929 bool diffNeedsFullLayout(const ComputedStyle& other) const; |
1928 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const; | 1930 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const; |
1929 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; | 1931 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; |
| 1932 bool diffNeedsPaintInvalidationObjectForPaintImage(const StyleImage*, const
ComputedStyle& other) const; |
1930 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff
erence&) const; | 1933 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff
erence&) const; |
1931 | 1934 |
1932 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat
h) const; | 1935 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat
h) const; |
1933 static bool shadowListHasCurrentColor(const ShadowList*); | 1936 static bool shadowListHasCurrentColor(const ShadowList*); |
1934 }; | 1937 }; |
1935 | 1938 |
1936 // FIXME: Reduce/remove the dependency on zoom adjusted int values. | 1939 // FIXME: Reduce/remove the dependency on zoom adjusted int values. |
1937 // The float or LayoutUnit versions of layout values should be used. | 1940 // The float or LayoutUnit versions of layout values should be used. |
1938 inline int adjustForAbsoluteZoom(int value, float zoomFactor) | 1941 inline int adjustForAbsoluteZoom(int value, float zoomFactor) |
1939 { | 1942 { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2039 } | 2042 } |
2040 | 2043 |
2041 inline bool ComputedStyle::hasPseudoElementStyle() const | 2044 inline bool ComputedStyle::hasPseudoElementStyle() const |
2042 { | 2045 { |
2043 return noninherited_flags.pseudoBits & ElementPseudoIdMask; | 2046 return noninherited_flags.pseudoBits & ElementPseudoIdMask; |
2044 } | 2047 } |
2045 | 2048 |
2046 } // namespace blink | 2049 } // namespace blink |
2047 | 2050 |
2048 #endif // ComputedStyle_h | 2051 #endif // ComputedStyle_h |
OLD | NEW |