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

Issue 1657483003: Add a border radius property to inherit it from a parent in a fallback content (Closed)

Created:
4 years, 10 months ago by Miyoung Shin(c)
Modified:
4 years, 8 months ago
Reviewers:
pdr., esprehn
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a border radius property to inherit it from a parent in a fallback content https://crrev.com/983693002 caused the regression that hit testing is stopped in the parent inline, when it has border radius style and locates out of a boundingBox of hitTest. That patch made a early return in the parent inline. We should do hit testing children first before doing the parent's border radius. Instead of that patch, we need to check the border radius for LayoutBox in InlineFlowBox::nodeAtPoint. Also the origin problem is that the fallback content of image does not inherit the border radius property. We should add the border radius property to inherit it from the parent. BUG=568896 R=pdr@chromium.org TEST=fast/inline-block/hittest-child-of-inlineblock.html fast/inline-block/hittest-inline-block-with-abspos.html hittesting/border-hittest-with-image-fallback.html Committed: https://crrev.com/58453820ceb5beada016cb6509d244d152776574 Cr-Commit-Position: refs/heads/master@{#385480}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Messages

Total messages: 38 (10 generated)
Miyoung Shin(c)
PTAL
4 years, 10 months ago (2016-01-31 15:16:40 UTC) #1
pdr.
https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html File third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html (right): https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html#newcode1 third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html:1: <!DOCTYPE html> It looks like this test is intended ...
4 years, 10 months ago (2016-01-31 21:32:36 UTC) #2
Miyoung Shin(c)
https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/Source/core/layout/line/InlineBox.cpp File third_party/WebKit/Source/core/layout/line/InlineBox.cpp (right): https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/Source/core/layout/line/InlineBox.cpp#newcode229 third_party/WebKit/Source/core/layout/line/InlineBox.cpp:229: bool inside = lineLayoutItem().hitTest(result, locationInContainer, childPoint); On 2016/01/31 21:32:36, ...
4 years, 10 months ago (2016-02-05 23:40:03 UTC) #3
Miyoung Shin(c)
I've uploaded the new patch, PTAL. https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html File third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html (right): https://codereview.chromium.org/1657483003/diff/1/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html#newcode1 third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html:1: <!DOCTYPE html> On ...
4 years, 10 months ago (2016-02-18 04:52:42 UTC) #6
Miyoung Shin(c)
Sorry, please don't review it yet. Regarding to trybot fails, float property I added affects ...
4 years, 10 months ago (2016-02-18 14:55:17 UTC) #7
Miyoung Shin(c)
pdr@, PTAL. Regarding Trybot fails of linux_blink_dbg, it doesn't seem to be caused by my ...
4 years, 10 months ago (2016-02-26 15:22:12 UTC) #10
Miyoung Shin(c)
pdr@, could you take a look ?
4 years, 9 months ago (2016-03-07 15:52:48 UTC) #11
pdr.
https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp File third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp (right): https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp#newcode47 third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp:47: container->setInlineStyleProperty(CSSPropertyBorderRadius, AtomicString("inherit", AtomicString::ConstructFromLiteral)); How does the code in InlineFlowBox::nodeAtPoint ...
4 years, 9 months ago (2016-03-07 21:15:51 UTC) #12
Miyoung Shin(c)
https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp File third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp (right): https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp#newcode47 third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp:47: container->setInlineStyleProperty(CSSPropertyBorderRadius, AtomicString("inherit", AtomicString::ConstructFromLiteral)); On 2016/03/07 21:15:50, pdr wrote: > ...
4 years, 9 months ago (2016-03-09 12:28:07 UTC) #13
pdr.
Sorry it took a while to get to this. https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp File third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp (right): https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp#newcode47 third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp:47: ...
4 years, 9 months ago (2016-03-21 05:26:10 UTC) #14
Miyoung Shin(c)
I've uploaded the new patch. PTAL. https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp File third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp (right): https://codereview.chromium.org/1657483003/diff/40001/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp#newcode47 third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp:47: container->setInlineStyleProperty(CSSPropertyBorderRadius, AtomicString("inherit", AtomicString::ConstructFromLiteral)); ...
4 years, 8 months ago (2016-03-29 22:49:40 UTC) #15
pdr.
Using hitTestClippedOutByRoundedBorder looks much more reasonable but the rest of the patch does not. When ...
4 years, 8 months ago (2016-03-31 04:20:11 UTC) #16
pdr.
To make this review a little faster, please make sure that the tests fail without ...
4 years, 8 months ago (2016-03-31 23:39:13 UTC) #17
Miyoung Shin(c)
I'm travelling on business until 8 Apr to China. A network could be unstable in ...
4 years, 8 months ago (2016-04-03 14:39:25 UTC) #18
Miyoung Shin(c)
Regarding with trybot fail, I need to rebase it. As soon as I come back ...
4 years, 8 months ago (2016-04-03 23:16:01 UTC) #19
Miyoung Shin(c)
I've uploaded the patch, PTAL.
4 years, 8 months ago (2016-04-04 15:45:38 UTC) #20
pdr.
On 2016/04/04 at 15:45:38, myid.shin wrote: > I've uploaded the patch, PTAL. Cool, I like ...
4 years, 8 months ago (2016-04-04 22:40:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657483003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657483003/100001
4 years, 8 months ago (2016-04-04 23:57:50 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/45389) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-04-05 00:05:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657483003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657483003/100001
4 years, 8 months ago (2016-04-06 15:19:28 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-06 16:56:19 UTC) #29
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/58453820ceb5beada016cb6509d244d152776574 Cr-Commit-Position: refs/heads/master@{#385480}
4 years, 8 months ago (2016-04-06 16:57:54 UTC) #31
esprehn
Hmmm inheriting border-radius seems very wrong, why does image fallback content need to do that? ...
4 years, 8 months ago (2016-04-06 17:48:14 UTC) #32
esprehn
Please revert this and fix whatever the real problem is, adding inherit to the fallback ...
4 years, 8 months ago (2016-04-06 17:50:08 UTC) #34
pdr.
On 2016/04/06 at 17:50:08, esprehn wrote: > Please revert this and fix whatever the real ...
4 years, 8 months ago (2016-04-06 17:58:05 UTC) #35
pdr.
On 2016/04/06 at 17:58:05, pdr wrote: > On 2016/04/06 at 17:50:08, esprehn wrote: > > ...
4 years, 8 months ago (2016-04-07 22:38:02 UTC) #36
Miyoung Shin(c)
> @myid.shin, Elliott and I talked offline and I'm convinced we have another bug > ...
4 years, 8 months ago (2016-04-10 14:01:35 UTC) #37
pdr.
4 years, 8 months ago (2016-04-11 03:31:01 UTC) #38
Message was sent while issue was closed.
On 2016/04/10 at 14:01:35, myid.shin wrote:
> > @myid.shin, Elliott and I talked offline and I'm convinced we have another
bug
> > here. Do you mind reverting just the inherit part and filing a bug?
Something
> > doesn't seem right with using inherit there and I'd like to address it
separate
> > from the core fix in this patch.
> 
> I've uploaded the reverting patch at
https://codereview.chromium.org/1877733002/.
> BTW, could you explain what issue we can get by |inherit| in detail? It would
be helpful to the next patch and prevent the mistake for the next time.
> in_reply_to: 5743868070854656

I've added a comment to the bug (568896). My current thinking is that this isn't
really a bug with your patch, but instead it's a bug in the html image fallback
code.

I think it would be useful to try to confirm that theory by reproducing it in
regular shadow dom. If we can confirm this is really a bug in
HTMLImageFallbackHelper, I don't think it's particularly high-priority to fix
compared to other hit testing bugs like crbug.com/468497.

Powered by Google App Engine
This is Rietveld 408576698