[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.0/kdelibs/khtml/xml
From: Harri Porten <porten () kde ! org>
Date: 2008-01-13 18:48:02
Message-ID: 1200250082.740428.2002.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 760936 by porten:
Fix cloning and extracting of collapsed ranges.
M +5 -3 dom2_rangeimpl.cpp
--- branches/KDE/4.0/kdelibs/khtml/xml/dom2_rangeimpl.cpp #760935:760936
@@ -404,10 +404,12 @@
// ### perhaps disable node deletion notification for this range while we do this?
- if (collapsed(exceptioncode))
+ // shortcut for special case
+ if (collapsed(exceptioncode) || exceptioncode) {
+ if (action == CLONE_CONTENTS || action == EXTRACT_CONTENTS)
+ return new DocumentFragmentImpl(m_ownerDocument);
return 0;
- if (exceptioncode)
- return 0;
+ }
NodeImpl *cmnRoot = commonAncestorContainer(exceptioncode);
if (exceptioncode)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic