X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fkhtml%2Fediting%2Fselection.cpp;h=90558be329d765dc34dfa7aca347f892a502d069;hp=c0eb391804d5ecac23ce093fd049dce87079cd16;hb=7682eb2b822ed4320691b72967967771067005e7;hpb=e776b321f15928e18fa8c2b1627f01c085097fac diff --git a/WebCore/khtml/editing/selection.cpp b/WebCore/khtml/editing/selection.cpp index c0eb391804d5..90558be329d7 100644 --- a/WebCore/khtml/editing/selection.cpp +++ b/WebCore/khtml/editing/selection.cpp @@ -61,6 +61,7 @@ using DOM::Position; using DOM::Range; using DOM::RangeImpl; using DOM::StayInBlock; +using DOM::DoNotStayInBlock; namespace khtml { @@ -1026,23 +1027,23 @@ void Selection::debugPosition() const if (m_start == m_end) { Position pos = m_start; - Position upstream = pos.upstream(); - Position downstream = pos.downstream(); + Position upstream = pos.upstream(DoNotStayInBlock); + Position downstream = pos.downstream(DoNotStayInBlock); fprintf(stderr, "upstream: %s %p:%ld\n", upstream.node()->nodeName().string().latin1(), upstream.node(), upstream.offset()); fprintf(stderr, "pos: %s %p:%ld\n", pos.node()->nodeName().string().latin1(), pos.node(), pos.offset()); fprintf(stderr, "downstream: %s %p:%ld\n", downstream.node()->nodeName().string().latin1(), downstream.node(), downstream.offset()); } else { Position pos = m_start; - Position upstream = pos.upstream(); - Position downstream = pos.downstream(); + Position upstream = pos.upstream(DoNotStayInBlock); + Position downstream = pos.downstream(DoNotStayInBlock); fprintf(stderr, "upstream: %s %p:%ld\n", upstream.node()->nodeName().string().latin1(), upstream.node(), upstream.offset()); fprintf(stderr, "start: %s %p:%ld\n", pos.node()->nodeName().string().latin1(), pos.node(), pos.offset()); fprintf(stderr, "downstream: %s %p:%ld\n", downstream.node()->nodeName().string().latin1(), downstream.node(), downstream.offset()); fprintf(stderr, "-----------------------------------\n"); pos = m_end; - upstream = pos.upstream(); - downstream = pos.downstream(); + upstream = pos.upstream(DoNotStayInBlock); + downstream = pos.downstream(DoNotStayInBlock); fprintf(stderr, "upstream: %s %p:%ld\n", upstream.node()->nodeName().string().latin1(), upstream.node(), upstream.offset()); fprintf(stderr, "end: %s %p:%ld\n", pos.node()->nodeName().string().latin1(), pos.node(), pos.offset()); fprintf(stderr, "downstream: %s %p:%ld\n", downstream.node()->nodeName().string().latin1(), downstream.node(), downstream.offset());