Changeset 121441 in webkit
- Timestamp:
- Jun 28, 2012 11:00:42 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r121439 r121441 1 2012-06-28 Kalev Lember <kalevlember@gmail.com> 2 3 [GTK][Win]: Fix plugin drawing to an offscreen buffer 4 https://bugs.webkit.org/show_bug.cgi?id=89499 5 6 Reviewed by Brent Fulgham. 7 8 Take into account that the GTK+ port draws to a backing store and adjust 9 the target rectangle calculation accordingly. 10 11 * plugins/win/PluginViewWin.cpp: 12 (WebCore::PluginView::paint): 13 (WebCore::PluginView::setNPWindowRect): 14 1 15 2012-06-28 Kentaro Hara <haraken@chromium.org> 2 16 -
trunk/Source/WebCore/plugins/win/PluginViewWin.cpp
r121381 r121441 649 649 650 650 ASSERT(parent()->isFrameView()); 651 652 // In the GTK port we draw in an offscreen buffer and don't want to use the window 653 // coordinates. 654 #if PLATFORM(GTK) 655 IntRect rectInWindow(rect); 656 rectInWindow.intersect(frameRect()); 657 #else 651 658 IntRect rectInWindow = static_cast<FrameView*>(parent())->contentsToWindow(frameRect()); 659 #endif 652 660 LocalWindowsContext windowsContext(context, rectInWindow, m_isTransparent); 653 661 … … 833 841 m_npWindow.clipRect.bottom = r.height(); 834 842 #else 843 // In the GTK port we draw in an offscreen buffer and don't want to use the window 844 // coordinates. 845 # if PLATFORM(GTK) 846 IntPoint p = rect.location(); 847 # else 835 848 IntPoint p = static_cast<FrameView*>(parent())->contentsToWindow(rect.location()); 849 # endif 836 850 m_npWindow.x = p.x(); 837 851 m_npWindow.y = p.y();
Note: See TracChangeset
for help on using the changeset viewer.