Chromium Code Reviews
DescriptionMake Document::caretRangeFromPoint() to work with :first-letter style
This patch makes Document::caretRangeFromPoint() to work with :first-letter style by changing HitTestResult class to know whether specified point is in a renderer for :first-letter or not. Because of text nodes having :first-letter style are associated to two renderer, one for first letter and another is rest of text, this patch changes nodeFromPoint() to rendererFromPoint() and makes Document::caretRangeFromPoint() to use it.
This patch is a part of fixing issue 174349. Another patch will make selection to work with :first-letter style.
BUG=n/a
TEST=LayoutTests/fast/dom/Document/CaretRangeFromPoint/caretRangeFromPoint-with-first-letter-style.html
R=ojan@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159012
Patch Set 1 : 2013-10-04T19:04:13 #
Total comments: 1
Patch Set 2 : 2013-10-07T15:30:03 #Messages
Total messages: 5 (0 generated)
|