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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSLengthValue.cpp

Issue 2097093002: [Typed OM] Rename cssString methods to cssText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformvalue
Patch Set: Update usage in csspaint logging for tests Created 4 years, 5 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/cssom/CSSLengthValue.h" 5 #include "core/css/cssom/CSSLengthValue.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/css/CSSPrimitiveValue.h" 8 #include "core/css/CSSPrimitiveValue.h"
9 #include "core/css/cssom/CSSCalcDictionary.h" 9 #include "core/css/cssom/CSSCalcDictionary.h"
10 #include "core/css/cssom/CSSCalcLength.h" 10 #include "core/css/cssom/CSSCalcLength.h"
11 #include "core/css/cssom/CSSSimpleLength.h" 11 #include "core/css/cssom/CSSSimpleLength.h"
12 #include "wtf/HashMap.h" 12 #include "wtf/HashMap.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 CSSPrimitiveValue::UnitType CSSLengthValue::unitFromName(const String& name) 16 CSSPrimitiveValue::UnitType CSSLengthValue::unitFromName(const String& name)
17 { 17 {
18 if (equalIgnoringASCIICase(name, "percent") || name == "%") 18 if (equalIgnoringASCIICase(name, "percent") || name == "%")
19 return CSSPrimitiveValue::UnitType::Percentage; 19 return CSSPrimitiveValue::UnitType::Percentage;
20 return CSSPrimitiveValue::stringToUnitType(name); 20 return CSSPrimitiveValue::stringToUnitType(name);
21 } 21 }
22 22
23 CSSLengthValue* CSSLengthValue::from(const String& cssString, ExceptionState& ex ceptionState) 23 CSSLengthValue* CSSLengthValue::from(const String& cssText, ExceptionState& exce ptionState)
24 { 24 {
25 // TODO: Implement 25 // TODO: Implement
26 return nullptr; 26 return nullptr;
27 } 27 }
28 28
29 CSSLengthValue* CSSLengthValue::from(double value, const String& type, Exception State&) 29 CSSLengthValue* CSSLengthValue::from(double value, const String& type, Exception State&)
30 { 30 {
31 return CSSSimpleLength::create(value, unitFromName(type)); 31 return CSSSimpleLength::create(value, unitFromName(type));
32 } 32 }
33 33
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return nullptr; 82 return nullptr;
83 } 83 }
84 84
85 CSSLengthValue* CSSLengthValue::divideInternal(double, ExceptionState&) 85 CSSLengthValue* CSSLengthValue::divideInternal(double, ExceptionState&)
86 { 86 {
87 NOTREACHED(); 87 NOTREACHED();
88 return nullptr; 88 return nullptr;
89 } 89 }
90 90
91 } // namespace blink 91 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSLengthValue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698