1. 02 Nov, 2009 3 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
    • cfleizach@apple.com's avatar
      Support ARIA "tab" roles · 60f0160e
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=30842
      
      Reviewed by Beth Dakin.
      
      WebCore: 
      
      Implement support for ARIA "tab", "tabpanel" and "tablist".
      As a consequence, we also needed to implement aria-selected
      and aria-controls.
      
      Tests: accessibility/aria-controls-with-tabs.html
             accessibility/aria-tab-roles.html
      
      * accessibility/AXObjectCache.cpp:
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.cpp:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/mac/AccessibilityObjectWrapper.mm:
      * html/HTMLAttributeNames.in:
      
      WebKit: 
      
      Add a localizable string for tab panel.
      
      * English.lproj/Localizable.strings:
      * StringsNotToBeLocalized.txt:
      
      WebKit/mac: 
      
      * WebCoreSupport/WebViewFactory.mm:
      (-[WebViewFactory AXARIAContentGroupText:]):
      
      WebKitTools: 
      
      * DumpRenderTree/AccessibilityUIElement.cpp:
      * DumpRenderTree/AccessibilityUIElement.h:
      * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
      * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
      * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
      
      LayoutTests: 
      
      * accessibility/aria-controls-with-tabs-expected.txt: Added.
      * accessibility/aria-controls-with-tabs.html: Added.
      * accessibility/aria-tab-roles.html: Added.
      * platform/gtk/Skipped:
      * platform/mac/accessibility/aria-tab-roles-expected.txt: Added.
      * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60f0160e
  2. 01 Nov, 2009 2 commits
    • mitz@apple.com's avatar
      Made the space bar toggle playing state in full-screen video when · 1abefe3c
      mitz@apple.com authored
      modifier keys are down. Made it do so without highlighting the
      Play/Pause button.
      
      Reviewed by Mark Rowe.
      
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController keyDown:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1abefe3c
    • mitz@apple.com's avatar
      Made the full-screen video HUD respond to the up and down arrow keys by · f1fdedb9
      mitz@apple.com authored
      increasing and decreasing the volume by 1/10 of the range or, when
      combined with the Option key, all the way up or down.
      
      Reviewed by Mark Rowe.
      
      Made the volume buttons in the full-screen video HUD match the behavior
      of their equivalents in the QuickTime Player HUD by turning the volume
      all the way up or down.
      
      Made the volume slider update immediately when the keyboard or volume
      buttons are used to change the volume, rather than at the nearest 1/4
      second interval.
      
      Made the elapsed and remaining time displays update immediately when the
      play head is dragged across the timeline, rather than at 1/4 second
      intervals.
      
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController keyDown:]): Handle the up and
      down arrow keys.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
      actions of the volume up and volume down buttons.
      (-[WebVideoFullscreenHUDWindowController setCurrentTime:]): Call
      -updateTime.
      (-[WebVideoFullscreenHUDWindowController setVolumeToZero:]): Added this
      action for the volume down button.
      (-[WebVideoFullscreenHUDWindowController setVolumeToMaximum:]): Added
      this action for the volume up button.
      (-[WebVideoFullscreenHUDWindowController decrementVolume]): No longer
      and action method.
      (-[WebVideoFullscreenHUDWindowController incrementVolume]): Ditto.
      (-[WebVideoFullscreenHUDWindowController setVolume:]): Call
      -updateVolume.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1fdedb9
  3. 30 Oct, 2009 2 commits
    • levin@chromium.org's avatar
      Notify the chrome when the focused node has changed. · ec60442a
      levin@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=30832
      
      Patch by Evan Stade <estade@chromium.org> on 2009-10-30
      Reviewed by David Levin.
      
      WebCore:
      
      This is similar to AX code that is already in place, except that this also informs the
      chrome when there stops being a focused node. This is needed for a browser to show the
      anchor for links that have keyboard focus.
      
      * dom/Document.cpp:
      (WebCore::Document::setFocusedNode):
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::focusedNodeChanged):
      * page/Chrome.cpp:
      (WebCore::Chrome::focusedNodeChanged):
      * page/Chrome.h:
      * page/ChromeClient.h:
      
      WebKit/gtk:
      
      Added stub implementation for new ChromeClient function.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::focusedNodeChanged):
      * WebCoreSupport/ChromeClientGtk.h:
      
      WebKit/haiku:
      
      Added stub implementation for new ChromeClient function.
      
      * WebCoreSupport/ChromeClientHaiku.cpp:
      (WebCore::ChromeClientHaiku::focusedNodeChanged):
      * WebCoreSupport/ChromeClientHaiku.h:
      
      WebKit/mac:
      
      Added stub implementation for new ChromeClient function.
      
      * WebCoreSupport/WebChromeClient.h:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::focusedNodeChanged):
      
      WebKit/qt:
      
      Added stub implementation for new ChromeClient function.
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::focusedNodeChanged):
      * WebCoreSupport/ChromeClientQt.h:
      
      WebKit/win:
      
      Added stub implementation for new ChromeClient function.
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::focusedNodeChanged):
      * WebCoreSupport/WebChromeClient.h:
      
      WebKit/wx:
      
      Added stub implementation for new ChromeClient function.
      
      * WebKitSupport/ChromeClientWx.cpp:
      (WebCore::ChromeClientWx::focusedNodeChanged):
      * WebKitSupport/ChromeClientWx.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec60442a
    • rolandsteiner@chromium.org's avatar
  4. 29 Oct, 2009 3 commits
  5. 28 Oct, 2009 2 commits
    • 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
    • hamaji@chromium.org's avatar
      2009-10-27 Shinichiro Hamaji <hamaji@chromium.org> · 47244a6c
      hamaji@chromium.org authored
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              * Api/qwebframe.cpp:
              (QWebFrame::counterValueForElementById):
              (QWebHitTestResult::frame):
              * Api/qwebframe.h:
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              * webkit/webkitprivate.h:
              * webkit/webkitwebframe.cpp:
              (webkit_web_frame_counter_value_for_element_by_id):
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              * Interfaces/IWebFramePrivate.idl:
              * WebFrame.cpp:
              (WebFrame::counterValueForElementById):
              * WebFrame.h:
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              Add counterValueForElement in WebFrame to call WebCore::counterValueForElement.
      
              * Misc/WebCoreStatistics.h:
              * Misc/WebCoreStatistics.mm:
              (-[WebFrame counterValueForElement:]):
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              Expose WebCore::counterValueForElement as a WebCore API.
      
              * WebCore.base.exp:
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeCounterValuesFromChildren):
              (WebCore::counterValueForElement):
              * rendering/RenderTreeAsText.h:
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              Convert two pixel tests to dumpAsText tests using counterValueForElementById.
      
              * fast/css/counters/t1204-increment-00-c-o-expected.txt: Added.
              * fast/css/counters/t1204-increment-00-c-o.html:
              * fast/css/counters/t1204-increment-01-c-o-expected.txt: Added.
              * fast/css/counters/t1204-increment-01-c-o.html:
              * platform/mac/fast/css/counters/t1204-increment-00-c-o-expected.checksum: Removed.
              * platform/mac/fast/css/counters/t1204-increment-00-c-o-expected.png: Removed.
              * platform/mac/fast/css/counters/t1204-increment-00-c-o-expected.txt: Removed.
              * platform/mac/fast/css/counters/t1204-increment-01-c-o-expected.checksum: Removed.
              * platform/mac/fast/css/counters/t1204-increment-01-c-o-expected.png: Removed.
              * platform/mac/fast/css/counters/t1204-increment-01-c-o-expected.txt: Removed.
              * platform/qt/fast/css/counters/t1204-increment-00-c-o-expected.txt: Removed.
              * platform/qt/fast/css/counters/t1204-increment-01-c-o-expected.txt: Removed.
      2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Darin Adler.
      
              Provide a way to get counter values with layoutTestContoller
              https://bugs.webkit.org/show_bug.cgi?id=30555
      
              Define layoutTestContoller.counterValueForElementById.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (counterValueForElementByIdCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::counterValueForElementById):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47244a6c
  6. 27 Oct, 2009 1 commit
    • ggaren@apple.com's avatar
      JavaScriptCore: A little bit of refactoring in the date code. · a25e8ffe
      ggaren@apple.com authored
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-27
      Reviewed by Sam Weinig.
      
      * JavaScriptCore.exp: Don't export this unused symbol.
      
      * runtime/DateConstructor.cpp:
      (JSC::constructDate):
      
      * runtime/DateInstance.cpp:
      (JSC::DateInstance::DateInstance):
      * runtime/DateInstance.h: Removed some unused functions. Changed the default
      constructor to ensure that a DateInstance is always initialized.
      
      * runtime/DatePrototype.cpp:
      (JSC::DatePrototype::DatePrototype): Pass an initializer to our constructor,
      since it now requires one.
      
      * wtf/DateMath.cpp:
      (WTF::msToGregorianDateTime): Only compute our offset from UTC if our
      output will require it. Otherwise, our offset is 0.
      
      WebKit/mac: Updated for refactoring in the date code.
      
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-27
      Reviewed by Sam Weinig.
      
      * WebView/WebView.mm:
      (aeDescFromJSValue): Since we just want a number of milliseconds, do that
      instead of something more complicated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a25e8ffe
  7. 26 Oct, 2009 2 commits
    • weinig@apple.com's avatar
      Move some WebView event handling code into its own file, WebViewEventHandling.mm · d00791c0
      weinig@apple.com authored
      Reviewed by Anders Carlsson.
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * WebView/WebView.mm:
      (-[WebView _close]):
      (-[WebView _selectedOrMainFrame]):
      * WebView/WebViewEventHandling.mm: Added.
      (-[WebView _closingEventHandling]):
      (-[WebView _setMouseDownEvent:]):
      (-[WebView mouseDown:]):
      (-[WebView mouseUp:]):
      (+[WebView _updateMouseoverWithEvent:]):
      (-[WebView _updateMouseoverWithFakeEvent]):
      (_updateMouseoverWithEvent:fakeEvent::if):
      (-[WebView _stopAutoscrollTimer]):
      (-[WebView _setToolTip:]):
      * WebView/WebViewInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d00791c0
    • simon.fraser@apple.com's avatar
      2009-10-26 Simon Fraser <simon.fraser@apple.com> · 8110a530
      simon.fraser@apple.com authored
              Reviewed by Sam Weinig.
      
              <rdar://problem/6988966> Hardware layers do not show up in page snapshots
      
              * WebView/WebHTMLViewPrivate.h:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _compositingLayersHostingView]):
              Add a private method that returns the NSView used to host compositing layers.
      
              * platform/graphics/mac/Canvas3DLayer.h:
              * platform/graphics/mac/Canvas3DLayer.mm:
              (-[Canvas3DLayer copyImageSnapshotWithColorSpace:]):
              Add a method that gets called when snapshotting Canvas3DLayers for page snapshots,
              that allows the layer to return a CGImageRef of its contents.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8110a530
  8. 23 Oct, 2009 3 commits
  9. 22 Oct, 2009 3 commits
    • barraclough@apple.com's avatar
      Build fix following bug #30696. · 69e5c94f
      barraclough@apple.com authored
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-22
      Reviewed by NOBODY (build fix).
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
      (WebKit::NetscapePluginInstanceProxy::evaluate):
      (WebKit::NetscapePluginInstanceProxy::invoke):
      (WebKit::NetscapePluginInstanceProxy::invokeDefault):
      (WebKit::NetscapePluginInstanceProxy::construct):
      (WebKit::NetscapePluginInstanceProxy::getProperty):
      (WebKit::NetscapePluginInstanceProxy::setProperty):
      (WebKit::NetscapePluginInstanceProxy::removeProperty):
      (WebKit::NetscapePluginInstanceProxy::hasProperty):
      (WebKit::NetscapePluginInstanceProxy::hasMethod):
      (WebKit::NetscapePluginInstanceProxy::enumerate):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69e5c94f
    • barraclough@apple.com's avatar
      WebCore: https://bugs.webkit.org/show_bug.cgi?id=30696 · c53df831
      barraclough@apple.com authored
      Add support for IsolatedWorlds to JSC bindings.
      
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-16
      Reviewed by Sam Weinig & Geoff Garen.
      
      An IsolatedWorld is basically a parallel, separate copy of the window shells and DOM wrapper objects for
      a given document.  To support isolation this patch:
      
          * Adds support to the ScriptController to track multiple window shells, one per world.
          * Adds support to Document to support multiple separate wrapper-maps, one per world.
          * Replaces the single global DOM wrapper map (on the WebCoreJSClientData) with separate maps,
            stored on the (new) IsolatedWorld objects.
      
      In addition to supporting separate copies of these objects, two other features are supported:
      
          * It is necessary to track the current world on entry into JSC, so that within callbacks out to WebCore
            we can determine which world (and as such, set of DOM bindings) we should be operating on.
          * EventListeners & Callbacks are run in the world they were registered in.
            This requires the handler to retain a reference to the world.
      
      No new tests. (Enabled existing isolated world layout tests.)
      
      * WebCore.base.exp:
      * bindings/js/JSAbstractWorkerCustom.cpp:
      (WebCore::JSAbstractWorker::addEventListener):
      (WebCore::JSAbstractWorker::removeEventListener):
      * bindings/js/JSCallbackData.cpp:
      (WebCore::JSCallbackData::invokeCallback):
      * bindings/js/JSCallbackData.h:
      (WebCore::JSCallbackData::JSCallbackData):
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/js/JSDOMApplicationCacheCustom.cpp:
      (WebCore::JSDOMApplicationCache::addEventListener):
      (WebCore::JSDOMApplicationCache::removeEventListener):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::removeWrappers):
      (WebCore::DOMObjectWrapperMap::get):
      (WebCore::DOMObjectWrapperMap::set):
      (WebCore::DOMObjectWrapperMap::remove):
      (WebCore::DOMObjectWrapperMap::take):
      (WebCore::IsolatedWorld::IsolatedWorld):
      (WebCore::IsolatedWorld::~IsolatedWorld):
      (WebCore::EnterIsolatedWorld::EnterIsolatedWorld):
      (WebCore::EnterIsolatedWorld::~EnterIsolatedWorld):
      (WebCore::JSGlobalDataWorldIterator::JSGlobalDataWorldIterator):
      (WebCore::JSGlobalDataWorldIterator::operator bool):
      (WebCore::JSGlobalDataWorldIterator::operator*):
      (WebCore::JSGlobalDataWorldIterator::operator->):
      (WebCore::JSGlobalDataWorldIterator::operator++):
      (WebCore::getCurrentWorld):
      (WebCore::getNormalWorld):
      (WebCore::commonNormalWorld):
      (WebCore::commonCurrentWorld):
      (WebCore::DOMObjectHashTableMap::mapFor):
      (WebCore::DOMObjectWrapperMap::mapFor):
      (WebCore::forgetDOMObject):
      (WebCore::getCachedDOMNodeWrapper):
      (WebCore::forgetDOMNode):
      (WebCore::cacheDOMNodeWrapper):
      (WebCore::forgetAllDOMNodesForDocument):
      (WebCore::forgetWorldOfDOMNodesForDocument):
      (WebCore::isObservableThroughDOM):
      (WebCore::markDOMNodesForDocument):
      (WebCore::markActiveObjectsForContext):
      (WebCore::takeWrappers):
      (WebCore::updateDOMNodeDocument):
      (WebCore::markDOMObjectWrapper):
      (WebCore::allowsAccessFromFrame):
      (WebCore::printErrorMessageForFrame):
      (WebCore::JSC_DebuggerCallFrame_evaluateInWorld):
      (WebCore::JSC_callInWorld):
      (WebCore::JSC_constructInWorld):
      (WebCore::JSC_evaluateInWorld):
      * bindings/js/JSDOMBinding.h:
      (WebCore::IsolatedWorld::rememberDocument):
      (WebCore::IsolatedWorld::forgetDocument):
      (WebCore::IsolatedWorld::rememberScriptController):
      (WebCore::IsolatedWorld::forgetScriptController):
      (WebCore::DOMObjectHashTableMap::~DOMObjectHashTableMap):
      (WebCore::DOMObjectHashTableMap::get):
      (WebCore::WebCoreJSClientData::WebCoreJSClientData):
      (WebCore::WebCoreJSClientData::currentWorld):
      (WebCore::WebCoreJSClientData::normalWorld):
      (WebCore::WebCoreJSClientData::rememberWorld):
      (WebCore::WebCoreJSClientData::forgetWorld):
      (WebCore::debuggerWorld):
      (WebCore::pluginWorld):
      * bindings/js/JSDOMGlobalObject.cpp:
      (WebCore::JSDOMGlobalObject::createJSAttributeEventListener):
      (WebCore::toJSDOMGlobalObject):
      * bindings/js/JSDOMGlobalObject.h:
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::JSDOMWindowBase::printErrorMessage):
      (WebCore::JSDOMWindowBase::commonJSGlobalData):
      (WebCore::toJS):
      (WebCore::toJSDOMWindow):
      * bindings/js/JSDOMWindowBase.h:
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::createWindow):
      (WebCore::JSDOMWindow::open):
      (WebCore::JSDOMWindow::showModalDialog):
      (WebCore::JSDOMWindow::setTimeout):
      (WebCore::JSDOMWindow::setInterval):
      (WebCore::JSDOMWindow::addEventListener):
      (WebCore::JSDOMWindow::removeEventListener):
      * bindings/js/JSDOMWindowShell.cpp:
      (WebCore::toJS):
      (WebCore::toJSDOMWindowShell):
      * bindings/js/JSDOMWindowShell.h:
      * bindings/js/JSDesktopNotificationsCustom.cpp:
      (WebCore::JSNotification::addEventListener):
      (WebCore::):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::JSEventListener):
      (WebCore::JSEventListener::handleEvent):
      (WebCore::JSEventListener::reportError):
      * bindings/js/JSEventListener.h:
      (WebCore::JSEventListener::create):
      * bindings/js/JSEventSourceCustom.cpp:
      (WebCore::JSEventSource::addEventListener):
      (WebCore::JSEventSource::removeEventListener):
      * bindings/js/JSEventTarget.cpp:
      (WebCore::toJS):
      * bindings/js/JSHTMLDocumentCustom.cpp:
      (WebCore::JSHTMLDocument::open):
      * bindings/js/JSHTMLFrameSetElementCustom.cpp:
      (WebCore::JSHTMLFrameSetElement::nameGetter):
      * bindings/js/JSInspectorBackendCustom.cpp:
      (WebCore::JSInspectorBackend::databaseForId):
      (WebCore::JSInspectorBackend::inspectedWindow):
      (WebCore::JSInspectorBackend::nodeForId):
      * bindings/js/JSLazyEventListener.cpp:
      (WebCore::JSLazyEventListener::JSLazyEventListener):
      (WebCore::JSLazyEventListener::parseCode):
      * bindings/js/JSLazyEventListener.h:
      (WebCore::JSLazyEventListener::create):
      * bindings/js/JSMessageChannelCustom.cpp:
      (WebCore::JSMessageChannel::markChildren):
      * bindings/js/JSMessagePortCustom.cpp:
      (WebCore::JSMessagePort::markChildren):
      (WebCore::JSMessagePort::addEventListener):
      (WebCore::JSMessagePort::removeEventListener):
      * bindings/js/JSNodeCustom.cpp:
      (WebCore::JSNode::addEventListener):
      (WebCore::JSNode::removeEventListener):
      (WebCore::JSNode::markChildren):
      * bindings/js/JSNodeFilterCondition.cpp:
      (WebCore::JSNodeFilterCondition::acceptNode):
      * bindings/js/JSQuarantinedObjectWrapper.cpp:
      (WebCore::JSQuarantinedObjectWrapper::construct):
      (WebCore::JSQuarantinedObjectWrapper::call):
      * bindings/js/JSSVGElementInstanceCustom.cpp:
      (WebCore::JSSVGElementInstance::addEventListener):
      (WebCore::JSSVGElementInstance::removeEventListener):
      * bindings/js/JSSharedWorkerCustom.cpp:
      (WebCore::JSSharedWorker::markChildren):
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::addEventListener):
      (WebCore::JSWebSocket::removeEventListener):
      * bindings/js/JSWorkerContextCustom.cpp:
      (WebCore::JSWorkerContext::addEventListener):
      (WebCore::JSWorkerContext::removeEventListener):
      (WebCore::JSWorkerContext::setTimeout):
      (WebCore::JSWorkerContext::setInterval):
      * bindings/js/JSXMLHttpRequestConstructor.cpp:
      (WebCore::constructXMLHttpRequest):
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::markChildren):
      (WebCore::JSXMLHttpRequest::addEventListener):
      (WebCore::JSXMLHttpRequest::removeEventListener):
      * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
      (WebCore::JSXMLHttpRequestUpload::markChildren):
      (WebCore::JSXMLHttpRequestUpload::addEventListener):
      (WebCore::JSXMLHttpRequestUpload::removeEventListener):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::create):
      (WebCore::ScheduledAction::ScheduledAction):
      (WebCore::ScheduledAction::executeFunctionInContext):
      (WebCore::ScheduledAction::execute):
      * bindings/js/ScheduledAction.h:
      (WebCore::ScheduledAction::ScheduledAction):
      * bindings/js/ScriptCachedFrameData.cpp:
      (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
      (WebCore::ScriptCachedFrameData::restore):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::~ScriptController):
      (WebCore::ScriptController::evaluateInWorld):
      (WebCore::ScriptController::evaluate):
      (WebCore::ScriptController::evaluateInIsolatedWorld):
      (WebCore::ScriptController::clearWindowShell):
      (WebCore::ScriptController::initScript):
      (WebCore::ScriptController::processingUserGestureEvent):
      (WebCore::ScriptController::attachDebugger):
      (WebCore::ScriptController::updateDocument):
      (WebCore::ScriptController::bindingRootObject):
      (WebCore::ScriptController::createRootObject):
      (WebCore::ScriptController::windowScriptNPObject):
      (WebCore::ScriptController::jsObjectForPluginElement):
      * bindings/js/ScriptController.h:
      (WebCore::ScriptController::windowShell):
      (WebCore::ScriptController::existingWindowShell):
      (WebCore::ScriptController::globalObject):
      (WebCore::ScriptController::forgetWorld):
      * bindings/js/ScriptControllerMac.mm:
      (WebCore::ScriptController::windowScriptObject):
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      * bindings/js/ScriptFunctionCall.cpp:
      (WebCore::ScriptFunctionCall::call):
      (WebCore::ScriptFunctionCall::construct):
      * bindings/js/ScriptObjectQuarantine.cpp:
      (WebCore::getQuarantinedScriptObject):
      * bindings/js/ScriptState.cpp:
      (WebCore::scriptStateFromNode):
      (WebCore::scriptStateFromPage):
      * bindings/js/ScriptState.h:
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::WorkerScriptController):
      (WebCore::WorkerScriptController::evaluate):
      * bindings/objc/DOMInternal.mm:
      (-[WebScriptObject _initializeScriptDOMNodeImp]):
      * bindings/objc/WebScriptObject.mm:
      (-[WebScriptObject callWebScriptMethod:withArguments:]):
      (-[WebScriptObject evaluateWebScript:]):
      * bindings/scripts/CodeGeneratorJS.pm:
      * bridge/NP_jsobject.cpp:
      (_NPN_InvokeDefault):
      (_NPN_Invoke):
      (_NPN_Evaluate):
      (_NPN_Construct):
      * bridge/jni/jni_jsobject.mm:
      (JavaJSObject::call):
      (JavaJSObject::eval):
      * dom/Document.cpp:
      (WebCore::Document::createWrapperCache):
      * dom/Document.h:
      (WebCore::Document::wrapperCacheMap):
      (WebCore::Document::getWrapperCache):
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::startUserInitiatedProfiling):
      (WebCore::InspectorController::stopUserInitiatedProfiling):
      * inspector/JavaScriptCallFrame.cpp:
      (WebCore::JavaScriptCallFrame::evaluate):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::dispatchWindowObjectAvailable):
      * platform/network/mac/AuthenticationMac.mm:
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::XMLHttpRequest):
      (WebCore::XMLHttpRequest::dropProtection):
      * xml/XMLHttpRequest.h:
      (WebCore::XMLHttpRequest::create):
      
      WebKit/mac: https://bugs.webkit.org/show_bug.cgi?id=30696
      Update to incorporate support for IsolatedWorlds in JSC bindings.
      
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-16
      Reviewed by Sam Weinig & Geoff Garen.
      
      * WebView/WebFrame.mm:
      (-[WebFrame _attachScriptDebugger]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame globalContext]):
      * WebView/WebScriptDebugDelegate.mm:
      (-[WebScriptCallFrame evaluateWebScript:]):
      * WebView/WebView.mm:
      (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
      
      WebKit/win: https://bugs.webkit.org/show_bug.cgi?id=30696
      Update to incorporate support for IsolatedWorlds in JSC bindings.
      
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-22
      Reviewed by Sam Weinig & Geoff Garen.
      
      * Interfaces/IWebFramePrivate.idl:
      * WebFrame.cpp:
      (WebFrame::globalContext):
      (WebFrame::windowObjectCleared):
      (WebFrame::stringByEvaluatingJavaScriptInIsolatedWorld):
      * WebFrame.h:
      
      WebKitTools: https://bugs.webkit.org/show_bug.cgi?id=30696
      Enable isolated-worlds tests on mac.
      
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-22
      Reviewed by Sam Weinig & Geoff Garen.
      
      Add private interface for DRT to invoke execution in a given world.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (evaluateScriptInIsolatedWorldCallback):
      (LayoutTestController::staticFunctions):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::evaluateScriptInIsolatedWorld):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::evaluateScriptInIsolatedWorld):
      
      LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=30696
      Enable isolated-worlds tests on mac.
        * Update the results to switch from windows to unix line-endings.
        * Update all-window-prototypes.html to allow for properties on
          the global object with null prototypes (just skip over them).
      
      Patch by Gavin Barraclough <barraclough@apple.com> on 2009-10-19
      Reviewed by Sam Weinig & Geoff Garen.
      
      * http/tests/security/isolatedWorld/all-window-properties-expected.txt:
      * http/tests/security/isolatedWorld/all-window-prototypes-expected.txt:
      * http/tests/security/isolatedWorld/all-window-prototypes.html:
      * http/tests/security/isolatedWorld/body-properties-expected.txt:
      * http/tests/security/isolatedWorld/body-prototype-expected.txt:
      * http/tests/security/isolatedWorld/document-properties-expected.txt:
      * http/tests/security/isolatedWorld/document-prototype-expected.txt:
      * http/tests/security/isolatedWorld/global-variables-expected.txt:
      * http/tests/security/isolatedWorld/image-properties-expected.txt:
      * http/tests/security/isolatedWorld/image-prototype-expected.txt:
      * http/tests/security/isolatedWorld/location-properties-expected.txt:
      * http/tests/security/isolatedWorld/location-prototype-expected.txt:
      * http/tests/security/isolatedWorld/number-prototype-expected.txt:
      * http/tests/security/isolatedWorld/object-prototype-expected.txt:
      * http/tests/security/isolatedWorld/storage-properties-expected.txt:
      * http/tests/security/isolatedWorld/storage-prototype-expected.txt:
      * http/tests/security/isolatedWorld/string-prototype-expected.txt:
      * http/tests/security/isolatedWorld/window-properties-expected.txt:
      * platform/mac/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c53df831
    • 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
  10. 21 Oct, 2009 1 commit
  11. 20 Oct, 2009 2 commits
    • mitz@apple.com's avatar
      Rubber-stamped by Mark Rowe. · 780fa75e
      mitz@apple.com authored
      <rdar://problem/7319749> REGRESSION(r49806): Contextual Menu items missing
      https://bugs.webkit.org/show_bug.cgi?id=30568
      
      Revert accidental change from r49806.
      
      * WebCoreSupport/WebContextMenuClient.mm:
      (WebContextMenuClient::getCustomMenuFromDefaultItems):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      780fa75e
    • ukai@chromium.org's avatar
      2009-10-20 Fumitoshi Ukai <ukai@chromium.org> · 64d2b36d
      ukai@chromium.org authored
              Reviewed by David Levin.
      
              Set EnabledAtRuntime for WebSocket in DOMWindow
              https://bugs.webkit.org/show_bug.cgi?id=29896
      
              Supported by chromium/v8 only.
              Add WebSocket::isAvailable()/setIsAvailable(bool) to control v8
              bindings.
              Remove Settings::experimentalWebSocketsEnabled() and
              setExperimentalWebSocketsEnabled(bool).
      
              * WebCore.base.exp:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::webSocket):
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::getConstructor):
              * bindings/v8/custom/V8CustomBinding.h:
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              (WebCore::ACCESSOR_RUNTIME_ENABLER):
              * page/DOMWindow.idl:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::setIsAvailable):
              (WebCore::WebSocket::isAvailable):
              * websockets/WebSocket.h:
      2009-10-20  Fumitoshi Ukai  <ukai@chromium.org>
      
              Reviewed by David Levin.
      
              Removed WebSocket runtime settings.
              https://bugs.webkit.org/show_bug.cgi?id=29896
      
              WebSocket runtime configuration is supported by chromium/v8 only.
      
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      2009-10-20  Fumitoshi Ukai  <ukai@chromium.org>
      
              Reviewed by David Levin.
      
              Removed WebSocket runtime settings.
              https://bugs.webkit.org/show_bug.cgi?id=29896
      
              WebSocket runtime configuration is supported by chromium/v8 only.
      
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2009-10-20  Fumitoshi Ukai  <ukai@chromium.org>
      
              Reviewed by David Levin.
      
              Removed WebSocket runtime settings.
              https://bugs.webkit.org/show_bug.cgi?id=29896
      
              WebSocket runtime configuration is supported by chromium/v8 only.
      
              * Interfaces/IWebPreferencesPrivate.idl:
              * WebPreferenceKeysPrivate.h:
              * WebPreferences.cpp:
              (WebPreferences::initializeDefaultSettings):
              (WebPreferences::experimentalNotificationsEnabled):
              * WebPreferences.h:
              * WebView.cpp:
              (WebView::notifyPreferencesChanged):
      2009-10-20  Fumitoshi Ukai  <ukai@chromium.org>
      
              Reviewed by David Levin.
      
              Removed WebSocket runtime settings.
              https://bugs.webkit.org/show_bug.cgi?id=29896
      
              WebSocket runtime configuration is supported by chromium/v8 only.
      
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/win/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64d2b36d
  12. 19 Oct, 2009 4 commits
  13. 18 Oct, 2009 1 commit
  14. 16 Oct, 2009 4 commits
    • kdecker@apple.com's avatar
      Reviewed by Jon Honeycutt. · 57dfc4da
      kdecker@apple.com authored
              <rdar://problem/7304575>
              
              * Plugins/WebBaseNetscapePluginView.h: Added new boolean ivar and -hasBeenHalted instance method.
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView halt]):Update _hasBeenHalted.
              (-[WebBaseNetscapePluginView hasBeenHalted]): Added.
              * WebView/WebView.mm:
              (+[WebView _hasPluginForNodeBeenHalted:]): Checks to see if a plug-in node's been halted.
              * WebView/WebViewPrivate.h: Added -_hasPluginForNodeBeenHalted method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57dfc4da
    • kdecker@apple.com's avatar
      Reviewed by Anders Carlson. · 8009251f
      kdecker@apple.com authored
              Small code cleanup
              
              * Plugins/WebBaseNetscapePluginView.mm:
              (WebHaltablePlugin::halt): Just call -[WebBaseNetscapePluginView halt].
              (WebHaltablePlugin::restart): Just call -[WebBaseNetscapePluginView resumeFromHalt]
              (-[WebBaseNetscapePluginView halt]): 
              (-[WebBaseNetscapePluginView resumeFromHalt]):
              * WebView/WebView.mm:
              (_pluginViewForNode): Added a check if a render is a widget. This prevents a later assertion.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8009251f
    • kdecker@apple.com's avatar
      Reviewed by Anders Carlson. · 165120a8
      kdecker@apple.com authored
              Last part of:
              <rdar://problem/7273354>
      
              * WebView/WebView.mm: 
              (_pluginViewForNode): Added with code extracted from _isNodeHaltedPlugin
              (+[WebView _isNodeHaltedPlugin:]): Made this a class method.
              (+[WebView _restartHaltedPluginForNode:]): Added. Restarts a plug-in
              * WebView/WebViewPrivate.h: Added +_restartHaltedPluginForNode to header.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      165120a8
    • kdecker@apple.com's avatar
      Reviewed by Anders. · d3098acc
      kdecker@apple.com authored
              <rdar://problem/7273354> 
      
              * Plugins/WebBaseNetscapePluginView.h: Added _isHalted ivar and three new methods: -halt, -resumeFromHalt, and -isHalted
              * Plugins/WebBaseNetscapePluginView.mm:
              (WebHaltablePlugin::halt): Call -halt instead of -stop.  
              (WebHaltablePlugin::restart):Call -resumeFromHalt instead of -start. 
              (-[WebBaseNetscapePluginView halt]): Added. Stop the plug-in, update _isHalted.
              (-[WebBaseNetscapePluginView resumeFromHalt]): Added. Start the plug-in, update _isHalted.
              (-[WebBaseNetscapePluginView isHalted]): Added.
              * WebView/WebView.mm:
              (-[WebView _isNodeHaltedPlugin:]): Added. Queries a DOMNode to determine if it's a halted plug-in.
              * WebView/WebViewPrivate.h: Added _isNodeHaltedPlugin.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3098acc
  15. 15 Oct, 2009 2 commits
  16. 14 Oct, 2009 2 commits
  17. 13 Oct, 2009 2 commits
    • hyatt@apple.com's avatar
      WebCore: Change the order of arguments on some of the user stylesheet/script... · 844f6fef
      hyatt@apple.com authored
      WebCore: Change the order of arguments on some of the user stylesheet/script functions.  Split the removal functions
      out into separate ones for scripts and stylesheets.
      
      Reviewed by Adam Roben.
      
      * WebCore.base.exp:
      * page/PageGroup.cpp:
      (WebCore::PageGroup::addUserScriptToWorld):
      (WebCore::PageGroup::addUserStyleSheetToWorld):
      (WebCore::PageGroup::removeUserScriptFromWorld):
      (WebCore::PageGroup::removeUserStyleSheetFromWorld):
      (WebCore::PageGroup::removeUserScriptsFromWorld):
      (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
      * page/PageGroup.h:
      (WebCore::PageGroup::userScripts):
      (WebCore::PageGroup::userStyleSheets):
      
      WebKit/mac: Change the order of arguments on some methods.  Split removal for user stylesheets and script into
      separate functions based off the type of object being removed.
      
      Reviewed by Adam Roben.
      
      * WebView/WebView.mm:
      (+[WebView _addUserScriptToGroup:worldID:source:url:whitelist:blacklist:injectionTime:]):
      (+[WebView _addUserStyleSheetToGroup:worldID:source:url:whitelist:blacklist:]):
      (+[WebView _removeUserScriptFromGroup:worldID:url:]):
      (+[WebView _removeUserStyleSheetFromGroup:worldID:url:]):
      (+[WebView _removeUserScriptsFromGroup:worldID:]):
      (+[WebView _removeUserStyleSheetsFromGroup:worldID:]):
      * WebView/WebViewPrivate.h:
      
      WebKit/win: Split removal functions for user scripts and stylehseets based on type.
      
      Reviewed by Adam Roben..
      
      * Interfaces/IWebViewPrivate.idl:
      * WebView.cpp:
      (WebView::removeUserScriptFromGroup):
      (WebView::removeUserStyleSheetFromGroup):
      * WebView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      844f6fef
    • andersca@apple.com's avatar
      <rdar://problem/6660507> Add "privacy mode" to Netscape Plug-in API · c912076a
      andersca@apple.com authored
      Reviewed by Sam Weinig.
      
      WebKit/mac: 
      
      Listen for WebPreferences notifications and update the _isPrivateBrowsingEnabled ivar 
      when the value changes. Also call -[WebBaseNetscapePluginView privateBrowsingModeDidChange] when the
      value changes. In process this just calls NPP_SetValue, and OOP it sends a MIG message to the plug-in host.
              
      * Plugins/Hosted/NetscapePluginHostManager.h:
      * Plugins/Hosted/NetscapePluginHostManager.mm:
      (WebKit::NetscapePluginHostManager::instantiatePlugin):
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::privateBrowsingModeDidChange):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (-[WebHostedNetscapePluginView createPlugin]):
      (-[WebHostedNetscapePluginView privateBrowsingModeDidChange]):
      * Plugins/Hosted/WebKitPluginHost.defs:
      * Plugins/WebBaseNetscapePluginView.h:
      * Plugins/WebBaseNetscapePluginView.mm:
      (-[WebBaseNetscapePluginView privateBrowsingModeDidChange]):
      (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
      (-[WebBaseNetscapePluginView preferencesHaveChanged:]):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView privateBrowsingModeDidChange]):
      (-[WebNetscapePluginView getVariable:value:]):
      
      WebKitTools: 
      
      Make the private browsing mode testable by the test plug-in.
              
      * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
      (pluginGetProperty):
      * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
      * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
      (NPP_New):
      (NPP_SetValue):
      
      LayoutTests: 
      
      Add test.
              
      * platform/mac-snowleopard/Skipped:
      Remove now passing tests that was fixed by https://bugs.webkit.org/show_bug.cgi?id=30295.
              
      * plugins/private-browsing-mode-expected.txt: Added.
      * plugins/private-browsing-mode.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c912076a
  18. 12 Oct, 2009 1 commit