[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/html
From: Maks Orlovich <maksim () kde ! org>
Date: 2006-10-21 13:43:37
Message-ID: 1161438217.984155.32683.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 597736 by orlovich:
Fix poor scalability of innerText, making it much faster..
BUG:135988
M +3 -2 html_elementimpl.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/html_elementimpl.cpp #597735:597736
@@ -460,7 +460,7 @@
DOMString HTMLElementImpl::innerText() const
{
- DOMString text = "";
+ QString text = "";
if(!firstChild())
return text;
@@ -481,7 +481,8 @@
n = next;
}
if(n->isTextNode() ) {
- text += static_cast<const TextImpl *>(n)->data();
+ DOMStringImpl* data = static_cast<const TextImpl *>(n)->string();
+ text += QConstString(data->s, data->l).string();
}
}
end:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic