@@ -216,7 +216,7 @@ struct BuilderContext {
216
216
style->display = Display{Display::Inside::FLOW, Display::Outside::BLOCK};
217
217
218
218
auto newInlineBox = InlineBox::fromInterruptedInlineBox (*_rootInlineBox);
219
- _parent.add ({style, _parent. fontFace , std::move (*_rootInlineBox), nullptr });
219
+ _parent.add ({style, std::move (*_rootInlineBox), nullptr });
220
220
*_rootInlineBox = std::move (newInlineBox);
221
221
}
222
222
@@ -403,7 +403,7 @@ void buildSVGElement(Gc::Ref<Dom::Element> el, SVG::Group* group) {
403
403
buildSVGAggregate (el, &newSvgRoot);
404
404
group->add (std::move (newSvgRoot));
405
405
} else if (el->qualifiedName == Svg::FOREIGN_OBJECT_TAG) {
406
- Box box{el->specifiedValues (), el-> specifiedValues ()-> fontFace , el };
406
+ Box box{el->specifiedValues (), el};
407
407
408
408
InlineBox rootInlineBox{_proseStyleFomStyle (
409
409
*el->specifiedValues (),
@@ -498,7 +498,7 @@ static void buildBlockFlowFromElement(BuilderContext bc, Gc::Ref<Dom::Element> e
498
498
}
499
499
500
500
static Box createAndBuildBoxFromElement (BuilderContext bc, Rc<Style::SpecifiedValues> style, Gc::Ref<Dom::Element> el, Display display) {
501
- Box box = {style, el-> specifiedValues ()-> fontFace , el };
501
+ Box box = {style, el};
502
502
InlineBox rootInlineBox{_proseStyleFomStyle (*style, el->specifiedValues ()->fontFace )};
503
503
504
504
auto newBc = display == Display::Inside::FLEX
@@ -531,7 +531,7 @@ struct AnonymousTableBoxWrapper {
531
531
rowStyle->inherit (*style);
532
532
rowStyle->display = Display::Internal::TABLE_ROW;
533
533
534
- rowBox = Box{rowStyle, style-> fontFace , nullptr };
534
+ rowBox = Box{rowStyle, nullptr };
535
535
}
536
536
537
537
void createCellIfNone (Rc<Style::SpecifiedValues> style) {
@@ -542,7 +542,7 @@ struct AnonymousTableBoxWrapper {
542
542
cellStyle->inherit (*style);
543
543
cellStyle->display = Display::Internal::TABLE_CELL;
544
544
545
- cellBox = Box{cellStyle, style-> fontFace , nullptr };
545
+ cellBox = Box{cellStyle, nullptr };
546
546
rootInlineBoxForCell = InlineBox{_proseStyleFomStyle (*style, style->fontFace )};
547
547
}
548
548
@@ -642,7 +642,7 @@ static void _buildTableChildrenWhileWrappingIntoAnonymousBox(BuilderContext bc,
642
642
643
643
// https://www.w3.org/TR/css-tables-3/#fixup-algorithm
644
644
static void _buildTableInternal (BuilderContext bc, Gc::Ref<Dom::Element> el, Rc<Style::SpecifiedValues> style, Display display) {
645
- Box tableInternalBox = {style, el-> specifiedValues ()-> fontFace , el };
645
+ Box tableInternalBox = {style, el};
646
646
tableInternalBox.attrs = _parseDomAttr (el);
647
647
648
648
switch (display.internal ()) {
@@ -706,7 +706,7 @@ static void _buildTableBox(BuilderContext tableWrapperBc, Gc::Ref<Dom::Element>
706
706
};
707
707
708
708
tableBoxStyle->display = Display::Internal::TABLE_BOX;
709
- Box tableBox = {tableBoxStyle, el-> specifiedValues ()-> fontFace , el };
709
+ Box tableBox = {tableBoxStyle, el};
710
710
tableBox.attrs = _parseDomAttr (el);
711
711
712
712
bool captionsOnTop = tableBoxStyle->table ->captionSide == CaptionSide::TOP;
@@ -731,7 +731,7 @@ static Box _createTableWrapperAndBuildTable(BuilderContext bc, Rc<Style::Specifi
731
731
wrapperStyle->display = tableStyle->display ;
732
732
wrapperStyle->margin = tableStyle->margin ;
733
733
734
- Box wrapper = {wrapperStyle, tableBoxEl-> specifiedValues ()-> fontFace , tableBoxEl };
734
+ Box wrapper = {wrapperStyle, tableBoxEl};
735
735
InlineBox rootInlineBox{_proseStyleFomStyle (*wrapperStyle, tableBoxEl->specifiedValues ()->fontFace )};
736
736
737
737
// SPEC: The table wrapper box establishes a block formatting context.
@@ -833,7 +833,7 @@ static void _buildNode(BuilderContext bc, Gc::Ref<Dom::Node> node) {
833
833
834
834
export Box build (Gc::Ref<Dom::Document> doc) {
835
835
if (auto el = doc->documentElement ()) {
836
- Box root = {el->specifiedValues (), el-> specifiedValues ()-> fontFace , el };
836
+ Box root = {el->specifiedValues (), el};
837
837
InlineBox rootInlineBox{_proseStyleFomStyle (*el->specifiedValues (), el->specifiedValues ()->fontFace )};
838
838
839
839
BuilderContext bc{
@@ -849,7 +849,6 @@ export Box build(Gc::Ref<Dom::Document> doc) {
849
849
// NOTE: Fallback in case of an empty document
850
850
return {
851
851
makeRc<Style::SpecifiedValues>(Style::SpecifiedValues::initial ()),
852
- Text::Fontface::fallback (),
853
852
nullptr
854
853
};
855
854
}
@@ -860,10 +859,10 @@ export Box buildForPseudoElement(Dom::PseudoElement& el) {
860
859
auto prose = makeRc<Text::Prose>(proseStyle);
861
860
if (el.specifiedValues ()->content ) {
862
861
prose->append (el.specifiedValues ()->content .str ());
863
- return {el.specifiedValues (), el. specifiedValues ()-> fontFace , InlineBox{prose}, nullptr };
862
+ return {el.specifiedValues (), InlineBox{prose}, nullptr };
864
863
}
865
864
866
- return {el.specifiedValues (), el. specifiedValues ()-> fontFace , nullptr };
865
+ return {el.specifiedValues (), nullptr };
867
866
}
868
867
869
868
} // namespace Vaev::Layout
0 commit comments