WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
50183
Erroneously commented out code in RenderBlock::layoutPositionedObjects()
https://bugs.webkit.org/show_bug.cgi?id=50183
Summary
Erroneously commented out code in RenderBlock::layoutPositionedObjects()
Simon Fraser (smfr)
Reported
2010-11-29 14:09:35 PST
It looks like this line: //if (relayoutChildren && (r->style()->paddingLeft().isPercent() || r->style()->paddingRight().isPercent())) was left commented by accident.
http://trac.webkit.org/browser/trunk/WebCore/rendering/RenderBlock.cpp?annotate=blame&rev=40461#L1490
Attachments
Patch
(1.50 KB, patch)
2010-11-29 14:25 PST
,
Dave Hyatt
simon.fraser
: review+
Details
Formatted Diff
Diff
Patch
(5.76 KB, patch)
2010-11-30 11:18 PST
,
Dave Hyatt
no flags
Details
Formatted Diff
Diff
Patch
(5.59 KB, patch)
2010-11-30 11:44 PST
,
Dave Hyatt
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2010-11-29 14:25:13 PST
Created
attachment 75061
[details]
Patch
Dave Hyatt
Comment 2
2010-11-30 11:18:52 PST
Created
attachment 75172
[details]
Patch
Darin Adler
Comment 3
2010-11-30 11:21:51 PST
Comment on
attachment 75172
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=75172&action=review
> WebCore/rendering/RenderLayer.cpp:1893 > + if (!m_vBar && renderer()->hasOverflowClip() && renderer()->style()->overflowY() == OSCROLL) > + setHasVerticalScrollbar(true);
Adding this side effect to the width getter seems like a fragile way to structure the code; seems likely that callers will not realize this side effect exists. Is there a clearer way to do this?
Dave Hyatt
Comment 4
2010-11-30 11:36:45 PST
I could just patch the one call site and hope that's good enough.
Dave Hyatt
Comment 5
2010-11-30 11:44:23 PST
Created
attachment 75176
[details]
Patch
Simon Fraser (smfr)
Comment 6
2010-11-30 11:46:38 PST
Comment on
attachment 75176
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=75176&action=review
> WebCore/rendering/RenderBlock.cpp:4734 > + if (!layer()->verticalScrollbar()) > + layer()->setHasVerticalScrollbar(true);
You could call setHasVerticalScrollbar() unconditionally; it does no work if there's already a vertical scrollbar.
> WebCore/rendering/RenderFlexibleBox.cpp:185 > + if (!layer()->verticalScrollbar()) > + layer()->setHasVerticalScrollbar(true);
Ditto.
Dave Hyatt
Comment 7
2010-11-30 11:48:52 PST
Fixed in
r72947
.
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