For some reason, GetElementOrigin() computes the offset from the element's primary frame to the first ancestor whose view has a widget. Looking over the callers of this function, they seem to want an offset from the frame tree root or from the nearest positioned ancestor... anything but "nearest ancestor with a widget".
To Daniel, since he wrote this code, so hopefully knows what it's trying to do...
Assignee: mozeditor → daniel
You need to log in before you can comment on or make changes to this bug.