static void InvalidateCssBox(CssBox cssbox) { if (cssbox.GetTopRootCssBox() is RenderElementBridgeCssBox rootCssBox) { //---------------------------------------- //TODO: fix here //we not need to update entire HtmlBox //we should update only invalidate area //---------------------------------------- rootCssBox.ContainerElement.InvalidateGraphics(); } }
static void InvalidateCssBox(CssBox cssbox) { var rootGfx = cssbox.GetInternalRootGfx(); var rootCssBox = cssbox.GetTopRootCssBox() as RenderElementBridgeCssBox; if (rootCssBox != null) { //---------------------------------------- //TODO: fix here //we not need to update entire HtmlBox //we should update only invalidate area //---------------------------------------- rootCssBox.ContainerElement.InvalidateGraphics(); } }