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

Issue 14113040: Update the first letter when the first line is changed by adding a new text at its start. (Closed)

Created:
7 years, 7 months ago by joone
Modified:
7 years, 2 months ago
CC:
blink-reviews, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@first-letter-rendering-issue
Visibility:
Public.

Description

Update the first letter when the first line is changed by adding a new text at its start. Currently, CSS first-letter property does not work properly when the first letter is changed by DOM scripting. This patch allows us to update the first letter and remaining text when the first letter is changed. BUG=92797 TEST=fast/css/first-letter-block-change.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158496

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated patch #

Total comments: 4

Patch Set 3 : Patch with test case #

Patch Set 4 : fixed test case failures #

Total comments: 2

Patch Set 5 : For landing #

Patch Set 6 : Add first-letter-block-change.html to TestExpectations for rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -4 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-letter-block-change.html View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-letter-block-change-expected.txt View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 5 3 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
joone
Hello, I'd like you to review my patch.
7 years, 7 months ago (2013-04-26 21:44:39 UTC) #1
abarth-chromium
I'm not the right reviewer for this CL. Ojan or esprehn can probably point you ...
7 years, 7 months ago (2013-04-26 22:43:55 UTC) #2
eseidel
Elliot is your man.
7 years, 7 months ago (2013-04-26 23:28:06 UTC) #3
joone
Hi Elliot, Could you take a look at my patch?
7 years, 7 months ago (2013-05-04 00:02:50 UTC) #4
Elliot Glaysher
Eric, I suspect you have the wrong Elliot. -erg +esprehn
7 years, 7 months ago (2013-05-06 18:25:27 UTC) #5
joone
On 2013/05/06 18:25:27, Elliot Glaysher wrote: > Eric, I suspect you have the wrong Elliot. ...
7 years, 7 months ago (2013-05-06 20:07:55 UTC) #6
joone
Hi Elliot, Could you take a look at my patch?
7 years, 7 months ago (2013-05-06 20:09:38 UTC) #7
esprehn
This looks unsafe, it'll crash for counters or quotes and I don't think it's safe ...
7 years, 7 months ago (2013-05-06 20:43:58 UTC) #8
joone
The updated patch allows to check if the existing first-letter is no longer the first-letter. ...
7 years, 3 months ago (2013-09-06 17:51:53 UTC) #9
eseidel
Wow. We totally dropped the ball here. I recommend tracking down esprehn in #blink for ...
7 years, 3 months ago (2013-09-09 20:20:34 UTC) #10
esprehn
Can you explain this patch further to me? What destroys the original RenderTextFragment and why ...
7 years, 3 months ago (2013-09-09 21:22:57 UTC) #11
joone
https://codereview.chromium.org/14113040/diff/10001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/14113040/diff/10001/Source/core/rendering/RenderBlock.cpp#newcode6760 Source/core/rendering/RenderBlock.cpp:6760: RenderObject* remainingText = currChild->parent()->nextSibling(); On 2013/09/09 21:22:57, esprehn wrote: ...
7 years, 3 months ago (2013-09-09 22:36:25 UTC) #12
esprehn
Okay, this seems like it might be okay, but you definitely need to add a ...
7 years, 3 months ago (2013-09-09 22:40:54 UTC) #13
joone
On 2013/09/09 22:40:54, esprehn wrote: > Okay, this seems like it might be okay, but ...
7 years, 3 months ago (2013-09-09 22:56:17 UTC) #14
joone
Could you review the test case I added?
7 years, 3 months ago (2013-09-17 22:38:24 UTC) #15
esprehn
LGTM
7 years, 3 months ago (2013-09-20 22:05:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joone.hur@intel.com/14113040/18001
7 years, 3 months ago (2013-09-20 22:11:38 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=5508
7 years, 3 months ago (2013-09-21 00:06:26 UTC) #18
esprehn
lgtm, Please fix the test before landing. https://codereview.chromium.org/14113040/diff/38001/LayoutTests/fast/css/first-letter-block-change.html File LayoutTests/fast/css/first-letter-block-change.html (right): https://codereview.chromium.org/14113040/diff/38001/LayoutTests/fast/css/first-letter-block-change.html#newcode12 LayoutTests/fast/css/first-letter-block-change.html:12: setTimeout(function() {addTextNode()}, ...
7 years, 2 months ago (2013-09-27 18:30:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joone.hur@intel.com/14113040/47001
7 years, 2 months ago (2013-09-27 21:20:48 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=7565
7 years, 2 months ago (2013-09-28 01:09:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joone.hur@intel.com/14113040/60001
7 years, 2 months ago (2013-09-28 15:08:08 UTC) #22
commit-bot: I haz the power
7 years, 2 months ago (2013-09-28 16:12:43 UTC) #23
Message was sent while issue was closed.
Change committed as 158496

Powered by Google App Engine
This is Rietveld 408576698