Changeset 96385 in webkit for trunk/Source/WebCore/rendering/RenderFrameSet.cpp
- Timestamp:
- Sep 29, 2011, 9:44:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderFrameSet.cpp
r93287 r96385 700 700 return false; 701 701 if (evt->type() == eventNames().mousedownEvent && evt->button() == LeftButton) { 702 FloatPoint pos = localToAbsolute();703 startResizing(m_cols, evt->absoluteLocation().x() - pos.x());704 startResizing(m_rows, evt->absoluteLocation().y() - pos.y());702 FloatPoint localPos = absoluteToLocal(evt->absoluteLocation(), false, true); 703 startResizing(m_cols, localPos.x()); 704 startResizing(m_rows, localPos.y()); 705 705 if (m_cols.m_splitBeingResized != noSplit || m_rows.m_splitBeingResized != noSplit) { 706 706 setIsResizing(true); … … 710 710 } else { 711 711 if (evt->type() == eventNames().mousemoveEvent || (evt->type() == eventNames().mouseupEvent && evt->button() == LeftButton)) { 712 FloatPoint pos = localToAbsolute();713 continueResizing(m_cols, evt->absoluteLocation().x() - pos.x());714 continueResizing(m_rows, evt->absoluteLocation().y() - pos.y());712 FloatPoint localPos = absoluteToLocal(evt->absoluteLocation(), false, true); 713 continueResizing(m_cols, localPos.x()); 714 continueResizing(m_rows, localPos.y()); 715 715 if (evt->type() == eventNames().mouseupEvent && evt->button() == LeftButton) { 716 716 setIsResizing(false);
Note:
See TracChangeset
for help on using the changeset viewer.