Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 } 1649 }
1650 1650
1651 bool borderObscuresBackground() const; 1651 bool borderObscuresBackground() const;
1652 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru e, bool includeLogicalRightEdge = true) const; 1652 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru e, bool includeLogicalRightEdge = true) const;
1653 1653
1654 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite dData, m_hasAuthorBackground, authorBackground); } 1654 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite dData, m_hasAuthorBackground, authorBackground); }
1655 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m _hasAuthorBorder, authorBorder); } 1655 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m _hasAuthorBorder, authorBorder); }
1656 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB ackground; }; 1656 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB ackground; };
1657 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde r; }; 1657 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde r; };
1658 1658
1659 void addPaintImage(StyleImage* image) { rareNonInheritedData.access()->m_pai ntImages.append(image); }
1660 const Vector<Persistent<StyleImage>>& paintImages() const { return rareNonIn heritedData->m_paintImages; }
1661
1659 // Initial values for all the properties 1662 // Initial values for all the properties
1660 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara te; } 1663 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara te; }
1661 static EBorderStyle initialBorderStyle() { return BorderStyleNone; } 1664 static EBorderStyle initialBorderStyle() { return BorderStyleNone; }
1662 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff; } 1665 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff; }
1663 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } 1666 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); }
1664 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); } 1667 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); }
1665 static ECaptionSide initialCaptionSide() { return CaptionSideTop; } 1668 static ECaptionSide initialCaptionSide() { return CaptionSideTop; }
1666 static EClear initialClear() { return ClearNone; } 1669 static EClear initialClear() { return ClearNone; }
1667 static LengthBox initialClip() { return LengthBox(); } 1670 static LengthBox initialClip() { return LengthBox(); }
1668 static Containment initialContain() { return ContainsNone; } 1671 static Containment initialContain() { return ContainsNone; }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 Color floodColor() const { return svgStyle().floodColor(); } 1921 Color floodColor() const { return svgStyle().floodColor(); }
1919 Color lightingColor() const { return svgStyle().lightingColor(); } 1922 Color lightingColor() const { return svgStyle().lightingColor(); }
1920 1923
1921 void addAppliedTextDecoration(const AppliedTextDecoration&); 1924 void addAppliedTextDecoration(const AppliedTextDecoration&);
1922 void applyMotionPathTransform(float originX, float originY, TransformationMa trix&) const; 1925 void applyMotionPathTransform(float originX, float originY, TransformationMa trix&) const;
1923 1926
1924 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st; 1927 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st;
1925 bool diffNeedsFullLayout(const ComputedStyle& other) const; 1928 bool diffNeedsFullLayout(const ComputedStyle& other) const;
1926 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const; 1929 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const;
1927 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; 1930 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const;
1931 bool diffNeedsPaintInvalidationObjectForPaintImage(const StyleImage*, const ComputedStyle& other) const;
1928 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const; 1932 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const;
1929 1933
1930 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat h) const; 1934 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat h) const;
1931 static bool shadowListHasCurrentColor(const ShadowList*); 1935 static bool shadowListHasCurrentColor(const ShadowList*);
1932 }; 1936 };
1933 1937
1934 // FIXME: Reduce/remove the dependency on zoom adjusted int values. 1938 // FIXME: Reduce/remove the dependency on zoom adjusted int values.
1935 // The float or LayoutUnit versions of layout values should be used. 1939 // The float or LayoutUnit versions of layout values should be used.
1936 inline int adjustForAbsoluteZoom(int value, float zoomFactor) 1940 inline int adjustForAbsoluteZoom(int value, float zoomFactor)
1937 { 1941 {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2041 }
2038 2042
2039 inline bool ComputedStyle::hasPseudoElementStyle() const 2043 inline bool ComputedStyle::hasPseudoElementStyle() const
2040 { 2044 {
2041 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2045 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2042 } 2046 }
2043 2047
2044 } // namespace blink 2048 } // namespace blink
2045 2049
2046 #endif // ComputedStyle_h 2050 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698