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+
Patch (5.76 KB, patch)
2010-11-30 11:18 PST, Dave Hyatt
no flags
Patch (5.59 KB, patch)
2010-11-30 11:44 PST, Dave Hyatt
simon.fraser: review+
Dave Hyatt
Comment 1 2010-11-29 14:25:13 PST
Dave Hyatt
Comment 2 2010-11-30 11:18:52 PST
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
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.