Availability | Available in Safari 4.0 and later. Available in iPhone OS 1.1.1 and later. |
Companion guides |
DOMWindow
additions allow conversion of points from page- and node-coordinate systems for transitions.
The application cache associated with the current document.
readonly attribute DOMApplicationCache applicationCache;
Specifies the orientation of the device.
readonly attribute long orientation;
This property is set to one of the values in Table 1. For example, if the user starts with the device in portrait orientation and then changes to landscape orientation by turning the device to the right, the window’s orientation
property is set to -90
. If the user instead changes to landscape by turning the device to the left, the window’s orientation
property is set to 90
. The default value is 0
.
Value | Description |
---|---|
| Portrait orientation. This is the default value. |
| Landscape orientation with the screen turned clockwise. |
| Landscape orientation with the screen turned counterclockwise. |
| Portrait orientation with the screen turned upside down. This value is currently not supported on iPhone. |
Converts a point from a given node’s coordinates to page coordinates.
WebKitPoint webkitConvertPointFromNodeToPage(in Node node, in WebKitPoint p);
The coordinate space for p.
A point in node’s coordinates to convert to page coordinates.
A point that is at the same location as p but in the page coordinates.
Converts a point from page coordinates to a given node’s coordinates.
WebKitPoint webkitConvertPointFromPageToNode(in Node node, in WebKitPoint p);
The coordinate space to convert the given point to.
A point in page coordinates to convert to node’s coordinates.
A point that is at the same location as p but in the node’s coordinates.
Last updated: 2010-02-24