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

Side by Side Diff: Source/core/layout/style/SVGLayoutStyleDefs.cpp

Issue 962763003: Use Length for the stroke-dashoffset property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make font-size explicit. 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org)
10 Copyright (C) 2002 Apple Computer, Inc. 10 Copyright (C) 2002 Apple Computer, Inc.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 , visitedLinkPaintColor(SVGLayoutStyle::initialStrokePaintColor()) 79 , visitedLinkPaintColor(SVGLayoutStyle::initialStrokePaintColor())
80 , visitedLinkPaintUri(SVGLayoutStyle::initialStrokePaintUri()) 80 , visitedLinkPaintUri(SVGLayoutStyle::initialStrokePaintUri())
81 { 81 {
82 } 82 }
83 83
84 StyleStrokeData::StyleStrokeData(const StyleStrokeData& other) 84 StyleStrokeData::StyleStrokeData(const StyleStrokeData& other)
85 : RefCounted<StyleStrokeData>() 85 : RefCounted<StyleStrokeData>()
86 , opacity(other.opacity) 86 , opacity(other.opacity)
87 , miterLimit(other.miterLimit) 87 , miterLimit(other.miterLimit)
88 , width(other.width->clone()) 88 , width(other.width->clone())
89 , dashOffset(other.dashOffset->clone()) 89 , dashOffset(other.dashOffset)
90 , dashArray(other.dashArray->clone()) 90 , dashArray(other.dashArray->clone())
91 , paintType(other.paintType) 91 , paintType(other.paintType)
92 , paintColor(other.paintColor) 92 , paintColor(other.paintColor)
93 , paintUri(other.paintUri) 93 , paintUri(other.paintUri)
94 , visitedLinkPaintType(other.visitedLinkPaintType) 94 , visitedLinkPaintType(other.visitedLinkPaintType)
95 , visitedLinkPaintColor(other.visitedLinkPaintColor) 95 , visitedLinkPaintColor(other.visitedLinkPaintColor)
96 , visitedLinkPaintUri(other.visitedLinkPaintUri) 96 , visitedLinkPaintUri(other.visitedLinkPaintUri)
97 { 97 {
98 } 98 }
99 99
100 bool StyleStrokeData::operator==(const StyleStrokeData& other) const 100 bool StyleStrokeData::operator==(const StyleStrokeData& other) const
101 { 101 {
102 return *width == *other.width 102 return *width == *other.width
103 && opacity == other.opacity 103 && opacity == other.opacity
104 && miterLimit == other.miterLimit 104 && miterLimit == other.miterLimit
105 && *dashOffset == *other.dashOffset 105 && dashOffset == other.dashOffset
106 && *dashArray == *other.dashArray 106 && *dashArray == *other.dashArray
107 && paintType == other.paintType 107 && paintType == other.paintType
108 && paintColor == other.paintColor 108 && paintColor == other.paintColor
109 && paintUri == other.paintUri 109 && paintUri == other.paintUri
110 && visitedLinkPaintType == other.visitedLinkPaintType 110 && visitedLinkPaintType == other.visitedLinkPaintType
111 && visitedLinkPaintColor == other.visitedLinkPaintColor 111 && visitedLinkPaintColor == other.visitedLinkPaintColor
112 && visitedLinkPaintUri == other.visitedLinkPaintUri; 112 && visitedLinkPaintUri == other.visitedLinkPaintUri;
113 } 113 }
114 114
115 StyleStopData::StyleStopData() 115 StyleStopData::StyleStopData()
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 bool StyleLayoutData::operator==(const StyleLayoutData& other) const 225 bool StyleLayoutData::operator==(const StyleLayoutData& other) const
226 { 226 {
227 return x == other.x 227 return x == other.x
228 && y == other.y 228 && y == other.y
229 && rx == other.rx 229 && rx == other.rx
230 && ry == other.ry; 230 && ry == other.ry;
231 } 231 }
232 232
233 } 233 }
OLDNEW
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/style/SVGLayoutStyleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698