New issue
Advanced search Search tips

Issue 775024 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

CanvasRenderingContext2D scrollPathIntoView() uses center alignment instead of nearest

Project Member Reported by zcorpan@gmail.com, Oct 16 2017

Issue description

Comment 1 by junov@chromium.org, Oct 16 2017

Owner: fs...@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by fs...@chromium.org, Oct 20 2017

Status: Started (was: Assigned)
Sent for review. That said, the second demo that you give is broken. `strokeRect` doesn't create a path. So it needs to be something like:

ctx.rect(10,10,100,100);
ctx.stroke();
ctx.scrollPathIntoView();


Project Member

Comment 3 by bugdroid1@chromium.org, Oct 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8eda6c0db7113b5eaf81dfa078e7ea076aeb0aec

commit 8eda6c0db7113b5eaf81dfa078e7ea076aeb0aec
Author: Fernando Serboncini <fserb@chromium.org>
Date: Mon Oct 23 18:09:47 2017

Fix Canvas' scrollPathIntoView to support latest spec

Canvas scroll now to nearest.

Bug:  775024 
Change-Id: Ie3f5e1ea20e0c10795ac7bf60ce1a9fe03e58dcc
Reviewed-on: https://chromium-review.googlesource.com/731106
Commit-Queue: Fernando Serboncini <fserb@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510851}
[modify] https://crrev.com/8eda6c0db7113b5eaf81dfa078e7ea076aeb0aec/third_party/WebKit/LayoutTests/fast/canvas-api/script-tests/canvas-scroll-path-into-view.js
[modify] https://crrev.com/8eda6c0db7113b5eaf81dfa078e7ea076aeb0aec/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Comment 4 by fs...@chromium.org, Oct 23 2017

Status: Fixed (was: Started)
Done. I still think some of those scrolling are weird. But the changes suggested are done. So closing.

Sign in to add a comment