Changeset 16764 in webkit
- Timestamp:
- Oct 3, 2006, 9:22:10 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r16762 r16764 1 2006-10-03 Dave Hyatt <hyatt@apple.com> 2 3 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in 4 the windowToContents/contentsToWindow functions. 5 6 Reviewed by anders 7 8 * bridge/mac/FrameMac.mm: 9 (WebCore::FrameMac::eventMayStartDrag): 10 (WebCore::FrameMac::dragHysteresisExceeded): 11 (WebCore::FrameMac::mouseDown): 12 (WebCore::FrameMac::shouldDragAutoNode): 13 (WebCore::FrameMac::sendContextMenuEvent): 14 * bridge/mac/FrameViewMac.mm: 15 (WebCore::FrameView::passMousePressEventToScrollbar): 16 * bridge/mac/WebCoreFrameBridge.mm: 17 (-[WebCoreFrameBridge _visiblePositionForPoint:]): 18 * dom/EventTargetNode.cpp: 19 (WebCore::EventTargetNode::dispatchMouseEvent): 20 (WebCore::EventTargetNode::dispatchWheelEvent): 21 * page/Frame.cpp: 22 (WebCore::Frame::selectClosestWordFromMouseEvent): 23 (WebCore::Frame::handleMousePressEventTripleClick): 24 (WebCore::Frame::handleMousePressEventSingleClick): 25 (WebCore::Frame::handleMouseMoveEvent): 26 (WebCore::Frame::handleMouseReleaseEvent): 27 * page/FrameView.cpp: 28 (WebCore::FrameView::handleMousePressEvent): 29 (WebCore::FrameView::handleMouseDoubleClickEvent): 30 (WebCore::selectCursor): 31 (WebCore::FrameView::handleMouseMoveEvent): 32 (WebCore::FrameView::handleMouseReleaseEvent): 33 (WebCore::FrameView::dispatchDragEvent): 34 (WebCore::FrameView::prepareMouseEvent): 35 (WebCore::FrameView::handleWheelEvent): 36 * page/FrameView.h: 37 * platform/ScrollBar.cpp: 38 (WebCore::ScrollBar::setValue): 39 * platform/ScrollView.h: 40 * platform/Widget.h: 41 (WebCore::Widget::scrolled): 42 * platform/mac/ScrollViewMac.mm: 43 (WebCore::ScrollView::contentsToWindow): 44 (WebCore::ScrollView::windowToContents): 45 (WebCore::ScrollView::scrollbarUnderMouse): 46 * platform/mac/WidgetMac.mm: 47 * rendering/RenderLayer.cpp: 48 (WebCore::RenderLayer::resize): 49 (WebCore::RenderLayer::positionScrollbars): 50 * rendering/RenderReplaced.cpp: 51 (WebCore::RenderReplaced::shouldPaint): 52 * rendering/RenderView.cpp: 53 * rendering/RenderView.h: 54 * rendering/RenderWidget.cpp: 55 (WebCore::RenderWidget::setWidget): 56 1 57 2006-09-26 David Smith <catfish.man@gmail.com> 2 58 -
trunk/WebCore/bridge/mac/FrameMac.mm
r16692 r16764 1573 1573 1574 1574 NSPoint loc = [event locationInWindow]; 1575 IntPoint mouseDownPos = d->m_view-> convertFromContainingWindow(IntPoint(loc));1575 IntPoint mouseDownPos = d->m_view->windowToContents(IntPoint(loc)); 1576 1576 RenderObject::NodeInfo nodeInfo(true, false); 1577 1577 renderer()->layer()->hitTest(nodeInfo, mouseDownPos); … … 1592 1592 { 1593 1593 IntPoint dragViewportLocation((int)dragLocationX, (int)dragLocationY); 1594 IntPoint dragLocation = d->m_view-> convertFromContainingWindow(dragViewportLocation);1594 IntPoint dragLocation = d->m_view->windowToContents(dragViewportLocation); 1595 1595 IntSize delta = dragLocation - m_mouseDownPos; 1596 1596 … … 1977 1977 m_mouseDown = PlatformMouseEvent(event); 1978 1978 NSPoint loc = [event locationInWindow]; 1979 m_mouseDownPos = d->m_view-> convertFromContainingWindow(IntPoint(loc));1979 m_mouseDownPos = d->m_view->windowToContents(IntPoint(loc)); 1980 1980 _mouseDownTimestamp = [event timestamp]; 1981 1981 … … 2138 2138 // (since right now WK just hit-tests using a cached lastMouseDown). 2139 2139 if (!node->hasChildNodes() && d->m_view) { 2140 NSPoint eventLoc = d->m_view->con vertToContainingWindow(point);2140 NSPoint eventLoc = d->m_view->contentsToWindow(point); 2141 2141 return [_bridge mayStartDragAtEventLocation:eventLoc]; 2142 2142 } else … … 2159 2159 PlatformMouseEvent mouseEvent(event); 2160 2160 2161 IntPoint viewportPos = v-> convertFromContainingWindow(mouseEvent.pos());2161 IntPoint viewportPos = v->windowToContents(mouseEvent.pos()); 2162 2162 MouseEventWithHitTestResults mev = doc->prepareMouseEvent(false, true, false, viewportPos, mouseEvent); 2163 2163 -
trunk/WebCore/bridge/mac/FrameViewMac.mm
r16693 r16764 75 75 } 76 76 77 bool FrameView::passMousePressEventToScrollbar(MouseEventWithHitTestResults& mev )77 bool FrameView::passMousePressEventToScrollbar(MouseEventWithHitTestResults& mev, PlatformScrollBar* scrollbar) 78 78 { 79 return Mac(m_frame.get())->passMouseDownEventToWidget( mev.scrollbar());79 return Mac(m_frame.get())->passMouseDownEventToWidget(scrollbar); 80 80 } 81 81 -
trunk/WebCore/bridge/mac/WebCoreFrameBridge.mm
r16761 r16764 2101 2101 FrameView* outerView = m_frame->view(); 2102 2102 FrameView* innerView = node->document()->view(); 2103 IntPoint innerPoint = innerView-> convertFromContainingWindow(outerView->convertToContainingWindow(outerPoint));2103 IntPoint innerPoint = innerView->windowToContents(outerView->contentsToWindow(outerPoint)); 2104 2104 return renderer->positionForCoordinates(innerPoint.x(), innerPoint.y()); 2105 2105 } -
trunk/WebCore/dom/EventTargetNode.cpp
r16741 r16764 369 369 IntPoint contentsPos; 370 370 if (FrameView* view = document()->view()) 371 contentsPos = view-> convertFromContainingWindow(_mouse.pos());371 contentsPos = view->windowToContents(_mouse.pos()); 372 372 373 373 return dispatchMouseEvent(eventType, _mouse.button(), detail, … … 454 454 return; 455 455 456 IntPoint pos = view-> convertFromContainingWindow(e.pos());456 IntPoint pos = view->windowToContents(e.pos()); 457 457 458 458 RefPtr<WheelEvent> we = new WheelEvent(e.deltaX(), e.deltaY(), -
trunk/WebCore/page/Frame.cpp
r16727 r16764 1814 1814 1815 1815 if (innerNode && innerNode->renderer() && mouseDownMayStartSelect() && innerNode->renderer()->shouldSelect()) { 1816 IntPoint vPoint = view()-> convertFromContainingWindow(mouse.pos());1816 IntPoint vPoint = view()->windowToContents(mouse.pos()); 1817 1817 VisiblePosition pos(innerNode->renderer()->positionForPoint(vPoint)); 1818 1818 if (pos.isNotNull()) { … … 1853 1853 mouseDownMayStartSelect() && innerNode->renderer()->shouldSelect()) { 1854 1854 Selection newSelection; 1855 IntPoint vPoint = view()-> convertFromContainingWindow(event.event().pos());1855 IntPoint vPoint = view()->windowToContents(event.event().pos()); 1856 1856 VisiblePosition pos(innerNode->renderer()->positionForPoint(vPoint)); 1857 1857 if (pos.isNotNull()) { … … 1882 1882 // Don't restart the selection when the mouse is pressed on an 1883 1883 // existing selection so we can allow for text dragging. 1884 IntPoint vPoint = view()-> convertFromContainingWindow(event.event().pos());1884 IntPoint vPoint = view()->windowToContents(event.event().pos()); 1885 1885 if (!extendSelection && isPointInsideSelection(vPoint)) 1886 1886 return; … … 1955 1955 // handle making selection 1956 1956 1957 IntPoint vPoint = view()-> convertFromContainingWindow(event.event().pos());1957 IntPoint vPoint = view()->windowToContents(event.event().pos()); 1958 1958 VisiblePosition pos(innerNode->renderer()->positionForPoint(vPoint)); 1959 1959 … … 1997 1997 Node *node = event.targetNode(); 1998 1998 if (node && node->isContentEditable() && node->renderer()) { 1999 IntPoint vPoint = view()-> convertFromContainingWindow(event.event().pos());1999 IntPoint vPoint = view()->windowToContents(event.event().pos()); 2000 2000 VisiblePosition pos = node->renderer()->positionForPoint(vPoint); 2001 2001 newSelection = Selection(pos); -
trunk/WebCore/page/FrameView.cpp
r16760 r16764 588 588 589 589 d->mousePressed = true; 590 d->m_currentMousePosition = convertFromContainingWindow(mouseEvent.pos());590 d->m_currentMousePosition = windowToContents(mouseEvent.pos()); 591 591 592 592 MouseEventWithHitTestResults mev = prepareMouseEvent(false, true, false, mouseEvent); … … 602 602 603 603 RenderLayer* layer = d->clickNode->renderer()? d->clickNode->renderer()->enclosingLayer() : 0; 604 IntPoint p = convertFromContainingWindow(mouseEvent.pos());604 IntPoint p = windowToContents(mouseEvent.pos()); 605 605 if (layer && layer->isPointInResizeControl(p)) { 606 606 layer->setInResizeMode(true); … … 621 621 mev = prepareMouseEvent(true, true, false, mouseEvent); 622 622 623 if (!mev.scrollbar() || !passMousePressEventToScrollbar(mev)) 623 PlatformScrollBar* scrollbar = scrollbarUnderMouse(mouseEvent); 624 if (!scrollbar) 625 scrollbar = mev.scrollbar(); 626 if (!scrollbar || !passMousePressEventToScrollbar(mev, scrollbar)) 624 627 m_frame->handleMousePressEvent(mev); 625 628 … … 644 647 // We get this instead of a second mouse-up 645 648 d->mousePressed = false; 646 d->m_currentMousePosition = convertFromContainingWindow(mouseEvent.pos());649 d->m_currentMousePosition = windowToContents(mouseEvent.pos()); 647 650 648 651 MouseEventWithHitTestResults mev = prepareMouseEvent(false, true, false, mouseEvent); … … 674 677 } 675 678 676 static Cursor selectCursor(const MouseEventWithHitTestResults& event, Frame* frame, bool mousePressed )679 static Cursor selectCursor(const MouseEventWithHitTestResults& event, Frame* frame, bool mousePressed, PlatformScrollBar* scrollbar) 677 680 { 678 681 // During selection, use an I-beam no matter what we're over. … … 737 740 RenderLayer* layer = renderer ? renderer->enclosingLayer() : 0; 738 741 bool inResizer = false; 739 if (frame->view() && layer && layer->isPointInResizeControl(frame->view()-> convertFromContainingWindow(event.event().pos())))742 if (frame->view() && layer && layer->isPointInResizeControl(frame->view()->windowToContents(event.event().pos()))) 740 743 inResizer = true; 741 if ((editable || (renderer && renderer->isText() && renderer->canSelect())) && !inResizer && ! event.scrollbar())744 if ((editable || (renderer && renderer->isText() && renderer->canSelect())) && !inResizer && !scrollbar) 742 745 return iBeamCursor(); 743 746 // FIXME: If the point is in a layer's overflow scrollbars, we should use the pointer cursor … … 801 804 802 805 RefPtr<FrameView> protector(this); 803 d->m_currentMousePosition = convertFromContainingWindow(mouseEvent.pos());806 d->m_currentMousePosition = windowToContents(mouseEvent.pos()); 804 807 805 808 if (d->hoverTimer.isActive()) … … 823 826 bool swallowEvent = dispatchMouseEvent(mousemoveEvent, mev.targetNode(), false, 0, mouseEvent, true); 824 827 825 if (d->oldScrollBar != mev.scrollbar()) { 828 PlatformScrollBar* scrollbar = scrollbarUnderMouse(mouseEvent); 829 if (!scrollbar) 830 scrollbar = mev.scrollbar(); 831 832 if (d->oldScrollBar != scrollbar) { 826 833 // Send mouse exited to the old scrollbar. 827 834 if (d->oldScrollBar) 828 835 d->oldScrollBar->handleMouseOutEvent(mouseEvent); 829 d->oldScrollBar = mev.scrollbar();836 d->oldScrollBar = scrollbar; 830 837 } 831 838 … … 840 847 passMouseMoveEventToSubframe(mev, newSubframe.get()); 841 848 else { 842 if ( mev.scrollbar()&& !d->mousePressed)843 mev.scrollbar()->handleMouseMoveEvent(mouseEvent); // Handle hover effects on platforms that support visual feedback on scrollbar hovering.844 setCursor(selectCursor(mev, m_frame.get(), d->mousePressed ));849 if (scrollbar && !d->mousePressed) 850 scrollbar->handleMouseMoveEvent(mouseEvent); // Handle hover effects on platforms that support visual feedback on scrollbar hovering. 851 setCursor(selectCursor(mev, m_frame.get(), d->mousePressed, scrollbar)); 845 852 } 846 853 … … 872 879 873 880 d->mousePressed = false; 874 d->m_currentMousePosition = convertFromContainingWindow(mouseEvent.pos());881 d->m_currentMousePosition = windowToContents(mouseEvent.pos()); 875 882 876 883 if (d->resizingFrameSet) { … … 902 909 bool FrameView::dispatchDragEvent(const AtomicString& eventType, Node *dragTarget, const PlatformMouseEvent& event, Clipboard* clipboard) 903 910 { 904 IntPoint contentsPos = convertFromContainingWindow(event.pos());911 IntPoint contentsPos = windowToContents(event.pos()); 905 912 906 913 RefPtr<MouseEvent> me = new MouseEvent(eventType, … … 1145 1152 ASSERT(m_frame->document()); 1146 1153 1147 IntPoint vPoint = convertFromContainingWindow(mev.pos());1154 IntPoint vPoint = windowToContents(mev.pos()); 1148 1155 return m_frame->document()->prepareMouseEvent(readonly, active, mouseMove, vPoint, mev); 1149 1156 } … … 1222 1229 RenderObject *docRenderer = doc->renderer(); 1223 1230 if (docRenderer) { 1224 IntPoint vPoint = convertFromContainingWindow(e.pos());1231 IntPoint vPoint = windowToContents(e.pos()); 1225 1232 1226 1233 RenderObject::NodeInfo hitTestResult(true, false); -
trunk/WebCore/page/FrameView.h
r16741 r16764 146 146 bool passMouseReleaseEventToSubframe(MouseEventWithHitTestResults&, Frame*); 147 147 bool passWheelEventToSubframe(PlatformWheelEvent&, Frame*); 148 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults& );148 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&, PlatformScrollBar*); 149 149 150 150 bool mousePressed(); -
trunk/WebCore/platform/ScrollBar.cpp
r16663 r16764 44 44 { 45 45 int maxPos = m_totalSize - m_visibleSize; 46 if (v < 0) v = 0;47 46 if (v > maxPos) 48 47 v = maxPos; 48 if (v < 0) 49 v = 0; 49 50 if (m_currentPos == v) 50 51 return false; // Our value stayed the same. -
trunk/WebCore/platform/ScrollView.h
r16630 r16764 38 38 class FloatRect; 39 39 class PlatformWheelEvent; 40 class PlatformScrollBar; 40 41 41 42 class ScrollView : public Widget { … … 72 73 void updateContents(const IntRect&, bool now = false); 73 74 74 virtual IntPoint convertToContainingWindow(const IntPoint&) const; 75 virtual IntPoint convertFromContainingWindow(const IntPoint&) const; 76 75 // Event coordinates are assumed to be in the coordinate space of a window that contains 76 // the entire widget hierarchy. It is up to the platform to decide what the precise definition 77 // of containing window is. (For example on Mac it is the containing NSWindow.) 78 IntPoint windowToContents(const IntPoint&) const; 79 IntPoint contentsToWindow(const IntPoint&) const; 80 77 81 void setStaticBackground(bool); 78 82 79 83 bool inWindow() const; 84 85 // For platforms that need to hit test scrollbars from within the engine's event handlers (like Win32). 86 PlatformScrollBar* scrollbarUnderMouse(const PlatformMouseEvent& mouseEvent); 80 87 81 88 // This method exists for scrollviews that need to handle wheel events manually. … … 94 101 virtual void paint(GraphicsContext*, const IntRect&); 95 102 virtual void themeChanged(); 103 104 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; 105 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; 106 107 virtual void scrolled() const; 96 108 97 109 private: 98 void updateScrollBars( );110 void updateScrollBars(const IntSize& desiredOffset); 99 111 IntSize maximumScroll() const; 100 int updateScrollInfo(short type, int current, int max, int pageSize);101 112 class ScrollViewPrivate; 102 113 ScrollViewPrivate* m_data; -
trunk/WebCore/platform/Widget.h
r16683 r16764 130 130 virtual bool isFrameView() const; 131 131 132 // Event coordinates are assumed to be in the coordinate space of a window that contains133 // the entire widget hierarchy. It is up to the platform to decide what the precise definition134 // of containing window is. (For example on Mac it is the containing NSWindow.)135 //136 // Note that for scrollable widgets, the points and rects given will be converted to and137 // from the document coordinate space inside the scrollable widget. Therefore138 // for conversion to a containing window coordinate space, the argument should be in the139 // scrollable widget's document coordinate space. When converting from the containing window140 // coordinate space, the result will be in the scrollable widget's document coordinate space.141 IntRect convertToContainingWindow(const IntRect&) const;142 virtual IntPoint convertToContainingWindow(const IntPoint&) const;143 virtual IntPoint convertFromContainingWindow(const IntPoint&) const;144 145 132 #if PLATFORM(WIN) 146 133 void setContainingWindow(HWND); … … 150 137 Widget* parent() const; 151 138 139 virtual void scrolled() const {}; 140 152 141 bool capturingMouse() const; 153 142 void setCapturingMouse(bool); … … 156 145 void setCapturingChild(Widget*); 157 146 147 IntRect convertToContainingWindow(const IntRect&) const; 148 IntPoint convertToContainingWindow(const IntPoint&) const; 149 IntPoint convertFromContainingWindow(const IntPoint&) const; 150 151 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; 152 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; 153 154 void setSuppressInvalidation(bool); 155 158 156 // These methods will be called on a widget while it is capturing the mouse. 159 157 virtual void handleMouseMoveEvent(const PlatformMouseEvent&) {}; -
trunk/WebCore/platform/mac/ScrollViewMac.mm
r16630 r16764 356 356 // "Containing Window" means the NSWindow's coord system, which is origin lower left 357 357 358 IntPoint ScrollView::con vertToContainingWindow(const IntPoint& contentsPoint) const358 IntPoint ScrollView::contentsToWindow(const IntPoint& contentsPoint) const 359 359 { 360 360 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 376 376 } 377 377 378 IntPoint ScrollView:: convertFromContainingWindow(const IntPoint& point) const378 IntPoint ScrollView::windowToContents(const IntPoint& point) const 379 379 { 380 380 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 418 418 } 419 419 420 PlatformScrollBar* ScrollView::scrollbarUnderMouse(const PlatformMouseEvent& mouseEvent) 421 { 422 // On Mac, the ScrollView is really the "document", so events will never flow into it to get to the scrollers. 423 return 0; 424 } 425 420 426 bool ScrollView::inWindow() const 421 427 { -
trunk/WebCore/platform/mac/WidgetMac.mm
r16630 r16764 453 453 } 454 454 455 // "Containing Window" means the NSWindow's coord system, which is origin lower left 456 457 IntPoint Widget::convertToContainingWindow(const IntPoint& point) const 458 { 459 BEGIN_BLOCK_OBJC_EXCEPTIONS; 460 NSView *view = getView(); 461 NSPoint tempPoint = { point.x(), point.y() }; // workaround for 4213314 462 NSPoint np = [view convertPoint:tempPoint toView: nil]; 463 return IntPoint(np); 464 465 END_BLOCK_OBJC_EXCEPTIONS; 466 467 return IntPoint(); 468 } 469 470 IntPoint Widget::convertFromContainingWindow(const IntPoint& point) const 471 { 472 BEGIN_BLOCK_OBJC_EXCEPTIONS; 473 474 NSView *view = getView(); 475 NSPoint tempPoint = { point.x(), point.y() }; // workaround for 4213314 476 NSPoint np = [view convertPoint:tempPoint fromView: nil]; 477 478 return IntPoint(np); 479 480 END_BLOCK_OBJC_EXCEPTIONS; 481 482 return IntPoint(); 483 } 484 485 } 455 } -
trunk/WebCore/rendering/RenderLayer.cpp
r16678 r16764 804 804 // the cursor in view. 805 805 806 IntPoint currentPoint = m_object->document()->view()-> convertFromContainingWindow(evt.pos());806 IntPoint currentPoint = m_object->document()->view()->windowToContents(evt.pos()); 807 807 currentPoint += offsetFromResizeCorner; 808 808 … … 1005 1005 RenderLayer::positionScrollbars(const IntRect& absBounds) 1006 1006 { 1007 int resizeControlSize = max(resizeControlRect().height() - 1, 0);1007 int resizeControlSize = max(resizeControlRect().height(), 0); 1008 1008 if (m_vBar) 1009 1009 m_vBar->setRect(IntRect(absBounds.right() - m_object->borderRight() - m_vBar->width(), 1010 1010 absBounds.y() + m_object->borderTop(), 1011 1011 m_vBar->width(), 1012 absBounds.height() - (m_object->borderTop() + m_object->borderBottom()) - (m_hBar ? m_hBar->height() - 1: resizeControlSize)));1013 1014 resizeControlSize = max(resizeControlRect().width() - 1, 0);1012 absBounds.height() - (m_object->borderTop() + m_object->borderBottom()) - (m_hBar ? m_hBar->height() : resizeControlSize))); 1013 1014 resizeControlSize = max(resizeControlRect().width(), 0); 1015 1015 if (m_hBar) 1016 1016 m_hBar->setRect(IntRect(absBounds.x() + m_object->borderLeft(), 1017 1017 absBounds.bottom() - m_object->borderBottom() - m_hBar->height(), 1018 absBounds.width() - (m_object->borderLeft() + m_object->borderRight()) - (m_vBar ? m_vBar->width() - 1: resizeControlSize),1018 absBounds.width() - (m_object->borderLeft() + m_object->borderRight()) - (m_vBar ? m_vBar->width() : resizeControlSize), 1019 1019 m_hBar->height())); 1020 1020 } -
trunk/WebCore/rendering/RenderReplaced.cpp
r15253 r16764 52 52 53 53 // if we're invisible or haven't received a layout yet, then just bail. 54 if (style()->visibility() != VISIBLE || m_y <= -500000) return false; 54 if (style()->visibility() != VISIBLE) 55 return false; 55 56 56 57 int tx = _tx + m_x; -
trunk/WebCore/rendering/RenderView.cpp
r16683 r16764 240 240 } 241 241 242 IntRect RenderView::getAbsoluteRepaintRect()243 {244 IntRect result;245 if (m_frameView && !m_printingMode)246 result = IntRect(m_frameView->contentsX(), m_frameView->contentsY(),247 m_frameView->visibleWidth(), m_frameView->visibleHeight());248 return result;249 }250 251 void RenderView::computeAbsoluteRepaintRect(IntRect& r, bool f)252 {253 if (m_printingMode)254 return;255 256 if (f && m_frameView)257 r.move(m_frameView->contentsX(), m_frameView->contentsY());258 }259 260 242 void RenderView::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 261 243 { -
trunk/WebCore/rendering/RenderView.h
r16250 r16764 53 53 virtual bool hasOverhangingFloats() { return false; } 54 54 55 virtual IntRect getAbsoluteRepaintRect();56 virtual void computeAbsoluteRepaintRect(IntRect& r, bool f=false);57 55 virtual void repaintViewRectangle(const IntRect& r, bool immediate = false); 58 56 -
trunk/WebCore/rendering/RenderWidget.cpp
r15806 r16764 129 129 m_width - borderLeft() - borderRight() - paddingLeft() - paddingRight(), 130 130 m_height - borderTop() - borderBottom() - paddingTop() - paddingBottom()); 131 else132 setPos(xPos(), -500000);133 131 if (style()) { 134 132 if (style()->visibility() != VISIBLE) … … 137 135 m_widget->show(); 138 136 } 139 m_view->addChild(m_widget , -500000, 0);137 m_view->addChild(m_widget); 140 138 } 141 139 }
Note:
See TracChangeset
for help on using the changeset viewer.