Bug 229705

Summary: Add support for CSSKeywordValue in CSS Typed OM
Product: WebKit Reporter: Qiaosong Zhou <johnson.zhou.sh>
Component: CSSAssignee: Qiaosong Zhou <johnson.zhou.sh>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, annulen, benjamin, calvaris, cdumez, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, koivisto, kondapallykalyan, macpherson, menard, ryuan.choi, sergio, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 175733    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Qiaosong Zhou
Reported 2021-08-31 03:09:32 PDT
Add support for CSSKeywordValue in CSS Typed OM
Attachments
Patch (15.83 KB, patch)
2021-08-31 03:10 PDT, Qiaosong Zhou
ews-feeder: commit-queue-
Patch (16.34 KB, patch)
2021-08-31 03:33 PDT, Qiaosong Zhou
no flags
Patch (254.92 KB, patch)
2021-09-01 03:54 PDT, Qiaosong Zhou
no flags
Patch (254.86 KB, patch)
2021-09-01 03:57 PDT, Qiaosong Zhou
no flags
Patch (254.39 KB, patch)
2021-09-01 04:10 PDT, Qiaosong Zhou
no flags
Patch (254.39 KB, patch)
2021-09-01 15:55 PDT, Qiaosong Zhou
no flags
Qiaosong Zhou
Comment 1 2021-08-31 03:10:00 PDT
Qiaosong Zhou
Comment 2 2021-08-31 03:33:51 PDT
Alex Christensen
Comment 3 2021-08-31 11:37:53 PDT
Comment on attachment 436869 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=436869&action=review This is a wonderful patch. > Source/WebCore/css/typedom/CSSKeywordValue.cpp:2 > + * Copyright (C) 2019 Apple Inc. All rights reserved. 2021 > Source/WebCore/css/typedom/CSSKeywordValue.cpp:44 > + if (value.isNull() || value.isEmpty()) value.isEmpty returns true if value is null, so only one check is needed. > Source/WebCore/css/typedom/CSSKeywordValue.cpp:52 > + if (value.isNull() || value.isEmpty()) ditto > Source/WebCore/css/typedom/CSSKeywordValue.h:2 > + * Copyright (C) 2018 Apple Inc. All rights reserved. 2021 > Source/WebCore/css/typedom/CSSKeywordValue.h:30 > +#include "CSSKeywordValue.h" This shouldn't include itself. > Source/WebCore/css/typedom/CSSKeywordValue.h:32 > +#include <wtf/RefCounted.h> This doesn't look needed. > Source/WebCore/css/typedom/CSSKeywordValue.h:44 > + String& value() { return m_value; } const String& value() const > Source/WebCore/css/typedom/CSSKeywordValue.idl:2 > +* Copyright (C) 2018 Apple Inc. All rights reserved. 2021
Qiaosong Zhou
Comment 4 2021-09-01 03:54:53 PDT
Qiaosong Zhou
Comment 5 2021-09-01 03:57:07 PDT
Qiaosong Zhou
Comment 6 2021-09-01 04:10:58 PDT
Alex Christensen
Comment 7 2021-09-01 09:31:33 PDT
Comment on attachment 437012 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437012&action=review And three copyright years need updating, but otherwise this looks ready to go. > Source/WebCore/css/typedom/CSSKeywordValue.h:43 > + const String& value() { return m_value; } This needs a const between () and { to indicate that calling the function doesn't mutate the object. The first const indicates that you can't mutate the returned reference.
Qiaosong Zhou
Comment 8 2021-09-01 15:55:16 PDT
EWS
Comment 9 2021-09-02 12:39:12 PDT
Committed r281947 (241255@main): <https://commits.webkit.org/241255@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437075 [details].
Radar WebKit Bug Importer
Comment 10 2021-09-02 12:40:33 PDT
Note You need to log in before you can comment on or make changes to this bug.