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

Issue 1072403007: Fixup a bug about SVG text selection. (Closed)

Created:
5 years, 8 months ago by hyunjunekim2
Modified:
5 years, 7 months ago
Reviewers:
pdr., fs, pfeldman
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, Dominik Röttsches, ed+blinkwatch_opera.com, krit, f(malita), jchaffraix+rendering, gyuyoung2, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fixup a bug about SVG text selection. This CL is to fix bugs with collapsed whitespace for SVG text selection. The expression is wrong for calculating distance. BUG=477545 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194860

Patch Set 1 : Draft 1 #

Patch Set 2 : add test #

Total comments: 7

Patch Set 3 : Draft 2 #

Patch Set 4 : Draft 3 #

Patch Set 5 : Draft 4 #

Patch Set 6 : add a line. #

Total comments: 2

Patch Set 7 : Draft 5 #

Patch Set 8 : Draft 6 #

Patch Set 9 : Draft 7 #

Patch Set 10 : Draft 8 #

Patch Set 11 : Draft 9 #

Patch Set 12 : Draft 10 #

Patch Set 13 : Update test for no containing on the rect. #

Patch Set 14 : Draft 11 #

Patch Set 15 : Draft 12(Discard decimal point.) #

Patch Set 16 : Draft 13 #

Total comments: 2

Patch Set 17 : Draft 14 #

Total comments: 3

Patch Set 18 : Draft 15 #

Patch Set 19 : Draft 16 (remove floor) #

Total comments: 5

Patch Set 20 : Draft 17 #

Patch Set 21 : Draft 18 #

Patch Set 22 : Draft 19 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -5 lines) Patch
A LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +83 lines, -0 lines 0 comments Download
A LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +33 lines, -0 lines 0 comments Download
M Source/core/layout/svg/LayoutSVGInlineText.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 79 (2 generated)
hyunjunekim2
Hi, I'm hyunjunekim (hyunjune.kim@samsung.com, hykim0777@gamil.com). Could you check this? Thank you.
5 years, 8 months ago (2015-04-20 13:18:54 UTC) #2
fs
On 2015/04/20 13:18:54, hyunjunekim2 wrote: > Hi, I'm hyunjunekim (mailto:hyunjune.kim@samsung.com, mailto:hykim0777@gamil.com). Could you > check ...
5 years, 8 months ago (2015-04-20 13:24:28 UTC) #3
hyunjunekim2
On 2015/04/20 13:24:28, fs wrote: > On 2015/04/20 13:18:54, hyunjunekim2 wrote: > > Hi, I'm ...
5 years, 8 months ago (2015-04-20 13:24:53 UTC) #4
hyunjunekim2
On 2015/04/20 13:24:53, hyunjunekim2 wrote: > On 2015/04/20 13:24:28, fs wrote: > > On 2015/04/20 ...
5 years, 8 months ago (2015-04-20 16:29:32 UTC) #5
fs
https://codereview.chromium.org/1072403007/diff/20001/LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html File LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html (right): https://codereview.chromium.org/1072403007/diff/20001/LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html#newcode3 LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html:3: <head> Drop <html> and <head> https://codereview.chromium.org/1072403007/diff/20001/LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html#newcode4 LayoutTests/svg/text/select-svg-text-with-collapsed-whitespace.html:4: <title>Test for ...
5 years, 8 months ago (2015-04-21 10:46:20 UTC) #6
hyunjunekim2
fs, OMG... Remain bugs, when the blink read it. ======================================================================================================================================= <text id="text2" x="20" y="40"> <tspan ...
5 years, 8 months ago (2015-04-21 15:45:44 UTC) #7
fs
On 2015/04/21 15:45:44, hyunjunekim2 wrote: > fs, OMG... > Remain bugs, when the blink read ...
5 years, 8 months ago (2015-04-22 07:48:32 UTC) #8
hyunjunekim2
On 2015/04/22 07:48:32, fs wrote: > On 2015/04/21 15:45:44, hyunjunekim2 wrote: > > fs, OMG... ...
5 years, 8 months ago (2015-04-22 09:55:08 UTC) #9
fs
On 2015/04/22 09:55:08, hyunjunekim2 wrote: > On 2015/04/22 07:48:32, fs wrote: ... > > The ...
5 years, 8 months ago (2015-04-22 10:47:22 UTC) #10
hyunjunekim2
On 2015/04/22 10:47:22, fs wrote: > On 2015/04/22 09:55:08, hyunjunekim2 wrote: > > On 2015/04/22 ...
5 years, 8 months ago (2015-04-23 02:18:45 UTC) #11
hyunjunekim2
On 2015/04/23 02:18:45, hyunjunekim2 wrote: > On 2015/04/22 10:47:22, fs wrote: > > On 2015/04/22 ...
5 years, 8 months ago (2015-04-23 14:16:45 UTC) #12
fs
On 2015/04/23 14:16:45, hyunjunekim2 wrote: ... > fs, I arranged codes. If there is absolute-point ...
5 years, 8 months ago (2015-04-23 16:29:51 UTC) #13
hyunjunekim2
> https://codereview.chromium.org/1072403007/diff/100001/Source/core/layout/svg/LayoutSVGInlineText.cpp#newcode189 > Source/core/layout/svg/LayoutSVGInlineText.cpp:189: if (absolutePoint.x() > > fragmentRect.center().x() && absolutePoint.x() < fragmentRect.maxX()) { > ...
5 years, 8 months ago (2015-04-24 13:40:15 UTC) #14
hyunjunekim2
o : absolute-Point
5 years, 8 months ago (2015-04-24 13:41:05 UTC) #15
hyunjunekim2
a : SVGTextFragment b : SVGTextFragment
5 years, 8 months ago (2015-04-24 13:50:58 UTC) #16
fs
On 2015/04/24 13:40:15, hyunjunekim2 wrote: > > > https://codereview.chromium.org/1072403007/diff/100001/Source/core/layout/svg/LayoutSVGInlineText.cpp#newcode189 > > Source/core/layout/svg/LayoutSVGInlineText.cpp:189: if (absolutePoint.x() > ...
5 years, 8 months ago (2015-04-24 14:00:28 UTC) #17
hyunjunekim2
On 2015/04/24 14:00:28, fs wrote: > On 2015/04/24 13:40:15, hyunjunekim2 wrote: > > > > ...
5 years, 8 months ago (2015-04-24 14:09:01 UTC) #18
hyunjunekim2
On 2015/04/24 14:09:01, hyunjunekim2 wrote: > On 2015/04/24 14:00:28, fs wrote: > > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 14:10:45 UTC) #19
hyunjunekim2
On 2015/04/24 14:10:45, hyunjunekim2 wrote: > On 2015/04/24 14:09:01, hyunjunekim2 wrote: > > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 14:12:31 UTC) #20
fs
On 2015/04/24 14:10:45, hyunjunekim2 wrote: > On 2015/04/24 14:09:01, hyunjunekim2 wrote: > > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 14:15:09 UTC) #21
fs
On 2015/04/24 14:12:31, hyunjunekim2 wrote: ... > Is RTL text like Arabic? Could be, Hebrew ...
5 years, 8 months ago (2015-04-24 14:18:07 UTC) #22
hyunjunekim2
On 2015/04/24 14:15:09, fs wrote: > On 2015/04/24 14:10:45, hyunjunekim2 wrote: > > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 14:31:03 UTC) #23
hyunjunekim2
fs, Could you check PS8 and give me feedback?
5 years, 8 months ago (2015-04-24 14:43:34 UTC) #24
fs
On 2015/04/24 14:31:03, hyunjunekim2 wrote: ... > |----|---|-----| > | | x x > | ...
5 years, 8 months ago (2015-04-24 14:48:23 UTC) #25
hyunjunekim2
On 2015/04/24 14:48:23, fs wrote: > On 2015/04/24 14:31:03, hyunjunekim2 wrote: > ... > > ...
5 years, 8 months ago (2015-04-24 14:56:33 UTC) #26
hyunjunekim2
fs, I fixed it. Could you give me feedback? and i'm sorry I can not ...
5 years, 8 months ago (2015-04-24 15:35:53 UTC) #27
hyunjunekim2
On 2015/04/24 15:35:53, hyunjunekim2 wrote: > fs, I fixed it. Could you give me feedback? ...
5 years, 8 months ago (2015-04-24 16:14:57 UTC) #28
hyunjunekim2
I updated patch.(PS 11)
5 years, 8 months ago (2015-04-24 16:16:58 UTC) #29
hyunjunekim2
fs, I updated patch applied clamping the queried point to the fragment rect.(PS 14). I ...
5 years, 8 months ago (2015-04-25 12:22:50 UTC) #30
hyunjunekim2
Occurred to test fail(select-textLength-spacing-squeeze-2.svg).
5 years, 8 months ago (2015-04-25 12:23:45 UTC) #31
hyunjunekim2
On 2015/04/25 12:23:45, hyunjunekim2 wrote: > Occurred to test fail(select-textLength-spacing-squeeze-2.svg). Is test called 'select-textLength-spacing-squeeze-2.svg' wrong? ...
5 years, 8 months ago (2015-04-25 12:32:23 UTC) #32
hyunjunekim2
fs, I updated patch set. Could you check this patch and give me feedback?
5 years, 8 months ago (2015-04-27 02:42:48 UTC) #33
hyunjunekim2
And about patch set 15, I ran LayoutTest on |svg/text|. The results are pass of ...
5 years, 8 months ago (2015-04-27 03:56:21 UTC) #34
fs
On 2015/04/25 12:32:23, hyunjunekim2 wrote: > On 2015/04/25 12:23:45, hyunjunekim2 wrote: > > Occurred to ...
5 years, 8 months ago (2015-04-27 09:02:00 UTC) #35
hyunjunekim2
On 2015/04/27 09:02:00, fs wrote: > On 2015/04/25 12:32:23, hyunjunekim2 wrote: > > On 2015/04/25 ...
5 years, 8 months ago (2015-04-27 10:06:36 UTC) #36
fs
On 2015/04/27 10:06:36, hyunjunekim2 wrote: > On 2015/04/27 09:02:00, fs wrote: > > On 2015/04/25 ...
5 years, 8 months ago (2015-04-27 10:34:23 UTC) #37
hyunjunekim2
> what points the test uses to perform selection? this points are extract on select-textLength-spacing-squeeze-2.svg. ...
5 years, 8 months ago (2015-04-27 12:52:56 UTC) #38
fs
On 2015/04/27 12:52:56, hyunjunekim2 wrote: > > what points the test uses to perform selection? ...
5 years, 8 months ago (2015-04-27 13:02:17 UTC) #39
hyunjunekim2
fs, I updated PS 17. Except |floorf|, When click red area on select-textLength-spacing-squeeze-2.svg, i re-printed ...
5 years, 8 months ago (2015-04-27 14:15:25 UTC) #40
fs
On 2015/04/27 14:15:25, hyunjunekim2 wrote: > fs, I updated PS 17. > Except |floorf|, When ...
5 years, 8 months ago (2015-04-27 14:43:51 UTC) #41
fs
https://codereview.chromium.org/1072403007/diff/310001/Source/core/layout/svg/LayoutSVGInlineText.cpp File Source/core/layout/svg/LayoutSVGInlineText.cpp (right): https://codereview.chromium.org/1072403007/diff/310001/Source/core/layout/svg/LayoutSVGInlineText.cpp#newcode62 Source/core/layout/svg/LayoutSVGInlineText.cpp:62: static float squaredDistance(const FloatRect& rect, const FloatPoint& point) squaredDistanceToClosestPoint[OnRect] ...
5 years, 8 months ago (2015-04-27 14:44:08 UTC) #42
hyunjunekim2
On 2015/04/27 14:43:51, fs wrote: > On 2015/04/27 14:15:25, hyunjunekim2 wrote: > > fs, I ...
5 years, 8 months ago (2015-04-27 15:44:01 UTC) #43
fs
On 2015/04/27 15:44:01, hyunjunekim2 wrote: > On 2015/04/27 14:43:51, fs wrote: > > On 2015/04/27 ...
5 years, 8 months ago (2015-04-27 16:04:49 UTC) #44
fs
I uploaded the suggest test framework fix: https://codereview.chromium.org/1108033002 It seems all svg/text tests still pass ...
5 years, 8 months ago (2015-04-27 16:18:47 UTC) #45
hyunjunekim2
fs, I updated PS 19 was removed |floor|. And in https://codereview.chromium.org/1108033002, I requested. like |absStartPos.x ...
5 years, 8 months ago (2015-04-28 02:26:06 UTC) #46
hyunjunekim2
>When you "manually click red area", you will trigger the contains(...) code-path (distance=0). We can ...
5 years, 8 months ago (2015-04-28 02:46:13 UTC) #47
hyunjunekim2
>> When make fragment, I thank that has a bug or problem. > I don't ...
5 years, 8 months ago (2015-04-28 05:50:22 UTC) #48
fs
On 2015/04/28 02:46:13, hyunjunekim2 wrote: > >When you "manually click red area", you will trigger ...
5 years, 8 months ago (2015-04-28 08:57:03 UTC) #49
hyunjunekim2
On 2015/04/28 08:57:03, fs wrote: > On 2015/04/28 02:46:13, hyunjunekim2 wrote: > > >When you ...
5 years, 7 months ago (2015-04-28 14:22:04 UTC) #50
hyunjunekim2
On 2015/04/28 14:22:04, hyunjunekim2 wrote: > On 2015/04/28 08:57:03, fs wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 14:29:18 UTC) #51
fs
On 2015/04/28 14:22:04, hyunjunekim2 wrote: > On 2015/04/28 08:57:03, fs wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 14:33:34 UTC) #52
hyunjunekim2
On 2015/04/28 14:33:34, fs wrote: > On 2015/04/28 14:22:04, hyunjunekim2 wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 14:37:18 UTC) #53
hyunjunekim2
On 2015/04/28 14:37:18, hyunjunekim2 wrote: > On 2015/04/28 14:33:34, fs wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 15:00:21 UTC) #54
fs
On 2015/04/28 15:00:21, hyunjunekim2 wrote: ... > So, I am analyzing for the X coordinate. ...
5 years, 7 months ago (2015-04-28 15:27:08 UTC) #55
hyunjunekim2
On 2015/04/28 15:27:08, fs wrote: > On 2015/04/28 15:00:21, hyunjunekim2 wrote: > ... > > ...
5 years, 7 months ago (2015-04-28 15:37:33 UTC) #56
fs
On 2015/04/28 15:37:33, hyunjunekim2 wrote: > On 2015/04/28 15:27:08, fs wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 15:43:24 UTC) #57
hyunjunekim2
fs, Sorry. Could you explain user-space and absolute-space to me? Thank you.
5 years, 7 months ago (2015-04-28 16:01:06 UTC) #58
hyunjunekim2
On 2015/04/28 16:01:06, hyunjunekim2 wrote: > fs, > Sorry. Could you explain user-space and absolute-space ...
5 years, 7 months ago (2015-04-28 16:03:03 UTC) #59
fs
On 2015/04/28 16:03:03, hyunjunekim2 wrote: > On 2015/04/28 16:01:06, hyunjunekim2 wrote: > > fs, > ...
5 years, 7 months ago (2015-04-28 16:11:52 UTC) #60
hyunjunekim2
On 2015/04/28 16:11:52, fs wrote: > On 2015/04/28 16:03:03, hyunjunekim2 wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 16:29:31 UTC) #61
fs
On 2015/04/28 16:29:31, hyunjunekim2 wrote: > On 2015/04/28 16:11:52, fs wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 16:33:51 UTC) #62
hyunjunekim2
fs, Hi, I updated PS 20. Could you check PS 20? I made adjustedPoint which ...
5 years, 7 months ago (2015-04-29 04:48:42 UTC) #63
fs
On 2015/04/29 04:48:42, hyunjunekim2 wrote: > fs, > Hi, I updated PS 20. Could you ...
5 years, 7 months ago (2015-04-29 08:55:02 UTC) #64
hyunjunekim2
fs, I think that the test frame work looks good to me. Does position of ...
5 years, 7 months ago (2015-04-29 13:17:10 UTC) #65
hyunjunekim2
fs, M1 = SVGRoot.getScreenCTM M2 = element.getScreenCTM p = user space position(getStartPositionOfChar) Do you say ...
5 years, 7 months ago (2015-04-29 13:23:27 UTC) #66
fs
On 2015/04/29 13:17:10, hyunjunekim2 wrote: ... > I think that the test frame work looks ...
5 years, 7 months ago (2015-04-29 14:36:22 UTC) #67
hyunjunekim2
fs, Ok, I will update new patch for test framework. And I have learned many ...
5 years, 7 months ago (2015-04-30 06:47:50 UTC) #68
hyunjunekim2
fs, I have a question. Why are the results different from gecko about svg positioning?
5 years, 7 months ago (2015-04-30 13:38:48 UTC) #69
fs
On 2015/04/30 13:38:48, hyunjunekim2 wrote: > fs, > I have a question. Why are the ...
5 years, 7 months ago (2015-04-30 13:41:49 UTC) #70
hyunjunekim2
On 2015/04/30 13:41:49, fs wrote: > On 2015/04/30 13:38:48, hyunjunekim2 wrote: > > fs, > ...
5 years, 7 months ago (2015-04-30 13:45:19 UTC) #71
hyunjunekim2
fs, Could you check PS 22? Thank you.
5 years, 7 months ago (2015-04-30 16:30:12 UTC) #72
fs
lgtm
5 years, 7 months ago (2015-05-04 10:34:40 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072403007/410001
5 years, 7 months ago (2015-05-04 11:34:38 UTC) #75
commit-bot: I haz the power
Committed patchset #22 (id:410001) as https://src.chromium.org/viewvc/blink?view=rev&revision=194860
5 years, 7 months ago (2015-05-04 12:44:29 UTC) #76
hyunjunekim2
fs and pdr, I have some question and ask you something. If I get chromium.org ...
5 years, 7 months ago (2015-05-04 12:47:16 UTC) #77
pdr.
On 2015/05/04 at 12:47:16, hyunjune.kim wrote: > fs and pdr, > I have some question ...
5 years, 7 months ago (2015-05-04 21:43:02 UTC) #78
hyunjunekim2
5 years, 7 months ago (2015-05-05 02:00:58 UTC) #79
Message was sent while issue was closed.
On 2015/05/04 21:43:02, pdr wrote:
> On 2015/05/04 at 12:47:16, hyunjune.kim wrote:
> > fs and pdr,
> > I have some question and ask you something.
> > If I get http://chromium.org and trybot authority,
> > It will be better than now and more and more i will be bast on the blink.
> > Is it possible?
> > 
> > This is my activity.
> >
>
+https://codereview.chromium.org/search?closed=1&owner=hyunjune.kim@samsung.com
> > +https://codereview.chromium.org/search?closed=1&owner=hykim0777@gmail.com
> > 
> > I want to join in chromium team. :)
> > Thank you.
> 
> I just nominated you for trybot and editbugs access. I think this typically
> takes a week to go through.
> 
> A @chromium account requires becoming a committer.

pdf,
Thank you. I will do my best more for becoming a committer.

Powered by Google App Engine
This is Rietveld 408576698