[Webkit-unassigned] [Bug 14954] New: NSView redisplay doesn't update display when selection changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 12 17:42:37 PDT 2007


           Summary: NSView redisplay doesn't update display when selection
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: com-webkit at sabi.net

I'm trying to flash the selected text synchronously, but asking the NSView to
redisplay doesn't draw anything after I change the selection.  This code works
fine in released versions of Safari 2 (419.3).

WebHTMLView *view;
NSRect selectionRect = [view selectionRect];
for (i = 0 ; i < textBlinkCount ; i++) {
    [view deselectAll];
    [view setNeedsDisplayInRect: selectionRect];
    [view display];
    [[view _bridge] selectNSRange: selectedRange];
    [view setNeedsDisplayInRect: selectionRect];
    [view display];

I asked about this on #webkit and Darin suggested using [[view window]
displayIfNeeded], which behaved identically to the above code (works in 419.3,
not in nightly).

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

More information about the webkit-unassigned mailing list