struct Protocol::Page::GetLayoutMetrics
- Protocol::Page::GetLayoutMetrics
- Struct
- Value
- Object
Overview
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
Included Modules
- JSON::Serializable
- Protocol::Command
Defined in:
protocol/page.crConstructors
Instance Method Summary
-
#content_size : DOM::Rect
Deprecated size of scrollable area.
-
#css_content_size : DOM::Rect
Size of scrollable area in CSS pixels.
-
#css_layout_viewport : LayoutViewport
Metrics relating to the layout viewport in CSS pixels.
-
#css_visual_viewport : VisualViewport
Metrics relating to the visual viewport in CSS pixels.
-
#layout_viewport : LayoutViewport
Deprecated metrics relating to the layout viewport.
-
#visual_viewport : VisualViewport
Deprecated metrics relating to the visual viewport.
Constructor Detail
Instance Method Detail
Deprecated size of scrollable area. Is in DP. Use cssContentSize
instead.
def layout_viewport : LayoutViewport
#
Deprecated metrics relating to the layout viewport. Is in device pixels. Use cssLayoutViewport
instead.
def visual_viewport : VisualViewport
#
Deprecated metrics relating to the visual viewport. Is in device pixels. Use cssVisualViewport
instead.