WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137622
Use is<>() / downcast<>() for RenderElement
https://bugs.webkit.org/show_bug.cgi?id=137622
Summary
Use is<>() / downcast<>() for RenderElement
Chris Dumez
Reported
2014-10-10 12:58:21 PDT
Use is<>() / downcast<>() for RenderElement
Attachments
Patch
(71.65 KB, patch)
2014-10-10 13:01 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(71.88 KB, patch)
2014-10-10 13:27 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(72.09 KB, patch)
2014-10-10 14:00 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(72.13 KB, patch)
2014-10-10 15:28 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-10-10 13:01:47 PDT
Created
attachment 239644
[details]
Patch
Chris Dumez
Comment 2
2014-10-10 13:27:42 PDT
Created
attachment 239645
[details]
Patch
Chris Dumez
Comment 3
2014-10-10 14:00:52 PDT
Created
attachment 239647
[details]
Patch
Benjamin Poulain
Comment 4
2014-10-10 15:02:46 PDT
Comment on
attachment 239647
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=239647&action=review
> Source/WebCore/rendering/RenderCounter.cpp:624 > + counterName ? WebCore::counterMaps().get(downcast<WebCore::RenderElement>(current))->get(identifier) : (WebCore::CounterNode*)1 : (WebCore::CounterNode*)0);
What the heck!
> Source/WebCore/rendering/svg/SVGRenderSupport.cpp:263 > + downcast<RenderSVGText>(*child).setNeedsTextMetricsUpdate(); > + downcast<RenderSVGText>(*child).setNeedsPositioningValuesUpdate();
IMHO, it would be cleaner to put downcast<RenderSVGText>(*child) in a temporary here.
Chris Dumez
Comment 5
2014-10-10 15:28:46 PDT
Created
attachment 239654
[details]
Patch
WebKit Commit Bot
Comment 6
2014-10-10 16:06:55 PDT
Comment on
attachment 239654
[details]
Patch Clearing flags on attachment: 239654 Committed
r174619
: <
http://trac.webkit.org/changeset/174619
>
WebKit Commit Bot
Comment 7
2014-10-10 16:07:00 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