RESOLVED WONTFIX 101171
[Shadow][Refactoring] Remove shadowPseudoId() and use pseudo() instead
https://bugs.webkit.org/show_bug.cgi?id=101171
Summary [Shadow][Refactoring] Remove shadowPseudoId() and use pseudo() instead
Shinya Kawanaka
Reported 2012-11-04 17:36:45 PST
We would like to remove shadowPseudoId() and use pseudo() instead.
Attachments
WIP (69.05 KB, patch)
2012-11-05 17:59 PST, Shinya Kawanaka
no flags
WIP (72.28 KB, patch)
2012-11-05 20:12 PST, Shinya Kawanaka
buildbot: commit-queue-
Shinya Kawanaka
Comment 1 2012-11-05 17:59:33 PST
Build Bot
Comment 2 2012-11-05 19:28:19 PST
Build Bot
Comment 3 2012-11-05 20:06:04 PST
Shinya Kawanaka
Comment 4 2012-11-05 20:12:22 PST
Kent Tamura
Comment 5 2012-11-05 20:20:07 PST
Comment on attachment 172475 [details] WIP View in context: https://bugs.webkit.org/attachment.cgi?id=172475&action=review > Source/WebCore/html/ColorInputType.cpp:121 > - wrapperElement->setShadowPseudoId("-webkit-color-swatch-wrapper"); > + wrapperElement->setPseudo("-webkit-color-swatch-wrapper"); nit: If you have enough time, I recommend to use AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral) http://trac.webkit.org/wiki/EfficientStrings > Source/WebCore/html/FileInputType.cpp:86 > -const AtomicString& UploadButtonElement::shadowPseudoId() const > +const AtomicString& UploadButtonElement::pseudo() const > { > DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-file-upload-button")); > return pseudoId; Overriding "pseudo" looks strange. Why don't you convert such code to setPseudo?
Shinya Kawanaka
Comment 6 2012-11-05 21:13:05 PST
(In reply to comment #5) > (From update of attachment 172475 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=172475&action=review > > > Source/WebCore/html/ColorInputType.cpp:121 > > - wrapperElement->setShadowPseudoId("-webkit-color-swatch-wrapper"); > > + wrapperElement->setPseudo("-webkit-color-swatch-wrapper"); > > nit: If you have enough time, I recommend to use AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral) > http://trac.webkit.org/wiki/EfficientStrings > > > Source/WebCore/html/FileInputType.cpp:86 > > -const AtomicString& UploadButtonElement::shadowPseudoId() const > > +const AtomicString& UploadButtonElement::pseudo() const > > { > > DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-file-upload-button")); > > return pseudoId; > > Overriding "pseudo" looks strange. Why don't you convert such code to setPseudo? I'll convert them... since pseudo() is not virtual at all.
Build Bot
Comment 7 2012-11-05 21:27:59 PST
Shinya Kawanaka
Comment 8 2012-11-05 22:36:07 PST
Since we have a lot of places to be replaced, I would like to split this to several patches...
kov's GTK+ EWS bot
Comment 9 2012-11-05 23:16:54 PST
Build Bot
Comment 10 2012-11-05 23:34:12 PST
Ryosuke Niwa
Comment 11 2019-10-04 22:19:23 PDT
We're not gonna do this. V1 API allows ::part, which is distant from pseudo element mechanism.
Note You need to log in before you can comment on or make changes to this bug.