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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.h

Issue 963733002: [svg2] Make 'width' and 'height' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline some EX tests [Mac Win] 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 UNumber, 159 UNumber,
160 UPercent, 160 UPercent,
161 ULength, 161 ULength,
162 UAngle, 162 UAngle,
163 UTime, 163 UTime,
164 UFrequency, 164 UFrequency,
165 UResolution, 165 UResolution,
166 UOther 166 UOther
167 }; 167 };
168 static UnitCategory unitCategory(UnitType); 168 static UnitCategory unitCategory(UnitType);
169 static float clampToCSSLengthRange(double);
169 170
170 static void initUnitTable(); 171 static void initUnitTable();
171 172
172 static UnitType fromName(const String& unit); 173 static UnitType fromName(const String& unit);
173 174
174 bool isAngle() const 175 bool isAngle() const
175 { 176 {
176 return m_primitiveUnitType == CSS_DEG 177 return m_primitiveUnitType == CSS_DEG
177 || m_primitiveUnitType == CSS_RAD 178 || m_primitiveUnitType == CSS_RAD
178 || m_primitiveUnitType == CSS_GRAD 179 || m_primitiveUnitType == CSS_GRAD
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 }; 390 };
390 391
391 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 392 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
392 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; 393 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray;
393 394
394 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 395 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
395 396
396 } // namespace blink 397 } // namespace blink
397 398
398 #endif // CSSPrimitiveValue_h 399 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/pattern-excessive-malloc-expected.txt ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698