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

Issue 741893002: Remove canCollapseAnonymousBlockChild. (Closed)

Created:
6 years, 1 month ago by ojan
Modified:
6 years, 1 month ago
Reviewers:
esprehn, eseidel
CC:
abarth-chromium, esprehn, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Remove canCollapseAnonymousBlockChild. The only place it's used now is making it so that anonymous flex items don't do ellipsizing the same way anonymous items inside a block would. This is something we don't need, especially now that we only have anonymous paragraphs around text nodes. It's not clear to me if we want this looking at the parent behavior at all, but that's something that can be fixed in a followup. Also delete some dead anonymous block functions. R=esprehn@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/259bc325da7321a699f86554aad4c3dca1d6771a

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -36 lines) Patch
M sky/engine/core/rendering/RenderBlock.h View 2 chunks +0 lines, -6 lines 0 comments Download
M sky/engine/core/rendering/RenderBlock.cpp View 1 chunk +0 lines, -25 lines 0 comments Download
M sky/engine/core/rendering/RenderBlockLineLayout.cpp View 1 chunk +2 lines, -4 lines 3 comments Download
M sky/engine/core/rendering/RenderFlexibleBox.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
ojan
6 years, 1 month ago (2014-11-20 00:54:08 UTC) #2
esprehn
https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp File sky/engine/core/rendering/RenderBlockLineLayout.cpp (right): https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp#newcode1217 sky/engine/core/rendering/RenderBlockLineLayout.cpp:1217: || (isAnonymousBlock() && parent() && parent()->style()->textOverflow() && parent()->hasOverflowClip()); You ...
6 years, 1 month ago (2014-11-20 19:06:54 UTC) #4
ojan
https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp File sky/engine/core/rendering/RenderBlockLineLayout.cpp (right): https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp#newcode1217 sky/engine/core/rendering/RenderBlockLineLayout.cpp:1217: || (isAnonymousBlock() && parent() && parent()->style()->textOverflow() && parent()->hasOverflowClip()); On ...
6 years, 1 month ago (2014-11-20 19:25:53 UTC) #5
ojan
6 years, 1 month ago (2014-11-20 19:25:54 UTC) #6
esprehn
lgtm ok
6 years, 1 month ago (2014-11-20 22:20:45 UTC) #7
ojan
Committed patchset #1 (id:1) manually as 259bc325da7321a699f86554aad4c3dca1d6771a (presubmit successful).
6 years, 1 month ago (2014-11-20 23:28:41 UTC) #8
ojan
6 years, 1 month ago (2014-11-21 05:37:14 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/Re...
File sky/engine/core/rendering/RenderBlockLineLayout.cpp (right):

https://codereview.chromium.org/741893002/diff/1/sky/engine/core/rendering/Re...
sky/engine/core/rendering/RenderBlockLineLayout.cpp:1217: || (isAnonymousBlock()
&& parent() && parent()->style()->textOverflow() &&
parent()->hasOverflowClip());
On 2014/11/20 at 19:25:53, ojan wrote:
> On 2014/11/20 19:06:54, esprehn wrote:
> > You lost the check for parent()->isRenderBlock(), why is that okay?
> 
> That was just to make the toRenderBlock(parent()) call safe.
> 
> FWIW, I think we want to delete this line of code entirely and stop looking at
the parent's style at all, but I want to test exactly what it does before
removing it.

See https://codereview.chromium.org/751483002#msg2. I think this new behavior is
correct assuming we decide to keep anonymous blocks at all.

Powered by Google App Engine
This is Rietveld 408576698