[Webkit-unassigned] [Bug 56437] New: startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition if the document is non-editable and contains only an editable pocket

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 15 18:14:35 PDT 2011


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

           Summary: startOfDocument(Node*) and endOfDocument(Node*) return
                    a null VisiblePosition if the document is non-editable
                    and contains only an editable pocket
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: justin.garcia at apple.com


startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition if the document is non-editable and contains only an editable pocket. I don't think I can construct a test case for this.

VisiblePosition endOfDocument(const Node* node)
{
    if (!node || !node->document() || !node->document()->documentElement())
        return VisiblePosition();

    Element* doc = node->document()->documentElement();
    return VisiblePosition(lastPositionInNode(doc), DOWNSTREAM);
}

<rdar://problem/9139718>

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