ArthurHub / ArthurHub/HTML-Renderer

Scrolling too heavy on huge HTML even the HTML is simple

オープン
#91 コメント 0 件 リアクション 0 件 担当者 1 名 @Licshee が担当を希望しています GitHub で見る
enhancement HTML
主要言語
C#
スター
1.4k
フォーク
550
平均マージ
14日 9時間
マージ済み PR(30日)
1

説明

I made a test HTML from [http://www.gutenberg.org/files/1661/1661-h/1661-h.htm](http://www.gutenberg.org/files/1661/1661-h/1661-h.htm) using SGMLReader as I suggested on issue 90.

When I clicked down button on the vertical scroll bar , scrolling took couple seconds.
After I displayed the bottom of the HTML , I clicked up button , scrolling didn't take so much time.

Now I'm avoiding this trouble;
`htmlrenderer\core\htmlcontainerint.cs

///
/// Render the html using the given device.
///
/// the device to use to render
public void PerformPaint(RGraphics g)
{
ArgChecker.AssertArgNotNull(g, "g");

bool pushed = false;
if ( MaxSize.Height > 0 )
{
g.PushClip( new RRect( _location.X , _location.Y , Math.Min( _maxSize.Width , PageSize.Width ) , Math.Min( _maxSize.Height , PageSize.Height ) ) );
pushed = true;
}
else
{
//g.PushClip( new RRect( MarginLeft , MarginTop , PageSize.Width , PageSize.Height ) );
//pushed = true;
}

if ( _root != null)
{
_root.Paint(g);
}

if ( pushed )
{
g.PopClip();
}
}
`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。