Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Issue 300853007: Empty inline elements always get a line box. (Closed)

Created:
6 years, 7 months ago by rhogan
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, leviw+bidiwatch_chromium.org, pdr., rune+blink, zoltan1
Visibility:
Public.

Description

Empty inline elements always get a line box. CSS 2.1 (http://www.w3.org/TR/CSS2/visudet.html#leading) says: "Empty inline elements generate empty inline boxes, but these boxes still have margins, padding, borders and a line height, and thus influence [line-height calculation] just like elements with content." We weren't creating lineboxes for empty inline elements when they occurred between a single trailing space and a single leading space - this is because our linebox creation was based on the too-narrow premise that we were already ignoring spaces. However, if an empty inline element comes after a trailing space but before one or more leading spaces then it will be ignored as part of the collapsed space between the trailing space and the next non-collapsible space - so we should force the creation of a linebox in such cases. This allows us to pass Hixie's empty inline test: http://www.hixie.ch/tests/evil/mixed/emptyinline.html BUG=328939 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177605

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -24 lines) Patch
A LayoutTests/fast/inline/empty-inline-before-collapsed-space.html View 1 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/fast/inline/empty-inline-before-collapsed-space-expected.txt View 1 1 chunk +16 lines, -0 lines 0 comments Download
M Source/core/rendering/line/BreakingContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/line/BreakingContextInlineHeaders.h View 1 3 chunks +12 lines, -10 lines 0 comments Download
M Source/core/rendering/line/TrailingObjects.h View 1 3 chunks +19 lines, -6 lines 0 comments Download
M Source/core/rendering/line/TrailingObjects.cpp View 1 3 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rhogan
https://codereview.chromium.org/300853007/diff/1/Source/platform/text/BidiResolver.h File Source/platform/text/BidiResolver.h (left): https://codereview.chromium.org/300853007/diff/1/Source/platform/text/BidiResolver.h#oldcode76 Source/platform/text/BidiResolver.h:76: Iterator midpoint(0, textParagraphSeparator.object(), textParagraphSeparator.offset()); This is a redundant line ...
6 years, 7 months ago (2014-05-27 21:40:03 UTC) #1
rhogan
6 years, 7 months ago (2014-05-27 21:40:25 UTC) #2
leviw_travelin_and_unemployed
Dang, good fix! LGTM!
6 years, 6 months ago (2014-05-30 00:15:17 UTC) #3
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 6 months ago (2014-05-31 20:29:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/300853007/20001
6 years, 6 months ago (2014-05-31 20:30:00 UTC) #5
commit-bot: I haz the power
Change committed as 175205
6 years, 6 months ago (2014-05-31 20:43:54 UTC) #6
rhogan
A revert of this CL has been created in https://codereview.chromium.org/302233002/ by robhogan@gmail.com. The reason for ...
6 years, 6 months ago (2014-05-31 22:01:29 UTC) #7
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 6 months ago (2014-06-01 08:15:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/300853007/20001
6 years, 6 months ago (2014-06-01 08:15:30 UTC) #9
commit-bot: I haz the power
Change committed as 175218
6 years, 6 months ago (2014-06-01 08:15:57 UTC) #10
rhogan
On 2014/05/31 22:01:29, rhogan wrote: > A revert of this CL has been created in ...
6 years, 6 months ago (2014-06-01 08:20:57 UTC) #11
rhogan
On 2014/06/01 at 08:20:57, rhogan wrote: > On 2014/05/31 22:01:29, rhogan wrote: > > A ...
6 years, 5 months ago (2014-07-07 19:52:58 UTC) #12
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 5 months ago (2014-07-07 19:53:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/300853007/20001
6 years, 5 months ago (2014-07-07 19:54:23 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-07 20:56:37 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-07 21:29:15 UTC) #16
Message was sent while issue was closed.
Change committed as 177605

Powered by Google App Engine
This is Rietveld 408576698