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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/LengthValue.h

Issue 1642473002: Revert "Update StyleValue.cssString() to use existing methods instead of rolling our… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure it compiles Created 4 years, 10 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 #ifndef LengthValue_h 5 #ifndef LengthValue_h
6 #define LengthValue_h 6 #define LengthValue_h
7 7
8 #include "core/css/cssom/StyleValue.h" 8 #include "core/css/cssom/StyleValue.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static LengthValue* parse(const String& cssString, ExceptionState&); 43 static LengthValue* parse(const String& cssString, ExceptionState&);
44 static LengthValue* fromValue(double value, const String& typeStr, Exception State&); 44 static LengthValue* fromValue(double value, const String& typeStr, Exception State&);
45 static LengthValue* fromDictionary(const CalcDictionary&, ExceptionState&); 45 static LengthValue* fromDictionary(const CalcDictionary&, ExceptionState&);
46 46
47 LengthValue* clone() const; 47 LengthValue* clone() const;
48 48
49 protected: 49 protected:
50 LengthValue() {} 50 LengthValue() {}
51 51
52 static LengthUnit lengthUnitFromName(const String&); 52 static LengthUnit lengthUnitFromName(const String&);
53 static const String& lengthTypeToString(LengthUnit); 53 static const String& lengthTypeToString(LengthUnit type);
54 static CSSPrimitiveValue::UnitType lengthTypeToPrimitiveType(LengthUnit);
55 54
56 virtual LengthValue* addInternal(const LengthValue* other, ExceptionState&); 55 virtual LengthValue* addInternal(const LengthValue* other, ExceptionState&);
57 virtual LengthValue* subtractInternal(const LengthValue* other, ExceptionSta te&); 56 virtual LengthValue* subtractInternal(const LengthValue* other, ExceptionSta te&);
58 virtual LengthValue* multiplyInternal(double, ExceptionState&); 57 virtual LengthValue* multiplyInternal(double, ExceptionState&);
59 virtual LengthValue* divideInternal(double, ExceptionState&); 58 virtual LengthValue* divideInternal(double, ExceptionState&);
60 }; 59 };
61 60
62 } // namespace blink 61 } // namespace blink
63 62
64 #endif 63 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp ('k') | third_party/WebKit/Source/core/css/cssom/LengthValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698