Source/WebKit/win/ChangeLog

 12016-07-01 Per Arne Vollan <pvollan@apple.com>
 2
 3 ASSERTION FAILED: info.bmBitsPixel == 32
 4 https://bugs.webkit.org/show_bug.cgi?id=17737
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 The ::SelectObject call will fail if m_backingStoreBitmap is already selected into a device context.
 9 This happens when this method is called indirectly from WebView::updateBackingStore during normal
 10 WM_PAINT handlind. There is no point continuing, since we would just be scrolling a 1x1 bitmap which
 11 is selected into the device context by default. We can just scroll by repainting the scroll rectangle.
 12
 13 * WebView.cpp:
 14 (WebView::scrollBackingStore): Invalidate the scroll rectangle if the ::SelectObject call fails.
 15
1162016-07-01 Youenn Fablet <youennf@gmail.com>
217
318 Add a runtime flag for DOM iterators
202728

Source/WebKit/win/WebView.cpp

@@void WebView::scrollBackingStore(FrameVi
936936 HWndDC windowDC(m_viewWindow);
937937 auto bitmapDC = adoptGDIObject(::CreateCompatibleDC(windowDC));
938938 HGDIOBJ oldBitmap = ::SelectObject(bitmapDC.get(), m_backingStoreBitmap->get());
 939 if (!oldBitmap) {
 940 // The ::SelectObject call will fail if m_backingStoreBitmap is already selected into a device context.
 941 // This happens when this method is called indirectly from WebView::updateBackingStore during normal WM_PAINT handling.
 942 // There is no point continuing, since we would just be scrolling a 1x1 bitmap which is selected into the device context by default.
 943 // We can just scroll by repainting the scroll rectangle.
 944 RECT scrollRect(scrollViewRect);
 945 ::InvalidateRect(m_viewWindow, &scrollRect, FALSE);
 946 return;
 947 }
939948
940949 // Scroll the bitmap.
941950 RECT scrollRectWin(scrollViewRect);

@@HRESULT WebView::findString(_In_ BSTR st
75887597 *found = m_page->findString(toString(string), options);
75897598 return S_OK;
75907599}
7591 
202676