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

Issue 563763002: Ruby: Update beforeChild when redirecting renderer insertion to a child. (Closed)

Created:
6 years, 3 months ago by mstensho (USE GERRIT)
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Ruby: Update beforeChild when redirecting renderer insertion to a child. In addChild(), beforeChild needs to be a descendant of the parent that's attempting to insert a renderer. Therefore, when inserting a something, and we decide to drill further into the tree to find a suitable parent for the new renderer, we need to update beforeChild as we go, to make sure that it remains a descendant of the parent that's trying to do the insertion. In this case it was the list item code that attempted to insert a list item marker beside a RenderRubyRun (beforeChild). However, RenderRubyAsBlock::addChild() doesn't want that, so it tells its RenderRubyRun child to insert it instead. RenderRubyRun will in turn do the same thing, redirect insertion to its RenderRubyBase child, which finally is a suitable parent for the marker (and pretty much anything else). Doing this without updating beforeChild as we go, caused problems, since beforeChild suddenly was a parent of the inserting parent. BUG=395522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183761

Patch Set 1 #

Patch Set 2 : rebase master #

Patch Set 3 : Add similar code to RenderRubyAsInline::addChild(). #

Patch Set 4 : rebase master #

Total comments: 2

Patch Set 5 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -3 lines) Patch
A LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/ruby/list-item-marker-in-block-ruby-expected.txt View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderRuby.cpp View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderRubyRun.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
mstensho (USE GERRIT)
6 years, 3 months ago (2014-09-11 13:01:00 UTC) #2
mstensho (USE GERRIT)
6 years, 3 months ago (2014-09-11 13:18:24 UTC) #4
mstensho (USE GERRIT)
Should add code in RenderRubyAsInline too, although I'm not sure if I can come up ...
6 years, 3 months ago (2014-09-16 05:18:08 UTC) #5
mstensho (USE GERRIT)
On 2014/09/16 05:18:08, mstensho wrote: > Should add code in RenderRubyAsInline too, although I'm not ...
6 years, 3 months ago (2014-09-17 13:14:25 UTC) #6
mstensho (USE GERRIT)
I'm aware of https://code.google.com/p/chromium/issues/detail?id=417556 , but I'm not sure if we should wait for that, ...
6 years, 2 months ago (2014-09-25 06:31:18 UTC) #8
mstensho (USE GERRIT)
6 years, 2 months ago (2014-10-06 12:48:13 UTC) #9
dsinclair
lgtm with nit https://codereview.chromium.org/563763002/diff/60001/LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html File LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html (right): https://codereview.chromium.org/563763002/diff/60001/LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html#newcode5 LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html:5: </script> Can you add a description ...
6 years, 2 months ago (2014-10-15 12:58:59 UTC) #10
mstensho (USE GERRIT)
https://codereview.chromium.org/563763002/diff/60001/LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html File LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html (right): https://codereview.chromium.org/563763002/diff/60001/LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html#newcode5 LayoutTests/fast/ruby/list-item-marker-in-block-ruby.html:5: </script> On 2014/10/15 12:58:59, dsinclair wrote: > Can you ...
6 years, 2 months ago (2014-10-15 17:49:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/563763002/80001
6 years, 2 months ago (2014-10-15 17:51:10 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 18:52:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 183761

Powered by Google App Engine
This is Rietveld 408576698