Fix wrong ASSERT() in findAttributeInVector()
authorcaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 20:23:27 +0000 (20:23 +0000)
committercaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 20:23:27 +0000 (20:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=84756

Unreviewed build fix.

* dom/ElementAttributeData.h:
(WebCore::findAttributeInVector):

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

Source/WebCore/ChangeLog
Source/WebCore/dom/ElementAttributeData.h

index 61c99e6..0cd905d 100644 (file)
@@ -1,3 +1,13 @@
+2012-04-24  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
+
+        Fix wrong ASSERT() in findAttributeInVector()
+        https://bugs.webkit.org/show_bug.cgi?id=84756
+
+        Unreviewed build fix.
+
+        * dom/ElementAttributeData.h:
+        (WebCore::findAttributeInVector):
+
 2012-04-24  Anders Carlsson  <andersca@apple.com>
 
         Update the scroll layer position on the main thread when viewing full-frame images
index ed7d577..a849bfe 100644 (file)
@@ -38,7 +38,6 @@ class Element;
 
 inline Attribute* findAttributeInVector(const Vector<Attribute>& attributes, const QualifiedName& name)
 {
-    ASSERT(attributes);
     for (unsigned i = 0; i < attributes.size(); ++i) {
         if (attributes.at(i).name().matches(name))
             return &const_cast<Vector<Attribute>& >(attributes).at(i);