WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137594
Drop RENDER_OBJECT_TYPE_CASTS() for a lot of RenderObject subclasses
https://bugs.webkit.org/show_bug.cgi?id=137594
Summary
Drop RENDER_OBJECT_TYPE_CASTS() for a lot of RenderObject subclasses
Chris Dumez
Reported
2014-10-09 20:38:57 PDT
Drop RENDER_OBJECT_TYPE_CASTS() for RenderObject subclasses that no longer needed it or that required very few changes to do so. This will make sure developers start using is<>() / downcast<>() for those classes.
Attachments
Patch
(53.65 KB, patch)
2014-10-09 20:41 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.68 KB, patch)
2014-10-10 09:41 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.68 KB, patch)
2014-10-10 10:26 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-10-09 20:41:02 PDT
Created
attachment 239595
[details]
Patch
Darin Adler
Comment 2
2014-10-10 09:35:19 PDT
Comment on
attachment 239595
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=239595&action=review
> Source/WebCore/rendering/RenderVideo.cpp:284 > RenderObject* parent = renderer->parent(); > if (!parent) > - return 0; > + return nullptr; > > - RenderFullScreen* fullScreen = parent->isRenderFullScreen() ? toRenderFullScreen(parent) : 0; > + RenderFullScreen* fullScreen = is<RenderFullScreen>(*parent) ? downcast<RenderFullScreen>(parent) : nullptr; > if (!fullScreen) > - return 0; > + return nullptr; > > return fullScreen->placeholder();
We should write this: RenderObject* parent = renderer->parent(); return is<RenderFullScreen>(parent) ? downcast<RenderFullScreen>(*parent).placeholder() : nullptr; I think the two line version is better than the longer version.
Chris Dumez
Comment 3
2014-10-10 09:41:46 PDT
Created
attachment 239629
[details]
Patch
WebKit Commit Bot
Comment 4
2014-10-10 10:23:24 PDT
Comment on
attachment 239629
[details]
Patch Rejecting
attachment 239629
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: nCommand.dia -c /Volumes/Data/EWS/WebKit/Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/ReplaceNodeWithSpanCommand.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/RenderVideo.o rendering/RenderVideo.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Full output:
http://webkit-queues.appspot.com/results/5076801827110912
Chris Dumez
Comment 5
2014-10-10 10:26:16 PDT
Created
attachment 239635
[details]
Patch
WebKit Commit Bot
Comment 6
2014-10-10 11:02:39 PDT
Comment on
attachment 239635
[details]
Patch Clearing flags on attachment: 239635 Committed
r174603
: <
http://trac.webkit.org/changeset/174603
>
WebKit Commit Bot
Comment 7
2014-10-10 11:02:45 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