mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Query layout to resolve canvas font property value
This commit is contained in:
parent
f161ab8e57
commit
7883718c12
11 changed files with 161 additions and 9 deletions
|
@ -6,6 +6,8 @@ use app_units::Au;
|
|||
use euclid::default::Rect;
|
||||
use euclid::Size2D;
|
||||
use script_traits::UntrustedNodeAddress;
|
||||
use servo_arc::Arc;
|
||||
use style::properties::ComputedValues;
|
||||
use style_traits::CSSPixel;
|
||||
use webrender_api::ExternalScrollId;
|
||||
|
||||
|
@ -30,6 +32,8 @@ pub trait LayoutRPC {
|
|||
fn node_scroll_id(&self) -> NodeScrollIdResponse;
|
||||
/// Query layout for the resolved value of a given CSS property
|
||||
fn resolved_style(&self) -> ResolvedStyleResponse;
|
||||
/// Query layout to get the parsed font property for canvas.
|
||||
fn parsed_font(&self) -> Option<Arc<ComputedValues>>;
|
||||
fn offset_parent(&self) -> OffsetParentResponse;
|
||||
fn text_index(&self) -> TextIndexResponse;
|
||||
/// Requests the list of nodes from the given point.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue