Closed Bug 500406 Opened 17 years ago Closed 9 years ago

add support for NPN_ConvertPoint on all platforms

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jaas, Unassigned)

Details

Attachments

(1 file, 3 obsolete files)

We should add support for NPN_ConvertPoint to our NPAPI implementation.
Modifying this bug to be specifically about expanding our implementation for all platforms. Right now calling NPN_ConvertPoint will fail on all platforms except for Mac OS X.
Summary: add support for NPN_ConvertPoint → add support for NPN_ConvertPoint on all platforms
Attached patch test v1.0 (obsolete) — Splinter Review
First revision of a test for NPN_ConvertPoint.
Attached patch test v1.1 (obsolete) — Splinter Review
Fix some bugs in the test.
Attachment #406331 - Attachment is obsolete: true
We need a frame point-conversion function that uses nsIFrame::GetTransformMatrix so it works with transforms.
Attached patch test v1.2 (obsolete) — Splinter Review
Might as well get this into the tree now as a Mac-only test. It passes with our existing impl.
Attachment #406466 - Attachment is obsolete: true
Attachment #408913 - Flags: review?(roc)
+* convertPointMatch(sourceSpace, sourceX, sourceY, destSpace, destX, destY) +The plugin uses NPN_ConvertPoint to convert sourceX and sourceY from the source +to dest space and returns true if the results from NPN_ConvertPoint match the +destX and destY coordinates. I'd prefer to have convertPointX and convertPointY, both of which take (sourceSpace, sourceX, sourceY, destSpace), and do the comparison in the test code. That way we get better test failure output if something fails, and the method might be useful for other things later on.
Attached patch test v1.3Splinter Review
Attachment #408913 - Attachment is obsolete: true
Attachment #411135 - Flags: review?(roc)
Attachment #408913 - Flags: review?(roc)
test v1.3 pushed to mozilla-central http://hg.mozilla.org/mozilla-central/rev/e1e6c6e410d8
In order to do this we'll need to write up a spec and propose it. Until then, NPN_ConvertPoint will be only for the Cocoa event model. https://wiki.mozilla.org/NPAPI
Assignee: joshmoz → nobody
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: