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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } 1091 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); }
1092 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage() ); } 1092 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage() ); }
1093 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia lBorderRadius()); } 1093 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia lBorderRadius()); }
1094 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init ialBorderRadius()); } 1094 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init ialBorderRadius()); }
1095 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft, initialBorderRadius()); } 1095 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft, initialBorderRadius()); }
1096 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight , initialBorderRadius()); } 1096 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight , initialBorderRadius()); }
1097 1097
1098 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color , v); } 1098 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color , v); }
1099 1099
1100 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im age, b); } 1100 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im age, b); }
1101 void setBorderImageSource(PassRefPtrWillBeRawPtr<StyleImage>); 1101 void setBorderImageSource(RawPtr<StyleImage>);
1102 void setBorderImageSlices(const LengthBox&); 1102 void setBorderImageSlices(const LengthBox&);
1103 void setBorderImageSlicesFill(bool); 1103 void setBorderImageSlicesFill(bool);
1104 void setBorderImageWidth(const BorderImageLengthBox&); 1104 void setBorderImageWidth(const BorderImageLengthBox&);
1105 void setBorderImageOutset(const BorderImageLengthBox&); 1105 void setBorderImageOutset(const BorderImageLengthBox&);
1106 1106
1107 void setBorderTopLeftRadius(const LengthSize& s) { SET_VAR(surround, border. m_topLeft, s); } 1107 void setBorderTopLeftRadius(const LengthSize& s) { SET_VAR(surround, border. m_topLeft, s); }
1108 void setBorderTopRightRadius(const LengthSize& s) { SET_VAR(surround, border .m_topRight, s); } 1108 void setBorderTopRightRadius(const LengthSize& s) { SET_VAR(surround, border .m_topRight, s); }
1109 void setBorderBottomLeftRadius(const LengthSize& s) { SET_VAR(surround, bord er.m_bottomLeft, s); } 1109 void setBorderBottomLeftRadius(const LengthSize& s) { SET_VAR(surround, bord er.m_bottomLeft, s); }
1110 void setBorderBottomRightRadius(const LengthSize& s) { SET_VAR(surround, bor der.m_bottomRight, s); } 1110 void setBorderBottomRightRadius(const LengthSize& s) { SET_VAR(surround, bor der.m_bottomRight, s); }
1111 1111
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 1215
1216 void adjustMaskLayers() 1216 void adjustMaskLayers()
1217 { 1217 {
1218 if (maskLayers().next()) { 1218 if (maskLayers().next()) {
1219 accessMaskLayers().cullEmptyLayers(); 1219 accessMaskLayers().cullEmptyLayers();
1220 accessMaskLayers().fillUnsetProperties(); 1220 accessMaskLayers().fillUnsetProperties();
1221 } 1221 }
1222 } 1222 }
1223 1223
1224 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData , m_maskBoxImage, b); } 1224 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData , m_maskBoxImage, b); }
1225 void setMaskBoxImageSource(PassRefPtrWillBeRawPtr<StyleImage> v) { rareNonIn heritedData.access()->m_maskBoxImage.setImage(v); } 1225 void setMaskBoxImageSource(RawPtr<StyleImage> v) { rareNonInheritedData.acce ss()->m_maskBoxImage.setImage(v); }
1226 void setMaskBoxImageSlices(const LengthBox& slices) 1226 void setMaskBoxImageSlices(const LengthBox& slices)
1227 { 1227 {
1228 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); 1228 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices);
1229 } 1229 }
1230 void setMaskBoxImageSlicesFill(bool fill) 1230 void setMaskBoxImageSlicesFill(bool fill)
1231 { 1231 {
1232 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); 1232 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill);
1233 } 1233 }
1234 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) 1234 void setMaskBoxImageWidth(const BorderImageLengthBox& slices)
1235 { 1235 {
1236 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); 1236 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices);
1237 } 1237 }
1238 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) 1238 void setMaskBoxImageOutset(const BorderImageLengthBox& outset)
1239 { 1239 {
1240 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); 1240 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset);
1241 } 1241 }
1242 1242
1243 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c ollapse = collapse; } 1243 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c ollapse = collapse; }
1244 void setHorizontalBorderSpacing(short); 1244 void setHorizontalBorderSpacing(short);
1245 void setVerticalBorderSpacing(short); 1245 void setVerticalBorderSpacing(short);
1246 void setEmptyCells(EEmptyCells v) { inherited_flags._empty_cells = v; } 1246 void setEmptyCells(EEmptyCells v) { inherited_flags._empty_cells = v; }
1247 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } 1247 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; }
1248 1248
1249 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type = v; } 1249 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type = v; }
1250 void setListStyleImage(PassRefPtrWillBeRawPtr<StyleImage>); 1250 void setListStyleImage(RawPtr<StyleImage>);
1251 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl e_position = v; } 1251 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl e_position = v; }
1252 1252
1253 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); } 1253 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); }
1254 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v ); } 1254 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v ); }
1255 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); } 1255 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); }
1256 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v); } 1256 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v); }
1257 void setMarginStart(const Length&); 1257 void setMarginStart(const Length&);
1258 void setMarginEnd(const Length&); 1258 void setMarginEnd(const Length&);
1259 1259
1260 void resetPadding() { SET_VAR(surround, padding, LengthBox(Fixed)); } 1260 void resetPadding() { SET_VAR(surround, padding, LengthBox(Fixed)); }
1261 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } 1261 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); }
1262 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); } 1262 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); }
1263 void setPaddingBottom(const Length& v) { SET_VAR(surround, padding.m_bottom, v); } 1263 void setPaddingBottom(const Length& v) { SET_VAR(surround, padding.m_bottom, v); }
1264 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v); } 1264 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v); }
1265 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v ); } 1265 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v ); }
1266 1266
1267 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } 1267 void setCursor(ECursor c) { inherited_flags._cursor_style = c; }
1268 void addCursor(PassRefPtrWillBeRawPtr<StyleImage>, bool hotSpotSpecified, co nst IntPoint& hotSpot = IntPoint()); 1268 void addCursor(RawPtr<StyleImage>, bool hotSpotSpecified, const IntPoint& ho tSpot = IntPoint());
1269 void setCursorList(PassRefPtrWillBeRawPtr<CursorList>); 1269 void setCursorList(RawPtr<CursorList>);
1270 void clearCursorList(); 1270 void clearCursorList();
1271 1271
1272 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i nsideLink; } 1272 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i nsideLink; }
1273 void setIsLink(bool b) { noninherited_flags.isLink = b; } 1273 void setIsLink(bool b) { noninherited_flags.isLink = b; }
1274 1274
1275 PrintColorAdjust getPrintColorAdjust() const { return static_cast<PrintColor Adjust>(inherited_flags.m_printColorAdjust); } 1275 PrintColorAdjust getPrintColorAdjust() const { return static_cast<PrintColor Adjust>(inherited_flags.m_printColorAdjust); }
1276 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo lorAdjust = value; } 1276 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo lorAdjust = value; }
1277 1277
1278 // A stacking context is painted atomically and defines a stacking order, wh ereas 1278 // A stacking context is painted atomically and defines a stacking order, wh ereas
1279 // a containing stacking context defines in which order the stacking context s 1279 // a containing stacking context defines in which order the stacking context s
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 1544
1545 EBaselineShift baselineShift() const { return svgStyle().baselineShift(); } 1545 EBaselineShift baselineShift() const { return svgStyle().baselineShift(); }
1546 const Length& baselineShiftValue() const { return svgStyle().baselineShiftVa lue(); } 1546 const Length& baselineShiftValue() const { return svgStyle().baselineShiftVa lue(); }
1547 void setBaselineShiftValue(const Length& value) 1547 void setBaselineShiftValue(const Length& value)
1548 { 1548 {
1549 SVGComputedStyle& svgStyle = accessSVGStyle(); 1549 SVGComputedStyle& svgStyle = accessSVGStyle();
1550 svgStyle.setBaselineShift(BS_LENGTH); 1550 svgStyle.setBaselineShift(BS_LENGTH);
1551 svgStyle.setBaselineShiftValue(value); 1551 svgStyle.setBaselineShiftValue(value);
1552 } 1552 }
1553 1553
1554 void setShapeOutside(PassRefPtrWillBeRawPtr<ShapeValue> value) 1554 void setShapeOutside(RawPtr<ShapeValue> value)
1555 { 1555 {
1556 if (rareNonInheritedData->m_shapeOutside == value) 1556 if (rareNonInheritedData->m_shapeOutside == value)
1557 return; 1557 return;
1558 rareNonInheritedData.access()->m_shapeOutside = value; 1558 rareNonInheritedData.access()->m_shapeOutside = value;
1559 } 1559 }
1560 ShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutsi de.get(); } 1560 ShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutsi de.get(); }
1561 1561
1562 static ShapeValue* initialShapeOutside() { return 0; } 1562 static ShapeValue* initialShapeOutside() { return 0; }
1563 1563
1564 void setClipPath(PassRefPtr<ClipPathOperation> operation) 1564 void setClipPath(PassRefPtr<ClipPathOperation> operation)
(...skipping 15 matching lines...) Expand all
1580 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0 , 1); 1580 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0 , 1);
1581 SET_VAR(rareNonInheritedData, m_shapeImageThreshold, clampedShapeImageTh reshold); 1581 SET_VAR(rareNonInheritedData, m_shapeImageThreshold, clampedShapeImageTh reshold);
1582 } 1582 }
1583 static float initialShapeImageThreshold() { return 0; } 1583 static float initialShapeImageThreshold() { return 0; }
1584 1584
1585 bool hasContent() const { return contentData(); } 1585 bool hasContent() const { return contentData(); }
1586 ContentData* contentData() const { return rareNonInheritedData->m_content.ge t(); } 1586 ContentData* contentData() const { return rareNonInheritedData->m_content.ge t(); }
1587 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c onst_cast<ComputedStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*co nst_cast<ComputedStyle*>(otherStyle)->rareNonInheritedData); } 1587 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c onst_cast<ComputedStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*co nst_cast<ComputedStyle*>(otherStyle)->rareNonInheritedData); }
1588 void clearContent(); 1588 void clearContent();
1589 void setContent(const String&, bool add = false); 1589 void setContent(const String&, bool add = false);
1590 void setContent(PassRefPtrWillBeRawPtr<StyleImage>, bool add = false); 1590 void setContent(RawPtr<StyleImage>, bool add = false);
1591 void setContent(PassOwnPtr<CounterContent>, bool add = false); 1591 void setContent(PassOwnPtr<CounterContent>, bool add = false);
1592 void setContent(QuoteType, bool add = false); 1592 void setContent(QuoteType, bool add = false);
1593 1593
1594 const CounterDirectiveMap* counterDirectives() const; 1594 const CounterDirectiveMap* counterDirectives() const;
1595 CounterDirectiveMap& accessCounterDirectives(); 1595 CounterDirectiveMap& accessCounterDirectives();
1596 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const; 1596 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const;
1597 void clearIncrementDirectives(); 1597 void clearIncrementDirectives();
1598 void clearResetDirectives(); 1598 void clearResetDirectives();
1599 1599
1600 QuotesData* quotes() const { return rareInheritedData->quotes.get(); } 1600 QuotesData* quotes() const { return rareInheritedData->quotes.get(); }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi tedLinkTextFillColor(); } 1910 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi tedLinkTextFillColor(); }
1911 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi sitedLinkTextStrokeColor(); } 1911 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi sitedLinkTextStrokeColor(); }
1912 1912
1913 StyleColor decorationColorIncludingFallback(bool visitedLink) const; 1913 StyleColor decorationColorIncludingFallback(bool visitedLink) const;
1914 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; 1914 Color colorIncludingFallback(int colorProperty, bool visitedLink) const;
1915 1915
1916 Color stopColor() const { return svgStyle().stopColor(); } 1916 Color stopColor() const { return svgStyle().stopColor(); }
1917 Color floodColor() const { return svgStyle().floodColor(); } 1917 Color floodColor() const { return svgStyle().floodColor(); }
1918 Color lightingColor() const { return svgStyle().lightingColor(); } 1918 Color lightingColor() const { return svgStyle().lightingColor(); }
1919 1919
1920 void appendContent(PassOwnPtrWillBeRawPtr<ContentData>); 1920 void appendContent(RawPtr<ContentData>);
1921 void addAppliedTextDecoration(const AppliedTextDecoration&); 1921 void addAppliedTextDecoration(const AppliedTextDecoration&);
1922 void applyMotionPathTransform(float originX, float originY, TransformationMa trix&) const; 1922 void applyMotionPathTransform(float originX, float originY, TransformationMa trix&) const;
1923 1923
1924 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st; 1924 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st;
1925 bool diffNeedsFullLayout(const ComputedStyle& other) const; 1925 bool diffNeedsFullLayout(const ComputedStyle& other) const;
1926 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const; 1926 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const;
1927 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; 1927 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const;
1928 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const; 1928 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const;
1929 1929
1930 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat h) const; 1930 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat h) const;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2037 }
2038 2038
2039 inline bool ComputedStyle::hasPseudoElementStyle() const 2039 inline bool ComputedStyle::hasPseudoElementStyle() const
2040 { 2040 {
2041 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2041 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2042 } 2042 }
2043 2043
2044 } // namespace blink 2044 } // namespace blink
2045 2045
2046 #endif // ComputedStyle_h 2046 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698