[Webkit-unassigned] [Bug 36128] [Gtk] nameFromChildren is obsolete

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 15 17:50:23 PDT 2010


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





--- Comment #5 from Joanmarie Diggs <joanmarie.diggs at gmail.com>  2010-03-15 17:50:23 PST ---
Here's what appears to be going on with my layout test:

webkit_accessible_text_get_text tries to get the text for the label via
AccessibilityRenderObject::textUnderElement().

AccessibilityRenderObject::textUnderElement() returns
plainText(rangeOfContents(node).get()).  When using GtkLauncher, the String
returned contains 'Full Name:' as expected; but when the very same content is
run in my layout test, the returned String is empty.

plainText() is returning an empty String because its call to
plainTextToMallocAllocatedBuffer() returns NULL because bufferLength == 0.

bufferLength is based on the length of the TextIterator. This length seems to
incremented in emitText(). emitText() is not getting called in the layout test
because TextIterator::handleTextNode() is returning at this point:

    if (!renderer->firstTextBox() && str.length() > 0) {
        m_lastTextNodeEndedWithCollapsedSpace = true; // entire block is
collapsed space
        return true;
    }

So.... Given the same, simple HTML content, why would a RenderText object fail
to have a firstTextBox when run as a layout test, but behave as expected
otherwise?

-- 
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