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

Issue 249353003: Apply the correct style to first-letter pseudo elements composed of different renderers (Closed)

Created:
6 years, 8 months ago by mario.prada
Modified:
6 years, 8 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., ojan, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Apply the correct style to first-letter pseudo elements composed of different renderers Traverse (in preorder) the whole subtree under a render block with a first-letter selector when looking for the text renderers which would need to get the apropriate style applied, instead of only considering the first renderer only, which might not contain all the text that should be considered as a "first letter" (leading and trailing punctuation should be included too). The present patch also considers leading spaces, if any, as part of the first-letter element, to match the behaviour of other renderers such as IE and Opera (Firefox does not do that). R=eseidel@chromium.org, eae@chromium.org, leviw@chromium.org BUG=354403 TEST=Add new test to check first-letter elements composed of different renderers. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172391

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -103 lines) Patch
M LayoutTests/editing/selection/extend-by-word-002.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/selection/extend-by-word-002-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css-generated-content/quote-first-letter-expected.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/css/first-letter-different-renderers.html View 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-letter-different-renderers-expected.html View 1 chunk +54 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/first-letter-punctuation.html View 2 chunks +7 lines, -1 line 0 comments Download
M LayoutTests/fast/css/first-letter-punctuation-expected.html View 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 5 chunks +228 lines, -97 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
mario.prada
6 years, 8 months ago (2014-04-23 14:14:33 UTC) #1
mario.prada
https://codereview.chromium.org/249353003/diff/1/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/249353003/diff/1/Source/core/rendering/RenderBlock.cpp#newcode4066 Source/core/rendering/RenderBlock.cpp:4066: m_renderers.clear(); This line is the main change compared to ...
6 years, 8 months ago (2014-04-23 14:17:47 UTC) #2
eseidel
lgtm OK
6 years, 8 months ago (2014-04-23 15:33:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mario.prada@samsung.com/249353003/1
6 years, 8 months ago (2014-04-23 15:35:26 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 16:52:01 UTC) #5
Message was sent while issue was closed.
Change committed as 172391

Powered by Google App Engine
This is Rietveld 408576698