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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | Annotate | Revision Log
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 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); } 1412 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); }
1413 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } 1413 Color fillPaintColor() const { return svgStyle().fillPaintColor(); }
1414 float fillOpacity() const { return svgStyle().fillOpacity(); } 1414 float fillOpacity() const { return svgStyle().fillOpacity(); }
1415 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } 1415 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); }
1416 1416
1417 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); } 1417 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); }
1418 Color strokePaintColor() const { return svgStyle().strokePaintColor(); } 1418 Color strokePaintColor() const { return svgStyle().strokePaintColor(); }
1419 float strokeOpacity() const { return svgStyle().strokeOpacity(); } 1419 float strokeOpacity() const { return svgStyle().strokeOpacity(); }
1420 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); } 1420 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); }
1421 SVGLength* strokeWidth() const { return svgStyle().strokeWidth(); } 1421 SVGLength* strokeWidth() const { return svgStyle().strokeWidth(); }
1422 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle().setStrokeWid th(w); } 1422 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> w) { accessSVGStyle(). setStrokeWidth(w); }
1423 SVGLengthList* strokeDashArray() const { return svgStyle().strokeDashArray() ; } 1423 SVGLengthList* strokeDashArray() const { return svgStyle().strokeDashArray() ; }
1424 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle(). setStrokeDashArray(array); } 1424 void setStrokeDashArray(PassRefPtrWillBeRawPtr<SVGLengthList> array) { acces sSVGStyle().setStrokeDashArray(array); }
1425 SVGLength* strokeDashOffset() const { return svgStyle().strokeDashOffset(); } 1425 SVGLength* strokeDashOffset() const { return svgStyle().strokeDashOffset(); }
1426 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle().setStro keDashOffset(d); } 1426 void setStrokeDashOffset(PassRefPtrWillBeRawPtr<SVGLength> d) { accessSVGSty le().setStrokeDashOffset(d); }
1427 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); } 1427 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); }
1428 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); } 1428 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); }
1429 1429
1430 float floodOpacity() const { return svgStyle().floodOpacity(); } 1430 float floodOpacity() const { return svgStyle().floodOpacity(); }
1431 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); } 1431 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); }
1432 1432
1433 float stopOpacity() const { return svgStyle().stopOpacity(); } 1433 float stopOpacity() const { return svgStyle().stopOpacity(); }
1434 void setStopOpacity(float f) { accessSVGStyle().setStopOpacity(f); } 1434 void setStopOpacity(float f) { accessSVGStyle().setStopOpacity(f); }
1435 1435
1436 void setStopColor(const Color& c) { accessSVGStyle().setStopColor(c); } 1436 void setStopColor(const Color& c) { accessSVGStyle().setStopColor(c); }
1437 void setFloodColor(const Color& c) { accessSVGStyle().setFloodColor(c); } 1437 void setFloodColor(const Color& c) { accessSVGStyle().setFloodColor(c); }
1438 void setLightingColor(const Color& c) { accessSVGStyle().setLightingColor(c) ; } 1438 void setLightingColor(const Color& c) { accessSVGStyle().setLightingColor(c) ; }
1439 1439
1440 SVGLength* baselineShiftValue() const { return svgStyle().baselineShiftValue (); } 1440 SVGLength* baselineShiftValue() const { return svgStyle().baselineShiftValue (); }
1441 void setBaselineShiftValue(PassRefPtr<SVGLength> s) { accessSVGStyle().setBa selineShiftValue(s); } 1441 void setBaselineShiftValue(PassRefPtrWillBeRawPtr<SVGLength> s) { accessSVGS tyle().setBaselineShiftValue(s); }
1442 1442
1443 void setShapeOutside(PassRefPtr<ShapeValue> value) 1443 void setShapeOutside(PassRefPtr<ShapeValue> value)
1444 { 1444 {
1445 if (rareNonInheritedData->m_shapeOutside == value) 1445 if (rareNonInheritedData->m_shapeOutside == value)
1446 return; 1446 return;
1447 rareNonInheritedData.access()->m_shapeOutside = value; 1447 rareNonInheritedData.access()->m_shapeOutside = value;
1448 } 1448 }
1449 ShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutsi de.get(); } 1449 ShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutsi de.get(); }
1450 1450
1451 static ShapeValue* initialShapeOutside() { return 0; } 1451 static ShapeValue* initialShapeOutside() { return 0; }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } 1705 static WrapFlow initialWrapFlow() { return WrapFlowAuto; }
1706 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } 1706 static WrapThrough initialWrapThrough() { return WrapThroughWrap; }
1707 1707
1708 static QuotesData* initialQuotes() { return 0; } 1708 static QuotesData* initialQuotes() { return 0; }
1709 1709
1710 // Keep these at the end. 1710 // Keep these at the end.
1711 // FIXME: Why? Seems these should all be one big sorted list. 1711 // FIXME: Why? Seems these should all be one big sorted list.
1712 static LineClampValue initialLineClamp() { return LineClampValue(); } 1712 static LineClampValue initialLineClamp() { return LineClampValue(); }
1713 static ETextSecurity initialTextSecurity() { return TSNONE; } 1713 static ETextSecurity initialTextSecurity() { return TSNONE; }
1714 static Color initialTapHighlightColor(); 1714 static Color initialTapHighlightColor();
1715 #if ENABLE(OILPAN)
1716 static const FilterOperations& initialFilter();
1717 #else
1715 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO perations, ops, ()); return ops; } 1718 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO perations, ops, ()); return ops; }
1719 #endif
1716 static WebBlendMode initialBlendMode() { return WebBlendModeNormal; } 1720 static WebBlendMode initialBlendMode() { return WebBlendModeNormal; }
1717 static EIsolation initialIsolation() { return IsolationAuto; } 1721 static EIsolation initialIsolation() { return IsolationAuto; }
1718 private: 1722 private:
1719 void setVisitedLinkColor(const Color&); 1723 void setVisitedLinkColor(const Color&);
1720 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh eritedData, m_visitedLinkBackgroundColor, v); } 1724 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh eritedData, m_visitedLinkBackgroundColor, v); }
1721 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh eritedData, m_visitedLinkBorderLeftColor, v); } 1725 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh eritedData, m_visitedLinkBorderLeftColor, v); }
1722 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn heritedData, m_visitedLinkBorderRightColor, v); } 1726 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn heritedData, m_visitedLinkBorderRightColor, v); }
1723 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI nheritedData, m_visitedLinkBorderBottomColor, v); } 1727 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI nheritedData, m_visitedLinkBorderBottomColor, v); }
1724 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe ritedData, m_visitedLinkBorderTopColor, v); } 1728 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe ritedData, m_visitedLinkBorderTopColor, v); }
1725 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri tedData, m_visitedLinkOutlineColor, v); } 1729 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri tedData, m_visitedLinkOutlineColor, v); }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 inline bool RenderStyle::hasPseudoElementStyle() const 1915 inline bool RenderStyle::hasPseudoElementStyle() const
1912 { 1916 {
1913 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1917 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1914 } 1918 }
1915 1919
1916 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1920 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1917 1921
1918 } // namespace blink 1922 } // namespace blink
1919 1923
1920 #endif // RenderStyle_h 1924 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerFilterInfo.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698