[BlackBerry] Element::getAttributeItem() no longer returns a mutable attribute
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2013 13:10:25 +0000 (13:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2013 13:10:25 +0000 (13:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=110439

Patch by Alberto Garcia <albgarcia@rim.com> on 2013-02-21
Reviewed by Antonio Gomes.

This was changed in r142827.

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

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

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

index 397f7cd131d339c26d8a1f7cb6a5ab172c948a9c..36ba6e5d2a3b80294b951fcd8cfe2cf9ba9bdbd4 100644 (file)
@@ -2283,7 +2283,7 @@ Platform::WebContext WebPagePrivate::webContext(TargetDetectionStrategy strategy
     if (Node* linkNode = node->enclosingLinkEventParentOrSelf()) {
         KURL href;
         if (linkNode->isLink() && linkNode->hasAttributes()) {
-            if (Attribute* attribute = static_cast<Element*>(linkNode)->getAttributeItem(HTMLNames::hrefAttr))
+            if (const Attribute* attribute = static_cast<Element*>(linkNode)->getAttributeItem(HTMLNames::hrefAttr))
                 href = linkNode->document()->completeURL(stripLeadingAndTrailingHTMLSpaces(attribute->value()));
         }
 
index c39da8344965957bb2d9bb719c690547060a9202..cb04cf37aa00709028228f1a42f51e8818379b1c 100644 (file)
@@ -1,3 +1,15 @@
+2013-02-21  Alberto Garcia  <albgarcia@rim.com>
+
+        [BlackBerry] Element::getAttributeItem() no longer returns a mutable attribute
+        https://bugs.webkit.org/show_bug.cgi?id=110439
+
+        Reviewed by Antonio Gomes.
+
+        This was changed in r142827.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPagePrivate::webContext):
+
 2013-02-21  Alberto Garcia  <albgarcia@rim.com>
 
         [BlackBerry] willComposite() and didComposite() are now in InspectorController