public WrapperInlineCssBox(object controller, Css.BoxSpec boxSpec, RootGraphic rootgfx, RenderElement re) : base(controller, boxSpec, re.Root, CssDisplay.Inline) { int w = re.Width; int h = re.Height; ChangeDisplayType(this, CssDisplay.Inline); this.externalRun = new CssExternalRun(re); this.externalRun.SetOwner(this); var runlist = new List <CssRun>(1); runlist.Add(externalRun); CssBox.UnsafeSetContentRuns(this, runlist, false); ChangeDisplayType(this, Css.CssDisplay.Inline); //--------------------------------------------------- LayoutFarm.RenderElement.SetParentLink(re, this); }
public WrapperInlineCssBox(object controller, Css.BoxSpec boxSpec, RootGraphic rootgfx, RenderElement re) : base(controller, boxSpec, re.Root, CssDisplay.Inline) { int w = re.Width; int h = re.Height; ChangeDisplayType(this, CssDisplay.Inline); this.externalRun = new CssExternalRun(re); this.externalRun.SetOwner(this); var runlist = new List<CssRun>(1); runlist.Add(externalRun); CssBox.UnsafeSetContentRuns(this, runlist, false); ChangeDisplayType(this, Css.CssDisplay.Inline); //--------------------------------------------------- LayoutFarm.RenderElement.SetParentLink(re, this); }