no need to calculate linewidth multiple times in findnextlinebreak()
http://bugzilla.opendarwin.org/show_bug.cgi?id=5319
No test case needed, this is a simple optimization.
* khtml/rendering/bidi.cpp:
(khtml::RenderBlock::findNextLineBreak):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10845
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-10-13 Antti Koivisto <koivisto@iki.fi>
+
+ Reviewed by Darin.
+
+ no need to calculate linewidth multiple times in findnextlinebreak()
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=5319
+
+ No test case needed, this is a simple optimization.
+
+ * khtml/rendering/bidi.cpp:
+ (khtml::RenderBlock::findNextLineBreak):
+
2005-10-13 Geoffrey Garen <ggaren@apple.com>
- Fixed <rdar://problem/4259434> Safari crashes in HTMLTokenizer::~HTMLTokenizer()
BidiIterator RenderBlock::findNextLineBreak(BidiIterator &start, BidiState &bidi)
{
- int width = lineWidth(m_height);
+ // eliminate spaces at beginning of line
+ int width = skipWhitespace(start, bidi);
int w = 0;
int tmpW = 0;
#ifdef DEBUG_LINEBREAKS
kdDebug(6041) << "sol: " << start.obj << " " << start.pos << endl;
#endif
- // eliminate spaces at beginning of line
- width = skipWhitespace(start, bidi);
if (start.atEnd())
return start;