[Webkit-unassigned] [Bug 31711] Fake drag example does not work properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 22 12:15:54 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31711





--- Comment #10 from Alejandro G. Castro <alex at igalia.com>  2009-11-22 12:15:53 PST ---
(In reply to comment #9)
> So, this has no user-visible effect in a browser at all?

I did not check it in the browser before, because the problem comes from the
fake drag test I was implementing in bug 28153. In theory we are losing the
selection from the press to the first move event, but usually they are very
close so you are still over the same character, and if they move fast users
could think it was just their fault not clicking in the right position when
moving too fast, it is unlikely it could be easily detected.

Anyway, this is a log of one session with epiphany-webkit and slashdot.org, I
was selecting moving the mouse fast. Check the m_offset of the
VisiblePositions, the first one is newSelection.visibleStart() the second one
is targetPosition. Initially the web was loading and apparently the gap between
the first position and the second is a little bit bigger, after loading is more
difficult to reproduce it.

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$152 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 20, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$153 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 36, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$154 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 17, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$155 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 18, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$156 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 20, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$157 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 21, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$158 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 17, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$159 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 17, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$160 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 11, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$161 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 12, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

Breakpoint 1, WebCore::EventHandler::updateSelectionForMouseDrag
(this=0xb59778, targetNode=0x23e9a10, localPoint=...) at
WebCore/page/EventHandler.cpp:557
557            newSelection = VisibleSelection(targetPosition);
$162 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 12, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}
$163 = {m_deepPosition = {m_anchorNode = {<WTF::FastAllocBase> = {<No data
fields>}, m_ptr = 0x23e9a10}, m_offset = 12, m_anchorType = 0,
m_isLegacyEditingPosition = true}, 
  m_affinity = WebCore::DOWNSTREAM}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list