[Webkit-unassigned] [Bug 118419] [GTK] Layout Test fast/css/style-scoped/registering.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 9 02:55:18 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118419





--- Comment #2 from Anton Obzhirov <a.obzhirov at samsung.com>  2013-07-09 02:57:19 PST ---
After checking:

if I revert one of the changes made in 152290 (http://trac.webkit.org/changeset/152290)

size_t Node::numberOfScopedHTMLStyleChildren() const
{
-    size_t count = 0;
-    for (Element* element = ElementTraversal::firstWithin(this); element; element = ElementTraversal::next(element, this))
-        if (isHTMLStyleElement(element) && toHTMLStyleElement(element)->isRegisteredAsScoped())
-            count++;
-
+       size_t c = 0;
+    for (Node* child = firstChild(); child; child = child->nextSibling()) {
+        if (isHTMLStyleElement(child) && toHTMLStyleElement(child)->isRegisteredAsScoped())
+               c++;
+    }

test starts to pass again. The logic was slightly changed and the cycle started to traverse more html style elements then it did before hence count in some cases has increased as well. I am going to check with kangil.han at samsung.com

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list