WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133027
REGRESSION (
r166422
): All RenderBox objects grew 104 bytes from adding repaint timers.
https://bugs.webkit.org/show_bug.cgi?id=133027
Summary
REGRESSION (r166422): All RenderBox objects grew 104 bytes from adding repain...
Andreas Kling
Reported
2014-05-17 01:08:11 PDT
<
rdar://problem/16867410
>
Attachments
Patch
(8.91 KB, patch)
2014-05-17 01:19 PDT
,
Andreas Kling
koivisto
: review-
Details
Formatted Diff
Diff
Patch
(9.03 KB, patch)
2014-05-17 01:28 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2014-05-17 01:19:18 PDT
Created
attachment 231624
[details]
Patch
Antti Koivisto
Comment 2
2014-05-17 01:25:27 PDT
Comment on
attachment 231624
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=231624&action=review
> Source/WebCore/rendering/RenderBox.cpp:131 > RenderBox::~RenderBox() > { > - m_repaintTimer.stop(); > + view().unscheduleLazyRepaint(*this);
Shouldn't it check the lazy repaint bit? Unscheduling does hash lookup and is expensive. Also we might want to not do this on full tree teardown.
> Source/WebCore/rendering/RenderView.cpp:142 > +void RenderView::scheduleLazyRepaint(RenderBox& renderer) > +{ > + renderer.setRenderBoxNeedsLazyRepaint(true);
This could bail out if the bit is already set.
> Source/WebCore/rendering/RenderView.cpp:150 > +void RenderView::unscheduleLazyRepaint(RenderBox& renderer) > +{ > + renderer.setRenderBoxNeedsLazyRepaint(false);
This could either assert or bail out if the bit is not set.
Andreas Kling
Comment 3
2014-05-17 01:28:18 PDT
Created
attachment 231625
[details]
Patch That went really well. Let's try again!
WebKit Commit Bot
Comment 4
2014-05-17 03:09:17 PDT
Comment on
attachment 231625
[details]
Patch Clearing flags on attachment: 231625 Committed
r168993
: <
http://trac.webkit.org/changeset/168993
>
WebKit Commit Bot
Comment 5
2014-05-17 03:09:21 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