mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Store resolved font style in canvas context state
This commit is contained in:
parent
5493424d9a
commit
15fd256302
11 changed files with 81 additions and 49 deletions
|
@ -7,7 +7,7 @@ use euclid::default::Rect;
|
|||
use euclid::Size2D;
|
||||
use script_traits::UntrustedNodeAddress;
|
||||
use servo_arc::Arc;
|
||||
use style::properties::ComputedValues;
|
||||
use style::properties::style_structs::Font;
|
||||
use style_traits::CSSPixel;
|
||||
use webrender_api::ExternalScrollId;
|
||||
|
||||
|
@ -32,8 +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>>;
|
||||
/// Query layout to get the resolved font style for canvas.
|
||||
fn resolved_font_style(&self) -> Option<Arc<Font>>;
|
||||
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