WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137199
Use the new is<>() / downcast<>() for ShadowRoot and StyledElement
https://bugs.webkit.org/show_bug.cgi?id=137199
Summary
Use the new is<>() / downcast<>() for ShadowRoot and StyledElement
Chris Dumez
Reported
2014-09-28 16:11:15 PDT
Use the new is<>() / downcast<>() for ShadowRoot and StyledElement.
Attachments
Patch
(38.77 KB, patch)
2014-09-28 16:26 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-09-28 16:26:18 PDT
Created
attachment 238830
[details]
Patch
Darin Adler
Comment 2
2014-09-28 17:56:47 PDT
Comment on
attachment 238830
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=238830&action=review
> Source/WebCore/css/StyleResolver.cpp:391 > + m_styledElement = element && is<StyledElement>(element) ? downcast<StyledElement>(element) : nullptr;
I’m not going to comment on every one, since this is the same issue as in other patches. There is no need for the null check here since the is<StyledElement> function works fine on null, returning false. And the downcast should be done on *element, with a & before downcast. This pattern repeats throughout this patch in variants.
WebKit Commit Bot
Comment 3
2014-09-29 10:35:34 PDT
Comment on
attachment 238830
[details]
Patch Clearing flags on attachment: 238830 Committed
r174069
: <
http://trac.webkit.org/changeset/174069
>
WebKit Commit Bot
Comment 4
2014-09-29 10:35:38 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug