[Webkit-unassigned] [Bug 14623] Need drawRect called on WebView subclass
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 15 14:14:24 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14623
------- Comment #2 from jim at jmcom.com 2007-07-15 14:14 PDT -------
(In reply to comment #1)
> A very simple workaround would be to use an overlay window, similar to how the
> web inspector highlights the "active" node in a document. Looking at the
> WebView implementation, it doesn't implement drawRect: itself nor does it
> appear to prevent it from being called. The real drawing work is done by
> subviews such as WebFrameView and WebHTMLView. It's not clear from my quick
> flick through the code why what you describe would not work.
>
I don't pretend to understand the inner workings of WebKit, but I did find on
Google someone who mentioned WebKit bypassing the normal AppKit flow. I found
in the file WebHTMLView.mm the following:
// Don't let AppKit even draw subviews. We take care of that.
- (void)_recursiveDisplayRectIfNeededIgnoringOpacity:
I did not find anything that would prevent WebView's drawRect from being
called, but in a small test project I again found it to not be called.
I'll give your overlay method a try. Thanks for your quick reply.
--
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