WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
bug-84417-20120509145750.patch (text/plain), 7.94 KB, created by
Mark Pilgrim (Google)
on 2012-05-09 11:57:52 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Mark Pilgrim (Google)
Created:
2012-05-09 11:57:52 PDT
Size:
7.94 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 116546) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,20 @@ >+2012-05-09 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Remove PlatformSupport::loadPlatformImageResource, call loadResource directly >+ https://bugs.webkit.org/show_bug.cgi?id=84417 >+ >+ Reviewed by Adam Barth. >+ >+ Part of a refactoring series. See tracking bug 82948. >+ >+ * WebCore.gyp/WebCore.gyp: >+ * WebCore.gypi: >+ * platform/chromium/PlatformSupport.h: >+ (PlatformSupport): >+ * platform/graphics/chromium/ImageChromium.cpp: >+ (WebCore::Image::loadPlatformResource): >+ * platform/graphics/chromium/ImageChromiumMac.mm: Removed. >+ > 2012-05-09 Abhishek Arya <inferno@chromium.org> > > Crash in ReplaceSelectionCommand::performTrivialReplace >Index: Source/WebCore/WebCore.gypi >=================================================================== >--- Source/WebCore/WebCore.gypi (revision 116546) >+++ Source/WebCore/WebCore.gypi (working copy) >@@ -3570,7 +3570,6 @@ > 'platform/graphics/chromium/IconChromiumAndroid.cpp', > 'platform/graphics/chromium/ImageBufferDataSkia.h', > 'platform/graphics/chromium/ImageChromium.cpp', >- 'platform/graphics/chromium/ImageChromiumMac.mm', > 'platform/graphics/chromium/ImageLayerChromium.cpp', > 'platform/graphics/chromium/ImageLayerChromium.h', > 'platform/graphics/chromium/LayerChromium.cpp', >Index: Source/WebCore/WebCore.gyp/WebCore.gyp >=================================================================== >--- Source/WebCore/WebCore.gyp/WebCore.gyp (revision 116546) >+++ Source/WebCore/WebCore.gyp/WebCore.gyp (working copy) >@@ -1654,7 +1654,6 @@ > ['include', 'platform/graphics/cg/IntPointCG\\.cpp$'], > ['include', 'platform/graphics/cg/IntRectCG\\.cpp$'], > ['include', 'platform/graphics/cg/IntSizeCG\\.cpp$'], >- ['exclude', 'platform/graphics/chromium/ImageChromiumMac\\.mm$'], > ['exclude', 'platform/graphics/mac/FontMac\\.mm$'], > ['exclude', 'platform/graphics/skia/FontCacheSkia\\.cpp$'], > ['exclude', 'platform/graphics/skia/GlyphPageTreeNodeSkia\\.cpp$'], >Index: Source/WebCore/platform/chromium/PlatformSupport.h >=================================================================== >--- Source/WebCore/platform/chromium/PlatformSupport.h (revision 116546) >+++ Source/WebCore/platform/chromium/PlatformSupport.h (working copy) >@@ -196,8 +196,6 @@ public: > static bool popupsAllowed(NPP); > > // Resources ---------------------------------------------------------- >- static PassRefPtr<Image> loadPlatformImageResource(const char* name); >- > #if ENABLE(WEB_AUDIO) > static PassOwnPtr<AudioBus> decodeAudioFileData(const char* data, size_t, double sampleRate); > #endif >Index: Source/WebCore/platform/graphics/chromium/ImageChromium.cpp >=================================================================== >--- Source/WebCore/platform/graphics/chromium/ImageChromium.cpp (revision 116546) >+++ Source/WebCore/platform/graphics/chromium/ImageChromium.cpp (working copy) >@@ -29,9 +29,12 @@ > */ > > #include "config.h" >+#include "BitmapImage.h" > #include "Image.h" >+#include "SharedBuffer.h" > >-#include "PlatformSupport.h" >+#include <public/Platform.h> >+#include <public/WebData.h> > > namespace WebCore { > >@@ -39,7 +42,13 @@ namespace WebCore { > > PassRefPtr<Image> Image::loadPlatformResource(const char *name) > { >- return PlatformSupport::loadPlatformImageResource(name); >+ const WebKit::WebData& resource = WebKit::Platform::current()->loadResource(name); >+ if (resource.isEmpty()) >+ return Image::nullImage(); >+ >+ RefPtr<Image> image = BitmapImage::create(); >+ image->setData(resource, true); >+ return image.release(); > } > > } // namespace WebCore >Index: Source/WebCore/platform/graphics/chromium/ImageChromiumMac.mm >=================================================================== >--- Source/WebCore/platform/graphics/chromium/ImageChromiumMac.mm (revision 116546) >+++ Source/WebCore/platform/graphics/chromium/ImageChromiumMac.mm (working copy) >@@ -1,58 +0,0 @@ >-/* >- * Copyright (c) 2008, 2009, Google Inc. All rights reserved. >- * >- * Redistribution and use in source and binary forms, with or without >- * modification, are permitted provided that the following conditions are >- * met: >- * >- * * Redistributions of source code must retain the above copyright >- * notice, this list of conditions and the following disclaimer. >- * * Redistributions in binary form must reproduce the above >- * copyright notice, this list of conditions and the following disclaimer >- * in the documentation and/or other materials provided with the >- * distribution. >- * * Neither the name of Google Inc. nor the names of its >- * contributors may be used to endorse or promote products derived from >- * this software without specific prior written permission. >- * >- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS >- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT >- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR >- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT >- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, >- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT >- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, >- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY >- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- */ >- >-// A wrapper around Uniscribe that provides a reasonable API. >- >-#include "config.h" >-#include "BitmapImage.h" >- >-#include "Image.h" >-#include "PlatformSupport.h" >- >-namespace WebCore { >- >-PassRefPtr<Image> Image::loadPlatformResource(const char* name) >-{ >- return PlatformSupport::loadPlatformImageResource(name); >-} >- >-// FIXME: These are temporary stubs, we need real implementations which >-// may come in the form of ImageChromium.cpp. The Windows Chromium >-// implementation is currently in ImageSkia.cpp. >- >-void BitmapImage::initPlatformData() >-{ >-} >- >-void BitmapImage::invalidatePlatformData() >-{ >-} >- >-} // namespace WebCore >Index: Source/WebKit/chromium/ChangeLog >=================================================================== >--- Source/WebKit/chromium/ChangeLog (revision 116546) >+++ Source/WebKit/chromium/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2012-05-09 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Remove PlatformSupport::loadPlatformImageResource, call loadResource directly >+ https://bugs.webkit.org/show_bug.cgi?id=84417 >+ >+ Reviewed by Adam Barth. >+ >+ Part of a refactoring series. See tracking bug 82948. >+ >+ * src/PlatformSupport.cpp: >+ (WebCore): >+ > 2012-05-09 Marcus Bulach <bulach@chromium.org> > > [chromium] Exposes OrientationChangeEvent. >Index: Source/WebKit/chromium/src/PlatformSupport.cpp >=================================================================== >--- Source/WebKit/chromium/src/PlatformSupport.cpp (revision 116546) >+++ Source/WebKit/chromium/src/PlatformSupport.cpp (working copy) >@@ -553,17 +553,6 @@ NPObject* PlatformSupport::pluginScripta > > // Resources ------------------------------------------------------------------ > >-PassRefPtr<Image> PlatformSupport::loadPlatformImageResource(const char* name) >-{ >- const WebData& resource = webKitPlatformSupport()->loadResource(name); >- if (resource.isEmpty()) >- return Image::nullImage(); >- >- RefPtr<Image> image = BitmapImage::create(); >- image->setData(resource, true); >- return image; >-} >- > #if ENABLE(WEB_AUDIO) > > PassOwnPtr<AudioBus> PlatformSupport::decodeAudioFileData(const char* data, size_t size, double sampleRate)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 84417
:
138035
|
140943
| 140988