Changeset 85420 in webkit
- Timestamp:
- May 1, 2011 10:47:30 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85419 r85420 1 2011-05-01 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Fix OwnPtr strict issues in windows build 6 https://bugs.webkit.org/show_bug.cgi?id=59878 7 8 * platform/graphics/ca/win/CACFLayerTreeHost.cpp: 9 (WebCore::getDirtyRects): 10 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: 11 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext): 12 * platform/graphics/win/WKCAImageQueue.cpp: 13 (WebCore::WKCAImageQueue::WKCAImageQueue): 14 * platform/win/CursorWin.cpp: 15 (WebCore::createSharedCursor): 16 * platform/win/PasteboardWin.cpp: 17 (WebCore::Pasteboard::writeImage): 18 1 19 2011-05-01 Patrick Gansterer <paroga@webkit.org> 2 20 -
trunk/Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp
r84635 r85420 240 240 return; 241 241 242 OwnPtr<HRGN> region (CreateRectRgn(0, 0, 0, 0));242 OwnPtr<HRGN> region = adoptPtr(CreateRectRgn(0, 0, 0, 0)); 243 243 int regionType = GetUpdateRgn(window, region.get(), false); 244 244 if (regionType != COMPLEXREGION) { -
trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp
r82014 r85420 174 174 , m_visible(false) 175 175 , m_newFrameAvailable(false) 176 , m_movieClient( new MediaPlayerPrivateQuickTimeVisualContext::MovieClient(this))177 #if USE(ACCELERATED_COMPOSITING) 178 , m_layerClient( new MediaPlayerPrivateQuickTimeVisualContext::LayerClient(this))176 , m_movieClient(adoptPtr(new MediaPlayerPrivateQuickTimeVisualContext::MovieClient(this))) 177 #if USE(ACCELERATED_COMPOSITING) 178 , m_layerClient(adoptPtr(new MediaPlayerPrivateQuickTimeVisualContext::LayerClient(this))) 179 179 , m_movieTransform(CGAffineTransformIdentity) 180 180 #endif 181 , m_visualContextClient( new MediaPlayerPrivateQuickTimeVisualContext::VisualContextClient(this))181 , m_visualContextClient(adoptPtr(new MediaPlayerPrivateQuickTimeVisualContext::VisualContextClient(this))) 182 182 , m_delayingLoad(false) 183 183 , m_privateBrowsing(false) -
trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp
r77943 r85420 31 31 #include <CoreFoundation/CoreFoundation.h> 32 32 #include <WebKitSystemInterface/WebKitSystemInterface.h> 33 #include <wtf/PassOwnPtr.h> 33 34 #include <wtf/RetainPtr.h> 34 35 … … 54 55 55 56 WKCAImageQueue::WKCAImageQueue(uint32_t width, uint32_t height, uint32_t capacity) 56 : m_private( new WKCAImageQueuePrivate())57 : m_private(adoptPtr(new WKCAImageQueuePrivate())) 57 58 { 58 59 m_private->m_imageQueue.adoptCF(wkCAImageQueueCreate(width, height, capacity)); … … 60 61 61 62 WKCAImageQueue::WKCAImageQueue(const WKCAImageQueue& o) 62 : m_private( new WKCAImageQueuePrivate())63 : m_private(adoptPtr(new WKCAImageQueuePrivate())) 63 64 { 64 65 m_private->m_imageQueue = o.m_private->m_imageQueue; -
trunk/Source/WebCore/platform/win/CursorWin.cpp
r80688 r85420 34 34 35 35 #include <wtf/OwnPtr.h> 36 #include <wtf/PassOwnPtr.h> 36 37 37 38 #include <windows.h> … … 52 53 HDC workingDC = CreateCompatibleDC(dc); 53 54 if (doAlpha) { 54 OwnPtr<HBITMAP> hCursor (CreateDIBSection(dc, (BITMAPINFO *)&cursorImage, DIB_RGB_COLORS, 0, 0, 0));55 OwnPtr<HBITMAP> hCursor = adoptPtr(CreateDIBSection(dc, (BITMAPINFO *)&cursorImage, DIB_RGB_COLORS, 0, 0, 0)); 55 56 ASSERT(hCursor); 56 57 … … 62 63 Vector<unsigned char, 128> maskBits; 63 64 maskBits.fill(0xff, (img->width() + 7) / 8 * img->height()); 64 OwnPtr<HBITMAP> hMask (CreateBitmap(img->width(), img->height(), 1, 1, maskBits.data()));65 OwnPtr<HBITMAP> hMask = adoptPtr(CreateBitmap(img->width(), img->height(), 1, 1, maskBits.data())); 65 66 66 67 ICONINFO ii; … … 77 78 HDC andMaskDC = CreateCompatibleDC(dc); 78 79 HDC xorMaskDC = CreateCompatibleDC(dc); 79 OwnPtr<HBITMAP> hCursor (CreateDIBSection(dc, &cursorImage, DIB_RGB_COLORS, 0, 0, 0));80 OwnPtr<HBITMAP> hCursor = adoptPtr(CreateDIBSection(dc, &cursorImage, DIB_RGB_COLORS, 0, 0, 0)); 80 81 ASSERT(hCursor); 81 82 img->getHBITMAP(hCursor.get()); 82 83 BITMAP cursor; 83 84 GetObject(hCursor.get(), sizeof(BITMAP), &cursor); 84 OwnPtr<HBITMAP> andMask (CreateBitmap(cursor.bmWidth, cursor.bmHeight, 1, 1, NULL));85 OwnPtr<HBITMAP> xorMask (CreateCompatibleBitmap(dc, cursor.bmWidth, cursor.bmHeight));85 OwnPtr<HBITMAP> andMask = adoptPtr(CreateBitmap(cursor.bmWidth, cursor.bmHeight, 1, 1, NULL)); 86 OwnPtr<HBITMAP> xorMask = adoptPtr(CreateCompatibleBitmap(dc, cursor.bmWidth, cursor.bmHeight)); 86 87 HBITMAP oldCursor = (HBITMAP)SelectObject(workingDC, hCursor.get()); 87 88 HBITMAP oldAndMask = (HBITMAP)SelectObject(andMaskDC, andMask.get()); -
trunk/Source/WebCore/platform/win/PasteboardWin.cpp
r67122 r85420 222 222 HDC compatibleDC = CreateCompatibleDC(0); 223 223 HDC sourceDC = CreateCompatibleDC(0); 224 OwnPtr<HBITMAP> resultBitmap (CreateCompatibleBitmap(dc, image->width(), image->height()));224 OwnPtr<HBITMAP> resultBitmap = adoptPtr(CreateCompatibleBitmap(dc, image->width(), image->height())); 225 225 HGDIOBJ oldBitmap = SelectObject(compatibleDC, resultBitmap.get()); 226 226 -
trunk/Source/WebKit/win/ChangeLog
r85393 r85420 1 2011-05-01 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Fix OwnPtr strict issues in windows build 6 https://bugs.webkit.org/show_bug.cgi?id=59878 7 8 * FullscreenVideoController.cpp: 9 (FullscreenVideoController::FullscreenVideoController): 10 (FullscreenVideoController::createHUDWindow): 11 * WebCoreSupport/WebInspectorClient.cpp: 12 (WebInspectorClient::highlight): 13 * WebElementPropertyBag.cpp: 14 (WebElementPropertyBag::WebElementPropertyBag): 15 * WebNodeHighlight.cpp: 16 (WebNodeHighlight::update): 17 * WebNotificationCenter.cpp: 18 (WebNotificationCenter::WebNotificationCenter): 19 * WebView.cpp: 20 (WebView::close): 21 (WebView::paint): 22 (WebView::handleMouseEvent): 23 (WebView::registerEmbeddedViewMIMEType): 24 1 25 2011-04-29 Jer Noble <jer.noble@apple.com> 2 26 -
trunk/Source/WebKit/win/FullscreenVideoController.cpp
r82120 r85420 243 243 , m_timer(this, &FullscreenVideoController::timerFired) 244 244 #if USE(ACCELERATED_COMPOSITING) 245 , m_layerClient( new LayerClient(this))245 , m_layerClient(adoptPtr(new LayerClient(this))) 246 246 , m_rootChild(PlatformCALayer::create(PlatformCALayer::LayerTypeLayer, m_layerClient.get())) 247 247 #endif 248 , m_fullscreenWindow( new MediaPlayerPrivateFullscreenWindow(this))248 , m_fullscreenWindow(adoptPtr(new MediaPlayerPrivateFullscreenWindow(this))) 249 249 { 250 250 } … … 438 438 void* pixels; 439 439 BitmapInfo bitmapInfo = BitmapInfo::createBottomUp(IntSize(windowWidth, windowHeight)); 440 m_bitmap .set(::CreateDIBSection(0, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0));441 440 m_bitmap = adoptPtr(::CreateDIBSection(0, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0)); 441 442 442 // Dirty the window so the HUD draws 443 443 RECT clearRect = { m_hudPosition.x(), m_hudPosition.y(), m_hudPosition.x() + windowWidth, m_hudPosition.y() + windowHeight }; -
trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp
r82294 r85420 182 182 183 183 if (creatingHighlight) 184 m_highlight .set(new WebNodeHighlight(m_inspectedWebView));184 m_highlight = adoptPtr(new WebNodeHighlight(m_inspectedWebView)); 185 185 186 186 if (m_highlight->isShowing()) -
trunk/Source/WebKit/win/WebElementPropertyBag.cpp
r82294 r85420 43 43 // WebElementPropertyBag ----------------------------------------------- 44 44 WebElementPropertyBag::WebElementPropertyBag(const HitTestResult& result) 45 : m_result( new HitTestResult(result))45 : m_result(adoptPtr(new HitTestResult(result))) 46 46 , m_refCount(0) 47 47 { -
trunk/Source/WebKit/win/WebNodeHighlight.cpp
r82294 r85420 149 149 150 150 void* pixels = 0; 151 OwnPtr<HBITMAP> hbmp (::CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0));151 OwnPtr<HBITMAP> hbmp = adoptPtr(::CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0)); 152 152 153 153 ::SelectObject(hdc, hbmp.get()); -
trunk/Source/WebKit/win/WebNotificationCenter.cpp
r82294 r85420 33 33 #include <wtf/HashMap.h> 34 34 #include <wtf/HashTraits.h> 35 #include <wtf/PassOwnPtr.h> 35 36 #include <wtf/Vector.h> 36 37 #include <wtf/text/StringHash.h> … … 55 56 WebNotificationCenter::WebNotificationCenter() 56 57 : m_refCount(0) 57 , d( new WebNotificationCenterPrivate)58 , d(adoptPtr(new WebNotificationCenterPrivate)) 58 59 { 59 60 gClassCount++; -
trunk/Source/WebKit/win/WebView.cpp
r85393 r85420 681 681 m_mouseOutTracker->dwFlags = TME_CANCEL; 682 682 ::TrackMouseEvent(m_mouseOutTracker.get()); 683 m_mouseOutTracker. set(0);683 m_mouseOutTracker.clear(); 684 684 } 685 685 … … 1051 1051 WindowsToPaint windowsToPaint; 1052 1052 if (!dc) { 1053 region .set(CreateRectRgn(0,0,0,0));1053 region = adoptPtr(CreateRectRgn(0,0,0,0)); 1054 1054 regionType = GetUpdateRgn(m_viewWindow, region.get(), false); 1055 1055 hdc = BeginPaint(m_viewWindow, &ps); … … 1500 1500 // Once WM_MOUSELEAVE is fired windows clears this tracker 1501 1501 // so there is no need to disable it ourselves. 1502 m_mouseOutTracker. set(0);1502 m_mouseOutTracker.clear(); 1503 1503 m_page->mainFrame()->eventHandler()->mouseMoved(mouseEvent); 1504 1504 handled = true; … … 1509 1509 handled = m_page->mainFrame()->eventHandler()->mouseMoved(mouseEvent); 1510 1510 if (!m_mouseOutTracker) { 1511 m_mouseOutTracker .set(new TRACKMOUSEEVENT);1511 m_mouseOutTracker = adoptPtr(new TRACKMOUSEEVENT); 1512 1512 m_mouseOutTracker->cbSize = sizeof(TRACKMOUSEEVENT); 1513 1513 m_mouseOutTracker->dwFlags = TME_LEAVE; … … 6027 6027 6028 6028 if (!m_embeddedViewMIMETypes) 6029 m_embeddedViewMIMETypes .set(new HashSet<String>);6029 m_embeddedViewMIMETypes = adoptPtr(new HashSet<String>); 6030 6030 6031 6031 m_embeddedViewMIMETypes->add(String(mimeType, ::SysStringLen(mimeType)));
Note: See TracChangeset
for help on using the changeset viewer.