Bug 50119 - RenderObject::minimumPreferredLogicalWidth() sometimes reports wrong value
Summary: RenderObject::minimumPreferredLogicalWidth() sometimes reports wrong value
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2010-11-26 17:13 PST by Aaron Boodman
Modified: 2010-12-02 23:45 PST (History)
4 users (show)

See Also:

Patch (1.31 KB, patch)
2010-11-26 17:17 PST, Aaron Boodman
no flags Details | Formatted Diff | Diff
Patch (1.30 KB, patch)
2010-11-26 17:21 PST, Aaron Boodman
no flags Details | Formatted Diff | Diff
Patch (2.60 KB, patch)
2010-11-30 16:41 PST, Aaron Boodman
no flags Details | Formatted Diff | Diff
Patch (2.67 KB, patch)
2010-12-02 20:24 PST, Aaron Boodman
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Boodman 2010-11-26 17:13:37 PST
I noticed a change in the behavior of RenderObject::minimumPreferredLogicalWidth() for the root renderer recently, and tracked it to this change:


Also see http://code.google.com/p/chromium/issues/detail?id=61370 for the Chromium bug where this was noticed.

It looks to me like a style can sometimes be applied to a body element before it is appended to the tree. In this case, the dirty bit for minimumPreferredLogicalWidth will not be propagated up the tree.

I have a patch that appears to fix the problem, but I would like feedback on:

a) Whether this is a good way to fix it, and
b) How to create a test case

Patch to follow.
Comment 1 Aaron Boodman 2010-11-26 17:17:49 PST
Created attachment 74955 [details]
Comment 2 Aaron Boodman 2010-11-26 17:21:24 PST
Created attachment 74956 [details]
Comment 3 Aaron Boodman 2010-11-26 17:23:04 PST
Comment on attachment 74956 [details]

Whoops :)
Comment 4 Aaron Boodman 2010-11-30 16:41:03 PST
Created attachment 75223 [details]
Comment 5 Dave Hyatt 2010-12-01 15:32:19 PST
Comment on attachment 75223 [details]

Comment 6 WebKit Commit Bot 2010-12-02 06:59:06 PST
Comment on attachment 75223 [details]

Rejecting patch 75223 from commit-queue.

Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=abarth-cq-sl', 'land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 75223]" exit_code: 2
Last 500 characters of output:
ommitting to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/rendering/RenderBox.cpp
A repository hook failed: Commit blocked by pre-commit hook (exit code 1) with output:
svnlook: Can't write to stream: Broken pipe

    The following ChangeLog files contain OOPS:


    Please don't ever say "OOPS" in a ChangeLog file.
 at /usr/local/git/libexec/git-core/git-svn line 558

Failed to run "[u'git', u'svn', u'dcommit']" exit_code: 1

Full output: http://queues.webkit.org/results/6732012
Comment 7 Aaron Boodman 2010-12-02 20:24:11 PST
Created attachment 75458 [details]
Comment 8 WebKit Review Bot 2010-12-02 20:25:46 PST
Comment on attachment 75458 [details]

Rejecting patch 75458 from review queue.

aa@chromium.org does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in WebKitTools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 9 WebKit Commit Bot 2010-12-02 23:43:17 PST
The commit-queue encountered the following flaky tests while processing attachment 75458 [details]:


Please file bugs against the tests.  These tests were authored by cmarrin@apple.com.  The commit-queue is continuing to process your patch.
Comment 10 WebKit Commit Bot 2010-12-02 23:45:09 PST
Comment on attachment 75458 [details]

Clearing flags on attachment: 75458

Committed r73245: <http://trac.webkit.org/changeset/73245>
Comment 11 WebKit Commit Bot 2010-12-02 23:45:15 PST
All reviewed patches have been landed.  Closing bug.