WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61352
Refactor RenderView::{enable,disable}LayoutState call sites to use RIIA
https://bugs.webkit.org/show_bug.cgi?id=61352
Summary
Refactor RenderView::{enable,disable}LayoutState call sites to use RIIA
Yuzo Fujishima
Reported
2011-05-24 02:42:17 PDT
The following pattern appears 10 times or so in the codebase. view->disableLayoutState(); ... view->enableLayoutState(); It should be replaced with RIIA, that is: { LayoutStateDisabler layoutStateDisabler(view); ... }
Attachments
Patch
(14.97 KB, patch)
2011-05-24 03:24 PDT
,
Yuzo Fujishima
no flags
Details
Formatted Diff
Diff
Addressed nit
(14.92 KB, patch)
2011-05-24 20:33 PDT
,
Yuzo Fujishima
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yuzo Fujishima
Comment 1
2011-05-24 03:24:07 PDT
Created
attachment 94588
[details]
Patch
Kent Tamura
Comment 2
2011-05-24 17:28:31 PDT
Comment on
attachment 94588
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=94588&action=review
looks good.
> Source/WebCore/page/FrameView.cpp:987 > + if (subtree) { > + RenderView* view = root->view(); > + view->popLayoutState(root); > + }
nit: The variable 'view' is not needed. if (subtree) root->view()->popLayoutState(root);
Yuzo Fujishima
Comment 3
2011-05-24 20:33:14 PDT
Created
attachment 94733
[details]
Addressed nit
WebKit Commit Bot
Comment 4
2011-05-25 00:17:34 PDT
Comment on
attachment 94733
[details]
Addressed nit Clearing flags on attachment: 94733 Committed
r87277
: <
http://trac.webkit.org/changeset/87277
>
WebKit Commit Bot
Comment 5
2011-05-25 00:17:39 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