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

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

Issue 1545713003: Add StylePath and use it to store 'd' in ComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015->2016; Remove unnecessary explicit. Created 4 years, 11 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 class BorderData; 108 class BorderData;
109 struct BorderEdge; 109 struct BorderEdge;
110 class CounterContent; 110 class CounterContent;
111 class Font; 111 class Font;
112 class FontMetrics; 112 class FontMetrics;
113 class RotateTransformOperation; 113 class RotateTransformOperation;
114 class ScaleTransformOperation; 114 class ScaleTransformOperation;
115 class ShadowList; 115 class ShadowList;
116 class StyleImage; 116 class StyleImage;
117 class StyleInheritedData; 117 class StyleInheritedData;
118 class StylePath;
118 class StyleResolver; 119 class StyleResolver;
119 class TransformationMatrix; 120 class TransformationMatrix;
120 class TranslateTransformOperation; 121 class TranslateTransformOperation;
121 122
122 class ContentData; 123 class ContentData;
123 124
124 typedef Vector<RefPtr<ComputedStyle>, 4> PseudoStyleCache; 125 typedef Vector<RefPtr<ComputedStyle>, 4> PseudoStyleCache;
125 126
126 class CORE_EXPORT ComputedStyle: public RefCounted<ComputedStyle> { 127 class CORE_EXPORT ComputedStyle: public RefCounted<ComputedStyle> {
127 friend class AnimatedStyleBuilder; // Used by Web Animations CSS. Sets the c olor styles 128 friend class AnimatedStyleBuilder; // Used by Web Animations CSS. Sets the c olor styles
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); } 1492 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); }
1492 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); } 1493 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); }
1493 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); } 1494 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); }
1494 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); } 1495 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); }
1495 void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().s etStrokeDashArray(array); } 1496 void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().s etStrokeDashArray(array); }
1496 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); } 1497 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); }
1497 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); } 1498 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); }
1498 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); } 1499 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); }
1499 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); } 1500 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); }
1500 1501
1501 void setD(PassRefPtrWillBeRawPtr<CSSPathValue> d) { accessSVGStyle().setD(d) ; } 1502 void setD(PassRefPtr<StylePath> d) { accessSVGStyle().setD(d); }
1502 void setCx(const Length& cx) { accessSVGStyle().setCx(cx); } 1503 void setCx(const Length& cx) { accessSVGStyle().setCx(cx); }
1503 void setCy(const Length& cy) { accessSVGStyle().setCy(cy); } 1504 void setCy(const Length& cy) { accessSVGStyle().setCy(cy); }
1504 void setX(const Length& x) { accessSVGStyle().setX(x); } 1505 void setX(const Length& x) { accessSVGStyle().setX(x); }
1505 void setY(const Length& y) { accessSVGStyle().setY(y); } 1506 void setY(const Length& y) { accessSVGStyle().setY(y); }
1506 void setR(const Length& r) { accessSVGStyle().setR(r); } 1507 void setR(const Length& r) { accessSVGStyle().setR(r); }
1507 void setRx(const Length& rx) { accessSVGStyle().setRx(rx); } 1508 void setRx(const Length& rx) { accessSVGStyle().setRx(rx); }
1508 void setRy(const Length& ry) { accessSVGStyle().setRy(ry); } 1509 void setRy(const Length& ry) { accessSVGStyle().setRy(ry); }
1509 1510
1510 float floodOpacity() const { return svgStyle().floodOpacity(); } 1511 float floodOpacity() const { return svgStyle().floodOpacity(); }
1511 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); } 1512 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); }
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 } 2008 }
2008 2009
2009 inline bool ComputedStyle::hasPseudoElementStyle() const 2010 inline bool ComputedStyle::hasPseudoElementStyle() const
2010 { 2011 {
2011 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2012 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2012 } 2013 }
2013 2014
2014 } // namespace blink 2015 } // namespace blink
2015 2016
2016 #endif // ComputedStyle_h 2017 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698