Changeset 285714 in webkit
- Timestamp:
- Nov 12, 2021, 4:48:43 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
css/CSSCustomPropertyValue.cpp (modified) (2 diffs)
-
css/CSSCustomPropertyValue.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r285713 r285714 1 2021-11-12 Tim Nguyen <ntim@apple.com> 2 3 Re-use isCSSWideKeyword in CSSCustomPropertyValue::createWithID 4 https://bugs.webkit.org/show_bug.cgi?id=233035 5 6 Reviewed by Antti Koivisto. 7 8 * css/CSSCustomPropertyValue.cpp: 9 (WebCore::CSSCustomPropertyValue::createWithID): 10 * css/CSSCustomPropertyValue.h: 11 1 12 2021-11-12 Antti Koivisto <antti@apple.com> 2 13 -
trunk/Source/WebCore/css/CSSCustomPropertyValue.cpp
r284095 r285714 27 27 #include "CSSCustomPropertyValue.h" 28 28 29 #include "CSSParserIdioms.h" 29 30 #include "CSSTokenizer.h" 30 31 … … 34 35 { 35 36 return adoptRef(*new CSSCustomPropertyValue(name, std::monostate { })); 37 } 38 39 Ref<CSSCustomPropertyValue> CSSCustomPropertyValue::createWithID(const AtomString& name, CSSValueID id) 40 { 41 ASSERT(WebCore::isCSSWideKeyword(id) || id == CSSValueInvalid); 42 return adoptRef(*new CSSCustomPropertyValue(name, { id })); 36 43 } 37 44 -
trunk/Source/WebCore/css/CSSCustomPropertyValue.h
r284213 r285714 53 53 } 54 54 55 static Ref<CSSCustomPropertyValue> createWithID(const AtomString& name, CSSValueID id) 56 { 57 ASSERT(id == CSSValueInherit || id == CSSValueInitial || id == CSSValueUnset || id == CSSValueRevert || id == CSSValueInvalid); 58 return adoptRef(*new CSSCustomPropertyValue(name, { id })); 59 } 55 static Ref<CSSCustomPropertyValue> createWithID(const AtomString& name, CSSValueID); 60 56 61 57 static Ref<CSSCustomPropertyValue> createSyntaxAll(const AtomString& name, Ref<CSSVariableData>&& value) … … 63 59 return adoptRef(*new CSSCustomPropertyValue(name, { WTFMove(value) })); 64 60 } 65 61 66 62 static Ref<CSSCustomPropertyValue> createSyntaxLength(const AtomString& name, Length value) 67 63 {
Note:
See TracChangeset
for help on using the changeset viewer.