Reviewed by Darin.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2007 23:27:50 +0000 (23:27 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2007 23:27:50 +0000 (23:27 +0000)
commit896fa340d4fc24e0e06cf3c0385b959f83e0028a
tree5b7b38664a3c9f8bc03c95fe7bb6f792562e3b82
parentcba0f7e2b6f79d70ff39e9da3274bb6be89cadec
    Reviewed by Darin.

        <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized

        HIWebViewCreate now just returns a HIViewRef created with HICocoaViewCreate. This eliminates lots of old code and
        makes HIWebView a better citizen starting with Leopard. The old code paths are still needed for Tiger, so now
        most of the files in the WebKit/Carbon directory are #ifdef BUILDING_ON_TIGER.

        The Tiger code is unchanged and dosen't exhibit the invalidation problem when the window resizes.

        * Carbon/CarbonUtils.m:
        (WebInitForCarbon): #ifdef BUILDING_ON_TIGER portions of this code that is not needed on Leopard.
        * Carbon/CarbonWindowAdapter.h: #ifdef BUILDING_ON_TIGER
        * Carbon/CarbonWindowAdapter.m: Ditto.
        * Carbon/CarbonWindowContentView.h: Ditto.
        * Carbon/CarbonWindowContentView.m: Ditto.
        * Carbon/CarbonWindowFrame.h: Ditto.
        * Carbon/CarbonWindowFrame.m: Ditto.
        * Carbon/HIViewAdapter.h: Ditto.
        * Carbon/HIViewAdapter.m: Ditto.
        * Carbon/HIWebView.h: Consolidate two #ifdef __OBJC__ blocks into one.
        * Carbon/HIWebView.m: Implement Leopard specific HIWebViewCreate, HIWebViewCreateWithClass and HIWebViewGetWebView.
        (HIWebViewCreate): Call HIWebViewCreateWithClass passing [WebView class].
        (HIWebViewCreateWithClass): Call HICocoaViewCreate with an instance of the class passed in.
        (HIWebViewGetWebView): Call HICocoaViewGetView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
WebKit/Carbon/CarbonUtils.m
WebKit/Carbon/CarbonWindowAdapter.h
WebKit/Carbon/CarbonWindowAdapter.m
WebKit/Carbon/CarbonWindowContentView.h
WebKit/Carbon/CarbonWindowContentView.m
WebKit/Carbon/CarbonWindowFrame.h
WebKit/Carbon/CarbonWindowFrame.m
WebKit/Carbon/HIViewAdapter.h
WebKit/Carbon/HIViewAdapter.m
WebKit/Carbon/HIWebView.h
WebKit/Carbon/HIWebView.m
WebKit/ChangeLog