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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/StyleValue.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 StyleValue_h 5 #ifndef StyleValue_h
6 #define StyleValue_h 6 #define StyleValue_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSValue.h" 10 #include "core/css/CSSValue.h"
(...skipping 12 matching lines...) Expand all
23 KeywordValueType, SimpleLengthType, CalcLengthType, NumberType, Transfor mValueType 23 KeywordValueType, SimpleLengthType, CalcLengthType, NumberType, Transfor mValueType
24 }; 24 };
25 25
26 virtual ~StyleValue() { } 26 virtual ~StyleValue() { }
27 27
28 virtual StyleValueType type() const = 0; 28 virtual StyleValueType type() const = 0;
29 29
30 static StyleValue* create(const CSSValue&); 30 static StyleValue* create(const CSSValue&);
31 static ScriptValue parse(ScriptState*, const String& property, const String& cssText); 31 static ScriptValue parse(ScriptState*, const String& property, const String& cssText);
32 32
33 virtual String cssString() const = 0;
33 virtual PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const = 0; 34 virtual PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const = 0;
34 virtual String cssString() const
35 {
36 return toCSSValue()->cssText();
37 }
38 35
39 DEFINE_INLINE_VIRTUAL_TRACE() { } 36 DEFINE_INLINE_VIRTUAL_TRACE() { }
40 37
41 protected: 38 protected:
42 StyleValue() {} 39 StyleValue() {}
43 }; 40 };
44 41
45 } // namespace blink 42 } // namespace blink
46 43
47 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698