Bug 111782 - REGRESSION (r143643): <button> should support ::first-line and ::first-letter
Summary: REGRESSION (r143643): <button> should support ::first-line and ::first-letter
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Christian Biesinger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-07 15:31 PST by Christian Biesinger
Modified: 2013-03-08 13:47 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.91 KB, patch)
2013-03-07 15:34 PST, Christian Biesinger
no flags Details | Formatted Diff | Diff
Patch (5.62 KB, patch)
2013-03-08 09:08 PST, Christian Biesinger
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Biesinger 2013-03-07 15:31:21 PST
<button> should support ::first-line and ::first-letter
Comment 1 Christian Biesinger 2013-03-07 15:34:10 PST
Created attachment 192096 [details]
Patch
Comment 2 Ojan Vafai 2013-03-07 17:00:48 PST
Comment on attachment 192096 [details]
Patch

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

> Source/WebCore/rendering/RenderBlock.cpp:6496
> +        if (firstLineBlock->isReplaced() || firstLineBlock->isFloating()

How about a FIXME to remove the isRenderButton check once we support align-items on RenderBlock and migrate RenderButton off of RenderFlexibleBox?

> Source/WebCore/rendering/RenderBlock.cpp:6550
> +            !parentBlock->isBlockFlow() || (parentBlock->isFlexibleBox() && !parentBlock->isRenderButton()))

ditto
Comment 3 Elliott Sprehn 2013-03-07 19:33:29 PST
Comment on attachment 192096 [details]
Patch

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

> Source/WebCore/rendering/RenderBlock.cpp:6498
> +            || (parentBlock->isFlexibleBox() && !parentBlock->isRenderButton()))

Can we add a comment about why this is needed? Flex box doesn't support :first-line and :first-letter by design (in the spec), but we're adding a hack here since <buttons> are magical.
Comment 4 Christian Biesinger 2013-03-08 09:08:59 PST
Created attachment 192237 [details]
Patch
Comment 5 WebKit Review Bot 2013-03-08 10:30:00 PST
Comment on attachment 192237 [details]
Patch

Rejecting attachment 192237 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', '--bot-id=gce-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 192237, '--port=chromium-xvfb']" exit_code: 2 cwd: /mnt/git/webkit-commit-queue

Last 500 characters of output:
rce/WebKit/chromium/webkit/media/crypto/ppapi/cdm --revision 181763 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
56>At revision 181763.

________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'

________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
Updating webkit projects from gyp files...

Full output: http://webkit-commit-queue.appspot.com/results/17025416
Comment 6 Christian Biesinger 2013-03-08 13:05:18 PST
Comment on attachment 192237 [details]
Patch

ChangeLog merge conflict? I guess just try again? I though the bots handled that.
Comment 7 WebKit Review Bot 2013-03-08 13:47:35 PST
Comment on attachment 192237 [details]
Patch

Clearing flags on attachment: 192237

Committed r145265: <http://trac.webkit.org/changeset/145265>
Comment 8 WebKit Review Bot 2013-03-08 13:47:39 PST
All reviewed patches have been landed.  Closing bug.