WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 155775
Use references instead of pointers for absolute positioning code
https://bugs.webkit.org/show_bug.cgi?id=155775
Summary
Use references instead of pointers for absolute positioning code
Myles C. Maxfield
Reported
2016-03-22 16:37:05 PDT
Use references instead of pointers for absolute positioning code
Attachments
Patch
(69.13 KB, patch)
2016-03-22 16:38 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2016-03-22 16:38:24 PDT
Created
attachment 274699
[details]
Patch
Simon Fraser (smfr)
Comment 2
2016-03-22 16:55:18 PDT
Comment on
attachment 274699
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=274699&action=review
> Source/WebCore/rendering/RenderTable.cpp:275 > - RenderBlock* cb = containingBlock(); > + RenderBlock& cb = *containingBlock();
Nope. containingBlock() can return nullptr.
Myles C. Maxfield
Comment 3
2016-03-22 17:00:46 PDT
(In reply to
comment #2
)
> Comment on
attachment 274699
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=274699&action=review
> > > Source/WebCore/rendering/RenderTable.cpp:275 > > - RenderBlock* cb = containingBlock(); > > + RenderBlock& cb = *containingBlock(); > > Nope. containingBlock() can return nullptr.
It can, but we immediately dereference it. Therefore, it must not return nullptr here. Every change in this patch is of this form.
WebKit Commit Bot
Comment 4
2016-03-22 17:58:36 PDT
Comment on
attachment 274699
[details]
Patch Clearing flags on attachment: 274699 Committed
r198568
: <
http://trac.webkit.org/changeset/198568
>
WebKit Commit Bot
Comment 5
2016-03-22 17:58:41 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