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

Side by Side Diff: Source/core/layout/style/LayoutStyle.h

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for style-change responsive-ness. Created 5 years, 9 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 | 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 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } 1360 Color fillPaintColor() const { return svgStyle().fillPaintColor(); }
1361 float fillOpacity() const { return svgStyle().fillOpacity(); } 1361 float fillOpacity() const { return svgStyle().fillOpacity(); }
1362 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } 1362 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); }
1363 1363
1364 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); } 1364 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); }
1365 Color strokePaintColor() const { return svgStyle().strokePaintColor(); } 1365 Color strokePaintColor() const { return svgStyle().strokePaintColor(); }
1366 float strokeOpacity() const { return svgStyle().strokeOpacity(); } 1366 float strokeOpacity() const { return svgStyle().strokeOpacity(); }
1367 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); } 1367 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); }
1368 SVGLength* strokeWidth() const { return svgStyle().strokeWidth(); } 1368 SVGLength* strokeWidth() const { return svgStyle().strokeWidth(); }
1369 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> w) { accessSVGStyle(). setStrokeWidth(w); } 1369 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> w) { accessSVGStyle(). setStrokeWidth(w); }
1370 SVGLengthList* strokeDashArray() const { return svgStyle().strokeDashArray() ; } 1370 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); }
1371 void setStrokeDashArray(PassRefPtrWillBeRawPtr<SVGLengthList> array) { acces sSVGStyle().setStrokeDashArray(array); } 1371 void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().s etStrokeDashArray(array); }
1372 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); } 1372 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); }
1373 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); } 1373 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); }
1374 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); } 1374 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); }
1375 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); } 1375 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); }
1376 1376
1377 void setX(Length x) { accessSVGStyle().setX(x); } 1377 void setX(Length x) { accessSVGStyle().setX(x); }
1378 void setY(Length y) { accessSVGStyle().setY(y); } 1378 void setY(Length y) { accessSVGStyle().setY(y); }
1379 void setRx(Length rx) { accessSVGStyle().setRx(rx); } 1379 void setRx(Length rx) { accessSVGStyle().setRx(rx); }
1380 void setRy(Length ry) { accessSVGStyle().setRy(ry); } 1380 void setRy(Length ry) { accessSVGStyle().setRy(ry); }
1381 1381
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 } 1858 }
1859 1859
1860 inline bool LayoutStyle::hasPseudoElementStyle() const 1860 inline bool LayoutStyle::hasPseudoElementStyle() const
1861 { 1861 {
1862 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1862 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1863 } 1863 }
1864 1864
1865 } // namespace blink 1865 } // namespace blink
1866 1866
1867 #endif // LayoutStyle_h 1867 #endif // LayoutStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698