mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Add support for <object>
with image data URLs (#32069)
This is enough support for `<object>` to get Acid2 working. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
a77c15ee16
commit
f379041597
8 changed files with 76 additions and 9 deletions
|
@ -204,7 +204,7 @@ impl BoxTree {
|
|||
|
||||
loop {
|
||||
if let Some((primary_style, display_inside, update_point)) = update_point(dirty_node) {
|
||||
let contents = ReplacedContent::for_element(dirty_node)
|
||||
let contents = ReplacedContent::for_element(dirty_node, context)
|
||||
.map_or(Contents::OfElement, Contents::Replaced);
|
||||
let info = NodeAndStyleInfo::new(dirty_node, Arc::clone(&primary_style));
|
||||
let out_of_flow_absolutely_positioned_box = ArcRefCell::new(
|
||||
|
@ -262,8 +262,8 @@ fn construct_for_root_element<'dom>(
|
|||
Display::GeneratingBox(display_generating_box) => display_generating_box.display_inside(),
|
||||
};
|
||||
|
||||
let contents =
|
||||
ReplacedContent::for_element(root_element).map_or(Contents::OfElement, Contents::Replaced);
|
||||
let contents = ReplacedContent::for_element(root_element, context)
|
||||
.map_or(Contents::OfElement, Contents::Replaced);
|
||||
let root_box = if box_style.position.is_absolutely_positioned() {
|
||||
BlockLevelBox::OutOfFlowAbsolutelyPositionedBox(ArcRefCell::new(
|
||||
AbsolutelyPositionedBox::construct(context, &info, display_inside, contents),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue