Bug 121550 - Avoid using RenderBR internally in RenderMenuList.
Summary: Avoid using RenderBR internally in RenderMenuList.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 05:36 PDT by Andreas Kling
Modified: 2013-09-18 18:52 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.90 KB, patch)
2013-09-18 05:38 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch (3.99 KB, patch)
2013-09-18 05:45 PDT, Andreas Kling
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (658.25 KB, application/zip)
2013-09-18 06:27 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion (669.68 KB, application/zip)
2013-09-18 06:57 PDT, Build Bot
no flags Details
Patch (12.73 KB, patch)
2013-09-18 07:43 PDT, Andreas Kling
koivisto: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (689.99 KB, application/zip)
2013-09-18 08:24 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-09-18 05:36:51 PDT
Avoid using RenderBR internally in RenderMenuList.
Comment 1 Andreas Kling 2013-09-18 05:38:22 PDT
Created attachment 211987 [details]
Patch
Comment 2 Andreas Kling 2013-09-18 05:45:32 PDT
Created attachment 211988 [details]
Patch
Comment 3 Build Bot 2013-09-18 06:26:59 PDT
Comment on attachment 211988 [details]
Patch

Attachment 211988 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1886432

New failing tests:
fast/forms/menulist-separator-painting.html
fast/forms/select-empty-option-height.html
fast/forms/select-baseline.html
fast/replaced/three-selects-break.html
fast/forms/form-element-geometry.html
fast/flexbox/clear-overflow-before-scroll-update.html
fast/forms/HTMLOptionElement_label06.html
fast/forms/selectlist-minsize.html
fast/forms/HTMLOptionElement_label07.html
Comment 4 Build Bot 2013-09-18 06:27:00 PDT
Created attachment 211989 [details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 5 Build Bot 2013-09-18 06:57:29 PDT
Comment on attachment 211988 [details]
Patch

Attachment 211988 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1930152

New failing tests:
fast/forms/menulist-separator-painting.html
fast/forms/select-empty-option-height.html
fast/forms/select-baseline.html
fast/replaced/three-selects-break.html
fast/forms/form-element-geometry.html
fast/flexbox/clear-overflow-before-scroll-update.html
fast/forms/HTMLOptionElement_label06.html
fast/forms/selectlist-minsize.html
fast/forms/HTMLOptionElement_label07.html
Comment 6 Build Bot 2013-09-18 06:57:30 PDT
Created attachment 211993 [details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-07  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 7 Andreas Kling 2013-09-18 07:43:03 PDT
Created attachment 211995 [details]
Patch
Comment 8 Antti Koivisto 2013-09-18 07:45:33 PDT
Comment on attachment 211995 [details]
Patch

r=me
Comment 9 Antti Koivisto 2013-09-18 07:59:23 PDT
Comment on attachment 211995 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=211995&action=review

> Source/WebCore/rendering/RenderMenuList.cpp:245
> +        m_buttonText = new (renderArena()) RenderText(&document(), s.impl());

we need RenderText::createAnonymous
Comment 10 Build Bot 2013-09-18 08:24:53 PDT
Comment on attachment 211995 [details]
Patch

Attachment 211995 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1889231

New failing tests:
fast/forms/menulist-separator-painting.html
fast/forms/select-empty-option-height.html
fast/forms/select-baseline.html
fast/replaced/three-selects-break.html
fast/forms/form-element-geometry.html
fast/flexbox/clear-overflow-before-scroll-update.html
fast/forms/HTMLOptionElement_label06.html
fast/forms/selectlist-minsize.html
fast/forms/HTMLOptionElement_label07.html
platform/mac/editing/input/caret-primary-bidi.html
Comment 11 Build Bot 2013-09-18 08:24:55 PDT
Created attachment 211998 [details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 12 Andreas Kling 2013-09-18 08:34:10 PDT
Committed r156040: <http://trac.webkit.org/changeset/156040>
Comment 13 Darin Adler 2013-09-18 18:42:32 PDT
Why a newline? If the text can be set to something arbitrary, say a space, then why not use a space?
Comment 14 Andreas Kling 2013-09-18 18:43:55 PDT
(In reply to comment #13)
> Why a newline? If the text can be set to something arbitrary, say a space, then why not use a space?

I don't know really. Looks like whitespace collapsing turns it into a space in the end anyway..

Does it make a difference somehow? If so I can fix it :)
Comment 15 Darin Adler 2013-09-18 18:52:13 PDT
(In reply to comment #14)
> Does it make a difference somehow?

I have no idea.