1. 08 Dec, 2010 3 commits
  2. 29 Oct, 2010 1 commit
  3. 25 Oct, 2010 1 commit
  4. 19 Oct, 2010 1 commit
    • weinig@apple.com's avatar
      Add alternateHTMLString and unreachableURL API to WebKit2 · 291fc5a4
      weinig@apple.com authored
      <rdar://problem/8557864>
      https://bugs.webkit.org/show_bug.cgi?id=47938
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameCopyUnreachableURL):
      * UIProcess/API/C/WKFrame.h:
      Add accessor for the unreachableURL if one is set. It will only be
      set during a loadAlternateHTMLString and will be unset on the next normal
      didStartProvisionalLoadForFrame call.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageLoadHTMLString): Remove whitespace.
      (WKPageLoadAlternateHTMLString):
      * UIProcess/API/C/WKPage.h:
      Add function to load a string as "alternate", meant for use as error pages.
      
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::setUnreachableURL): 
      (WebKit::WebFrameProxy::unreachableURL):
      Add setter/getter for the unreachableURL.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::loadAlternateHTMLString):
      Plumb through the call to loadAlternateHTMLString to the WebProcess
      and set the main frame's unreachableURL. This does nothing if no pages
      have ever been loaded in this page.
      
      (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
      If this is not a provisional load of substitute data for an unreachableURL
      (e.g. someone who called WKPageLoadAlternateHTMLString), reset the
      frame's unreachableURL.
      
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      Update function signatures.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      Pass whether or not this is a load of SubstituteData for an unreachableURL
      to the UIProcess.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::loadData):
      (WebKit::WebPage::loadAlternateHTMLString):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      Plumb through the loading of the alternate HTML string. 
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      291fc5a4
  5. 05 Oct, 2010 1 commit
    • weinig@apple.com's avatar
      Add MIMEType accessor to WKFrame · 8ba7c8ef
      weinig@apple.com authored
      <rdar://problem/8347683>
      https://bugs.webkit.org/show_bug.cgi?id=47138
      
      Reviewed by Mark Rowe.
      
      WebKit2: 
      
      Tests: WebKit2/FrameMIMETypePNG
             WebKit2/FrameMIMETypeHTML
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameCopyMIMEType):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::setMIMEType):
      (WebKit::WebFrameProxy::mimeType):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      * UIProcess/WebPageProxy.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      
      WebKitTools: 
      
      * TestWebKitAPI/PlatformUtilities.h:
      (TestWebKitAPI::Util::toSTD):
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      * TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp: Added.
      (TestWebKitAPI::didStartProvisionalLoadForFrame):
      (TestWebKitAPI::didCommitLoadForFrame):
      (TestWebKitAPI::didFinishLoadForFrame):
      (TestWebKitAPI::TEST):
      * TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp: Added.
      (TestWebKitAPI::didStartProvisionalLoadForFrame):
      (TestWebKitAPI::didCommitLoadForFrame):
      (TestWebKitAPI::didFinishLoadForFrame):
      (TestWebKitAPI::TEST):
      * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp:
      (TestWebKitAPI::TEST):
      * TestWebKitAPI/Tests/WebKit2/basic-1.html: Removed.
      * TestWebKitAPI/Tests/WebKit2/icon.png: Added.
      * TestWebKitAPI/Tests/WebKit2/simple.html: Added.
      * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
      (TestWebKitAPI::Util::createURLForResource):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ba7c8ef
  6. 17 Sep, 2010 1 commit
    • weinig@apple.com's avatar
      Make certificate data available to the WKFrameRef after it is committed · c368c886
      weinig@apple.com authored
      Part of <rdar://problem/8350189>
      https://bugs.webkit.org/show_bug.cgi?id=45998
      
      Reviewed by Anders Carlsson.
      
      * Shared/APIObject.h:
      Add new type.
      
      * Shared/WebCertificateInfo.h: Added.
      (WebKit::WebCertificateInfo::create):
      (WebKit::WebCertificateInfo::platformCertificateInfo):
      (WebKit::WebCertificateInfo::WebCertificateInfo):
      (WebKit::WebCertificateInfo::type):
      Add API type for vending.
      
      * Shared/mac/PlatformCertificateInfo.h: Added.
      (WebKit::PlatformCertificateInfo::peerCertificates):
      * Shared/mac/PlatformCertificateInfo.mm: Added.
      (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
      (WebKit::PlatformCertificateInfo::encode):
      (WebKit::PlatformCertificateInfo::decode):
      (WebKit::PlatformCertificateInfo::dump):
      * Shared/qt/PlatformCertificateInfo.h: Added.
      (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
      (WebKit::PlatformCertificateInfo::encode):
      (WebKit::PlatformCertificateInfo::decode):
      * Shared/win/PlatformCertificateInfo.h: Added.
      (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
      (WebKit::PlatformCertificateInfo::encode):
      (WebKit::PlatformCertificateInfo::decode):
      Add platform specific holder for certificate data and encode/decode functions
      to send it over the wire. Right now, this only implemented for the mac.
      
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKCertificateInfo.cpp: Added.
      (WKCertificateInfoGetTypeID):
      * UIProcess/API/C/WKCertificateInfo.h: Added.
      Add wrapper for WebCertificateInfo.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetCertificateInfo):
      * UIProcess/API/C/WKFrame.h:
      Add getter for a WKCertificateInfo.
      
      * UIProcess/API/C/mac/WKCertificateInfoMac.h: Added.
      * UIProcess/API/C/mac/WKCertificateInfoMac.mm: Added.
      (WKCertificateInfoGetPeerCertificates):
      Add mac specific getters for the platform specific certificate
      data.
      
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::setCertificateInfo):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::certificateInfo):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      * UIProcess/WebPageProxy.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      Pipe the certificate info through to the WebFrameProxy on
      commit.
      
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c368c886
  7. 21 Aug, 2010 1 commit
    • weinig@apple.com's avatar
      Remove specialized retain/release functions in favor of a single one for WKTypeRefs · 61512437
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=44386
      
      Reviewed by Dan Bernstein.
      
      WebKit2: 
      
      * UIProcess/API/C/WKArray.cpp:
      (WKArrayGetSize):
      * UIProcess/API/C/WKArray.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      (WKBackForwardListCopyForwardListWithLimit):
      * UIProcess/API/C/WKBackForwardList.h:
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemCopyTitle):
      * UIProcess/API/C/WKBackForwardListItem.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.cpp:
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKData.cpp:
      (WKDataGetSize):
      * UIProcess/API/C/WKData.h:
      * UIProcess/API/C/WKDictionary.cpp:
      (WKDictionaryCopyKeys):
      * UIProcess/API/C/WKDictionary.h:
      * UIProcess/API/C/WKError.h:
      * UIProcess/API/C/WKFormSubmissionListener.cpp:
      (WKFormSubmissionListenerContinue):
      * UIProcess/API/C/WKFormSubmissionListener.h:
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetPage):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      (WKFramePolicyListenerIgnore):
      * UIProcess/API/C/WKFramePolicyListener.h:
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataCopyURL):
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetContext):
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesCreate):
      (WKPreferencesGetLocalStorageEnabled):
      * UIProcess/API/C/WKPreferences.h:
      * UIProcess/API/C/WKString.cpp:
      * UIProcess/API/C/WKString.h:
      * UIProcess/API/C/WKType.cpp:
      (WKRetain):
      (WKRelease):
      * UIProcess/API/C/WKType.h:
      * UIProcess/API/C/WKURL.cpp:
      (WKURLGetTypeID):
      * UIProcess/API/C/WKURL.h:
      * UIProcess/API/cpp/WKRetainPtr.h:
      * UIProcess/API/win/WKView.cpp:
      * UIProcess/API/win/WKView.h:
      * UIProcess/WebPreferences.cpp:
      (WebKit::WebPreferences::shared):
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
      (WKBundleNodeHandleGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
      (WKBundleScriptWorldNormalWorld):
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h:
      
      WebKitTools: 
      
      * MiniBrowser/mac/AppDelegate.m:
      (didRecieveMessageFromInjectedBundle):
      (didNavigateWithNavigationData):
      (-[BrowserAppDelegate init]):
      (-[BrowserAppDelegate applicationWillTerminate:]):
      * MiniBrowser/mac/BrowserStatisticsWindowController.m:
      (-[BrowserStatisticsWindowController initWithThreadedWKContextRef:processWKContextRef:]):
      (-[BrowserStatisticsWindowController dealloc]):
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController initWithPageNamespace:]):
      (-[BrowserWindowController fetch:]):
      (-[BrowserWindowController windowWillClose:]):
      (-[BrowserWindowController applicationTerminating]):
      (closePage):
      (runJavaScriptAlert):
      (runJavaScriptConfirm):
      (runJavaScriptPrompt):
      (-[BrowserWindowController updateProvisionalURLForFrame:]):
      * MiniBrowser/mac/WebBundle/WebBundleMain.m:
      (didClearWindowObjectForFrame):
      * MiniBrowser/win/BrowserView.cpp:
      (BrowserView::goToURL):
      * WebKitTestRunner/win/PlatformWebViewWin.cpp:
      (WTR::PlatformWebView::~PlatformWebView):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61512437
  8. 28 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43163 · 438853f8
      weinig@apple.com authored
      Add a CF-style base type (WKTypeRef) as a base for polymorphic functions.
      
      Reviewed by Darin Adler.
      
      - Add first polymorphic function, WKGetTypeID.
      - Add functions to each WK type to get their respective TypeIDs.
      - Adds WebURL to complement WebString.
      
      * Shared/APIObject.h:
      (WebKit::APIObject::):
      (WebKit::APIObject::~APIObject):
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::type):
      * Shared/WebString.h:
      (WebKit::WebString::type):
      * Shared/WebURL.h: Added.
      (WebKit::WebURL::create):
      (WebKit::WebURL::type):
      (WebKit::WebURL::isNull):
      (WebKit::WebURL::isEmpty):
      (WebKit::WebURL::string):
      (WebKit::WebURL::WebURL):
      * UIProcess/API/C/WKAPICast.h:
      (WebKit::ProxyingRefPtr::ProxyingRefPtr):
      (WebKit::ProxyingRefPtr::operator APIType):
      (toRef):
      (toURLRef):
      (toCopiedURLRef):
      * UIProcess/API/C/WKArray.cpp:
      (WKArrayGetTypeID):
      * UIProcess/API/C/WKArray.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      (WKBackForwardListGetTypeID):
      * UIProcess/API/C/WKBackForwardList.h:
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemGetTypeID):
      * UIProcess/API/C/WKBackForwardListItem.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.cpp:
      (WKContextGetTypeID):
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetTypeID):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      (WKFramePolicyListenerGetTypeID):
      * UIProcess/API/C/WKFramePolicyListener.h:
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataGetTypeID):
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetTypeID):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetTypeID):
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesGetTypeID):
      * UIProcess/API/C/WKPreferences.h:
      * UIProcess/API/C/WKString.cpp:
      (WKStringGetTypeID):
      * UIProcess/API/C/WKString.h:
      * UIProcess/API/C/WKType.cpp: Added.
      (WKGetTypeID):
      * UIProcess/API/C/WKType.h: Added.
      * UIProcess/API/C/WKURL.cpp:
      (WKURLGetTypeID):
      * UIProcess/API/C/WKURL.h:
      * UIProcess/API/win/WKView.cpp:
      (WKViewGetTypeID):
      * UIProcess/API/win/WKView.h:
      * UIProcess/WebBackForwardList.h:
      (WebKit::WebBackForwardList::type):
      * UIProcess/WebBackForwardListItem.h:
      (WebKit::WebBackForwardListItem::type):
      * UIProcess/WebContext.h:
      (WebKit::WebContext::type):
      * UIProcess/WebFramePolicyListenerProxy.h:
      (WebKit::WebFramePolicyListenerProxy::type):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::type):
      * UIProcess/WebNavigationData.h:
      (WebKit::WebNavigationData::type):
      * UIProcess/WebPageNamespace.h:
      (WebKit::WebPageNamespace::type):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::type):
      * UIProcess/WebPreferences.h:
      (WebKit::WebPreferences::type):
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageGetTypeID):
      (WKBundlePageSetEditorClient):
      (WKBundlePageSetLoaderClient):
      (WKBundlePageSetUIClient):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/WebPage/WebFrame.h:
      (WebKit::WebFrame::type):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::type):
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      438853f8
  9. 27 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43087 · 50fde81c
      weinig@apple.com authored
      Clean up handling of strings at the WebKit2 API layer.
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      - Always use the "copy" rule for functions that return WKStringRefs or WKURLRefs.
      - Never return a null WKStringRef or WKURLRef.
      
      * UIProcess/API/C/WKAPICast.h:
      (toRef):
      (toURLRef):
      (toCopiedRef):
      (toCopiedURLRef):
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemCopyOriginalURL):
      (WKBackForwardListItemCopyURL):
      (WKBackForwardListItemCopyTitle):
      * UIProcess/API/C/WKBackForwardListItem.h:
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameIsMainFrame):
      (WKFrameCopyProvisionalURL):
      (WKFrameCopyURL):
      (WKFrameGetPage):
      (WKFrameRetain):
      (WKFrameRelease):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataCopyTitle):
      (WKNavigationDataCopyURL):
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageCopyTitle):
      * UIProcess/API/C/WKPage.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameCopyURL):
      (WKBundleFrameCopyName):
      (WKBundleFrameCopyCounterValue):
      (WKBundleFrameCopyMarkerText):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
      * WebProcess/InjectedBundle/API/c/WKBundleNode.cpp:
      (WKBundleNodeCopyNodeName):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageCopyRenderTreeExternalRepresentation):
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (runJavaScriptAlert):
      (runJavaScriptConfirm):
      (runJavaScriptPrompt):
      (didNavigateWithNavigationData):
      (-[BrowserWindowController updateProvisionalURLForFrame:]):
      * MiniBrowser/mac/WebBundle/WebBundleMain.m:
      (_didClearWindowForFrame):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50fde81c
  10. 02 Jul, 2010 1 commit
  11. 11 Jun, 2010 1 commit
    • weinig@apple.com's avatar
      Move WKRetain and WKRelease overloaded functions out of WKRetainPtr · 7525795e
      weinig@apple.com authored
      and into the files of the type they overload (eg, WKRetain(WKFrameRef 
      moves to WKFrame.h)).
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKFramePolicyListener.h:
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/API/C/WKPreferences.h:
      * UIProcess/API/C/WKString.h:
      * UIProcess/API/C/WKURL.h:
      * UIProcess/API/cpp/WKRetainPtr.h:
      * UIProcess/API/win/WKView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7525795e
  12. 08 Jun, 2010 1 commit
  13. 09 Apr, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=37347 · 0664edbb
      weinig@apple.com authored
      Don't use CF types in the new C API
      
      Reviewed by Anders Carlsson.
      
      Replace all uses of CF types in the C API.
      - Replace CFStringRef with WKStringRef.
      - Replace CFURLRef with WKURLRef.
      
      * WebKit2.xcodeproj/project.pbxproj: Add new files.
      
      * Shared/KURLWrapper.h: Added. RefCounted wrapper around KURL.
      * UIProcess/API/C/WKAPICast.h: Add new conversions.
      * UIProcess/API/C/WKBase.h: Add new types.
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFrame.h: 
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      Replace uses of CF types with WK equivalents.
      
      * UIProcess/API/C/WKString.cpp: Added.
      * UIProcess/API/C/WKString.h: Added.
      Represents a WebCore::StringImpl*.
      
      * UIProcess/API/C/WKURL.cpp: Added.
      * UIProcess/API/C/WKURL.h: Added.
      Represents a WebKit::KURLWrapper*.
      
      * UIProcess/API/C/cf: Added.
      * UIProcess/API/C/cf/WKStringCF.cpp: Added.
      * UIProcess/API/C/cf/WKStringCF.h: Added.
      * UIProcess/API/C/cf/WKURLCF.cpp: Added.
      * UIProcess/API/C/cf/WKURLCF.h: Added.
      CoreFoundation conversion files. Allows converting
       WKStringRef <-> CFStringRef
       WKURLRef <-> CFURLRef
      
      * UIProcess/ScriptReturnValueCallback.cpp:
      (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
      * UIProcess/ScriptReturnValueCallback.h:
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::didReceiveTitleForFrame):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::didReceiveTitleForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      (WebKit::WebPageProxy::runJavaScriptAlert):
      (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::pageTitle):
      (WebKit::WebPageProxy::urlAtProcessExit):
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptAlert):
      * UIProcess/WebUIClient.h:
      Don't use CF types internally at all.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
      Fix typo.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0664edbb
  14. 08 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Add WebKit2/UIProcess directory. · b945598b
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig.
      
      * UIProcess: Added.
      * UIProcess/API: Added.
      * UIProcess/API/C: Added.
      * UIProcess/API/C/WKAPICast.h: Added.
      * UIProcess/API/C/WKBase.h: Added.
      * UIProcess/API/C/WKContext.cpp: Added.
      * UIProcess/API/C/WKContext.h: Added.
      * UIProcess/API/C/WKFrame.cpp: Added.
      * UIProcess/API/C/WKFrame.h: Added.
      * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
      * UIProcess/API/C/WKFramePolicyListener.h: Added.
      * UIProcess/API/C/WKPage.cpp: Added.
      * UIProcess/API/C/WKPage.h: Added.
      * UIProcess/API/C/WKPageNamespace.cpp: Added.
      * UIProcess/API/C/WKPageNamespace.h: Added.
      * UIProcess/API/C/WKPreferences.cpp: Added.
      * UIProcess/API/C/WKPreferences.h: Added.
      * UIProcess/API/C/WebKit2.h: Added.
      * UIProcess/API/mac: Added.
      * UIProcess/API/mac/PageClientImpl.h: Added.
      * UIProcess/API/mac/PageClientImpl.mm: Added.
      * UIProcess/API/mac/WKView.h: Added.
      * UIProcess/API/mac/WKView.mm: Added.
      * UIProcess/API/mac/WKViewInternal.h: Added.
      * UIProcess/API/win: Added.
      * UIProcess/API/win/WKAPICastWin.h: Added.
      * UIProcess/API/win/WKBaseWin.h: Added.
      * UIProcess/API/win/WKView.cpp: Added.
      * UIProcess/API/win/WKView.h: Added.
      * UIProcess/Launcher: Added.
      * UIProcess/Launcher/WebProcessLauncher.h: Added.
      * UIProcess/Launcher/mac: Added.
      * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
      * UIProcess/Launcher/win: Added.
      * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
      * UIProcess/PageClient.h: Added.
      * UIProcess/ProcessModel.h: Added.
      * UIProcess/ResponsivenessTimer.cpp: Added.
      * UIProcess/ResponsivenessTimer.h: Added.
      * UIProcess/ScriptReturnValueCallback.cpp: Added.
      * UIProcess/ScriptReturnValueCallback.h: Added.
      * UIProcess/WebContext.cpp: Added.
      * UIProcess/WebContext.h: Added.
      * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
      * UIProcess/WebFramePolicyListenerProxy.h: Added.
      * UIProcess/WebFrameProxy.cpp: Added.
      * UIProcess/WebFrameProxy.h: Added.
      * UIProcess/WebLoaderClient.cpp: Added.
      * UIProcess/WebLoaderClient.h: Added.
      * UIProcess/WebPageNamespace.cpp: Added.
      * UIProcess/WebPageNamespace.h: Added.
      * UIProcess/WebPageProxy.cpp: Added.
      * UIProcess/WebPageProxy.h: Added.
      * UIProcess/WebPolicyClient.cpp: Added.
      * UIProcess/WebPolicyClient.h: Added.
      * UIProcess/WebPreferences.cpp: Added.
      * UIProcess/WebPreferences.h: Added.
      * UIProcess/WebProcessManager.cpp: Added.
      * UIProcess/WebProcessManager.h: Added.
      * UIProcess/WebProcessProxy.cpp: Added.
      * UIProcess/WebProcessProxy.h: Added.
      * UIProcess/WebUIClient.cpp: Added.
      * UIProcess/WebUIClient.h: Added.
      * UIProcess/mac: Added.
      * UIProcess/mac/DrawingAreaProxy.h: Added.
      * UIProcess/mac/DrawingAreaProxy.mm: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
      * UIProcess/win: Added.
      * UIProcess/win/DrawingAreaProxy.cpp: Added.
      * UIProcess/win/DrawingAreaProxy.h: Added.
      * UIProcess/win/WebView.cpp: Added.
      * UIProcess/win/WebView.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b945598b
    • weinig@apple.com's avatar
      Add WebKit2/WebProcess directory. · d773bc13
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig and Oliver Hunt.
      
      * WebProcess: Added.
      * WebProcess/Launching: Added.
      * WebProcess/Launching/mac: Added.
      * WebProcess/Launching/mac/WebProcessMain.mm: Added.
      * WebProcess/Launching/win: Added.
      * WebProcess/Launching/win/WebProcessWinMain.cpp: Added.
      * WebProcess/WebCoreSupport: Added.
      * WebProcess/WebCoreSupport/WebChromeClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebChromeClient.h: Added.
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebContextMenuClient.h: Added.
      * WebProcess/WebCoreSupport/WebDragClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebDragClient.h: Added.
      * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebEditorClient.h: Added.
      * WebProcess/WebCoreSupport/WebErrors.h: Added.
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebInspectorClient.h: Added.
      * WebProcess/WebCoreSupport/mac: Added.
      * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: Added.
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.h: Added.
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Added.
      * WebProcess/WebCoreSupport/win: Added.
      * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp: Added.
      * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp: Added.
      * WebProcess/WebPage: Added.
      * WebProcess/WebPage/DrawingArea.cpp: Added.
      * WebProcess/WebPage/DrawingArea.h: Added.
      * WebProcess/WebPage/WebFrame.cpp: Added.
      * WebProcess/WebPage/WebFrame.h: Added.
      * WebProcess/WebPage/WebPage.cpp: Added.
      * WebProcess/WebPage/WebPage.h: Added.
      * WebProcess/WebPage/mac: Added.
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Added.
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Added.
      * WebProcess/WebPage/mac/WebPageMac.mm: Added.
      * WebProcess/WebPage/win: Added.
      * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Added.
      * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Added.
      * WebProcess/WebPage/win/WebPageWin.cpp: Added.
      * WebProcess/WebProcess.cpp: Added.
      * WebProcess/WebProcess.h: Added.
      * WebProcess/win: Added.
      * WebProcess/win/DllMain.cpp: Added.
      * WebProcess/win/WebLocalizableStrings.cpp: Added.
      * WebProcess/win/WebLocalizableStrings.h: Added.
      * WebProcess/win/WebProcessMain.cpp: Added.
      * WebProcess/win/WebProcessMain.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d773bc13
  15. 04 Mar, 2010 2 commits
    • ossy@webkit.org's avatar
      [Qt] Unreviewed buildfix after r55542 on Windows. · cf04bd9d
      ossy@webkit.org authored
      * WebCore.pro:
       - plugins/win/PluginDatabaseWin.cpp removed.
       - platform/win/WebCoreInstanceHandle.cpp added.
      
      * platform/win/WebCoreInstanceHandle.cpp: Remove explicit qualification in namespace declaration to make gcc happy.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf04bd9d
    • bdakin@apple.com's avatar
      WebCore: This fixes the layering violation I committed yesterday by moving · a67418ff
      bdakin@apple.com authored
      Page::instanceHandle into its own file just in the WebCore 
      namespace.
      
      Reviewed by Anders Carlsson.
      
      Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp
      * WebCore.vcproj/WebCore.vcproj:
      * page/win/PageWin.cpp: Removed.
      
      Remove all instance handle code from Page.
      * page/Page.h:
      
      New files.
      * platform/win/WebCoreInstanceHandle.cpp: Added.
      * platform/win/WebCoreInstanceHandle.h: Added.
      (WebCore::setInstanceHandle):
      (WebCore::instanceHandle):
      
      Switch to WebCore::instanceHandle() instead of 
      Page::instanceHandle() and include the new header.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
      * platform/win/PasteboardWin.cpp:
      (WebCore::Pasteboard::Pasteboard):
      * platform/win/PopupMenuWin.cpp:
      (WebCore::PopupMenu::show):
      (WebCore::PopupMenu::registerClass):
      * platform/win/SharedTimerWin.cpp:
      (WebCore::initializeOffScreenTimerWindow):
      * plugins/win/PluginViewWin.cpp:
      (WebCore::registerPluginView):
      (WebCore::PluginView::platformStart):
      
      WebKit/win: WebCore::Page::setInstanceHandle() is now just 
      WebCore::setInstanceHandle()
      
      Reviewed by Anders Carlsson.
      
      * WebKitDLL.cpp:
      (DllMain):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a67418ff
  16. 07 Jan, 2010 1 commit
    • mitz@apple.com's avatar
      Added Font::typesettingFeatures() and deployed it · 8c85d97b
      mitz@apple.com authored
      Reviewed by Sam Weinig.
      
      No change in funcitonality
      
      * WebCore.xcodeproj/project.pbxproj: Added TypesettingFeatures.h.
      * platform/graphics/Font.h:
      (WebCore::Font::typesettingFeatures): Added. Determines the typesetting
          features from the text redndering mode.
      * platform/graphics/FontFastPath.cpp:
      (WebCore::Font::canUseGlyphCache): Use typesettingFeatures().
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/TypesettingFeatures.h: Added.
      * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
      (WebCore::disableLigatures): Take TypesettingFeatures instead of
          TextRenderingMode.
      (WebCore::initializeATSUStyle): Ditto.
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersATSUI):
          Use typesettingFeatures().
      * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
          Ditto.
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::getCFStringAttributes): Take
          TypesettingFeatures instead of TextRenderingMode.
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::findNextLineBreak): Use TypesettingFeatures().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c85d97b
  17. 18 Dec, 2009 1 commit
    • weinig@apple.com's avatar
      Add Mac WebKit side of the client based geolocation provider. · d633d844
      weinig@apple.com authored
      Reviewed by Dan Bernstein.
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * Misc/WebKitErrors.m:
      (registerErrors): Add Geolocation errors.
      * Misc/WebKitErrorsPrivate.h:
      * WebCoreSupport/WebGeolocationControllerClient.h: Added.
      (WebGeolocationControllerClient::webView):
      * WebCoreSupport/WebGeolocationControllerClient.mm: Added.
      (WebGeolocationControllerClient::WebGeolocationControllerClient):
      (WebGeolocationControllerClient::startUpdating):
      (WebGeolocationControllerClient::stopUpdating):
      (WebGeolocationControllerClient::lastPosition):
      Add implementation of the WebGeolocationControllerClient.
      
      * WebView/WebGeolocationPosition.h: Added.
      * WebView/WebGeolocationPosition.mm: Added.
      (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
      (core):
      (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
      * WebView/WebGeolocationPositionInternal.h: Added.
      Add an Objective-C wrapper for GeolocationPosition.
       
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient.
      (-[WebView _setGeolocationProvider:]): Set the GeolocationProvider
      (-[WebView _geolocationProvider]): Return the GeolocationProvider.
      (-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed.
      (-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured.
      * WebView/WebViewData.h:
      * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d633d844
  18. 19 Nov, 2009 1 commit
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 13f65f3f
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31690
              Make SocketStreamHandleCFNet work on Windows
      
              * WebCore.vcproj/WebCore.vcproj: Added LoaderRunLoopCF.
      
              * platform/network/ResourceHandle.h: Removed loaderRunLoop().
      
              * platform/network/cf/LoaderRunLoopCF.cpp: Added.
              (WebCore::emptyPerform):
              (WebCore::runLoaderThread):
              (WebCore::loaderRunLoop):
              * platform/network/cf/LoaderRunLoopCF.h: Added.
              Moved the run loop that we use for CFNetwork from ResourceHandle to its own file, because
              it's needed for more than just resource loading.
      
              * platform/network/cf/ResourceHandleCFNet.cpp: Use loaderRunLoop() from its new location.
      
              * platform/network/cf/DNSCFNet.cpp: (WebCore::DNSResolveQueue::resolve): Ditto.
      
              * platform/network/cf/SocketStreamHandle.h: Added static callbacks for forwarding events to
              main thread.
              * platform/network/cf/SocketStreamHandleCFNet.cpp:
              (WebCore::SocketStreamHandle::SocketStreamHandle): Use loaderRunLoop() on Windows instead of
              inoperable main run loop.
      
              (WebCore::MainThreadEventCallbackInfo::MainThreadEventCallbackInfo): 
              (WebCore::SocketStreamHandle::readStreamCallback):
              (WebCore::SocketStreamHandle::writeStreamCallback):
              (WebCore::SocketStreamHandle::readStreamCallbackMainThread):
              (WebCore::SocketStreamHandle::writeStreamCallbackMainThread):
              Forward stream events to main thread on Windows.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13f65f3f
  19. 10 Nov, 2009 2 commits
    • ap@apple.com's avatar
      Reviewed by Dan Bernstein. · 2ab1e6a4
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31312
              Decouple authentication panel callbacks from ResourceHandle
      
              No change in functionality.
      
              SocketStreamHandle also needs to request credentials, so it's not appropriate to store
              ResourceHandle as delegate.
      
      WebCore:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/network/AuthenticationClient.h: Added.
              Added a new interface for listening to authentication panel notifications.
      
              * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what
              it wants with the project file.
      
              (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an
              interface class.
              (WebCore::AuthenticationClient::deref): Ditto.
      
              * platform/network/ResourceHandle.h:
              (WebCore::ResourceHandle::refAuthenticationClient): Ditto.
              (WebCore::ResourceHandle::derefAuthenticationClient): Ditto.
      
              * platform/network/cf/AuthenticationCF.cpp:
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/cf/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/chromium/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/curl/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              Keeping a reference to AuthenticationClient, not to ResourceHandle.
      
      WebKit:
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              * WebURLAuthenticationChallenge.cpp:
              (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
              (WebURLAuthenticationChallenge::sender):
              * WebURLAuthenticationChallengeSender.cpp:
              (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
              (WebURLAuthenticationChallengeSender::createInstance):
              (WebURLAuthenticationChallengeSender::authenticationClient):
              * WebURLAuthenticationChallengeSender.h:
              * WebURLAuthenticationChallengeSenderCFNet.cpp:
              (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::useCredential):
              Adjusted for WebCore changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ab1e6a4
    • mitz@apple.com's avatar
      WebCore: WebCore part of making full-screen video pause during scrubbing. · 362023c1
      mitz@apple.com authored
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing()
      and HTMLMediaElement::endScrubbing().
      
      WebKit/mac: WebKit part of making full-screen video pause during scrubbing.
      
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Added _isScrubbing
      ivar.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController dealloc]): Assert that
      _isScrubbing is NO.
      (-[WebVideoFullscreenHUDWindowController endScrubbing]): Call
      HTMLMediaElement::endScrubbing().
      (-[WebVideoFullscreenHUDWindowController timelinePositionChanged:]):
      If scrubbing has just begun, call HTMLMediaElement::beginScrubbing()
      and schedule -endScrubbing to be called when mouse tracking ends.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      362023c1
  20. 08 Nov, 2009 1 commit
    • mitz@apple.com's avatar
      Made the full-screen video HUD appear when playback stops, such as when · e0ff32d3
      mitz@apple.com authored
      the end of the video is reached.
      
      Reviewed by Eric Carlson.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Cleaned up.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Updated
      for the renaming of -updateRate to -updatePlayButton.
      (-[WebVideoFullscreenHUDWindowController updatePlayButton]): Renamed
      -updateRate to this.
      (-[WebVideoFullscreenHUDWindowController updateRate]): This method now
      responds to changes to the playback rate by updating the play button
      and showing or hiding the HUD as necessary.
      (-[WebVideoFullscreenHUDWindowController togglePlaying:]): Now only
      toggles playing. UI updates are driven by -updateRate being called.
      (-[WebVideoFullscreenHUDWindowController playing]): Cleaned up.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0ff32d3
  21. 02 Nov, 2009 2 commits
    • mitz@apple.com's avatar
      Made the remaining time display show negative zero at the end of the · 12da8133
      mitz@apple.com authored
      video.
      
      Reviewed by Anders Carlsson.
      
      Made other cleanup.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of
      _timeline and _volumeSlider to the more generic NSControl.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned
      up style.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an
      assertion that the cast to NSButton * is legal. Removed casts.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Use
      -setValue:forKey: instead of an NSSlider method.
      (timeToString): Changed to support only non-negative values and
      simplified.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always
      prepend a “-” to the time.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12da8133
    • mitz@apple.com's avatar
      WebKit/mac: WebKit part of making the appearance of the full-screen video HUD match · 36413e0b
      mitz@apple.com authored
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary
      #import statements, cleaned up style, and changed _timeline,
      _volumeSlider and _playButton to have more specific types.
      * WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import
      statements.
      (webkit_CGFloor): Added this helper function.
      (-[WebVideoFullscreenHUDWindowController init]): Cleaned up style.
      (createTimeTextField): Changed to use the bold system font.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
      subviews’ metrics and the text fields’ text alignment.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion
      from double to float.
      (stringToTimeTextAttributed): Removed this useless function that
      returned an NSAttributedString masquerading as an NSString.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed
      call to stringToTimeTextAttributed().
      (-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto.
      
      WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * libWebKitSystemInterfaceLeopard.a:
      * libWebKitSystemInterfaceSnowLeopard.a:
      * libWebKitSystemInterfaceTiger.a:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36413e0b
  22. 28 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-28 Eric Carlson <eric.carlson@apple.com> · 9bfaaa38
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::removedFromDocument):
              (WebCore::HTMLMediaElement::documentWillBecomeInactive):
                  Exit from fullscreen if necessary.
              * html/HTMLMediaElement.h:
      
      2009-10-28  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController _requestExit]): 
                  New, call media element's exitFullscreen method.
              (-[WebVideoFullscreenController requestExitFullscreenWithAnimation:]): 
                  Call mediaElement->exitFullscreen() after a delay as it turns around and calls
                  WebVideoFullscreenController:exitFullscreen.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindow resignFirstResponder]):
                  New, don't give up responder status.
              (-[WebVideoFullscreenHUDWindow performKeyEquivalent:]):
                  New, block all command key events.
              (-[WebVideoFullscreenHUDWindowController exitFullscreen:]):
                  Remember when we are in the process of exiting fullscreen, don't allow recursion.
      
              * WebView/WebView.mm:
              (-[WebView _exitFullscreen]):
                  Early return if fullscreen controller is nil.
      
              * WebView/WebWindowAnimation.h: 
                  Correct comment about _window retain status.
              * WebView/WebWindowAnimation.m:
              (-[WebWindowScaleAnimation dealloc]):
                  Don't release _window, we never reatained it.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bfaaa38
  23. 22 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-22 Eric Carlson <eric.carlson@apple.com> · 73e866e6
      eric.carlson@apple.com authored
              Reviewed by Dan Bernstein & Simon Fraser.
      
              <rdar://problem/7297717>
              https://bugs.webkit.org/show_bug.cgi?id=30323
              Play/pause button in full-screen video controller does not reflect current state
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController setMediaElement:WebCore::]): Register for QTMovieRateDidChangeNotification
              (-[WebVideoFullscreenController rateChanged:]): Call HUD controller when rate changes.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Call updateRate so play button
              reflects playback state.
              (-[WebVideoFullscreenHUDWindowController updateRate]): New, set play button state according to
              movie state.
              (-[WebVideoFullscreenHUDWindowController playingChanged:]): Only call [self playing] once.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73e866e6
  24. 05 Oct, 2009 2 commits
  25. 08 Sep, 2009 1 commit
  26. 27 Aug, 2009 1 commit
    • cmarrin@apple.com's avatar
      Final patch for Canvas 3D support · 4e7728f4
      cmarrin@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=28018
      
              This hooks everything up and provides a working implementation of
              Canvas 3D. I plumb the creation of the 3D canvas down to GraphicsLayer,
              passing the opaque context and texture pointers so a Canvas3DLayer can be
              created (more on that later). It also plumbs changes to the 3D canvas so
              that Canvas3DLayer can recomposite the results.
              
              A 3D Canvas element needs a RenderLayer and compositing layer to render.
              This is because it renders to an off-screen texture in the GPU and then
              hands it to a Canvas3DLayer, which is a subclass of CAOpenGLLayer, to
              render that texture as a 3D quad. This keeps everything in GPU memory to 
              maximize performance. When a CanvasRenderingContext3D is created it 
              forces a style recalc which creates the RenderLayer and compositing 
              layer if needed. 
              
              I repurposed an existing flag which was put in place for animation to accomplish 
              this. This flag is passed to setNeedsStyleRecalc(), and I renamed it from 
              AnimationStyleChange to SyntheticStyleChange. It essentially says that you need
              to do a complete style recalc, even though the style itself has not really
              changed.
              
              This patch also fixes a couple of bugs discovered when testing with 3d-canvas
              turned on. I also added a constructor DOMWindow.idl for CanvasRenderingContext3D.
              This is needed when making a JS wrapper for the object so the prototype 
              property can be set.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e7728f4
  27. 25 Aug, 2009 2 commits
  28. 24 Aug, 2009 1 commit
  29. 12 Aug, 2009 1 commit
    • darin@apple.com's avatar
      WebCore: Custom properties on DOM objects are lost after GC (as demonstrated by the gc-9.html test) · 55132112
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=28194
      
      Patch by Darin Adler <darin@apple.com> on 2009-08-12
      Reviewed by Geoff Garen.
      
      * GNUmakefile.am: Added the two new source files.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * WebCoreSources.bkl: Ditto.
      
      * bindings/js/JSCSSRuleListCustom.cpp: Added.
      (WebCore::JSCSSRuleList::markChildren): Call markDOMObjectWrapper
      on rules in the list.
      
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::JSCSSStyleDeclaration::markChildren): Added. Call
      markDOMObjectWrapper on the CSSValue objects that are owned by the
      declaration as values of the properties.
      
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::isObservableThroughDOM): Added code to handle some
      cases where nodes are observable because they own objects that
      in turn have custom properties.
      
      * bindings/js/JSDOMBinding.h: Fix a typo in the header.
      
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::markChildren): Added call to markDOMObjectWrapper
      for implementation and styleSheets.
      
      * bindings/js/JSElementCustom.cpp:
      (WebCore::JSElement::markChildren): Added. Calls markDOMObjectWrapper
      for attributes and style.
      
      * bindings/js/JSHTMLCanvasElementCustom.cpp: Added.
      (WebCore::JSHTMLCanvasElement::markChildren): Call markDOMObjectWrapper
      on the rendering context.
      
      * bindings/js/JSStyleSheetCustom.cpp:
      (WebCore::JSStyleSheet::markChildren): Call markDOMObjectWrapper on
      items in the stylesheet.
      
      * bindings/js/JSStyleSheetListCustom.cpp:
      (WebCore::JSStyleSheetList::markChildren): Added. Calls
      markDOMObjectWrapper on stylesheets in the list.
      
      * css/CSSRuleList.idl: Added CustomMarkFunction.
      * css/CSSStyleDeclaration.idl: Ditto.
      * css/StyleSheetList.idl: Ditto.
      * dom/Element.idl: Ditto.
      * html/HTMLCanvasElement.idl: Ditto.
      
      * dom/Element.h: Made everything private that could be.
      Added access to the attributeMap that does returns
      the existing map without doing any of the lazy-updating work. This
      is needed to get at the existing attributes during garbage collection
      without having side effects.
      
      * html/HTMLCanvasElement.h: Cleaned up the header a bit, making
      members private. Added renderingContext2D function for use in
      JSHTMLCanvasElement::markChildren.
      
      LayoutTests: Custom properties on DOM objects are lost after GC (as demonstrated by the gc-9.html test)
      https://bugs.webkit.org/show_bug.cgi?id=28194
      
      Patch by Darin Adler <darin@apple.com> on 2009-08-12
      Reviewed by Geoff Garen.
      
      * fast/dom/gc-9-expected.txt: Regenerated.
      * fast/dom/gc-9.html: Updated to expect correct behavior instead of failures.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55132112
  30. 22 Sep, 2008 1 commit
    • mjs@apple.com's avatar
      JavaScriptCore: · a173abd0
      mjs@apple.com authored
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
              
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
      
              0.5% speedup on SunSpider
              ~4% speedup on Richards benchmark
              
              * VM/CTI.cpp:
              (JSC::CTI::privateCompileMainPass):
              * VM/Machine.cpp:
              (JSC::jsTypeStringForValue):
              (JSC::jsIsObjectType):
              (JSC::Machine::privateExecute):
              (JSC::Machine::cti_op_is_undefined):
              * VM/Machine.h:
              * kjs/JSCell.h:
              * kjs/JSValue.h:
              * kjs/StringObjectThatMasqueradesAsUndefined.h:
              (JSC::StringObjectThatMasqueradesAsUndefined::create):
              (JSC::StringObjectThatMasqueradesAsUndefined::createStructureID):
              * kjs/StructureID.h:
              (JSC::StructureID::mutableTypeInfo):
              * kjs/TypeInfo.h:
              (JSC::TypeInfo::TypeInfo):
              (JSC::TypeInfo::masqueradesAsUndefined):
              * kjs/operations.cpp:
              (JSC::equal):
              * masm/X86Assembler.h:
              (JSC::X86Assembler::):
              (JSC::X86Assembler::setne_r):
              (JSC::X86Assembler::setnz_r):
              (JSC::X86Assembler::testl_i32m):
      
      WebCore:
      
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
      
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
              
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclaration::nameGetter):
              * bindings/js/JSHTMLAllCollection.cpp: Added.
              (WebCore::):
              * bindings/js/JSHTMLAllCollection.h:
              (WebCore::JSHTMLAllCollection::createStructureID):
              (WebCore::JSHTMLAllCollection::toBoolean):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a173abd0
  31. 08 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      Rubber-stamped by Sam Weinig. · 78333174
      mitz@apple.com authored
              - rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h}
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/Editor.cpp:
              * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp.
              * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h.
              * platform/graphics/FontDataBaseClass.cpp: Removed.
              * platform/graphics/FontDataBaseClass.h: Removed.
              * platform/graphics/SegmentedFontData.h:
              * platform/graphics/SimpleFontData.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78333174
  32. 07 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · 648b73b1
      mitz@apple.com authored
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSFontFace.cpp:
              (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented
              font face.
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::setSegmentedFontFace):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to
              GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the
              font table are not exposed in the glyph page tree. Only the segmented
              font is, and that is taken care of by the segmented font face.
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect
              @font-face rules with the same family and traits into a single
              segmented font face, instead of just retaining the most recent one.
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h:
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode
              range value.
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSPropertyNames.in:
              * css/CSSSegmentedFontFace.cpp: Added.
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::pruneTable):
              (WebCore::CSSSegmentedFontFace::isLoaded):
              (WebCore::CSSSegmentedFontFace::isValid):
              (WebCore::CSSSegmentedFontFace::fontLoaded):
              (WebCore::CSSSegmentedFontFace::overlayRange):
              (WebCore::CSSSegmentedFontFace::getFontData):
              * css/CSSSegmentedFontFace.h: Added.
              (WebCore::FontFaceRange::FontFaceRange):
              (WebCore::FontFaceRange::from):
              (WebCore::FontFaceRange::to):
              (WebCore::FontFaceRange::fontFace):
              (WebCore::CSSSegmentedFontFace::fontSelector):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/CSSUnicodeRangeValue.cpp: Added.
              (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::cssText):
              * css/CSSUnicodeRangeValue.h: Added.
              (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::from):
              (WebCore::CSSUnicodeRangeValue::to):
              * css/SVGCSSFontFace.cpp:
              (WebCore::SVGCSSFontFace::getFontData):
              * css/SVGCSSFontFace.h:
              * editing/Editor.cpp:
              (WebCore::Editor::fontForSelection):
              * editing/Editor.h:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge fontForSelection:]):
              * platform/graphics/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::Font::glyphDataForCharacter):
              (WebCore::Font::primaryFont): Changed to return the simple font data
              used for the space character.
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::drawGlyphBuffer):
              * platform/graphics/Font.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp
              * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp.
              * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed
              FontData.cpp.
              (WebCore::FontData::~FontData):
              * platform/graphics/FontDataBaseClass.h: Added. This will be renamed
              FontData.h.
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::primaryFont):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::fontDataAt):
              (WebCore::GlyphBuffer::swap):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize
              pages for segmented font data.
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::getRootChild):
              * platform/graphics/SegmentedFontData.cpp: Added.
              (WebCore::SegmentedFontData::~SegmentedFontData):
              (WebCore::SegmentedFontData::fontDataForCharacter):
              (WebCore::SegmentedFontData::containsCharacters):
              (WebCore::SegmentedFontData::isCustomFont):
              (WebCore::SegmentedFontData::isLoading):
              (WebCore::SegmentedFontData::isSegmented):
              * platform/graphics/SegmentedFontData.h: Added.
              (WebCore::FontDataRange::FontDataRange):
              (WebCore::FontDataRange::from):
              (WebCore::FontDataRange::to):
              (WebCore::FontDataRange::fontData):
              (WebCore::SegmentedFontData::appendRange):
              (WebCore::SegmentedFontData::numRanges):
              (WebCore::SegmentedFontData::rangeAt):
              * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp.
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::~SimpleFontData):
              (WebCore::SimpleFontData::ascent):
              (WebCore::SimpleFontData::descent):
              (WebCore::SimpleFontData::widthForGlyph):
              (WebCore::SimpleFontData::fontDataForCharacter):
              (WebCore::SimpleFontData::isSegmented):
              * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h.
              (WebCore::SimpleFontData::isCustomFont):
              (WebCore::SimpleFontData::isLoading):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gtk/FontCacheGtk.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/gtk/FontDataGtk.cpp: Renamed to
              SimpleFontDataGtk.cpp.
              * platform/graphics/gtk/FontGtk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::setFont):
              * platform/graphics/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm.
              * platform/graphics/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm.
              (WebCore::initFontData):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::checkShapesArabic):
              * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp.
              * platform/graphics/qt/GlyphPageTreeNodeQt.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp.
              * platform/graphics/win/FontCacheWin.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/win/FontDataWin.cpp: Renamed to
              SimpleFontDataWin.cpp.
              * platform/graphics/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/win/GlyphPageTreeNodeWin.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp.
              (WebCore::SimpleFontData::setShouldApplyMacAscentHack):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::scriptFontProperties):
              * platform/graphics/wx/FontCacheWx.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp.
              * platform/graphics/wx/FontWx.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/wx/GlyphMapWx.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              * platform/mac/FileChooserMac.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/UniscribeController.cpp:
              (WebCore::UniscribeController::advance):
              (WebCore::UniscribeController::itemizeShapeAndPlace):
              (WebCore::UniscribeController::shapeAndPlaceItem):
              (WebCore::UniscribeController::shape):
              * platform/win/UniscribeController.h:
              * svg/SVGFont.cpp:
              (WebCore::Font::drawGlyphsWithSVGFont):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::collectGlyphs):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::createFontData):
              * svg/SVGFontFaceElement.h:
              * svg/SVGGlyphElement.cpp:
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * Misc/WebNSAttributedStringExtras.mm:
      
      WebKit/win:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * WebView.cpp:
              (WebView::setShouldApplyMacFontAscentHack):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      648b73b1