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

Issue 1034433003: Hittest for RootInlineBox/InlineFlowBox should take care of border-radius. (Closed)

Created:
5 years, 9 months ago by Abhijeet Kandalkar Slow
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

HitTest for RootInlineBox/InlineFlowBox should take care of border-radius. Current behavior of hit testing works properly for LayoutBlock and InlineBox having border style but doesn't take care of RootInlineBox/InlineFlowBox with border style and hence returns the wrong element. This patch adds the implementation for border style handling to RootInlineBox/InlineFlowBox to try to match FF. BUG=468760 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192994

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 6

Patch Set 6 : Patch for landing #

Total comments: 4

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -0 lines) Patch
A LayoutTests/fast/borders/border-hittest-inlineFlowBox.html View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A LayoutTests/fast/borders/border-hittest-inlineFlowBox-expected.txt View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/layout/line/InlineFlowBox.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
Abhijeet Kandalkar Slow
Please review patch.
5 years, 9 months ago (2015-03-24 12:07:00 UTC) #2
davve
https://codereview.chromium.org/1034433003/diff/1/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/1/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode14 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:14: #test:hover { You want to keep the hover rule ...
5 years, 9 months ago (2015-03-24 13:26:03 UTC) #3
Abhijeet Kandalkar Slow
Please review updated patch. https://codereview.chromium.org/1034433003/diff/1/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/1/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode14 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:14: #test:hover { On 2015/03/24 13:26:03, ...
5 years, 9 months ago (2015-03-24 14:42:44 UTC) #4
davve
https://codereview.chromium.org/1034433003/diff/1/Source/core/layout/line/InlineFlowBox.cpp File Source/core/layout/line/InlineFlowBox.cpp (right): https://codereview.chromium.org/1034433003/diff/1/Source/core/layout/line/InlineFlowBox.cpp#newcode981 Source/core/layout/line/InlineFlowBox.cpp:981: FloatRoundedRect border = layoutObject().style()->getRoundedBorderFor(borderRect); Hm, when I apply your ...
5 years, 9 months ago (2015-03-24 15:49:14 UTC) #5
Abhijeet Kandalkar Slow
Please review latest patch. It is working fine for line breaking. https://codereview.chromium.org/1034433003/diff/1/Source/core/layout/line/InlineFlowBox.cpp File Source/core/layout/line/InlineFlowBox.cpp (right): ...
5 years, 9 months ago (2015-03-25 12:43:48 UTC) #6
davve
https://codereview.chromium.org/1034433003/diff/40001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/40001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode22 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:22: Two line with <br/>a hard line break. lines https://codereview.chromium.org/1034433003/diff/40001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode31 ...
5 years, 9 months ago (2015-03-26 10:03:37 UTC) #7
Abhijeet Kandalkar Slow
David thanks for your inputs. Please review patch. https://codereview.chromium.org/1034433003/diff/40001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/40001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode22 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:22: Two ...
5 years, 9 months ago (2015-03-27 11:28:59 UTC) #8
davve
https://codereview.chromium.org/1034433003/diff/60001/Source/core/layout/line/InlineFlowBox.cpp File Source/core/layout/line/InlineFlowBox.cpp (right): https://codereview.chromium.org/1034433003/diff/60001/Source/core/layout/line/InlineFlowBox.cpp#newcode985 Source/core/layout/line/InlineFlowBox.cpp:985: for (InlineBox* curr = lastChild(); curr; curr = curr->prevOnLine()) ...
5 years, 9 months ago (2015-03-27 12:40:20 UTC) #9
Abhijeet Kandalkar Slow
Please review latest patch. https://codereview.chromium.org/1034433003/diff/60001/Source/core/layout/line/InlineFlowBox.cpp File Source/core/layout/line/InlineFlowBox.cpp (right): https://codereview.chromium.org/1034433003/diff/60001/Source/core/layout/line/InlineFlowBox.cpp#newcode985 Source/core/layout/line/InlineFlowBox.cpp:985: for (InlineBox* curr = lastChild(); ...
5 years, 9 months ago (2015-03-27 13:08:26 UTC) #10
davve
Big thanks for hanging in there. Non-owner LGTM.
5 years, 9 months ago (2015-03-27 15:24:54 UTC) #11
leviw_travelin_and_unemployed
Code change looks great! Test could be cleaner. https://codereview.chromium.org/1034433003/diff/80001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/80001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode6 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:6: body ...
5 years, 9 months ago (2015-03-27 17:42:26 UTC) #12
Abhijeet Kandalkar Slow
Please review latest patch. https://codereview.chromium.org/1034433003/diff/80001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/80001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode6 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:6: body { margin: 2em; } ...
5 years, 8 months ago (2015-03-30 05:42:20 UTC) #13
leviw_travelin_and_unemployed
https://codereview.chromium.org/1034433003/diff/100001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/100001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode24 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:24: <br/><br/><br/> Why not just put the tests inside of ...
5 years, 8 months ago (2015-03-30 20:45:58 UTC) #14
Abhijeet Kandalkar Slow
@leviw : Incorporated review comments please review. https://codereview.chromium.org/1034433003/diff/100001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/100001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode24 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:24: <br/><br/><br/> On ...
5 years, 8 months ago (2015-03-31 06:20:04 UTC) #15
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/1034433003/diff/120001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File LayoutTests/fast/borders/border-hittest-inlineFlowBox.html (right): https://codereview.chromium.org/1034433003/diff/120001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html#newcode34 LayoutTests/fast/borders/border-hittest-inlineFlowBox.html:34: <span id="D" style="padding: 2em;">D<label id="E" href="#" style="padding: 1em;">E</label></span> ...
5 years, 8 months ago (2015-03-31 18:00:20 UTC) #16
Abhijeet Kandalkar Slow
@leviw : Updated layout test as per review comment. Please review latest patch. https://codereview.chromium.org/1034433003/diff/120001/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html File ...
5 years, 8 months ago (2015-04-01 04:39:40 UTC) #17
leviw_travelin_and_unemployed
Updated your description for you to correct some mistakes... lgtm.
5 years, 8 months ago (2015-04-01 20:13:04 UTC) #18
Abhijeet Kandalkar Slow
On 2015/04/01 20:13:04, leviw wrote: > Updated your description for you to correct some mistakes... ...
5 years, 8 months ago (2015-04-02 02:35:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034433003/140001
5 years, 8 months ago (2015-04-02 02:37:22 UTC) #22
commit-bot: I haz the power
5 years, 8 months ago (2015-04-02 04:19:15 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192994

Powered by Google App Engine
This is Rietveld 408576698