Fix ./mach build --release --with-layout-2020

This commit is contained in:
Utsav Oza 2020-05-29 01:04:52 +05:30
parent f3cb7a1910
commit 43051c7bf3
2 changed files with 8 additions and 2 deletions

View file

@ -21,13 +21,14 @@ use script_layout_interface::wrapper_traits::{
};
use script_traits::LayoutMsg as ConstellationMsg;
use script_traits::UntrustedNodeAddress;
use servo_arc::Arc as ServoArc;
use std::collections::HashMap;
use std::sync::{Arc, Mutex};
use style::computed_values::position::T as Position;
use style::context::{StyleContext, ThreadLocalStyleContext};
use style::dom::OpaqueNode;
use style::dom::TElement;
use style::properties::{LonghandId, PropertyDeclarationId, PropertyId};
use style::properties::{ComputedValues, LonghandId, PropertyDeclarationId, PropertyId};
use style::selector_parser::PseudoElement;
use style::stylist::RuleInclusion;
use style::traversal::resolve_style;
@ -139,6 +140,10 @@ impl LayoutRPC for LayoutRPCImpl {
ResolvedStyleResponse(rw_data.resolved_style_response.clone())
}
fn parsed_font(&self) -> Option<ServoArc<ComputedValues>> {
unimplemented!()
}
fn offset_parent(&self) -> OffsetParentResponse {
let &LayoutRPCImpl(ref rw_data) = self;
let rw_data = rw_data.lock().unwrap();