Changeset 100290 in webkit
- Timestamp:
- Nov 15, 2011 9:54:52 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 40 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r100285 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 Rename invalidateWindow to invalidateRootView, and invalidateContentsAndWindow 9 to invalidateContentsAndRootView. Make sure that the rects passed to the renamed functions 10 are in root view coordinates by changing contentsToWindow calls to contentsToRootView. 11 12 In practice this doesn't matter because for all platforms except Mac WebKit1, root view coordinates 13 and window coordinates are equivalent, and Mac WebKit1 doesn't use these invalidation functions. 14 15 * loader/EmptyClients.h: 16 * page/Chrome.cpp: 17 (WebCore::Chrome::invalidateRootView): 18 (WebCore::Chrome::invalidateContentsAndRootView): 19 * page/Chrome.h: 20 * page/ChromeClient.h: 21 * page/Frame.cpp: 22 (WebCore::Frame::tiledBackingStorePaintEnd): 23 * page/FrameView.cpp: 24 (WebCore::FrameView::invalidateRect): 25 (WebCore::FrameView::scrollContentsFastPath): 26 * platform/HostWindow.h: 27 * platform/ScrollView.cpp: 28 (WebCore::ScrollView::rectToCopyOnScroll): 29 (WebCore::ScrollView::scrollContents): 30 (WebCore::ScrollView::wheelEvent): 31 * platform/chromium/FramelessScrollView.cpp: 32 (WebCore::FramelessScrollView::invalidateRect): 33 * svg/graphics/SVGImage.cpp: 34 (WebCore::SVGImageChromeClient::invalidateContentsAndRootView): 35 1 36 2011-11-15 Philip Rogers <pdr@google.com> 2 37 -
trunk/Source/WebCore/loader/EmptyClients.h
r99403 r100290 158 158 virtual IntRect windowResizerRect() const { return IntRect(); } 159 159 160 virtual void invalidate Window(const IntRect&, bool){ }161 virtual void invalidateContentsAnd Window(const IntRect&, bool){ }162 virtual void invalidateContentsForSlowScroll(const IntRect&, bool) {};160 virtual void invalidateRootView(const IntRect&, bool) OVERRIDE { } 161 virtual void invalidateContentsAndRootView(const IntRect&, bool) OVERRIDE { } 162 virtual void invalidateContentsForSlowScroll(const IntRect&, bool) OVERRIDE { } 163 163 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) { } 164 164 #if USE(TILED_BACKING_STORE) -
trunk/Source/WebCore/page/Chrome.cpp
r99403 r100290 72 72 } 73 73 74 void Chrome::invalidate Window(const IntRect& updateRect, bool immediate)75 { 76 m_client->invalidate Window(updateRect, immediate);77 } 78 79 void Chrome::invalidateContentsAnd Window(const IntRect& updateRect, bool immediate)80 { 81 m_client->invalidateContentsAnd Window(updateRect, immediate);74 void Chrome::invalidateRootView(const IntRect& updateRect, bool immediate) 75 { 76 m_client->invalidateRootView(updateRect, immediate); 77 } 78 79 void Chrome::invalidateContentsAndRootView(const IntRect& updateRect, bool immediate) 80 { 81 m_client->invalidateContentsAndRootView(updateRect, immediate); 82 82 } 83 83 -
trunk/Source/WebCore/page/Chrome.h
r99403 r100290 70 70 // HostWindow methods. 71 71 72 virtual void invalidate Window(const IntRect&, bool);73 virtual void invalidateContentsAnd Window(const IntRect&, bool);72 virtual void invalidateRootView(const IntRect&, bool) OVERRIDE; 73 virtual void invalidateContentsAndRootView(const IntRect&, bool) OVERRIDE; 74 74 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); 75 75 virtual void scroll(const IntSize&, const IntRect&, const IntRect&); -
trunk/Source/WebCore/page/ChromeClient.h
r99403 r100290 147 147 148 148 // Methods used by HostWindow. 149 virtual void invalidate Window(const IntRect&, bool) = 0;150 virtual void invalidateContentsAnd Window(const IntRect&, bool) = 0;149 virtual void invalidateRootView(const IntRect&, bool) = 0; 150 virtual void invalidateContentsAndRootView(const IntRect&, bool) = 0; 151 151 virtual void invalidateContentsForSlowScroll(const IntRect&, bool) = 0; 152 152 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) = 0; -
trunk/Source/WebCore/page/Frame.cpp
r100059 r100290 930 930 // Request repaint from the system 931 931 for (int n = 0; n < size; ++n) 932 m_page->chrome()->invalidateContentsAnd Window(m_view->contentsToWindow(paintedArea[n]), false);932 m_page->chrome()->invalidateContentsAndRootView(m_view->contentsToRootView(paintedArea[n]), false); 933 933 } 934 934 -
trunk/Source/WebCore/page/FrameView.cpp
r100059 r100290 378 378 if (!parent()) { 379 379 if (hostWindow()) 380 hostWindow()->invalidateContentsAnd Window(rect, false /*immediate*/);380 hostWindow()->invalidateContentsAndRootView(rect, false /*immediate*/); 381 381 return; 382 382 } … … 1453 1453 continue; 1454 1454 IntRect updateRect = renderBox->layer()->repaintRectIncludingDescendants(); 1455 updateRect = contentsTo Window(updateRect);1455 updateRect = contentsToRootView(updateRect); 1456 1456 if (!isCompositedContentLayer && clipsRepaints()) 1457 1457 updateRect.intersect(rectToScroll); … … 1479 1479 #if USE(ACCELERATED_COMPOSITING) 1480 1480 if (isCompositedContentLayer) { 1481 updateRect = windowToContents(updateRect);1481 updateRect = rootViewToContents(updateRect); 1482 1482 RenderView* root = rootRenderer(this); 1483 1483 ASSERT(root); … … 1488 1488 if (clipsRepaints()) 1489 1489 updateRect.intersect(rectToScroll); 1490 hostWindow()->invalidateContentsAnd Window(updateRect, false);1490 hostWindow()->invalidateContentsAndRootView(updateRect, false); 1491 1491 } 1492 1492 return true; -
trunk/Source/WebCore/platform/HostWindow.h
r97571 r100290 39 39 virtual ~HostWindow() { } 40 40 41 // Requests the host invalidate the window, not the contents.If immediate is true do so synchronously, otherwise async.42 virtual void invalidate Window(const IntRect& updateRect, bool immediate) = 0;41 // Requests the host invalidate the root view, not the contents. If immediate is true do so synchronously, otherwise async. 42 virtual void invalidateRootView(const IntRect& updateRect, bool immediate) = 0; 43 43 44 // Requests the host invalidate the contents and the window.If immediate is true do so synchronously, otherwise async.45 virtual void invalidateContentsAnd Window(const IntRect& updateRect, bool immediate) = 0;44 // Requests the host invalidate the contents and the root view. If immediate is true do so synchronously, otherwise async. 45 virtual void invalidateContentsAndRootView(const IntRect& updateRect, bool immediate) = 0; 46 46 47 47 // Requests the host scroll backingstore by the specified delta, rect to scroll, and clip rect. 48 48 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect) = 0; 49 49 50 // Requests the host invalidate the contents, not the window.This is the slow path for scrolling.50 // Requests the host invalidate the contents, not the root view. This is the slow path for scrolling. 51 51 virtual void invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) = 0; 52 52 -
trunk/Source/WebCore/platform/ScrollView.cpp
r99761 r100290 604 604 IntRect ScrollView::rectToCopyOnScroll() const 605 605 { 606 IntRect scrollViewRect = convertTo ContainingWindow(IntRect(0, 0, visibleWidth(), visibleHeight()));606 IntRect scrollViewRect = convertToRootView(IntRect(0, 0, visibleWidth(), visibleHeight())); 607 607 if (hasOverlayScrollbars()) { 608 608 int verticalScrollbarWidth = (verticalScrollbar() && !hasLayerForVerticalScrollbar()) ? verticalScrollbar()->width() : 0; … … 627 627 updateRect.intersect(scrollViewRect); 628 628 629 // Invalidate the window (not the backing store).630 hostWindow()->invalidate Window(updateRect, false /*immediate*/);629 // Invalidate the root view (not the backing store). 630 hostWindow()->invalidateRootView(updateRect, false /*immediate*/); 631 631 632 632 if (m_drawPanScrollIcon) { … … 637 637 IntRect panScrollIconDirtyRect = IntRect(panIconDirtySquareLocation, IntSize(panIconDirtySquareSizeLength, panIconDirtySquareSizeLength)); 638 638 panScrollIconDirtyRect.intersect(clipRect); 639 hostWindow()->invalidateContentsAnd Window(panScrollIconDirtyRect, false /*immediate*/);639 hostWindow()->invalidateContentsAndRootView(panScrollIconDirtyRect, false /*immediate*/); 640 640 } 641 641 … … 663 663 #endif 664 664 if (!horizontalOverhangRect.isEmpty()) 665 hostWindow()->invalidateContentsAnd Window(horizontalOverhangRect, false /*immediate*/);665 hostWindow()->invalidateContentsAndRootView(horizontalOverhangRect, false /*immediate*/); 666 666 if (!verticalOverhangRect.isEmpty()) 667 hostWindow()->invalidateContentsAnd Window(verticalOverhangRect, false /*immediate*/);667 hostWindow()->invalidateContentsAndRootView(verticalOverhangRect, false /*immediate*/); 668 668 669 669 // This call will move children with native widgets (plugins) and invalidate them as well. … … 671 671 672 672 // Now blit the backingstore into the window which should be very fast. 673 hostWindow()->invalidate Window(IntRect(), true);673 hostWindow()->invalidateRootView(IntRect(), true); 674 674 } 675 675 … … 930 930 931 931 if (hostWindow()) 932 hostWindow()->invalidateContentsAnd Window(contentsToWindow(paintRect), now /*immediate*/);932 hostWindow()->invalidateContentsAndRootView(contentsToWindow(paintRect), now /*immediate*/); 933 933 } 934 934 … … 1253 1253 m_drawPanScrollIcon = true; 1254 1254 m_panScrollIconPoint = IntPoint(iconPosition.x() - panIconSizeLength / 2 , iconPosition.y() - panIconSizeLength / 2) ; 1255 hostWindow()->invalidateContentsAnd Window(IntRect(m_panScrollIconPoint, IntSize(panIconSizeLength, panIconSizeLength)), true /*immediate*/);1255 hostWindow()->invalidateContentsAndRootView(IntRect(m_panScrollIconPoint, IntSize(panIconSizeLength, panIconSizeLength)), true /*immediate*/); 1256 1256 } 1257 1257 … … 1261 1261 return; 1262 1262 m_drawPanScrollIcon = false; 1263 hostWindow()->invalidateContentsAnd Window(IntRect(m_panScrollIconPoint, IntSize(panIconSizeLength, panIconSizeLength)), true /*immediate*/);1263 hostWindow()->invalidateContentsAndRootView(IntRect(m_panScrollIconPoint, IntSize(panIconSizeLength, panIconSizeLength)), true /*immediate*/); 1264 1264 } 1265 1265 -
trunk/Source/WebCore/platform/chromium/FramelessScrollView.cpp
r96348 r100290 67 67 { 68 68 if (HostWindow* h = hostWindow()) 69 h->invalidateContentsAnd Window(rect, false /*immediate*/);69 h->invalidateContentsAndRootView(rect, false /*immediate*/); 70 70 } 71 71 -
trunk/Source/WebCore/svg/graphics/SVGImage.cpp
r99856 r100290 74 74 } 75 75 76 virtual void invalidateContentsAnd Window(const IntRect& r, bool)76 virtual void invalidateContentsAndRootView(const IntRect& r, bool) 77 77 { 78 78 if (m_image && m_image->imageObserver()) -
trunk/Source/WebKit/chromium/ChangeLog
r100277 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * src/ChromeClientImpl.cpp: 9 (WebKit::ChromeClientImpl::invalidateRootView): 10 (WebKit::ChromeClientImpl::invalidateContentsAndRootView): 11 (WebKit::ChromeClientImpl::invalidateContentsForSlowScroll): 12 * src/ChromeClientImpl.h: 13 * src/WebPopupMenuImpl.cpp: 14 (WebKit::WebPopupMenuImpl::invalidateRootView): 15 (WebKit::WebPopupMenuImpl::invalidateContentsAndRootView): 16 (WebKit::WebPopupMenuImpl::invalidateContentsForSlowScroll): 17 * src/WebPopupMenuImpl.h: 18 1 19 2011-11-15 Pavel Feldman <pfeldman@google.com> 2 20 -
trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp
r100098 r100290 507 507 #endif 508 508 509 void ChromeClientImpl::invalidate Window(const IntRect&, bool)509 void ChromeClientImpl::invalidateRootView(const IntRect&, bool) 510 510 { 511 511 notImplemented(); 512 512 } 513 513 514 void ChromeClientImpl::invalidateContentsAnd Window(const IntRect& updateRect, bool /*immediate*/)514 void ChromeClientImpl::invalidateContentsAndRootView(const IntRect& updateRect, bool /*immediate*/) 515 515 { 516 516 if (updateRect.isEmpty()) … … 530 530 { 531 531 m_webView->hidePopups(); 532 invalidateContentsAnd Window(updateRect, immediate);532 invalidateContentsAndRootView(updateRect, immediate); 533 533 } 534 534 -
trunk/Source/WebKit/chromium/src/ChromeClientImpl.h
r95919 r100290 106 106 virtual void registerProtocolHandler(const String& scheme, const String& baseURL, const String& url, const String& title); 107 107 #endif 108 virtual void invalidate Window(const WebCore::IntRect&, bool);109 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool);108 virtual void invalidateRootView(const WebCore::IntRect&, bool); 109 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool); 110 110 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool); 111 111 #if ENABLE(REQUEST_ANIMATION_FRAME) -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
r98782 r100290 349 349 } 350 350 351 void WebPopupMenuImpl::invalidate Window(const IntRect&, bool)352 { 353 notImplemented(); 354 } 355 356 void WebPopupMenuImpl::invalidateContentsAnd Window(const IntRect& paintRect, bool /*immediate*/)351 void WebPopupMenuImpl::invalidateRootView(const IntRect&, bool) 352 { 353 notImplemented(); 354 } 355 356 void WebPopupMenuImpl::invalidateContentsAndRootView(const IntRect& paintRect, bool /*immediate*/) 357 357 { 358 358 if (paintRect.isEmpty()) … … 364 364 void WebPopupMenuImpl::invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) 365 365 { 366 invalidateContentsAnd Window(updateRect, immediate);366 invalidateContentsAndRootView(updateRect, immediate); 367 367 } 368 368 -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.h
r98669 r100290 117 117 // WebCore::HostWindow methods: 118 118 virtual void invalidateContents(const WebCore::IntRect&, bool); 119 virtual void invalidate Window(const WebCore::IntRect&, bool);120 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool);119 virtual void invalidateRootView(const WebCore::IntRect&, bool); 120 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool); 121 121 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool); 122 122 virtual void scheduleAnimation(); -
trunk/Source/WebKit/efl/ChangeLog
r100261 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/ChromeClientEfl.cpp: 9 (WebCore::ChromeClientEfl::invalidateRootView): 10 (WebCore::ChromeClientEfl::invalidateContentsAndRootView): 11 (WebCore::ChromeClientEfl::invalidateContentsForSlowScroll): 12 * WebCoreSupport/ChromeClientEfl.h: 13 1 14 2011-11-15 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 15 -
trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp
r99268 r100290 486 486 } 487 487 488 void ChromeClientEfl::invalidate Window(const IntRect& updateRect, bool immediate)489 { 490 notImplemented(); 491 } 492 493 void ChromeClientEfl::invalidateContentsAnd Window(const IntRect& updateRect, bool immediate)488 void ChromeClientEfl::invalidateRootView(const IntRect& updateRect, bool immediate) 489 { 490 notImplemented(); 491 } 492 493 void ChromeClientEfl::invalidateContentsAndRootView(const IntRect& updateRect, bool immediate) 494 494 { 495 495 if (updateRect.isEmpty()) … … 507 507 void ChromeClientEfl::invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) 508 508 { 509 invalidateContentsAnd Window(updateRect, immediate);509 invalidateContentsAndRootView(updateRect, immediate); 510 510 } 511 511 -
trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h
r98472 r100290 153 153 154 154 virtual void invalidateContents(const IntRect&, bool); 155 virtual void invalidate Window(const IntRect&, bool);156 virtual void invalidateContentsAnd Window(const IntRect&, bool);155 virtual void invalidateRootView(const IntRect&, bool); 156 virtual void invalidateContentsAndRootView(const IntRect&, bool); 157 157 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); 158 158 virtual void scroll(const IntSize&, const IntRect&, const IntRect&); -
trunk/Source/WebKit/gtk/ChangeLog
r100284 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/ChromeClientGtk.cpp: 9 (WebKit::ChromeClient::invalidateRootView): 10 (WebKit::ChromeClient::invalidateContentsAndRootView): 11 (WebKit::ChromeClient::invalidateContentsForSlowScroll): 12 * WebCoreSupport/ChromeClientGtk.h: 13 1 14 2011-11-15 Carlos Garcia Campos <cgarcia@igalia.com> 2 15 -
trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
r100121 r100290 571 571 } 572 572 573 void ChromeClient::invalidate Window(const IntRect&, bool immediate)574 { 575 } 576 577 void ChromeClient::invalidateContentsAnd Window(const IntRect& updateRect, bool immediate)573 void ChromeClient::invalidateRootView(const IntRect&, bool immediate) 574 { 575 } 576 577 void ChromeClient::invalidateContentsAndRootView(const IntRect& updateRect, bool immediate) 578 578 { 579 579 if (updateRect.isEmpty()) … … 585 585 void ChromeClient::invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) 586 586 { 587 invalidateContentsAnd Window(updateRect, immediate);587 invalidateContentsAndRootView(updateRect, immediate); 588 588 m_adjustmentWatcher.updateAdjustmentsFromScrollbarsLater(); 589 589 } -
trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h
r98827 r100290 103 103 virtual void registerProtocolHandler(const WTF::String&, const WTF::String&, const WTF::String&, const WTF::String&); 104 104 #endif 105 virtual void invalidate Window(const IntRect&, bool);106 virtual void invalidateContentsAnd Window(const IntRect&, bool);105 virtual void invalidateRootView(const IntRect&, bool); 106 virtual void invalidateContentsAndRootView(const IntRect&, bool); 107 107 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); 108 108 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); -
trunk/Source/WebKit/mac/ChangeLog
r100226 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/WebChromeClient.h: 9 * WebCoreSupport/WebChromeClient.mm: 10 (WebChromeClient::invalidateRootView): 11 (WebChromeClient::invalidateContentsAndRootView): 12 (WebChromeClient::invalidateContentsForSlowScroll): 13 1 14 2011-11-14 Julien Chaffraix <jchaffraix@webkit.org> 2 15 -
trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.h
r95919 r100290 89 89 virtual WebCore::IntRect windowResizerRect() const OVERRIDE; 90 90 91 virtual void invalidate Window(const WebCore::IntRect&, bool) OVERRIDE;92 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool) OVERRIDE;91 virtual void invalidateRootView(const WebCore::IntRect&, bool) OVERRIDE; 92 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool) OVERRIDE; 93 93 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool) OVERRIDE; 94 94 virtual void scroll(const WebCore::IntSize& scrollDelta, const WebCore::IntRect& rectToScroll, const WebCore::IntRect& clipRect) OVERRIDE; -
trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm
r97538 r100290 542 542 } 543 543 544 void WebChromeClient::invalidate Window(const IntRect&, bool immediate)544 void WebChromeClient::invalidateRootView(const IntRect&, bool immediate) 545 545 { 546 546 if (immediate) { … … 550 550 } 551 551 552 void WebChromeClient::invalidateContentsAnd Window(const IntRect& rect, bool immediate)552 void WebChromeClient::invalidateContentsAndRootView(const IntRect& rect, bool immediate) 553 553 { 554 554 } … … 556 556 void WebChromeClient::invalidateContentsForSlowScroll(const IntRect& rect, bool immediate) 557 557 { 558 invalidateContentsAnd Window(rect, immediate);558 invalidateContentsAndRootView(rect, immediate); 559 559 } 560 560 -
trunk/Source/WebKit/qt/ChangeLog
r100123 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/ChromeClientQt.cpp: 9 (WebCore::ChromeClientQt::invalidateRootView): 10 (WebCore::ChromeClientQt::invalidateContentsAndRootView): 11 (WebCore::ChromeClientQt::invalidateContentsForSlowScroll): 12 * WebCoreSupport/ChromeClientQt.h: 13 1 14 2011-11-11 Pierre Rossi <pierre.rossi@gmail.com> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
r99202 r100290 399 399 } 400 400 401 void ChromeClientQt::invalidate Window(const IntRect& windowRect, bool)401 void ChromeClientQt::invalidateRootView(const IntRect& windowRect, bool) 402 402 { 403 403 #if USE(TILED_BACKING_STORE) … … 413 413 } 414 414 415 void ChromeClientQt::invalidateContentsAnd Window(const IntRect& windowRect, bool immediate)415 void ChromeClientQt::invalidateContentsAndRootView(const IntRect& windowRect, bool immediate) 416 416 { 417 417 // No double buffer, so only update the QWidget if content changed. … … 430 430 void ChromeClientQt::invalidateContentsForSlowScroll(const IntRect& windowRect, bool immediate) 431 431 { 432 invalidateContentsAnd Window(windowRect, immediate);432 invalidateContentsAndRootView(windowRect, immediate); 433 433 } 434 434 -
trunk/Source/WebKit/qt/WebCoreSupport/ChromeClientQt.h
r98472 r100290 115 115 virtual IntRect windowResizerRect() const; 116 116 117 virtual void invalidate Window(const IntRect&, bool);118 virtual void invalidateContentsAnd Window(const IntRect&, bool);117 virtual void invalidateRootView(const IntRect&, bool); 118 virtual void invalidateContentsAndRootView(const IntRect&, bool); 119 119 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); 120 120 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); -
trunk/Source/WebKit/win/ChangeLog
r99659 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/WebChromeClient.cpp: 9 (WebChromeClient::invalidateRootView): 10 (WebChromeClient::invalidateContentsAndRootView): 11 * WebCoreSupport/WebChromeClient.h: 12 1 13 2011-11-07 Adam Barth <abarth@webkit.org> 2 14 -
trunk/Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp
r96549 r100290 461 461 } 462 462 463 void WebChromeClient::invalidate Window(const IntRect& windowRect, bool immediate)463 void WebChromeClient::invalidateRootView(const IntRect& windowRect, bool immediate) 464 464 { 465 465 ASSERT(core(m_webView->topLevelFrame())); … … 467 467 } 468 468 469 void WebChromeClient::invalidateContentsAnd Window(const IntRect& windowRect, bool immediate)469 void WebChromeClient::invalidateContentsAndRootView(const IntRect& windowRect, bool immediate) 470 470 { 471 471 ASSERT(core(m_webView->topLevelFrame())); -
trunk/Source/WebKit/win/WebCoreSupport/WebChromeClient.h
r96549 r100290 95 95 virtual WebCore::IntRect windowResizerRect() const; 96 96 97 virtual void invalidate Window(const WebCore::IntRect&, bool);98 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool);97 virtual void invalidateRootView(const WebCore::IntRect&, bool); 98 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool); 99 99 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool); 100 100 virtual void scroll(const WebCore::IntSize& scrollDelta, const WebCore::IntRect& rectToScroll, const WebCore::IntRect& clipRect); -
trunk/Source/WebKit/wince/ChangeLog
r99270 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebCoreSupport/ChromeClientWinCE.cpp: 9 (WebKit::ChromeClientWinCE::invalidateRootView): 10 (WebKit::ChromeClientWinCE::invalidateContentsAndRootView): 11 (WebKit::ChromeClientWinCE::invalidateContentsForSlowScroll): 12 (WebKit::ChromeClientWinCE::scroll): 13 * WebCoreSupport/ChromeClientWinCE.h: 14 1 15 2011-11-04 Patrick Gansterer <paroga@webkit.org> 2 16 -
trunk/Source/WebKit/wince/WebCoreSupport/ChromeClientWinCE.cpp
r95919 r100290 227 227 } 228 228 229 void ChromeClientWinCE::invalidate Window(const IntRect&, bool)230 { 231 notImplemented(); 232 } 233 234 void ChromeClientWinCE::invalidateContentsAnd Window(const IntRect& updateRect, bool immediate)229 void ChromeClientWinCE::invalidateRootView(const IntRect&, bool) 230 { 231 notImplemented(); 232 } 233 234 void ChromeClientWinCE::invalidateContentsAndRootView(const IntRect& updateRect, bool immediate) 235 235 { 236 236 RECT rect = updateRect; … … 243 243 void ChromeClientWinCE::invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) 244 244 { 245 invalidateContentsAnd Window(updateRect, immediate);245 invalidateContentsAndRootView(updateRect, immediate); 246 246 } 247 247 248 248 void ChromeClientWinCE::scroll(const IntSize&, const IntRect& rectToScroll, const IntRect&) 249 249 { 250 invalidateContentsAnd Window(rectToScroll, false);250 invalidateContentsAndRootView(rectToScroll, false); 251 251 } 252 252 -
trunk/Source/WebKit/wince/WebCoreSupport/ChromeClientWinCE.h
r95919 r100290 94 94 95 95 // Methods used by HostWindow. 96 virtual void invalidate Window(const WebCore::IntRect&, bool);97 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool);96 virtual void invalidateRootView(const WebCore::IntRect&, bool); 97 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool); 98 98 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool); 99 99 virtual void scroll(const WebCore::IntSize&, const WebCore::IntRect&, const WebCore::IntRect&); -
trunk/Source/WebKit/wx/ChangeLog
r99096 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebKitSupport/ChromeClientWx.cpp: 9 (WebCore::ChromeClientWx::invalidateRootView): 10 (WebCore::ChromeClientWx::invalidateContentsForSlowScroll): 11 (WebCore::ChromeClientWx::invalidateContentsAndRootView): 12 * WebKitSupport/ChromeClientWx.h: 13 1 14 2011-11-02 Tom Sepez <tsepez@chromium.org> 2 15 -
trunk/Source/WebKit/wx/WebKitSupport/ChromeClientWx.cpp
r95919 r100290 341 341 } 342 342 343 void ChromeClientWx::invalidate Window(const IntRect& rect, bool immediate)343 void ChromeClientWx::invalidateRootView(const IntRect& rect, bool immediate) 344 344 { 345 345 if (immediate) … … 349 349 void ChromeClientWx::invalidateContentsForSlowScroll(const IntRect& rect, bool immediate) 350 350 { 351 invalidateContentsAnd Window(rect, immediate);352 } 353 354 void ChromeClientWx::invalidateContentsAnd Window(const IntRect& rect, bool immediate)351 invalidateContentsAndRootView(rect, immediate); 352 } 353 354 void ChromeClientWx::invalidateContentsAndRootView(const IntRect& rect, bool immediate) 355 355 { 356 356 if (!m_webView) -
trunk/Source/WebKit/wx/WebKitSupport/ChromeClientWx.h
r95919 r100290 104 104 virtual void updateBackingStore(); 105 105 106 virtual void invalidate Window(const IntRect&, bool);107 virtual void invalidateContentsAnd Window(const IntRect&, bool);106 virtual void invalidateRootView(const IntRect&, bool); 107 virtual void invalidateContentsAndRootView(const IntRect&, bool); 108 108 virtual void invalidateContentsForSlowScroll(const IntRect&, bool); 109 109 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); -
trunk/Source/WebKit2/ChangeLog
r100284 r100290 1 2011-11-14 Anders Carlsson <andersca@apple.com> 2 3 HostWindow invalidation functions should use root view coordinates 4 https://bugs.webkit.org/show_bug.cgi?id=72338 5 6 Reviewed by Dan Bernstein. 7 8 * WebProcess/WebCoreSupport/WebChromeClient.cpp: 9 (WebKit::WebChromeClient::invalidateRootView): 10 (WebKit::WebChromeClient::invalidateContentsAndRootView): 11 * WebProcess/WebCoreSupport/WebChromeClient.h: 12 1 13 2011-11-15 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r99725 r100290 371 371 } 372 372 373 void WebChromeClient::invalidate Window(const IntRect&, bool)373 void WebChromeClient::invalidateRootView(const IntRect&, bool) 374 374 { 375 375 // Do nothing here, there's no concept of invalidating the window in the web process. 376 376 } 377 377 378 void WebChromeClient::invalidateContentsAnd Window(const IntRect& rect, bool)378 void WebChromeClient::invalidateContentsAndRootView(const IntRect& rect, bool) 379 379 { 380 380 if (Document* document = m_page->corePage()->mainFrame()->document()) { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h
r98472 r100290 109 109 110 110 // HostWindow member function overrides. 111 virtual void invalidate Window(const WebCore::IntRect&, bool) OVERRIDE;112 virtual void invalidateContentsAnd Window(const WebCore::IntRect&, bool) OVERRIDE;111 virtual void invalidateRootView(const WebCore::IntRect&, bool) OVERRIDE; 112 virtual void invalidateContentsAndRootView(const WebCore::IntRect&, bool) OVERRIDE; 113 113 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool) OVERRIDE; 114 114 virtual void scroll(const WebCore::IntSize& scrollOffset, const WebCore::IntRect& scrollRect, const WebCore::IntRect& clipRect) OVERRIDE;
Note: See TracChangeset
for help on using the changeset viewer.