Re: Transformed Pointer Coordinates?

On Wed, Jan 30, 2013 at 5:20 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> Not particularly happy with the naming, but +1 on the ability *so much*.
>
> I suspect it should go in CSSOM View?
>

Probably.

As for naming: should we call the type CSSPoint? Or is it OK to take
"Point" for this? convertPointFromPageToNode doesn't strike me as a great
name but it's probably not worth changing.

There are a bunch of edge cases to sort out --- e.g. nodes with no
associated CSS box; nodes with more than one CSS box; nodes in a different
document; nodes inside a container with a singular CSS transform; etc. I
have no idea how Webkit handles any of those.

In theory one could run into problems using these APIs to convert points
from one node to another, where both nodes are in a subtree whose root has
a singular CSS transform. Converting through the page coordinate system
would lose information unnecessarily. That problem may not be worth
worrying about.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]

Received on Wednesday, 30 January 2013 09:42:19 UTC