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

Issue 96483003: CANCEL: Make Document::caretRangeFromPoint() to work with :before style

Created:
7 years ago by yosin_UTC9
Modified:
6 years, 6 months ago
CC:
blink-reviews, zoltan1, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering, jparent
Visibility:
Public.

Description

Make Document::caretRangeFromPoint() to work with :before style This patch is a part of fixing issue 269556 by handling pseudo element in EventHandler. This patch makes Document::caretRangeFromPoint() to work with :before style by changing HitTestResult class to handle pseudo element in position() and renderer() member functions. There is similar patch for fixing caretRangeFromPoint() for :first-letter style: https://codereview.chromium.org/25668008 BUG=269556 TEST=LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html

Patch Set 1 : 2013-11-29T17:59:37 #

Total comments: 4

Patch Set 2 : 2013-12-03T12:38:54 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -30 lines) Patch
A + LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html View 1 1 chunk +10 lines, -7 lines 1 comment Download
A LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/dom/TreeScope.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/TreeScope.cpp View 1 chunk +9 lines, -15 lines 0 comments Download
M Source/core/rendering/HitTestResult.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
7 years ago (2013-11-29 23:12:38 UTC) #1
ojan
Is returning null really the behavior we want? I'd expect clicking on a psuedo-element to ...
7 years ago (2013-12-02 22:39:54 UTC) #2
yosin_UTC9
PTAL https://codereview.chromium.org/96483003/diff/30001/LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html File LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html (right): https://codereview.chromium.org/96483003/diff/30001/LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html#newcode9 LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-before-style.html:9: <div id="console"></div> On 2013/12/02 22:39:54, ojan wrote: > ...
7 years ago (2013-12-03 05:13:00 UTC) #3
ojan
You didn't respond to my main questions... Is returning null really the behavior we want? ...
7 years ago (2013-12-03 23:48:22 UTC) #4
esprehn
Clicking a pseudo should definitely put the caret right after it. I think Firefox does ...
7 years ago (2013-12-03 23:50:42 UTC) #5
yosin_UTC9
On 2013/12/03 23:48:22, ojan wrote: > You didn't respond to my main questions... > > ...
7 years ago (2013-12-04 01:36:51 UTC) #6
yosin_UTC9
On 2013/12/03 23:50:42, esprehn wrote: > Clicking a pseudo should definitely put the caret right ...
7 years ago (2013-12-04 01:37:23 UTC) #7
yosin_UTC9
7 years ago (2013-12-04 01:54:13 UTC) #8
Note: putting caret to non-pseudo element is done by VisiblePosition in
EventHandler.

Powered by Google App Engine
This is Rietveld 408576698