1. 22 May, 2013 1 commit
  2. 16 May, 2012 1 commit
    • shinyak@chromium.org's avatar
      ShadowRoot.selection should return the seleciton whose range is in a shadow tree. · 589b39fc
      shinyak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82698
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      The selection object returned from shadowRoot.selection should be able to see
      the inner object of the shadowRoot.
      
      In the previous code, the node out of the shadow subtree was returned for
      anchorNode, focusNode, baseNode, and extentNode. This patch enables us to get
      the corresponding shadow ancestor in the specified TreeScope (m_treeScope).
      
      Tests: editing/shadow/selection-of-orphan-shadowroot.html
             editing/shadow/selection-of-shadowroot.html
      
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::selection):
      * dom/ShadowRoot.h:
      (ShadowRoot):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::getSelection): When shadow DOM feature is not enabled, we want to use the same
      instance of DOMSelection among Document and ShadowRoot.
      * dom/TreeScopeAdjuster.cpp:
      (WebCore::TreeScopeAdjuster::TreeScopeAdjuster):
      (WebCore::TreeScopeAdjuster::ancestorInThisScope): Since node could be null, I've added a node check code.
      * dom/TreeScopeAdjuster.h:
      (TreeScopeAdjuster):
      (WebCore::TreeScopeAdjuster::treeScope):
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::anchorNode):
      (WebCore::DOMSelection::anchorOffset):
      (WebCore::DOMSelection::focusNode):
      (WebCore::DOMSelection::focusOffset):
      (WebCore::DOMSelection::baseNode):
      (WebCore::DOMSelection::baseOffset):
      (WebCore::DOMSelection::extentNode):
      (WebCore::DOMSelection::extentOffset):
      (WebCore::DOMSelection::shadowAdjustedNode): Gets the corresponding node in the m_treeScope from the Position.
      (WebCore):
      (WebCore::DOMSelection::shadowAdjustedOffset): Gets the corresponding node offset in the m_treeScope from the Position.
      * page/DOMSelection.h:
      (WebCore):
      (DOMSelection):
      
      LayoutTests:
      
      This patch contains 2 tests:
      - Generates a complex HTML tree having a ShadowRoot, an older ShadowRoot, a nested ShadowRoot,
      nested ShadowRoot in an older ShadowRoot, etc., and try to drag from a nested shadow root of
      older shadow root to a nested shadow root of younger shadow root. Then checks nodes of Shadowroot.selection
      are in the same tree scope or null.
      - Generates a ShadowDOM which is not inserted into a document, and confirms nodes taken from
      the selection are all null.
      
      Also, this patch deprecates old shadowRoot.selection tests, because they test to check
      window.getSelection() and shadowRoot.selection is the same. This behavior is changed by this patch.
      
      * editing/shadow/selection-of-orphan-shadowroot-expected.txt: Added.
      * editing/shadow/selection-of-orphan-shadowroot.html: Added.
      * editing/shadow/selection-of-shadowroot-expected.txt: Added.
      * editing/shadow/selection-of-shadowroot.html: Added.
      * fast/dom/resources/event-sender-util.js:
      (mouseMoveToElem):
      (dragFromTo):
      * fast/dom/shadow/resources/shadow-dom-util.js: Added.
      (getElementByIdConsideringShadowDOM.iter):
      (getElementByIdConsideringShadowDOM):
      * fast/dom/shadow/selection-in-shadow.html: Removed.
      * platform/chromium-mac-snowleopard/fast/dom/shadow/selection-in-shadow-expected.txt: Removed.
      * platform/chromium/fast/dom/shadow/selection-in-shadow-expected.txt: Removed.
      * platform/qt/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      589b39fc
  3. 11 May, 2012 3 commits
    • shinyak@chromium.org's avatar
      [Refactoring] Move Selection from DOMWindow to TreeScope. · 4fd60ed7
      shinyak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82699
      
      Reviewed by Ryosuke Niwa.
      
      Since ShadowRoot will also manage its own version of DOMSelection, we would like to
      share the code among Document and DOMSelection. This patch moves DOMSelection from DOMWindow to TreeScope
      so that ShadowRoot can also use it.
      
      No new tests, should covered by existing tests.
      
      * dom/Document.cpp:
      (WebCore::Document::updateFocusAppearanceTimerFired):
      * dom/Document.h:
      (Document):
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::selection):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::~TreeScope):
      (WebCore::TreeScope::getSelection):
      (WebCore):
      * dom/TreeScope.h:
      (WebCore):
      (TreeScope):
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::DOMSelection):
      (WebCore::DOMSelection::clearTreeScope):
      (WebCore):
      * page/DOMSelection.h:
      (WebCore):
      (WebCore::DOMSelection::create):
      (DOMSelection):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::clearDOMWindowProperties):
      (WebCore::DOMWindow::getSelection):
      * page/DOMWindow.h:
      (DOMWindow):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4fd60ed7
    • tkent@chromium.org's avatar
      Unreviewed, rolling out r116715. · a0917c6c
      tkent@chromium.org authored
      http://trac.webkit.org/changeset/116715
      https://bugs.webkit.org/show_bug.cgi?id=86172
      
      Broke http/tests/security/cross-frame-access-selection.html
      (Requested by tkent on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-05-10
      
      * dom/Document.cpp:
      (WebCore):
      (WebCore::Document::getSelection):
      * dom/Document.h:
      (Document):
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::selection):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::~TreeScope):
      * dom/TreeScope.h:
      (WebCore):
      (TreeScope):
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::DOMSelection):
      * page/DOMSelection.h:
      (WebCore):
      (WebCore::DOMSelection::create):
      (DOMSelection):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::clearDOMWindowProperties):
      (WebCore::DOMWindow::getSelection):
      * page/DOMWindow.h:
      (DOMWindow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0917c6c
    • shinyak@chromium.org's avatar
      [Refactoring] Move Selection from DOMWindow to TreeScope. · b6563baf
      shinyak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82699
      
      Reviewed by Ryosuke Niwa.
      
      Since ShadowRoot will also manage its own version of DOMSelection, we would like to
      share the code among Document and DOMSelection. This patch moves DOMSelection from DOMWindow to TreeScope
      so that ShadowRoot can also use it.
      
      No new tests, should covered by existing tests.
      
      * dom/Document.cpp:
      (WebCore::Document::updateFocusAppearanceTimerFired):
      * dom/Document.h:
      (Document):
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::selection):
      * do/mTreeScope.cpp:
      (WebCore::TreeScope::~TreeScope):
      (WebCore::TreeScope::getSelection):
      (WebCore):
      * dom/TreeScope.h:
      (WebCore):
      (TreeScope):
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::DOMSelection):
      (WebCore::DOMSelection::clearTreeScope):
      (WebCore):
      * page/DOMSelection.h:
      (WebCore):
      (WebCore::DOMSelection::create):
      (DOMSelection):
      (WebCore::DOMSelection::frame):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::clearDOMWindowProperties):
      (WebCore::DOMWindow::getSelection):
      * page/DOMWindow.h:
      (DOMWindow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6563baf
  4. 07 Jan, 2012 1 commit
    • abarth@webkit.org's avatar
      Disconnecting DOMWindow properties is fragile and overly complicated · 84fe60e1
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75699
      
      Reviewed by Alexey Proskuryakov.
      
      Previously, we had to carefully check every object tree hanging off of
      DOMWindow to make sure that every property correctly disconnected
      itself and all its subobjects from the Frame when the DOMWindow
      disconnected from the Frame.
      
      This patch introduces DOMWindowProperty, which is a base class that
      handles this work automagically, ensuring that we won't have any
      dangling Frame pointers and removing a bunch of boilerplate code.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * css/StyleMedia.cpp:
      (WebCore::StyleMedia::StyleMedia):
      * css/StyleMedia.h:
      (WebCore::StyleMedia::create):
      * loader/appcache/DOMApplicationCache.cpp:
      (WebCore::DOMApplicationCache::DOMApplicationCache):
      (WebCore::DOMApplicationCache::disconnectFrame):
      * loader/appcache/DOMApplicationCache.h:
      * page/BarInfo.cpp:
      (WebCore::BarInfo::BarInfo):
      * page/BarInfo.h:
      * page/Console.cpp:
      (WebCore::Console::Console):
      (WebCore::Console::memory):
      * page/Console.h:
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::DOMSelection):
      * page/DOMSelection.h:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::registerProperty):
      (WebCore::DOMWindow::unregisterProperty):
      (WebCore::DOMWindow::clear):
      * page/DOMWindow.h:
      * page/Geolocation.cpp:
      (WebCore::Geolocation::Geolocation):
      (WebCore::Geolocation::disconnectFrame):
      * page/Geolocation.h:
      * page/History.cpp:
      (WebCore::History::History):
      * page/History.h:
      * page/Location.cpp:
      (WebCore::Location::Location):
      * page/Location.h:
      * page/Navigator.cpp:
      (WebCore::Navigator::Navigator):
      (WebCore::Navigator::~Navigator):
      * page/Navigator.h:
      * page/Performance.cpp:
      (WebCore::Performance::Performance):
      (WebCore::Performance::memory):
      * page/Performance.h:
      * page/PerformanceNavigation.cpp:
      (WebCore::PerformanceNavigation::PerformanceNavigation):
      * page/PerformanceNavigation.h:
      * page/PerformanceTiming.cpp:
      (WebCore::PerformanceTiming::PerformanceTiming):
      * page/PerformanceTiming.h:
      * page/Screen.cpp:
      (WebCore::Screen::Screen):
      * page/Screen.h:
      * plugins/DOMMimeTypeArray.cpp:
      (WebCore::DOMMimeTypeArray::DOMMimeTypeArray):
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPluginArray.cpp:
      (WebCore::DOMPluginArray::DOMPluginArray):
      * plugins/DOMPluginArray.h:
      * storage/Storage.cpp:
      (WebCore::Storage::Storage):
      * storage/Storage.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84fe60e1
  5. 08 Jan, 2011 1 commit
  6. 01 Sep, 2010 1 commit
  7. 10 Aug, 2010 1 commit
    • barraclough@apple.com's avatar
      Bug 43594 - Add string forwards to Forward.h · d218c2df
      barraclough@apple.com authored
      This allows us to remove forward declarations for these classes from
      WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
      
      Rubber stamped by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/Forward.h:
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AXObjectCache.h:
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilityTable.h:
      * bindings/cpp/WebDOMCString.h:
      * bindings/cpp/WebDOMString.h:
      * bindings/gobject/ConvertToUTF8String.h:
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMWindowBase.h:
      * bindings/js/JSMessagePortCustom.h:
      * bindings/js/JavaScriptCallFrame.h:
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptProfile.h:
      * bindings/js/ScriptSourceProvider.h:
      * bindings/js/ScriptString.h:
      * bindings/js/WorkerScriptController.h:
      * bindings/objc/DOMImplementationFront.h:
      * bindings/v8/ScheduledAction.h:
      * bindings/v8/ScriptController.h:
      * bindings/v8/V8DOMWindowShell.h:
      * bindings/v8/V8Proxy.h:
      * bindings/v8/V8Utilities.h:
      * bindings/v8/custom/V8CustomXPathNSResolver.h:
      * bridge/c/c_utility.h:
      * css/CSSFontSelector.h:
      * css/CSSHelper.h:
      * css/CSSOMUtils.h:
      * css/CSSPrimitiveValue.h:
      * css/MediaList.h:
      * css/StyleBase.h:
      * css/StyleSheetList.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CheckedRadioButtons.h:
      * dom/DOMImplementation.h:
      * dom/DocumentMarker.h:
      * dom/DynamicNodeList.h:
      * dom/EventTarget.h:
      * dom/MessagePort.h:
      * dom/MessagePortChannel.h:
      * dom/NameNodeList.h:
      * dom/Node.h:
      * dom/NodeList.h:
      * dom/OptionGroupElement.h:
      * dom/ScriptExecutionContext.h:
      * dom/SelectElement.h:
      * dom/ViewportArguments.h:
      * dom/make_names.pl:
      * editing/HTMLInterchange.h:
      * editing/htmlediting.h:
      * editing/markup.h:
      * html/CollectionCache.h:
      * html/DOMFormData.h:
      * html/DataGridColumnList.h:
      * html/DateComponents.h:
      * html/FileStream.h:
      * html/FileStreamProxy.h:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      * html/HTMLCollection.h:
      * html/HTMLElementStack.h:
      * html/HTMLFormattingElementList.h:
      * html/HTMLParserQuirks.h:
      * html/HTMLQuoteElement.h:
      * html/HTMLScriptRunnerHost.h:
      * html/StepRange.h:
      * html/canvas/CanvasGradient.h:
      * html/canvas/CanvasNumberArray.h:
      * html/canvas/CanvasPattern.h:
      * inspector/InjectedScript.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorClient.h:
      * inspector/InspectorFrontendClient.h:
      * inspector/InspectorValues.h:
      * inspector/ScriptDebugListener.h:
      * loader/CachedResourceClient.h:
      * loader/CrossOriginAccessControl.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/RedirectScheduler.h:
      * loader/SubframeLoader.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/archive/ArchiveFactory.h:
      * loader/icon/IconDatabaseClient.h:
      * notifications/NotificationPresenter.h:
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/Console.h:
      * page/ContextMenuClient.h:
      * page/DOMSelection.h:
      * page/EditorClient.h:
      * page/EventHandler.h:
      * page/FrameView.h:
      * page/GeolocationPositionCache.h:
      * page/History.h:
      * page/Location.h:
      * page/Navigator.h:
      * page/NavigatorBase.h:
      * page/PluginHalterClient.h:
      * page/PrintContext.h:
      * page/SpeechInput.h:
      * page/SpeechInputListener.h:
      * page/animation/AnimationController.h:
      * platform/CookieJar.h:
      * platform/CrossThreadCopier.h:
      * platform/DragImage.h:
      * platform/FileSystem.h:
      * platform/Language.h:
      * platform/Length.h:
      * platform/LinkHash.h:
      * platform/LocalizationStrategy.h:
      * platform/LocalizedStrings.h:
      * platform/Logging.h:
      * platform/Pasteboard.h:
      * platform/PopupMenuClient.h:
      * platform/SearchPopupMenu.h:
      * platform/Widget.h:
      * platform/cf/BinaryPropertyList.h:
      * platform/chromium/ChromiumBridge.h:
      * platform/chromium/ClipboardUtilitiesChromium.h:
      * platform/cocoa/KeyEventCocoa.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontCache.h:
      * platform/graphics/FontData.h:
      * platform/graphics/FontSelector.h:
      * platform/graphics/GraphicsTypes.h:
      * platform/graphics/Icon.h:
      * platform/graphics/ImageBuffer.h:
      * platform/graphics/ImageSource.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/MediaPlayerPrivate.h:
      * platform/graphics/Path.h:
      * platform/graphics/StringTruncator.h:
      * platform/graphics/cairo/FontCustomPlatformData.h:
      * platform/graphics/cairo/FontPlatformData.h:
      * platform/graphics/cg/FontPlatformData.h:
      * platform/graphics/cg/ImageSourceCG.h:
      * platform/graphics/chromium/FontCustomPlatformData.h:
      * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
      * platform/graphics/haiku/FontCustomPlatformData.h:
      * platform/graphics/mac/FontCustomPlatformData.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/qt/FontPlatformData.h:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontCustomPlatformDataCairo.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
      * platform/graphics/wince/FontPlatformData.h:
      * platform/graphics/wince/MediaPlayerPrivateWince.h:
      * platform/graphics/wince/MediaPlayerProxy.h:
      * platform/graphics/wx/FontCustomPlatformData.h:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/mac/PasteboardHelper.h:
      * platform/network/DNS.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.h:
      * platform/text/Hyphenation.h:
      * platform/text/LineEnding.h:
      * platform/text/TextCodec.h:
      * platform/text/TextEncoding.h:
      * platform/text/TextStream.h:
      * platform/win/BString.h:
      * platform/win/ClipboardUtilitiesWin.h:
      * platform/win/WCDataObject.h:
      * platform/win/WebCoreTextRenderer.h:
      * plugins/DOMMimeType.h:
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPlugin.h:
      * plugins/DOMPluginArray.h:
      * rendering/CounterNode.h:
      * rendering/HitTestResult.h:
      * rendering/RenderObjectChildList.h:
      * rendering/RenderText.h:
      * rendering/RenderTreeAsText.h:
      * rendering/TextControlInnerElements.h:
      * rendering/style/ContentData.h:
      * rendering/style/RenderStyle.h:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTrackerClient.h:
      * storage/SQLTransaction.h:
      * storage/SQLTransactionSync.h:
      * storage/Storage.h:
      * storage/chromium/DatabaseObserver.h:
      * svg/SVGAnimatedTemplate.h:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGGlyphElement.h:
      * svg/SVGHKernElement.h:
      * svg/SVGNumberList.h:
      * svg/SVGPointList.h:
      * svg/SVGPreserveAspectRatio.h:
      * svg/SVGStylable.h:
      * svg/SVGTests.h:
      * svg/SVGTransformList.h:
      * svg/SVGTransformable.h:
      * svg/SVGVKernElement.h:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * websockets/WebSocketHandshakeResponse.h:
      * wml/WMLErrorHandling.h:
      * wml/WMLPageState.h:
      * wml/WMLVariables.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/SharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContextProxy.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerLocation.h:
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerThread.h:
      * xml/DOMParser.h:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathEvaluator.h:
      * xml/XPathExpression.h:
      * xml/XPathNSResolver.h:
      * xml/XPathResult.h:
      * xml/XPathUtil.h:
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * public/WebString.h:
      * src/DOMUtilitiesPrivate.h:
      * src/DebuggerAgentImpl.h:
      * src/DebuggerAgentManager.h:
      * src/WebDevToolsAgentImpl.h:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebPageSerializerImpl.h:
      
      WebKit/efl: 
      
      * WebCoreSupport/InspectorClientEfl.h:
      
      WebKit/gtk: 
      
      * WebCoreSupport/InspectorClientGtk.h:
      
      WebKit/haiku: 
      
      * WebCoreSupport/FrameLoaderClientHaiku.h:
      * WebCoreSupport/InspectorClientHaiku.h:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/WebBaseNetscapePluginView.h:
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebIconDatabaseClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebView/WebViewInternal.h:
      
      WebKit/qt: 
      
      * WebCoreSupport/FrameLoaderClientQt.h:
      * WebCoreSupport/InspectorClientQt.h:
      
      WebKit/win: 
      
      * COMVariantSetter.h:
      * MarshallingHelpers.h:
      * WebCoreSupport/WebContextMenuClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebHistory.h:
      
      WebKit/wx: 
      
      * WebKitSupport/FrameLoaderClientWx.h:
      * WebKitSupport/InspectorClientWx.h:
      
      WebKit2: 
      
      * UIProcess/PageClient.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebFrameProxy.h:
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebProcessProxy.h:
      * UIProcess/WebUIClient.h:
      * UIProcess/win/WebView.h:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/Plugins/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginController.h:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d218c2df
  8. 06 Aug, 2010 2 commits
    • jberlin@webkit.org's avatar
      2010-08-06 Jessie Berlin <jberlin@apple.com> · d6cf213a
      jberlin@webkit.org authored
              Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
              Unreviewed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6cf213a
    • barraclough@apple.com's avatar
      Bug 43594 - Add string forwards to Forward.h · eead80ac
      barraclough@apple.com authored
      This allows us to remove forward declarations for these classes from
      WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
      
      Rubber stamped by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/Forward.h:
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AXObjectCache.h:
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilityTable.h:
      * bindings/cpp/WebDOMCString.h:
      * bindings/cpp/WebDOMString.h:
      * bindings/gobject/ConvertToUTF8String.h:
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMWindowBase.h:
      * bindings/js/JSMessagePortCustom.h:
      * bindings/js/JavaScriptCallFrame.h:
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptProfile.h:
      * bindings/js/ScriptSourceProvider.h:
      * bindings/js/ScriptString.h:
      * bindings/js/WorkerScriptController.h:
      * bindings/objc/DOMImplementationFront.h:
      * bindings/v8/ScheduledAction.h:
      * bindings/v8/ScriptController.h:
      * bindings/v8/V8DOMWindowShell.h:
      * bindings/v8/V8Proxy.h:
      * bindings/v8/V8Utilities.h:
      * bindings/v8/custom/V8CustomXPathNSResolver.h:
      * bridge/c/c_utility.h:
      * css/CSSFontSelector.h:
      * css/CSSHelper.h:
      * css/CSSOMUtils.h:
      * css/CSSPrimitiveValue.h:
      * css/MediaList.h:
      * css/StyleBase.h:
      * css/StyleSheetList.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CheckedRadioButtons.h:
      * dom/DOMImplementation.h:
      * dom/DocumentMarker.h:
      * dom/DynamicNodeList.h:
      * dom/EventTarget.h:
      * dom/MessagePort.h:
      * dom/MessagePortChannel.h:
      * dom/NameNodeList.h:
      * dom/Node.h:
      * dom/NodeList.h:
      * dom/OptionGroupElement.h:
      * dom/ScriptExecutionContext.h:
      * dom/SelectElement.h:
      * dom/ViewportArguments.h:
      * dom/make_names.pl:
      * editing/HTMLInterchange.h:
      * editing/htmlediting.h:
      * editing/markup.h:
      * html/CollectionCache.h:
      * html/DOMFormData.h:
      * html/DataGridColumnList.h:
      * html/DateComponents.h:
      * html/FileStream.h:
      * html/FileStreamProxy.h:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      * html/HTMLCollection.h:
      * html/HTMLElementStack.h:
      * html/HTMLFormattingElementList.h:
      * html/HTMLParserQuirks.h:
      * html/HTMLQuoteElement.h:
      * html/HTMLScriptRunnerHost.h:
      * html/StepRange.h:
      * html/canvas/CanvasGradient.h:
      * html/canvas/CanvasNumberArray.h:
      * html/canvas/CanvasPattern.h:
      * inspector/InjectedScript.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorClient.h:
      * inspector/InspectorFrontendClient.h:
      * inspector/InspectorValues.h:
      * inspector/ScriptDebugListener.h:
      * loader/CachedResourceClient.h:
      * loader/CrossOriginAccessControl.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/RedirectScheduler.h:
      * loader/SubframeLoader.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/archive/ArchiveFactory.h:
      * loader/icon/IconDatabaseClient.h:
      * notifications/NotificationPresenter.h:
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/Console.h:
      * page/ContextMenuClient.h:
      * page/DOMSelection.h:
      * page/EditorClient.h:
      * page/EventHandler.h:
      * page/FrameView.h:
      * page/GeolocationPositionCache.h:
      * page/History.h:
      * page/Location.h:
      * page/Navigator.h:
      * page/NavigatorBase.h:
      * page/PluginHalterClient.h:
      * page/PrintContext.h:
      * page/SpeechInput.h:
      * page/SpeechInputListener.h:
      * page/animation/AnimationController.h:
      * platform/CookieJar.h:
      * platform/CrossThreadCopier.h:
      * platform/DragImage.h:
      * platform/FileSystem.h:
      * platform/Language.h:
      * platform/Length.h:
      * platform/LinkHash.h:
      * platform/LocalizationStrategy.h:
      * platform/LocalizedStrings.h:
      * platform/Logging.h:
      * platform/Pasteboard.h:
      * platform/PopupMenuClient.h:
      * platform/SearchPopupMenu.h:
      * platform/Widget.h:
      * platform/cf/BinaryPropertyList.h:
      * platform/chromium/ChromiumBridge.h:
      * platform/chromium/ClipboardUtilitiesChromium.h:
      * platform/cocoa/KeyEventCocoa.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontCache.h:
      * platform/graphics/FontData.h:
      * platform/graphics/FontSelector.h:
      * platform/graphics/GraphicsTypes.h:
      * platform/graphics/Icon.h:
      * platform/graphics/ImageBuffer.h:
      * platform/graphics/ImageSource.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/MediaPlayerPrivate.h:
      * platform/graphics/Path.h:
      * platform/graphics/StringTruncator.h:
      * platform/graphics/cairo/FontCustomPlatformData.h:
      * platform/graphics/cairo/FontPlatformData.h:
      * platform/graphics/cg/FontPlatformData.h:
      * platform/graphics/cg/ImageSourceCG.h:
      * platform/graphics/chromium/FontCustomPlatformData.h:
      * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
      * platform/graphics/haiku/FontCustomPlatformData.h:
      * platform/graphics/mac/FontCustomPlatformData.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/qt/FontPlatformData.h:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontCustomPlatformDataCairo.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
      * platform/graphics/wince/FontPlatformData.h:
      * platform/graphics/wince/MediaPlayerPrivateWince.h:
      * platform/graphics/wince/MediaPlayerProxy.h:
      * platform/graphics/wx/FontCustomPlatformData.h:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/mac/PasteboardHelper.h:
      * platform/network/DNS.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.h:
      * platform/text/Hyphenation.h:
      * platform/text/LineEnding.h:
      * platform/text/TextCodec.h:
      * platform/text/TextEncoding.h:
      * platform/text/TextStream.h:
      * platform/win/BString.h:
      * platform/win/ClipboardUtilitiesWin.h:
      * platform/win/WCDataObject.h:
      * platform/win/WebCoreTextRenderer.h:
      * plugins/DOMMimeType.h:
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPlugin.h:
      * plugins/DOMPluginArray.h:
      * rendering/CounterNode.h:
      * rendering/HitTestResult.h:
      * rendering/RenderObjectChildList.h:
      * rendering/RenderText.h:
      * rendering/RenderTreeAsText.h:
      * rendering/TextControlInnerElements.h:
      * rendering/style/ContentData.h:
      * rendering/style/RenderStyle.h:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTrackerClient.h:
      * storage/SQLTransaction.h:
      * storage/SQLTransactionSync.h:
      * storage/Storage.h:
      * storage/chromium/DatabaseObserver.h:
      * svg/SVGAnimatedTemplate.h:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGGlyphElement.h:
      * svg/SVGHKernElement.h:
      * svg/SVGNumberList.h:
      * svg/SVGPointList.h:
      * svg/SVGPreserveAspectRatio.h:
      * svg/SVGStylable.h:
      * svg/SVGTests.h:
      * svg/SVGTransformList.h:
      * svg/SVGTransformable.h:
      * svg/SVGVKernElement.h:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * websockets/WebSocketHandshakeResponse.h:
      * wml/WMLErrorHandling.h:
      * wml/WMLPageState.h:
      * wml/WMLVariables.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/SharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContextProxy.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerLocation.h:
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerThread.h:
      * xml/DOMParser.h:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathEvaluator.h:
      * xml/XPathExpression.h:
      * xml/XPathNSResolver.h:
      * xml/XPathResult.h:
      * xml/XPathUtil.h:
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * public/WebString.h:
      * src/DOMUtilitiesPrivate.h:
      * src/DebuggerAgentImpl.h:
      * src/DebuggerAgentManager.h:
      * src/WebDevToolsAgentImpl.h:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebPageSerializerImpl.h:
      
      WebKit/efl: 
      
      * WebCoreSupport/InspectorClientEfl.h:
      
      WebKit/gtk: 
      
      * WebCoreSupport/InspectorClientGtk.h:
      
      WebKit/haiku: 
      
      * WebCoreSupport/FrameLoaderClientHaiku.h:
      * WebCoreSupport/InspectorClientHaiku.h:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/WebBaseNetscapePluginView.h:
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebIconDatabaseClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebView/WebViewInternal.h:
      
      WebKit/qt: 
      
      * WebCoreSupport/FrameLoaderClientQt.h:
      * WebCoreSupport/InspectorClientQt.h:
      
      WebKit/win: 
      
      * COMVariantSetter.h:
      * MarshallingHelpers.h:
      * WebCoreSupport/WebContextMenuClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebHistory.h:
      
      WebKit/wx: 
      
      * WebKitSupport/FrameLoaderClientWx.h:
      * WebKitSupport/InspectorClientWx.h:
      
      WebKit2: 
      
      * UIProcess/PageClient.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebFrameProxy.h:
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebProcessProxy.h:
      * UIProcess/WebUIClient.h:
      * UIProcess/win/WebView.h:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/Plugins/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginController.h:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eead80ac
  9. 02 Apr, 2010 1 commit
    • tkent@chromium.org's avatar
      2010-04-01 MORITA Hajime <morrita@google.com> · 0a60dff4
      tkent@chromium.org authored
              Reviewed by Darin Adler.
      
              WebCore::Document::updateLayoutIgnorePendingStylesheets NULL pointer
              https://bugs.webkit.org/show_bug.cgi?id=31680
              Ownerless nodes leads a crash on DOMSelection APIs
              https://bugs.webkit.org/show_bug.cgi?id=36800
      
              * editing/selection/DOMSelection-DocumentType-expected.txt: Added.
              * editing/selection/DOMSelection-DocumentType.html: Added.
              * editing/selection/DOMSelection-crossing-document-expected.txt: Added.
              * editing/selection/DOMSelection-crossing-document.html: Added.
              * editing/selection/drag-in-iframe.html:
                Updated to follow follow behaviour change.
              * editing/selection/script-tests/DOMSelection-DocumentType.js: Added.
              * editing/selection/script-tests/DOMSelection-crossing-document.js: Added.
              (makeEditableDocument):
              (clear):
      2010-04-01  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Darin Adler.
      
              WebCore::Document::updateLayoutIgnorePendingStylesheets NULL pointer
              https://bugs.webkit.org/show_bug.cgi?id=31680
              Ownerless nodes leads a crash on DOMSelection APIs
              https://bugs.webkit.org/show_bug.cgi?id=36800
      
              Added guards nodes from foreign documents to DOMSelection APIs.
      
              Tests: editing/selection/DOMSelection-DocumentType.html
                     editing/selection/DOMSelection-crossing-document.html
      
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::canonicalPosition):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::collapse):
              (WebCore::DOMSelection::setBaseAndExtent):
              (WebCore::DOMSelection::setPosition):
              (WebCore::DOMSelection::extend):
              (WebCore::DOMSelection::containsNode):
              (WebCore::DOMSelection::isValidForPosition):
              * page/DOMSelection.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a60dff4
  10. 24 Jul, 2009 1 commit
  11. 12 Mar, 2009 1 commit
    • eric@webkit.org's avatar
      Reviewed by Justin Garcia. · 1aa7e2db
      eric@webkit.org authored
              Clean up DOMSelection to use some helper functions
              making the code smaller, and less error-prone.
              https://bugs.webkit.org/show_bug.cgi?id=19221
      
              I tried moving DOMSelection off of rangeCompliantEquivalent
              but failed.  VisibleSelection holds positions like (table, 1) to mean
              "after the table".
      
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::visibleSelection):
              (WebCore::anchorPosition):
              (WebCore::focusPosition):
              (WebCore::basePosition):
              (WebCore::extentPosition):
              (WebCore::DOMSelection::anchorNode):
              (WebCore::DOMSelection::anchorOffset):
              (WebCore::DOMSelection::focusNode):
              (WebCore::DOMSelection::focusOffset):
              (WebCore::DOMSelection::baseNode):
              (WebCore::DOMSelection::baseOffset):
              (WebCore::DOMSelection::extentNode):
              (WebCore::DOMSelection::extentOffset):
              * page/DOMSelection.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1aa7e2db
  12. 10 Feb, 2009 1 commit
  13. 09 Feb, 2009 1 commit
  14. 20 Feb, 2008 1 commit
    • andersca@apple.com's avatar
      Reviewed by Darin. · 965cf1c3
      andersca@apple.com authored
              Change all refcounted classes in page/ to start with a refcount of 1.
      
              * page/BarInfo.cpp:
              (WebCore::BarInfo::BarInfo):
              * page/BarInfo.h:
              (WebCore::BarInfo::create):
              * page/Console.cpp:
              (WebCore::Console::Console):
              * page/Console.h:
              (WebCore::Console::create):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::DOMSelection):
              * page/DOMSelection.h:
              (WebCore::DOMSelection::create):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::screen):
              (WebCore::DOMWindow::history):
              (WebCore::DOMWindow::locationbar):
              (WebCore::DOMWindow::menubar):
              (WebCore::DOMWindow::personalbar):
              (WebCore::DOMWindow::scrollbars):
              (WebCore::DOMWindow::statusbar):
              (WebCore::DOMWindow::toolbar):
              (WebCore::DOMWindow::console):
              (WebCore::DOMWindow::getSelection):
              * page/DOMWindow.h:
              (WebCore::DOMWindow::create):
              * page/Frame.cpp:
              (WebCore::Frame::domWindow):
              * page/History.cpp:
              (WebCore::History::History):
              * page/History.h:
              (WebCore::History::create):
              * page/InspectorController.cpp:
              (WebCore::InspectorResource::create):
              (WebCore::InspectorResource::InspectorResource):
              (WebCore::InspectorDatabaseResource::create):
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorController::didLoadResourceFromMemoryCache):
              (WebCore::InspectorController::identifierForInitialRequest):
              (WebCore::InspectorController::didOpenDatabase):
              * page/Plugin.h:
              (WebCore::Plugin::create):
              (WebCore::Plugin::Plugin):
              * page/Screen.cpp:
              (WebCore::Screen::Screen):
              * page/Screen.h:
              (WebCore::Screen::create):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      965cf1c3
  15. 04 Feb, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · a28a9152
      darin@apple.com authored
              Reviewed by Geoff.
      
              - fix <rdar://problem/5715692> REGRESSION (r28570): JavaScript window.scrollTo()
                calls no longer accept 'undefined' values
      
              By default, we should accept non-numeric parameters and non-integral numbers for
              parameters that expect integers, without throwing exceptions.
      
              While creating the test for this, I ran into a couple minor bugs with the
              functions involved, and this patch fixes those too.
      
              Test: fast/dom/non-numeric-values-numeric-parameters.html
      
              * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
              (WebCore::JSHTMLOptionsCollection::add): Added. This function has unusual behavior
              when passed non-integral values for its second parameter, so it needs to be written
              by hand. I think that [Custom] is better here than inventing a new keyword.
      
              * bindings/scripts/CodeGeneratorJS.pm: Changed default for "long" and "unsigned long"
              to ignore errors rather than failing due to type differences. Also changed a couple
              functions to use hashes.
      
              * css/CSSStyleSheet.h:
              (WebCore::CSSStyleSheet::removeRule): Remove overload of removeRule without a second
              parameters. While we do allow this from JavaScript, it's not a true optional parameter,
              but rather just a case of "you can omit parameters and they are treated as undefined"
              combined with "undefined turns into 0 when passed to a function that takes an integer".
              * css/CSSStyleSheet.idl: Removed [Optional] on the index parameter for removeRule.
              This is not truly an optional parameter.
      
              * dom/ProgressEvent.cpp:
              (WebCore::ProgressEvent::initProgressEvent): Updated this function to match other
              DOM event init functions -- important to do nothing if this is called on the an
              already-dispatched event and we need to respect the bubble and cancelable arguments.
              Also removed initProgressEventNS. We don't support namespaced events, and if we add
              support, it should be across all event classes, not just ProgressEvent.
              * dom/ProgressEvent.h: Removed initProgressEventNS.
              * dom/ProgressEvent.idl: Ditto.
      
              * dom/Range.cpp:
              (WebCore::Range::createContextualFragment): Added a check for 0. This can happen
              if the passed-in start container is a node that's not an HTML element and also
              does not have a parent.
      
              * html/HTMLOptionsCollection.idl: Added the [Custom] attribute to add, since the
              rules for processing its parameters are unusual.
      
              * page/DOMSelection.cpp: Removed the version of setPosition that has only
              one parameter. The offset is not really optional.
              * page/DOMSelection.h: Ditto.
              * page/DOMSelection.idl: Removed the [Optional] keyword for the second parameter of
              setPosition. It's not a true optional parameter (see discussion of removeRule above).
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::adjustWindowRect): Simplified logic for constraining the X
              and Y coordinates, in a way that makes them work even when the window coordinates
              are infinite. Also strengthened the assertion.
      
      WebKitTools:
      
              Reviewed by Geoff.
      
              * Scripts/make-js-test-wrappers: Look at the whole LayoutTests tree, not just the fast
              and svg subdirectories. Added some more exceptions for the benefit of the fast/dom
              subdirectory.
      
      LayoutTests:
      
              Reviewed by Geoff.
      
              - test for <rdar://problem/5715692> REGRESSION (r28570): JavaScript window.scrollTo() calls
                no longer accept 'undefined' values
      
              * fast/dom/non-numeric-values-numeric-parameters-expected.txt: Added.
              * fast/dom/non-numeric-values-numeric-parameters.html: Added.
              * fast/dom/resources/TEMPLATE.html: Copied from fast/dom/Element/resources/TEMPLATE.html.
              * fast/dom/resources/non-numeric-values-numeric-parameters.js: Added.
      
              * editing/selection/extend-expected.txt: Updated.
              * editing/selection/extend.html: Removed test that extend throws if passed only one parameter.
              There's no reason for us to be strict about this -- we generally treat missing parameters the
              same as if "undefined" had been passed with few exceptions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a28a9152
  16. 14 Nov, 2007 2 commits
    • ggaren@apple.com's avatar
      JavaScriptCore: · 58ea1c13
      ggaren@apple.com authored
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * API/JSClassRef.h:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.h:
              * kjs/regexp.h:
              * wtf/RefCounted.h: Copied from JavaScriptCore/wtf/Shared.h.
              (WTF::RefCounted::RefCounted):
              * wtf/Shared.h: Removed.
      
      JavaScriptGlue:
      
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
      
      WebCore:
      
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from WebCore/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Attribute.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilter.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/QualifiedName.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * editing/EditCommand.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.cpp:
              (WebCore::HistoryItem::HistoryItem):
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyle.cpp:
              (WebCore::SVGRenderStyle::SVGRenderStyle):
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              (StyleFillData::StyleFillData):
              (StyleStrokeData::StyleStrokeData):
              (StyleStopData::StyleStopData):
              (StyleTextData::StyleTextData):
              (StyleClipData::StyleClipData):
              (StyleMaskData::StyleMaskData):
              (StyleMarkerData::StyleMarkerData):
              (StyleMiscData::StyleMiscData):
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAngle.cpp:
              (WebCore::SVGAngle::SVGAngle):
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/Frame.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/Cursor.h:
              * platform/DeprecatedValueListImpl.cpp:
              (WebCore::DeprecatedValueListImpl::Private::Private):
              * platform/FileChooser.h:
              * platform/FontFallbackList.h:
              * platform/FontFamily.cpp:
              (WebCore::FontFamily::FontFamily):
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.cpp:
              (WebCore::FormData::FormData):
              * platform/network/FormData.h:
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleSurroundData::StyleSurroundData):
              (WebCore::StyleBoxData::StyleBoxData):
              (WebCore::StyleVisualData::StyleVisualData):
              (WebCore::StyleBackgroundData::StyleBackgroundData):
              (WebCore::StyleMarqueeData::StyleMarqueeData):
              (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
              (WebCore::StyleMultiColData::StyleMultiColData):
              (WebCore::StyleTransformData::StyleTransformData):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareInheritedData::StyleRareInheritedData):
              (WebCore::StyleInheritedData::StyleInheritedData):
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              (WebCore::SVGCharOnPath::SVGCharOnPath):
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLHttpRequest.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
              * xml/XPathValue.h:
              * xml/XSLTProcessor.h:
      
      WebKit/mac:
      
              Reviewed by Anders Carlsson.
              
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58ea1c13
    • ggaren@apple.com's avatar
      JavaScriptCore: · 7911af29
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Deployed
              Shared in places where JSCore previously had hand-rolled ref-counting
              classes.
      
              * API/JSClassRef.cpp:
              (OpaqueJSClass::OpaqueJSClass):
              * API/JSClassRef.h:
              * API/JSObjectRef.cpp:
              (JSClassRetain):
              (JSClassRelease):
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.cpp:
              (KJS::Interpreter::init):
              * kjs/interpreter.h:
              * kjs/regexp.cpp:
              (KJS::RegExp::RegExp):
              * kjs/regexp.h:
              * wtf/Shared.h: Copied from WebCore/platform/Shared.h.
      
      JavaScriptGlue:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
      
      WebCore:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Retained 
              TreeShared, but moved it to its own file, TreeShared.h.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/FontFallbackList.h:
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/Shared.h: Removed.
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
      
      WebKit/mac:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ChangeLog:
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7911af29
  17. 13 Nov, 2007 1 commit
    • ap@webkit.org's avatar
      Reviewed by Darin. · fbc55832
      ap@webkit.org authored
              http://bugs.webkit.org/show_bug.cgi?id=15954
              Move DOM Selection operations out of SelectionController
      
              No change in functionality.
      
      WebCore:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelectedRange):
              * editing/SelectionController.h:
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::anchorNode):
              (WebCore::DOMSelection::baseNode):
              (WebCore::DOMSelection::anchorOffset):
              (WebCore::DOMSelection::baseOffset):
              (WebCore::DOMSelection::focusNode):
              (WebCore::DOMSelection::extentNode):
              (WebCore::DOMSelection::focusOffset):
              (WebCore::DOMSelection::extentOffset):
              (WebCore::DOMSelection::isCollapsed):
              (WebCore::DOMSelection::type):
              (WebCore::DOMSelection::rangeCount):
              (WebCore::DOMSelection::collapse):
              (WebCore::DOMSelection::collapseToEnd):
              (WebCore::DOMSelection::collapseToStart):
              (WebCore::DOMSelection::empty):
              (WebCore::DOMSelection::setBaseAndExtent):
              (WebCore::DOMSelection::setPosition):
              (WebCore::DOMSelection::modify):
              (WebCore::DOMSelection::extend):
              (WebCore::DOMSelection::getRangeAt):
              (WebCore::DOMSelection::removeAllRanges):
              (WebCore::DOMSelection::addRange):
              (WebCore::DOMSelection::deleteFromDocument):
              (WebCore::DOMSelection::containsNode):
              (WebCore::DOMSelection::selectAllChildren):
              (WebCore::DOMSelection::toString):
              * page/DOMSelection.h:
              Moved all DOM API methods to DOMSelection; changed SelectionController::setSelectedRange()
              to return its result directly instead of via an ExceptionCode that no caller wanted.
      
              * editing/Editor.cpp:
              (WebCore::Editor::deleteRange):
              (WebCore::Editor::removeFormattingAndStyle):
              (WebCore::Editor::selectComposition):
              (WebCore::Editor::setComposition):
              * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
              Adapted for SelectionController::setSelectedRange() now returning a bool.
              SelectionController::toString() is no longer avasilable, use plainText() explicitly.
      
              * WebCore.base.exp: Changed SelectionController::setSelectedRange() signature.
      
      WebKit:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _expandSelectionToGranularity:]):
              (-[WebHTMLView selectToMark:]):
              (-[WebHTMLView swapWithMark:]):
              * WebView/WebView.mm:
              (-[WebView setSelectedDOMRange:affinity:]):
              Adapted for SelectionController::setSelectedRange() now returning a bool.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbc55832
  18. 10 Nov, 2007 1 commit
    • ap@webkit.org's avatar
      Reviewed by Darin. · e962e996
      ap@webkit.org authored
              http://bugs.webkit.org/show_bug.cgi?id=15922
              Implement more of Mozilla Selection API
      
              Tests: editing/selection/containsNode.html
                     editing/selection/deleteFromDocument.html
                     editing/selection/extend.html
                     editing/selection/selectAllChildren.html
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::deleteFromDocument):
              (WebCore::SelectionController::containsNode):
              (WebCore::SelectionController::selectAllChildren):
              (WebCore::SelectionController::extend):
              * editing/SelectionController.h:
              Added deleteFromDocument(), containsNode(), and selectAllChildren(). Reimplemented extend(),
              which existed, but didn't match Firefox behavior and wasn't exposed via bindings.
              Removed a comment mentioning removeRange(), as this method makes no sense without multiple
              selection range support.
      
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::extend):
              (WebCore::DOMSelection::deleteFromDocument):
              (WebCore::DOMSelection::containsNode):
              (WebCore::DOMSelection::selectAllChildren):
              * page/DOMSelection.h:
              * page/DOMSelection.idl:
              Exposed the new methods.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e962e996
  19. 28 Jun, 2007 1 commit
    • weinig's avatar
      LayoutTests: · b0c299a9
      weinig authored
              Reviewed by Geoff.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=14319
              Move the Selection object out of the JS bindings
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/js/toString-and-valueOf-override-expected.txt:
              * http/tests/security/cross-frame-access-expected.txt:
      
      WebCore:
      
              Reviewed by Geoff.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14319
              Move the Selection object out of the JS bindings
      
              - Renames JS Object Selection to DOMSelection to avoid a name
                conflict.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::WindowFunc::callAsFunction):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * page/DOMSelection.cpp: Added.
              (WebCore::DOMSelection::DOMSelection):
              (WebCore::DOMSelection::frame):
              (WebCore::DOMSelection::disconnectFrame):
              (WebCore::DOMSelection::anchorNode):
              (WebCore::DOMSelection::baseNode):
              (WebCore::DOMSelection::anchorOffset):
              (WebCore::DOMSelection::baseOffset):
              (WebCore::DOMSelection::focusNode):
              (WebCore::DOMSelection::extentNode):
              (WebCore::DOMSelection::focusOffset):
              (WebCore::DOMSelection::extentOffset):
              (WebCore::DOMSelection::isCollapsed):
              (WebCore::DOMSelection::type):
              (WebCore::DOMSelection::rangeCount):
              (WebCore::DOMSelection::collapse):
              (WebCore::DOMSelection::collapseToEnd):
              (WebCore::DOMSelection::collapseToStart):
              (WebCore::DOMSelection::empty):
              (WebCore::DOMSelection::setBaseAndExtent):
              (WebCore::DOMSelection::setPosition):
              (WebCore::DOMSelection::modify):
              (WebCore::DOMSelection::getRangeAt):
              (WebCore::DOMSelection::removeAllRanges):
              (WebCore::DOMSelection::addRange):
              (WebCore::DOMSelection::toString):
              * page/DOMSelection.h: Added.
              * page/DOMSelection.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::getSelection):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0c299a9
  20. 19 Jun, 2007 2 commits
    • weinig's avatar
      WebCore: · 8b5bc0db
      weinig authored
              Reviewed by Beth.
      
              Fix build and update licenses. 
      
              * WebCore.xcodeproj/project.pbxproj:
              * page/BarInfo.cpp:
              * page/BarInfo.h:
              * page/BarInfo.idl:
              * page/Screen.cpp:
              (WebCore::Screen::height):
              (WebCore::Screen::width):
              (WebCore::Screen::colorDepth):
              (WebCore::Screen::pixelDepth):
              (WebCore::Screen::availLeft):
              (WebCore::Screen::availTop):
              (WebCore::Screen::availHeight):
              (WebCore::Screen::availWidth):
              * page/Screen.h:
              * page/Screen.idl:
      
      WebKit:
      
              Reviewed by Beth.
      
              Build fix.
      
              * WebCoreSupport/WebChromeClient.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b5bc0db
    • weinig's avatar
      LayoutTests: · b8d23237
      weinig authored
              Reviewed by Geoff.
      
              Updates tests for http://bugs.webkit.org/show_bug.cgi?id=14193
              Move the Screen object out of the JS bindings
      
              * fast/dom/Window/window-appendages-cleared-expected.txt:
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Geoff.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14193
              Move the Screen object out of the JS bindings
      
              - Renames Screen.h to PlatformScreen.h to accommodate new class.
              - Autogenerates JSScreen.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * css/MediaQueryEvaluator.cpp:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::~DOMWindow):
              (WebCore::DOMWindow::frame):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::screen):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * page/Screen.cpp: Added.
              (WebCore::Screen::Screen):
              (WebCore::Screen::disconnectFrame):
              (WebCore::Screen::height):
              (WebCore::Screen::width):
              (WebCore::Screen::colorDepth):
              (WebCore::Screen::pixelDepth):
              (WebCore::Screen::availLeft):
              (WebCore::Screen::availTop):
              (WebCore::Screen::availHeight):
              (WebCore::Screen::availWidth):
              * page/Screen.h: Added.
              * page/Screen.idl: Added.
              * page/mac/WebCoreFrameBridge.mm:
              * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h.
              * platform/Screen.h: Removed.
              * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp.
              * platform/gdk/ScreenGdk.cpp: Removed.
              * platform/mac/PlatformMouseEventMac.mm:
              * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm.
              * platform/mac/ScreenMac.mm: Removed.
              * platform/qt/PlatformScreenQt.cpp: Added.
              (WebCore::WebCore::screenDepth):
              (WebCore::WebCore::screenDepthPerComponent):
              (WebCore::WebCore::screenIsMonochrome):
              (WebCore::WebCore::screenRect):
              (WebCore::WebCore::screenAvailableRect):
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp.
              * platform/win/ScreenWin.cpp: Removed.
              * rendering/RenderObject.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8d23237
  21. 18 Jun, 2007 1 commit
    • weinig's avatar
      Reviewed by Geoff. · 6f399844
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
              Move the BarInfo object out of the JS bindings
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * page/BarInfo.cpp: Added.
              (WebCore::BarInfo::BarInfo):
              (WebCore::BarInfo::disconnectFrame):
              (WebCore::BarInfo::visible):
              * page/BarInfo.h: Added.
              (WebCore::BarInfo::):
              * page/BarInfo.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::~DOMWindow):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::locationbar):
              (WebCore::DOMWindow::menubar):
              (WebCore::DOMWindow::personalbar):
              (WebCore::DOMWindow::scrollbars):
              (WebCore::DOMWindow::statusbar):
              (WebCore::DOMWindow::toolbar):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f399844
  22. 11 May, 2007 1 commit
    • darin's avatar
      LayoutTests: · 55ae73e3
      darin authored
              Reviewed by Mitz.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=7452
                <rdar://problem/3211749> line breaks ignored after <wbr> in <pre> block (affects livejournal.com)
      
              * fast/text/wbr-pre-expected.checksum: Added.
              * fast/text/wbr-pre-expected.png: Added.
              * fast/text/wbr-pre-expected.txt: Added.
              * fast/text/wbr-pre.html: Added.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=10657
                <rdar://problem/4274588> <wbr> tags are ignored
      
              * fast/text/wbr-expected.checksum: Added.
              * fast/text/wbr-expected.png: Added.
              * fast/text/wbr-expected.txt: Added.
              * fast/text/wbr.html: Added.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=12689
                <wbr> :before/:after content causes line break
      
              * fast/css-generated-content/wbr-with-before-content-expected.checksum: Added.
              * fast/css-generated-content/wbr-with-before-content-expected.png: Added.
              * fast/css-generated-content/wbr-with-before-content-expected.txt: Added.
              * fast/css-generated-content/wbr-with-before-content.html: Added.
      
              - test for <rdar://problem/5127366> DOM tree isn't correct when parsing with <wbr>
      
              * fast/invalid/021-expected.txt: Updated result.
              * fast/parser/parse-wbr-expected.txt: Added.
              * fast/parser/parse-wbr.html: Added.
      
      WebCore:
      
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=7452
                <rdar://problem/3211749> line breaks ignored after <wbr> in <pre> block (affects livejournal.com)
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=10657
                <rdar://problem/4274588> <wbr> tags are ignored
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12689
                <wbr> :before/:after content causes line break
      
              - fix <rdar://problem/5127366> DOM tree isn't correct when parsing with <wbr>
      
              Test: fast/text/wbr-pre.html
              Test: fast/text/wbr.html
              Test: fast/css-generated-content/wbr-with-before-content.html
              Test: fast/parser/parse-wbr.html
      
              * html/HTMLElement.h:
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::endTagRequirement): Use the same end tag requirement for a <wbr>
              element as for a <br> element, TagStatusForbidden.
              (WebCore::HTMLElement::tagPriority): Use the same priority for a <wbr> element as for a
              <br> element, 0.
              (WebCore::HTMLElement::createRenderer): Added. Create a RenderWordBreak to trigger the
              new rendering code paths.
      
              * rendering/RenderFlow.h: Add a virtual isWordBreak so we can detect RenderWordBreak.
      
              * rendering/RenderWordBreak.h: Added.
              * rendering/RenderWordBreak.cpp: Added.
      
              * WebCore.pro: Added new files.
              * WebCore.xcodeproj/project.pbxproj: Added new files.
              * WebCoreSources.bkl: Added new files.
      
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::calcInlinePrefWidths): Reset the
              line when we hit a <wbr>.
              * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Add a line break when
              we hit a <wbr>.
      
              * dom/Node.cpp: (Node::createRendererIfNeeded): Fix a null check for the case where
              createRenderer returns 0 even though rendererIsNeeded returned true. I can't reproduce
              it on demand, but while running layout tests I hit this once. Since there was already
              a null check here, I rearranged it so it guards all the code that uses the renderer.
              Later we might want to figure out under exactly what circumstances rendererIsNeeded
              will return true but createRenderer return 0 and consider eliminating them.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55ae73e3
  23. 26 Feb, 2007 1 commit
    • mjs's avatar
      JavaScriptCore: · d2948ef7
      mjs authored
              Reviewed by Lars.
              
              - <rdar://problem/5021698> Disable experimental SVG features (12883)
      
              * wtf/Platform.h: Add ENABLE() macro similar to HAVE() and USE(), to
              allow nicer handling of optional WebKit features.
      
      WebCore:
      
              Reviewed by Lars.
      
              - fixed <rdar://problem/5021698> Disable experimental SVG features (12883)
              
              I added an ENABLE_SVG_EXPERIMENTAL_FEATURES define to guard all use of the experimental
              features, and used it to guard relevant tag names, elements, JS bindings and renderers.
              
              I also converted all the existing optional feature defines to
              ENABLE_FOO instead of FOO_SUPPORT since that is the more standard
              way to do it in open source projects and works with the handy new
              ENABLE() macro.
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.pro:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.vcproj/WebCore/build-generated-files.sh:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSCustomXPathNSResolver.h:
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGMatrixCustom.cpp:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSSVGPathSegListCustom.cpp:
              * bindings/js/JSSVGPointListCustom.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.cpp:
              (KJS::setDOMException):
              * bindings/js/kjs_css.cpp:
              (KJS::toJS):
              * bindings/js/kjs_dom.cpp:
              (KJS::toJS):
              * bindings/js/kjs_html.cpp:
              (KJS::HTMLElementFunction::callAsFunction):
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap):
              (+[DOMNode _nodeWith:WebCore::]):
              * bindings/objc/DOMCSS.mm:
              (+[DOMCSSValue _CSSValueWith:WebCore::]):
              * bindings/objc/DOMCustomXPathNSResolver.h:
              * bindings/objc/DOMCustomXPathNSResolver.mm:
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMSVGPathSegInternal.mm:
              * bindings/objc/DOMXPath.mm:
              * bindings/objc/ExceptionHandlers.mm:
              (WebCore::raiseDOMException):
              * bindings/objc/PublicDOMInterfaces.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * config.h:
              * css/CSSGrammar.y:
              * css/CSSStyleDeclaration.cpp:
              (WebCore::propertyID):
              * css/StyleBase.h:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::loadDefaultStyle):
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::applyProperty):
              * css/cssstyleselector.h:
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::hasFeature):
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              (WebCore::Document::createElement):
              (WebCore::Document::implicitClose):
              (WebCore::Document::recalcStyleSelector):
              (WebCore::Document::createEvent):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/EventTarget.cpp:
              * dom/EventTarget.h:
              * dom/MappedAttributeEntry.h:
              (WebCore::):
              * dom/Node.cpp:
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::shadowAncestorNode):
              * dom/Node.h:
              * dom/ProcessingInstruction.cpp:
              (WebCore::ProcessingInstruction::ProcessingInstruction):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::setCSSStyleSheet):
              * dom/ProcessingInstruction.h:
              * dom/Text.cpp:
              (WebCore::Text::createRenderer):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              (WebCore::XMLTokenizer::endElementNs):
              (WebCore::XMLTokenizer::processingInstruction):
              (WebCore::XMLTokenizer::end):
              (WebCore::XMLTokenizer::insertErrorMessageBlock):
              * dom/XMLTokenizer.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLEmbedElement.h:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * ksvg2/css/SVGCSSParser.cpp:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/css/SVGRenderStyle.cpp:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.cpp:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.cpp:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.cpp:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/SVGTimer.cpp:
              * ksvg2/misc/SVGTimer.h:
              * ksvg2/misc/TimeScheduler.cpp:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/ColorDistance.cpp:
              * ksvg2/svg/ColorDistance.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.cpp:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.cpp:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateElement.idl:
              * ksvg2/svg/SVGAnimateMotionElement.cpp:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.idl:
              * ksvg2/svg/SVGAnimatedPathData.cpp:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.cpp:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.cpp:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.cpp:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDefsElement.cpp:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.cpp:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::dispatchEvent):
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElementInstance.cpp:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstance.idl:
              * ksvg2/svg/SVGElementInstanceList.cpp:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGElementInstanceList.idl:
              * ksvg2/svg/SVGEllipseElement.cpp:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEBlendElement.idl:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.idl:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.idl:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFECompositeElement.idl:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.idl:
              * ksvg2/svg/SVGFEDistantLightElement.cpp:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.idl:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFloodElement.idl:
              * ksvg2/svg/SVGFEFuncAElement.cpp:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncAElement.idl:
              * ksvg2/svg/SVGFEFuncBElement.cpp:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncBElement.idl:
              * ksvg2/svg/SVGFEFuncGElement.cpp:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncGElement.idl:
              * ksvg2/svg/SVGFEFuncRElement.cpp:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEFuncRElement.idl:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.idl:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFEImageElement.idl:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeElement.idl:
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.idl:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEOffsetElement.idl:
              * ksvg2/svg/SVGFEPointLightElement.cpp:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFEPointLightElement.idl:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.idl:
              * ksvg2/svg/SVGFESpotLightElement.cpp:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFESpotLightElement.idl:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETileElement.idl:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.idl:
              * ksvg2/svg/SVGFilterElement.cpp:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterElement.idl:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGForeignObjectElement.idl:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.cpp:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.cpp:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.cpp:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.cpp:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.cpp:
              (WebCore::SVGLocatable::nearestViewportElement):
              (WebCore::SVGLocatable::farthestViewportElement):
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMPathElement.cpp:
              * ksvg2/svg/SVGMPathElement.h:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMetadataElement.cpp:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.cpp:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.cpp:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.cpp:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.cpp:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.cpp:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.cpp:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.cpp:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.cpp:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPointList.cpp:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.cpp:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.cpp:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.cpp:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRectElement.cpp:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.cpp:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.cpp:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.cpp:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.cpp:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.cpp:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::notifyAttributeChange):
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.cpp:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.cpp:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.cpp:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.cpp:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.cpp:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformDistance.cpp:
              * ksvg2/svg/SVGTransformDistance.h:
              * ksvg2/svg/SVGTransformList.cpp:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGUseElement.idl:
              * ksvg2/svg/SVGViewElement.cpp:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              * ksvg2/svg/SVGZoomAndPan.h:
              * ksvg2/svg/svgtags.in:
              * loader/Cache.cpp:
              (WebCore::createResource):
              (WebCore::Cache::getStatistics):
              * loader/Cache.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
              * loader/CachedResource.h:
              (WebCore::CachedResource::):
              * loader/CachedResourceClient.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * page/DOMWindow.idl:
              * page/EventHandler.cpp:
              (WebCore::EventHandler::handleMouseMoveEvent):
              (WebCore::selectCursor):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/PageState.cpp:
              (WebCore::PageState::PageState):
              (WebCore::PageState::restore):
              * platform/MimeTypeRegistry.cpp:
              (WebCore::initialiseSupportedNonImageMimeTypes):
              * platform/graphics/FloatPoint3D.cpp:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/ImageBuffer.cpp:
              (WebCore::ImageBuffer::renderSubtreeToImage):
              * platform/graphics/svg/SVGImage.cpp:
              * platform/graphics/svg/SVGImage.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              * platform/graphics/svg/SVGPaintServer.cpp:
              * platform/graphics/svg/SVGPaintServer.h:
              * platform/graphics/svg/SVGPaintServerGradient.cpp:
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/SVGPaintServerLinearGradient.cpp:
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerPattern.cpp:
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/SVGPaintServerSolid.cpp:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/SVGResource.cpp:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.cpp:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceFilter.cpp:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/SVGResourceMarker.cpp:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.cpp:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/CgSupport.cpp:
              * platform/graphics/svg/cg/CgSupport.h:
              * platform/graphics/svg/cg/RenderPathCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
              * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
              * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
              * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.cpp:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.cpp:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.cpp:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.cpp:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.cpp:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.cpp:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.cpp:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.cpp:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.cpp:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.cpp:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
              * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
              * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
              * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
              * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
              * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
              * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
              * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::absoluteImageURL):
              (WebCore::HitTestResult::absoluteLinkURL):
              (WebCore::HitTestResult::isLiveLink):
              * rendering/RenderForeignObject.cpp:
              * rendering/RenderForeignObject.h:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::isTransparent):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::containingBlock):
              * rendering/RenderObject.h:
              * rendering/RenderPath.cpp:
              * rendering/RenderPath.h:
              * rendering/RenderSVGBlock.cpp:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGGradientStop.cpp:
              * rendering/RenderSVGGradientStop.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGImage.cpp:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.cpp:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.cpp:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.cpp:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.cpp:
              * rendering/RenderSVGText.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::RenderStyle::RenderStyle):
              (WebCore::RenderStyle::inheritFrom):
              (WebCore::RenderStyle::operator==):
              (WebCore::RenderStyle::inheritedNotEqual):
              (WebCore::RenderStyle::diff):
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              (WebCore::RenderText::setStyle):
              (WebCore::RenderText::setTextInternal):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::write):
              (WebCore::externalRepresentation):
              * rendering/SVGInlineFlowBox.cpp:
              * rendering/SVGInlineFlowBox.h:
              * rendering/SVGRenderTreeAsText.cpp:
              * rendering/SVGRenderTreeAsText.h:
              * rendering/SVGRootInlineBox.cpp:
              * rendering/SVGRootInlineBox.h:
              * rendering/bidi.cpp:
              (WebCore::shouldPreserveNewline):
              (WebCore::RenderBlock::findNextLineBreak):
              * webcore-base.bkl:
              * xml/NativeXPathNSResolver.cpp:
              * xml/NativeXPathNSResolver.h:
              * xml/XPathEvaluator.cpp:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.cpp:
              * xml/XPathExpression.h:
              * xml/XPathExpressionNode.cpp:
              * xml/XPathExpressionNode.h:
              * xml/XPathFunctions.cpp:
              * xml/XPathFunctions.h:
              * xml/XPathGrammar.y:
              * xml/XPathNSResolver.cpp:
              * xml/XPathNSResolver.h:
              * xml/XPathNamespace.cpp:
              * xml/XPathNamespace.h:
              * xml/XPathParser.cpp:
              * xml/XPathParser.h:
              * xml/XPathPath.cpp:
              * xml/XPathPath.h:
              * xml/XPathPredicate.cpp:
              * xml/XPathPredicate.h:
              * xml/XPathResult.cpp:
              * xml/XPathResult.h:
              * xml/XPathStep.cpp:
              * xml/XPathStep.h:
              * xml/XPathUtil.cpp:
              * xml/XPathUtil.h:
              * xml/XPathValue.cpp:
              * xml/XPathValue.h:
              * xml/XPathVariableReference.cpp:
              * xml/XPathVariableReference.h:
              * xml/XSLImportRule.cpp:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessor.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2948ef7
  24. 03 Feb, 2007 1 commit
    • zimmermann's avatar
      Reviewed by Eric & Maciej. · 22fd803e
      zimmermann authored
      Fix serveral <use> issues:
      - When events are dispatch to a referenced element, the actual event.target
      has to be set to the corresponding SVGElementInstance object
      
      - Node::shadowAncestorNode() should _not_ return the shadowParentNode for SVG elements
      This is only needed for the HTML forms concept and breaks event dispatching for SVG shadow tree elements.
      
      - Add SVGElementInstance as possible EventTarget in bindings/js/kjs_dom.cpp
      (Now event.target returns the actual SVGElementInstance object for a shadow tree element)
      
      Fixes: http://bugs.webkit.org/show_bug.cgi?id=12502 (Reproducible crash when browsing SVG map.)
      Fixes: http://bugs.webkit.org/show_bug.cgi?id=12511 (<use> has event dispatching issues)
      
      Added test: svg/custom/use-event-handler-on-use-element.svg
      Added test: svg/custom/use-event-handler-on-referenced-element.svg
      Added test: svg/custom/use-elementInstance-event-target.svg
      Added test: svg/custom/use-elementInstance-methods.svg
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22fd803e
  25. 30 Jan, 2007 1 commit
    • darin's avatar
      Reviewed by Maciej. · 7ae06264
      darin authored
              * dom/EventTarget.h:
              * dom/EventTarget.cpp: (WebCore::EventTarget::toNode):
              Use EventTargetNode instead of Node. Removed unneeded includes.
              Make EventTarget's destructor protected to make it clear that you
              should never delete one.
      
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::toNode):
              Tweaked formatting. Updated for change to return value.
      
              * platform/graphics/BitmapImage.h: Updated comment for clarity.
              Marked FrameData Noncopyable.
      
              * platform/graphics/Image.h: Tweaked formatting.
      
              * platform/graphics/ImageAnimationObserver.h:
              Make ImageAnimationObserver's destructor protected to make it clear that you
              should never delete one.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ae06264
  26. 15 Dec, 2006 1 commit
    • ap's avatar
      Reviewed by Darin. · 5f8a6dad
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=11610
              XMLHttpRequest.onreadystatechange doesn't provide access to the request object
      
              Created a separate EventTarget class, now that EventTargetNode isn't the only kind.
      
      WebCore:
              * WebCore.xcodeproj/project.pbxproj: Added EventTarget.{h,cpp}
      
              * bindings/js/kjs_dom.cpp:
              (KJS::toJS): Added an EventTarget variant.
              * bindings/js/kjs_dom.h: Added toJS() for EventTarget; some minor style fixes.
      
              * bindings/objc/DOM.mm:
              (+[DOMNode _eventTargetWith:WebCore::]):
              * bindings/scripts/CodeGeneratorObjC.pm:
              Added an EventTarget->DOMEventTarget converter in DOMNode (WebCoreInternal). 
              It only works for nodes, since we don't have an ObjC binding for XMLHttpRequest.
              Corrected spelling of internalHeaderContent.
      
              * dom/Event.cpp:
              (WebCore::Event::setTarget):
              * dom/Event.h:
              (WebCore::Event::target):
              (WebCore::Event::currentTarget):
              (WebCore::Event::setCurrentTarget):
              These methods now work with EventTargets instead of Nodes.
      
              * dom/EventTarget.cpp: Added.
              (WebCore::EventTarget::~EventTarget):
              (WebCore::EventTarget::toNode):
              (WebCore::EventTarget::toXMLHttpRequest):
              * dom/EventTarget.h: Added.
              (WebCore::EventTarget::ref):
              (WebCore::EventTarget::deref):
              Originally, my intention was to share much of the implementation between 
              EventTargetNode and XHR, but now I don't see anything substantial worth sharing.
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchGenericEvent): Cast Node to EventTargetNode.
      
              * dom/EventTargetNode.h: Made EventTarget methods virtual.
              (WebCore::EventTargetNode::toNode): Added poor man's RTTI to upcast from EventTarget.
              (WebCore::EventTargetNode::refEventTarget):
              (WebCore::EventTargetNode::derefEventTarget):
      
              * dom/MouseEvent.cpp:
              (WebCore::MouseEvent::toElement):
              (WebCore::MouseEvent::fromElement):
              * dom/MouseRelatedEvent.cpp:
              (WebCore::MouseRelatedEvent::receivedTarget):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              * html/HTMLLabelElement.cpp:
              (WebCore::HTMLLabelElement::defaultEventHandler):
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::handleContextMenuEvent):
              * rendering/RenderSlider.cpp:
              (WebCore::RenderSlider::mouseEventIsInThumb):
              Cast from EventTarget to Node as appropriate.
      
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::dispatchEvent):
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              Set target and currentTarget before dispatching.
      
              * xml/xmlhttprequest.h: Made EventTarget methods virtual, added a bool tempEvent parameter
              to match EventTargetNode.
              (WebCore::XMLHttpRequest::toXMLHttpRequest): Added poor man's RTTI to upcast from EventTarget.
              (WebCore::XMLHttpRequest::refEventTarget):
              (WebCore::XMLHttpRequest::derefEventTarget):
      
      LayoutTests:
              * fast/dom/xmlhttprequest-get-expected.txt:
              * http/tests/xmlhttprequest/event-target-expected.txt:
              * http/tests/xmlhttprequest/event-target.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f8a6dad
  27. 12 Dec, 2006 2 commits
    • andersca's avatar
      Rubber Stamped by Geoff. · c840f6fd
      andersca authored
              * platform/Base64.cpp:
              * platform/Base64.h:
              Put functions inside of the WebCore namespace.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c840f6fd
    • ap's avatar
      http://bugs.webkit.org/show_bug.cgi?id=9673 · dcae628b
      ap authored
              Add support for window.atob() and window.btoa()
      
              Reviewed by Darin.
      
      JavaScriptCore:
              * JavaScriptCore.exp: Export UString::is8Bit().
              * JavaScriptCore.xcodeproj/project.pbxproj: Added StringExtras.h as
              a private header.
      
      WebCore:
              * WebCore.xcodeproj/project.pbxproj: Added Base64.{h,cpp}
              * bindings/js/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * platform/Base64.cpp: Added.
              (base64Encode):
              (base64Decode):
              * platform/Base64.h: Added.
              * ForwardingHeaders/wtf/StringExtras.h: Added.
              * platform/DeprecatedString.cpp: Use strncasecmp from StringExtras.
      
      LayoutTests:
              * fast/dom/Window/atob-btoa-expected.txt: Added.
              * fast/dom/Window/atob-btoa.html: Added.
              * fast/dom/Window/btoa-pnglet-expected.checksum: Added.
              * fast/dom/Window/btoa-pnglet-expected.png: Added.
              * fast/dom/Window/btoa-pnglet-expected.txt: Added.
              * fast/dom/Window/btoa-pnglet.html: Added.
              * fast/dom/Window/window-properties-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcae628b
  28. 25 Sep, 2006 1 commit
    • andersca's avatar
      2006-09-25 Anders Carlsson <acarlsson@apple.com> · faf7bea9
      andersca authored
              Reviewed by Maciej.
      
              * css/MediaList.cpp:
              Remove unused header.
              
              * dom/Document.cpp:
              (WebCore::Document::clear):
              Use clear instead of iterating through the list of event listeners, removing each one.
              (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
              
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::HTMLKeygenElement):
              (WebCore::HTMLKeygenElement::appendFormData):
              Update due to changes in the SSL key generator.
              
              * ksvg2/svg/SVGAngle.cpp:
              Remove unused header.
              
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::parseMappedAttribute):
              Rename methods and pass Strings instead of DeprecatedStrings to
              parseSeparatedList.
              
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              Remove unused headers.
              
              * ksvg2/svg/SVGHelper.cpp:
              (WebCore::SVGHelper::parseSeparatedList):
              * ksvg2/svg/SVGHelper.h:
              Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
              DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
              
              * ksvg2/svg/SVGLengthList.cpp:
              (WebCore::SVGLengthList::parse):
              * ksvg2/svg/SVGLengthList.h:
              Use Vector<String> instead of DeprecatedStringList.
              
              * loader/Cache.cpp:
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              (WebCore::Cache::remove):
              (WebCore::Cache::get):
              Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
              
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::needReload):
              * loader/DocLoader.h:
              Use a HashSet instead of DeprecatedStringList.
              
              * page/FrameView.h:
              Remove declarations that have no functions.
              
              * platform/SSLKeyGenerator.h:
              * platform/mac/SSLKeyGeneratorMac.mm:
              (WebCore::supportedKeySizes):
              (WebCore::signedPublicKeyAndChallengeString):
              Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
              DeprecatedString.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      faf7bea9
  29. 10 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
  30. 09 Jul, 2006 2 commits
    • darin's avatar
      - move all but the last 12 files out of kwq directory · 3e865649
      darin authored
              - removed a few unused source files I discovered
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Update for new file locations.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * bridge/mac/FrameMac.mm:
              * dom/Element.h:
              * html/HTMLImageLoader.cpp:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              * loader/CachedImage.h:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DeprecatedSlider.cpp:
              * rendering/RenderObject.h:
              * xml/xmlhttprequest.cpp:
              Updated includes as needed for file location changes. Changed
              CachePolicy uses to match new filename and enum names.
      
              * loader/CachedResource.cpp: Removed.
              * loader/CachedResource.h: Removed.
              * loader/CachedResourceClient.h: Removed.
              * loader/CachedResourceClientWalker.cpp: Removed.
              * loader/CachedResourceClientWalker.h: Removed.
              The above files were checked in by accident a while back. The rename of
              CachedObject to CachedResource is now reflected in do-webcore-rename,
              and will be done soon.
      
              * kwq/AffineTransform.cpp: Removed.
              * kwq/AffineTransform.h: Removed.
              * kwq/CacheControl.h: Removed.
              * kwq/DeprecatedPtrQueue.h: Removed.
              * kwq/FileButton.h: Removed.
              * kwq/FileButton.mm: Removed.
              * kwq/ListBox.h: Removed.
              * kwq/ListBox.mm: Removed.
              * kwq/LoaderFunctions.h: Removed.
              * kwq/LoaderFunctions.mm: Removed.
              * kwq/PopUpButton.h: Removed.
              * kwq/PopUpButton.mm: Removed.
              * kwq/SSLKeyGenerator.h: Removed.
              * kwq/SSLKeyGenerator.mm: Removed.
              * kwq/Settings.h: Removed.
              * kwq/TextBox.h: Removed.
              * kwq/TextBox.mm: Removed.
              * kwq/TextField.h: Removed.
              * kwq/TextField.mm: Removed.
              * kwq/WebCoreScrollBar.h: Removed.
              * kwq/WebCoreScrollBar.mm: Removed.
              * kwq/WebCoreSlider.h: Removed.
              * kwq/WebCoreSlider.mm: Removed.
      
              * loader/CachePolicy.h: Added.
              * loader/LoaderFunctions.h: Added.
      
              * loader/mac/LoaderFunctionsMac.mm: Added.
      
              * page/Settings.h: Added.
      
              * platform/AffineTransform.cpp: Added.
              * platform/AffineTransform.h: Added.
              * platform/DeprecatedPtrQueue.h: Added.
              * platform/FileButton.h: Added.
              * platform/ListBox.h: Added.
              * platform/PopUpButton.h: Added.
              * platform/SSLKeyGenerator.h: Added.
              * platform/ScrollBar.h: Added.
              * platform/Slider.h: Added.
              * platform/TextBox.h: Added.
              * platform/TextField.h: Added.
      
              * platform/cg/AffineTransformCG.cpp: Added.
      
              * platform/mac/FileButtonMac.mm: Added.
              * platform/mac/ListBoxMac.mm: Added.
              * platform/mac/PopUpButtonMac.mm: Added.
              * platform/mac/SSLKeyGeneratorMac.mm: Added.
              * platform/mac/ScrollBarMac.mm: Added.
              * platform/mac/ScrollBarMac.mm: Added.
              * platform/mac/SliderMac.mm: Added.
              * platform/mac/SliderMac.mm: Added.
              * platform/mac/TextBoxMac.mm: Added.
              * platform/mac/TextFieldMac.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e865649
    • darin's avatar
      Rubber stamped by Maciej (kinda). · b53ebdcb
      darin authored
              - did the next pass of renaming (used do-webcore-rename script)
                this takes care of most of the remaining KWQ names (almost all)
      
              * WebCore+SVG/DOMList.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreSettings.h:
              * bridge/mac/WebCoreSettings.mm:
              * bridge/win/FrameWin.cpp:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSValueKeywords.in:
              * css/MediaQueryEvaluator.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.cpp:
              * dom/ProcessingInstruction.cpp:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/XMLTokenizer.cpp: Added.
              * dom/xml_tokenizer.cpp: Removed.
              * dom/xml_tokenizer.h: Removed.
              * editing/EditAction.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/Selection.h:
              * editing/SelectionController.h:
              * editing/TextAffinity.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/VisiblePosition.h:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/markup.h:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * html/HTMLDocument.cpp:
              * html/HTMLFontElement.cpp:
              * html/HTMLInputElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextFieldInnerElement.cpp:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasContainer.cpp: Removed.
              * kcanvas/KCanvasContainer.h: Removed.
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.cpp:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGContainer.cpp: Added.
              * kcanvas/RenderSVGContainer.h: Added.
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              * ksvg2/css/CSSValueKeywords.in:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGHelper.cpp:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMatrix.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * kwq/AffineTransform.cpp: Added.
              * kwq/AffineTransform.h: Added.
              * kwq/DeprecatedCString.cpp: Added.
              * kwq/DeprecatedCString.h: Added.
              * kwq/DeprecatedPtrQueue.h: Added.
              * kwq/FileButton.h: Added.
              * kwq/FileButton.mm: Added.
              * kwq/FormDataMac.mm: Added.
              * kwq/KWQCString.cpp: Removed.
              * kwq/KWQCString.h: Removed.
              * kwq/KWQComboBox.h: Removed.
              * kwq/KWQComboBox.mm: Removed.
              * kwq/KWQEditCommand.h: Removed.
              * kwq/KWQEditCommand.mm: Removed.
              * kwq/KWQFileButton.h: Removed.
              * kwq/KWQFileButton.mm: Removed.
              * kwq/KWQFormData.h: Removed.
              * kwq/KWQFormData.mm: Removed.
              * kwq/KWQKHTMLSettings.h: Removed.
              * kwq/KWQKIOGlobal.h: Removed.
              * kwq/KWQKSSLKeyGen.h: Removed.
              * kwq/KWQKSSLKeyGen.mm: Removed.
              * kwq/KWQLineEdit.h: Removed.
              * kwq/KWQLineEdit.mm: Removed.
              * kwq/KWQListBox.h: Removed.
              * kwq/KWQListBox.mm: Removed.
              * kwq/KWQLoader.h: Removed.
              * kwq/KWQLoader.mm: Removed.
              * kwq/KWQPageState.h: Removed.
              * kwq/KWQPageState.mm: Removed.
              * kwq/KWQPtrQueue.h: Removed.
              * kwq/KWQResourceLoader.h: Removed.
              * kwq/KWQResourceLoader.mm: Removed.
              * kwq/KWQScrollBar.h: Removed.
              * kwq/KWQScrollBar.mm: Removed.
              * kwq/KWQSlider.h: Removed.
              * kwq/KWQSlider.mm: Removed.
              * kwq/KWQTextEdit.h: Removed.
              * kwq/KWQTextEdit.mm: Removed.
              * kwq/KWQTextStream.cpp: Removed.
              * kwq/KWQTextStream.h: Removed.
              * kwq/KWQWMatrix.cpp: Removed.
              * kwq/KWQWMatrix.h: Removed.
              * kwq/ListBox.h: Added.
              * kwq/ListBox.mm: Added.
              * kwq/LoaderFunctions.h: Added.
              * kwq/LoaderFunctions.mm: Added.
              * kwq/PopUpButton.h: Added.
              * kwq/PopUpButton.mm: Added.
              * kwq/SSLKeyGenerator.h: Added.
              * kwq/SSLKeyGenerator.mm: Added.
              * kwq/Settings.h: Added.
              * kwq/TextBox.h: Added.
              * kwq/TextBox.mm: Added.
              * kwq/TextField.h: Added.
              * kwq/TextField.mm: Added.
              * kwq/TextStream.cpp: Added.
              * kwq/TextStream.h: Added.
              * kwq/WebCoreEditCommand.h: Added.
              * kwq/WebCoreEditCommand.mm: Added.
              * kwq/WebCorePageState.h: Added.
              * kwq/WebCorePageState.mm: Added.
              * kwq/WebCoreResourceLoaderImp.h: Added.
              * kwq/WebCoreResourceLoaderImp.mm: Added.
              * kwq/WebCoreScrollBar.h: Added.
              * kwq/WebCoreScrollBar.mm: Added.
              * kwq/WebCoreSlider.h: Added.
              * kwq/WebCoreSlider.mm: Added.
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedImage.cpp:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/CachedResource.h:
              * loader/CachedResourceClientWalker.h:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.h:
              * loader/Decoder.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/FormData.h:
              * loader/ImageDocument.cpp:
              * loader/PluginDocument.cpp:
              * loader/TextDocument.cpp:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Page.cpp:
              * page/Page.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FloatSize.h:
              * platform/Font.cpp:
              * platform/KURL.cpp:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SegmentedString.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/String.cpp:
              * platform/StringImpl.cpp:
              * platform/TextEncoding.cpp:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/gdk/FrameGdk.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/CursorMac.mm:
              * platform/mac/DeprecatedStringMac.mm: Added.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/FoundationExtras.h:
              * platform/mac/ImageMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/MouseEventMac.mm: Removed.
              * platform/mac/QStringListMac.mm: Removed.
              * platform/mac/QStringMac.mm: Removed.
              * platform/mac/TransferJobMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WidgetMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DataRef.h:
              * rendering/DeprecatedRenderSelect.cpp:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/DeprecatedSlider.cpp:
              * rendering/InlineFlowBox.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFileButton.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFormElement.cpp:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderInline.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderStyle.cpp: Added.
              * rendering/RenderStyle.h: Added.
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextArea.cpp:
              * rendering/RenderTextControl.cpp: Added.
              * rendering/RenderTextControl.h: Added.
              * rendering/RenderTextField.cpp: Removed.
              * rendering/RenderTextField.h: Removed.
              * rendering/RenderTheme.cpp:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.cpp:
              * rendering/RenderWidget.cpp:
              * rendering/bidi.cpp:
              * rendering/render_style.cpp: Removed.
              * rendering/render_style.h: Removed.
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
              * xpath/impl/XPathParser.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b53ebdcb
  31. 20 Mar, 2006 1 commit
  32. 23 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Geoff. · 5be25ad7
      mjs authored
              - move QStringList to platform, make it portable
      
              * ForwardingHeaders/qstringlist.h: Removed.
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/DocumentImpl.h:
              * kcanvas/KCanvasFilters.h:
              * khtml/xbl/xbl_protohandler.cpp:
              * ksvg2/svg/SVGColorImpl.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElementImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGFEBlendElementImpl.cpp:
              * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp:
              * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp:
              * ksvg2/svg/SVGFECompositeElementImpl.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp:
              * ksvg2/svg/SVGFEFloodElementImpl.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp:
              * ksvg2/svg/SVGFELightElementImpl.cpp:
              * ksvg2/svg/SVGFEMergeElementImpl.cpp:
              * ksvg2/svg/SVGFEOffsetElementImpl.cpp:
              * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp:
              * ksvg2/svg/SVGFETileElementImpl.cpp:
              * ksvg2/svg/SVGFETurbulenceElementImpl.cpp:
              * ksvg2/svg/SVGFitToViewBoxImpl.cpp:
              * ksvg2/svg/SVGLengthListImpl.cpp:
              * ksvg2/svg/SVGNumberListImpl.cpp:
              * ksvg2/svg/SVGPreserveAspectRatioImpl.cpp:
              * ksvg2/svg/SVGStringListImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformableImpl.cpp:
              * kwq/KWQClipboard.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKLocale.h:
              * kwq/KWQKSSLKeyGen.h:
              * kwq/KWQStringList.h: Removed.
              * kwq/KWQStringList.mm: Removed.
              * loader/DocLoader.h:
              * page/Frame.h:
              * platform/QStringList.cpp: Added.
              (QStringList::split):
              (QStringList::pop_front):
              * platform/QStringList.h: Added.
              * platform/mac/QStringListMac.mm: Added.
              (QStringList::getNSArray):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5be25ad7
  33. 11 May, 2004 1 commit