[BlackBerry] Use CachedResource::resourceBuffer() instead of CachedResource::data()
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 15:09:57 +0000 (15:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 15:09:57 +0000 (15:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111555

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2013-03-06
Reviewed by Rob Buis.

CachedResource::data() was renamed to
CachedResource::resourceBuffer() in r130947.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::webContext):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144923 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/Api/WebPage.cpp
Source/WebKit/blackberry/ChangeLog

index 48736a4..8de8c0b 100644 (file)
@@ -2312,7 +2312,7 @@ Platform::WebContext WebPagePrivate::webContext(TargetDetectionStrategy strategy
             context.setFlag(Platform::WebContext::IsImage);
             // FIXME: At the mean time, we only show "Save Image" when the image data is available.
             if (CachedResource* cachedResource = imageElement->cachedImage()) {
-                if (cachedResource->isLoaded() && cachedResource->data()) {
+                if (cachedResource->isLoaded() && cachedResource->resourceBuffer()) {
                     String url = stripLeadingAndTrailingHTMLSpaces(imageElement->getAttribute(HTMLNames::srcAttr).string());
                     context.setSrc(node->document()->completeURL(url).string());
                 }
index 3dcc271..4adeb29 100644 (file)
@@ -1,5 +1,18 @@
 2013-03-06  Carlos Garcia Campos  <cgarcia@igalia.com>
 
+        [BlackBerry] Use CachedResource::resourceBuffer() instead of CachedResource::data()
+        https://bugs.webkit.org/show_bug.cgi?id=111555
+
+        Reviewed by Rob Buis.
+
+        CachedResource::data() was renamed to
+        CachedResource::resourceBuffer() in r130947.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPagePrivate::webContext):
+
+2013-03-06  Carlos Garcia Campos  <cgarcia@igalia.com>
+
         [BlackBerry] Remove some unneeded header includes
         https://bugs.webkit.org/show_bug.cgi?id=111545