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

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

Issue 2903413002: Restructure type tracking in StyleValues to work better with new numeric types (Closed)
Patch Set: rebase Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CSSNumericValue_h 5 #ifndef CSSNumericValue_h
6 #define CSSNumericValue_h 6 #define CSSNumericValue_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/css/cssom/CSSStyleValue.h" 10 #include "core/css/cssom/CSSStyleValue.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual CSSNumericValue* div(double, ExceptionState&) { 42 virtual CSSNumericValue* div(double, ExceptionState&) {
43 // TODO(meade): Implement. 43 // TODO(meade): Implement.
44 return nullptr; 44 return nullptr;
45 } 45 }
46 46
47 virtual CSSNumericValue* to(const String&, ExceptionState&) { 47 virtual CSSNumericValue* to(const String&, ExceptionState&) {
48 // TODO(meade): Implement. 48 // TODO(meade): Implement.
49 return nullptr; 49 return nullptr;
50 } 50 }
51 51
52 // Internal methods.
53 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } 52 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; }
54 bool ContainsPercent() const {
55 // TODO(meade): Implement.
56 return false;
57 }
58 53
59 protected: 54 protected:
60 CSSNumericValue() {} 55 CSSNumericValue() {}
61 }; 56 };
62 57
63 } // namespace blink 58 } // namespace blink
64 59
65 #endif // CSSNumericValue_h 60 #endif // CSSNumericValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/css/cssom/CSSPerspective.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698