1. 11 Sep, 2011 1 commit
  2. 10 Sep, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Source/WebCore: Crash due to bad data in SVGDocumentExtensions m_pendingResources · bfd3b665
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67488
      
      Patch by Ken Buchanan <kenrb@chromium.org> on 2011-09-10
      Reviewed by Nikolas Zimmermann.
      
      Resolving a crash condition caused by the deletion of
      elements while pending resource entries for those elements are still
      recorded.
      
      * rendering/svg/RenderSVGResourceContainer.cpp:
      (WebCore::RenderSVGResourceContainer::registerResource)
      * svg/SVGDocumentExtensions.h:
      (WebCore::SVGDocumentExtensions::isElementInPendingResources)
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::SVGDocumentExtensions::addPendingResource)
      (WebCore::SVGDocumentExtensions::isElementInPendingResources)
      (WebCore::SVGDocumentExtensions::removeElementFromPendingResources)
      * svg/SVGStyledElement.h:
      (WebCore::SVGStyledElement::clearHasPendingResourcesIfPossible)
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded)
      (WebCore::SVGStyledElement::clearHasPendingResourcesIfPossible)
      * svg/SVGUseElement.cpp:
      (WebCore::SVGUseElement::svgAttributeChanged)
      
      LayoutTests: Crash due to bad data in SVGDocumentExtensions m_pendingResources.
      https://bugs.webkit.org/show_bug.cgi?id=67488
      
      Patch by Ken Buchanan <kenrb@chromium.org> on 2011-09-10
      Reviewed by Nikolas Zimmermann.
      
      Test added: validating that the crash referenced in the bug is not present.
      
      * svg/dom/SVGStyledElement-pendingResource-crash.html: Added.
      * svg/dom/SVGStyledElement-pendingResource-crash-expected.txt: Added.
      * svg/dom/resources/SVGStyledElement-pendingResource-crash.svg: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bfd3b665
  3. 01 Jul, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-07-01 Tim Horton <timothy_horton@apple.com> · cdaaefaa
      commit-queue@webkit.org authored
              Reviewed by Darin Adler.
      
              Errors encountered within SVG documents should be reported to the console
              https://bugs.webkit.org/show_bug.cgi?id=62599
      
              Add SVGElement::reportAttributeParsingError, which will
              write a Web Inspector console message if passed an SVGParsingError
              and the attribute which was being applied, only in the case where
              there is actually an error.
      
              Include the SVG document's URI when writing to the Web Inspector
              console, so that the UI displays both the filename and the line number.
      
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::reportMessage):
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::reportAttributeParsingError):
              * svg/SVGElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cdaaefaa
  4. 01 May, 2011 1 commit
    • zimmermann@webkit.org's avatar
      2011-05-01 Nikolas Zimmermann <nzimmermann@rim.com> · 740e4f2a
      zimmermann@webkit.org authored
              Reviewed by Dirk Schulze.
      
              LEAK: SVGElement leaks when detaching it in a pending resource state
              https://bugs.webkit.org/show_bug.cgi?id=59072
      
              Add testcase that used to leak, the leaks bot will assure they won't in future.
      
              * svg/custom/pending-resource-leak-2-expected.txt: Added.
              * svg/custom/pending-resource-leak-2.svg: Added.
              * svg/custom/pending-resource-leak-3-expected.txt: Added.
              * svg/custom/pending-resource-leak-3.svg: Added.
              * svg/custom/pending-resource-leak-expected.txt: Added.
              * svg/custom/pending-resource-leak.svg: Added.
      
      2011-05-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Dirk Schulze.
      
              LEAK: SVGElement leaks when detaching it in a pending resource state
              https://bugs.webkit.org/show_bug.cgi?id=59072
      
              Make the pending resources set non-refcounted again. We made it refcounted a while ago
              to fix a security bug, as we had dangling pointers in the set in SVGDocumentExtensions.
              Fix the underlying problem, by removing all pending resources referencing to a particular
              SVGElement, upon its destruction or upon removing it from the document.
      
              Example: <rect fill="url(#foo)" id="rect">
              When we try to render the rect, the foo paint server can't be found and thus "foo" will be
              added to the pending resource set, with "rect" as client. When "foo" appears, it would remove
              itself from the pending resource set, and a ref count to the "rect" would be released.
              If "foo" never appears, SVGDocumentExtensions still holds a ref to the <rect>, thus keeping
              it and the associated document alive.
      
              Tests: svg/custom/pending-resource-leak-2.svg
                     svg/custom/pending-resource-leak-3.svg
                     svg/custom/pending-resource-leak.svg
      
              These tests cover several scenarios where we used to leak. Should fix several SVG*Element leaks on the bots.
              I manually tested reloading above testcases dozens of times, before the leak count was incremented by 2 nodes on every reload, that's gone now.
      
              * rendering/svg/RenderSVGResourceContainer.cpp:
              (WebCore::RenderSVGResourceContainer::registerResource):
              * rendering/svg/RenderSVGShadowTreeRootContainer.cpp:
              (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
              * rendering/svg/SVGResources.cpp:
              (WebCore::registerPendingResource):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::addPendingResource):
              (WebCore::SVGDocumentExtensions::hasPendingResources):
              (WebCore::SVGDocumentExtensions::removeElementFromPendingResources):
              (WebCore::SVGDocumentExtensions::removePendingResource):
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.cpp:
              * svg/SVGElement.h:
              * svg/SVGElementRareData.h:
              (WebCore::SVGElementRareData::SVGElementRareData):
              (WebCore::SVGElementRareData::hasPendingResources):
              (WebCore::SVGElementRareData::setHasPendingResources):
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::~SVGStyledElement):
              (WebCore::SVGStyledElement::insertedIntoDocument):
              (WebCore::SVGStyledElement::removedFromDocument):
              (WebCore::SVGStyledElement::hasPendingResources):
              (WebCore::SVGStyledElement::setHasPendingResources):
              * svg/SVGStyledElement.h:
              (WebCore::SVGStyledElement::needsPendingResourceHandling):
              (WebCore::SVGStyledElement::buildPendingResource):
              * svg/SVGUseElement.cpp:
              (WebCore::SVGUseElement::SVGUseElement):
              (WebCore::SVGUseElement::insertedIntoDocument):
              (WebCore::SVGUseElement::svgAttributeChanged):
              (WebCore::SVGUseElement::buildPendingResource):
              * svg/SVGUseElement.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      740e4f2a
  5. 26 Apr, 2011 2 commits
  6. 25 Apr, 2011 2 commits
  7. 20 Apr, 2011 1 commit
    • mihaip@chromium.org's avatar
      2011-04-19 Mihai Parparita <mihaip@chromium.org> · a941ec7f
      mihaip@chromium.org authored
              Reviewed by Adam Barth.
      
              ScriptController.h is included in too many places
              https://bugs.webkit.org/show_bug.cgi?id=58963
      
              Remove ScriptController.h #includes from a bunch of .cpp files where it
              doesn't appear to be necessary.
      
              * bindings/js/JSCustomPositionCallback.cpp:
              * bindings/js/JSCustomPositionErrorCallback.cpp:
              * bindings/js/JSCustomVoidCallback.cpp:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSDOMWindowBase.cpp:
              * bindings/js/JSDOMWindowShell.cpp:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/ScriptDebugServer.cpp:
              * bindings/v8/NPV8Object.cpp:
              * bindings/v8/ScriptCachedFrameData.cpp:
              * bindings/v8/V8DOMWindowShell.cpp:
              * bindings/v8/V8DOMWrapper.cpp:
              * bindings/v8/V8IsolatedContext.cpp:
              * bindings/v8/V8Proxy.cpp:
              * bindings/v8/custom/V8LocationCustom.cpp:
              * dom/Node.cpp:
              * dom/ScriptElement.cpp:
              * dom/XMLDocumentParser.cpp:
              * dom/XMLDocumentParserQt.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLPlugInElement.cpp:
              * html/parser/HTMLConstructionSite.cpp:
              * html/parser/HTMLTreeBuilder.cpp:
              * inspector/InspectorProfilerAgent.cpp:
              * loader/icon/IconDatabase.cpp:
              * page/Chrome.cpp:
              * page/Navigator.cpp:
              * page/Page.cpp:
              * plugins/PluginView.cpp:
              * plugins/gtk/PluginViewGtk.cpp:
              * plugins/qt/PluginViewQt.cpp:
              * plugins/symbian/PluginViewSymbian.cpp:
              * plugins/win/PluginViewWin.cpp:
              * svg/SVGDocumentExtensions.cpp:
              * xml/XMLTreeViewer.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a941ec7f
  8. 28 Feb, 2011 1 commit
  9. 24 Feb, 2011 1 commit
    • krit@webkit.org's avatar
      2011-02-24 Dirk Schulze <krit@webkit.org> · 43de34ce
      krit@webkit.org authored
              Reviewed by Darin Adler.
      
              Removing a SVG animation target during animation crashes WebKit
              https://bugs.webkit.org/show_bug.cgi?id=12065
      
              SVGAnimations with IRI references via 'xlink:href' are slow
              https://bugs.webkit.org/show_bug.cgi?id=49437
      
              Test that WebKit does not crash, if the target element of a SVG animation gets removed, or if
              its id changed.
      
              * platform/mac/svg/custom/animate-target-id-changed-expected.checksum: Added.
              * platform/mac/svg/custom/animate-target-id-changed-expected.png: Added.
              * platform/mac/svg/custom/animate-target-id-changed-expected.txt: Added.
              * platform/mac/svg/custom/animate-target-removed-from-document-expected.checksum: Added.
              * platform/mac/svg/custom/animate-target-removed-from-document-expected.png: Added.
              * platform/mac/svg/custom/animate-target-removed-from-document-expected.txt: Added.
              * svg/custom/animate-target-id-changed.svg: Added.
              * svg/custom/animate-target-removed-from-document.svg: Added.
      2011-02-24  Dirk Schulze  <krit@webkit.org>
      
              Reviewed by Darin Adler.
      
              Removing a SVG animation target during animation crashes WebKit
              https://bugs.webkit.org/show_bug.cgi?id=12065
      
              SVGAnimations with IRI references via 'xlink:href' are slow
              https://bugs.webkit.org/show_bug.cgi?id=49437
      
              Store reference to target element for SVG animation elements. This is important if the
              target gets referenced via 'xlink:href'. At the moment we would call getElementById() multiple
              times on every animation step. A very expensive operation. This will be avoided with this patch.
              On the other hand, we need to be sure that the target element is always valid. The reference is
              reset, if the target was removed from document or its destructor was called. A HashMap in
              SVGDocumentExtensions stores all mappings from target element to all current animation elements.
      
              Tests: svg/custom/animate-target-id-changed.svg
                     svg/custom/animate-target-removed-from-document.svg
      
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions):
              (WebCore::SVGDocumentExtensions::addAnimationElementToTarget): New animation gets applied to target.
              (WebCore::SVGDocumentExtensions::removeAnimationElementFromTarget): Animation stoped, remove it from HashMap.
              (WebCore::SVGDocumentExtensions::removeAllAnimationElementsFromTarget): Target no longer in document, reset all
              references in SVG animation elements. 
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::~SVGElement):
              (WebCore::SVGElement::removedFromDocument):
              (WebCore::SVGElement::attributeChanged):
              * svg/SVGElement.h:
              * svg/SVGHKernElement.cpp:
              (WebCore::SVGHKernElement::removedFromDocument):
              * svg/SVGVKernElement.cpp:
              (WebCore::SVGVKernElement::removedFromDocument):
              * svg/animation/SVGSMILElement.cpp:
              (WebCore::SVGSMILElement::SVGSMILElement):
              (WebCore::SVGSMILElement::removedFromDocument):
              (WebCore::SVGSMILElement::eventBaseFor):
              (WebCore::SVGSMILElement::targetElement):
              * svg/animation/SVGSMILElement.h:
              (WebCore::SVGSMILElement::resetTargetElement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43de34ce
  10. 03 Feb, 2011 1 commit
  11. 08 Jan, 2011 1 commit
  12. 06 Sep, 2010 1 commit
    • jschuh@chromium.org's avatar
      2010-09-06 Justin Schuh <jschuh@chromium.org> · 32370f5c
      jschuh@chromium.org authored
              Reviewed by Nikolas Zimmermann.
      
              Make SVG PendingResources use RefPtr
              https://bugs.webkit.org/show_bug.cgi?id=43587
      
              Convert SVGDocumentExtensions::m_pendingResources to use a RefPtr for 
              pending elements instead of a raw pointer so that pending elements can't
              be freed prematurely.
      
              Test: svg/custom/use-invalid-pattern.svg
      
              * rendering/RenderSVGResourceContainer.cpp:
              (WebCore::RenderSVGResourceContainer::registerResource):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::addPendingResource):
              (WebCore::SVGDocumentExtensions::removePendingResource):
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::insertedIntoDocument):
      2010-09-06  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Nikolas Zimmermann.
      
              Test that an invalid pending resource pattern doesn't crash
              https://bugs.webkit.org/show_bug.cgi?id=43587
      
              * platform/mac-snowleopard/svg: Added.
              * platform/mac-snowleopard/svg/custom: Added.
              * platform/mac-snowleopard/svg/custom/use-invalid-pattern-expected.txt: Added.
              * svg/custom/use-invalid-pattern.svg: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32370f5c
  13. 31 Aug, 2010 1 commit
    • darin@apple.com's avatar
      2010-08-31 Darin Adler <darin@apple.com> · 69b3ef4b
      darin@apple.com authored
              Reviewed by Simon Fraser.
      
              Make DOM classes start with a reference count of 1, like all other RefCounted
              https://bugs.webkit.org/show_bug.cgi?id=28068
      
              * dom/Document.cpp:
              (WebCore::Document::accessSVGExtensions): Use adoptPtr instead of set.
      
              * dom/Document.h: Removed initialRefCount in Node constructor. It's always 1 now.
      
              * dom/Node.h: Removed CreateWithZeroRefCountFlag, CreateStyledElementZeroRefCount,
              CreateSVGElementZeroRefCount, and initialRefCount.
      
              * platform/TreeShared.h: Removed initialRefCount argument. It's always 1 now.
      
              * rendering/RenderSVGShadowTreeRootContainer.cpp:
              (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement): Use create
              instead of new.
      
              * rendering/SVGResources.h: Inherit from Noncopyable.
      
              * rendering/SVGResourcesCache.cpp:
              (WebCore::SVGResourcesCache::~SVGResourcesCache): Removed unneeded special
              case code.
      
              * rendering/SVGShadowTreeElements.cpp:
              (WebCore::SVGShadowTreeContainerElement::create): Added.
              (WebCore::SVGShadowTreeRootElement::SVGShadowTreeRootElement): Made argument
              type more specific.
              (WebCore::SVGShadowTreeRootElement::create): Added.
              * rendering/SVGShadowTreeElements.h: Added create functions, and made the
              argument type more specific.
      
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::SVGDocumentExtensions): Use adoptPtr.
              * svg/graphics/SVGImage.cpp:
              (WebCore::SVGImage::dataChanged): Use adoptPtr instead of set.
      
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::SVGElement): Use CreateSVGElement instead of
              CreateSVGElementZeroRefCount.
              (WebCore::SVGElement::create): Use adoptRef.
      
              * wml/WMLElement.cpp:
              (WebCore::WMLElement::WMLElement): Use CreateStyledElement instead of
              CreateStyledElementZeroRefCount.
              (WebCore::WMLElement::create): Use adoptRef.
      
              * svg/SVGAElement.cpp:
              (WebCore::SVGAElement::create):
              * svg/SVGAltGlyphElement.cpp:
              (WebCore::SVGAltGlyphElement::create):
              * svg/SVGAnimateColorElement.cpp:
              (WebCore::SVGAnimateColorElement::create):
              * svg/SVGAnimateElement.cpp:
              (WebCore::SVGAnimateElement::create):
              * svg/SVGAnimateMotionElement.cpp:
              (WebCore::SVGAnimateMotionElement::create):
              * svg/SVGAnimateTransformElement.cpp:
              (WebCore::SVGAnimateTransformElement::create):
              * svg/SVGCircleElement.cpp:
              (WebCore::SVGCircleElement::create):
              * svg/SVGClipPathElement.cpp:
              (WebCore::SVGClipPathElement::create):
              * svg/SVGCursorElement.cpp:
              (WebCore::SVGCursorElement::create):
              * svg/SVGDefsElement.cpp:
              (WebCore::SVGDefsElement::create):
              * svg/SVGDescElement.cpp:
              (WebCore::SVGDescElement::create):
              * svg/SVGEllipseElement.cpp:
              (WebCore::SVGEllipseElement::create):
              * svg/SVGFEBlendElement.cpp:
              (WebCore::SVGFEBlendElement::create):
              * svg/SVGFEColorMatrixElement.cpp:
              (WebCore::SVGFEColorMatrixElement::create):
              * svg/SVGFEComponentTransferElement.cpp:
              (WebCore::SVGFEComponentTransferElement::create):
              * svg/SVGFECompositeElement.cpp:
              (WebCore::SVGFECompositeElement::create):
              * svg/SVGFEConvolveMatrixElement.cpp:
              (WebCore::SVGFEConvolveMatrixElement::create):
              * svg/SVGFEDiffuseLightingElement.cpp:
              (WebCore::SVGFEDiffuseLightingElement::create):
              * svg/SVGFEDisplacementMapElement.cpp:
              (WebCore::SVGFEDisplacementMapElement::create):
              * svg/SVGFEDistantLightElement.cpp:
              (WebCore::SVGFEDistantLightElement::create):
              * svg/SVGFEFloodElement.cpp:
              (WebCore::SVGFEFloodElement::create):
              * svg/SVGFEFuncAElement.cpp:
              (WebCore::SVGFEFuncAElement::create):
              * svg/SVGFEFuncBElement.cpp:
              (WebCore::SVGFEFuncBElement::create):
              * svg/SVGFEFuncGElement.cpp:
              (WebCore::SVGFEFuncGElement::create):
              * svg/SVGFEFuncRElement.cpp:
              (WebCore::SVGFEFuncRElement::create):
              * svg/SVGFEGaussianBlurElement.cpp:
              (WebCore::SVGFEGaussianBlurElement::create):
              * svg/SVGFEImageElement.cpp:
              (WebCore::SVGFEImageElement::create):
              * svg/SVGFEMergeElement.cpp:
              (WebCore::SVGFEMergeElement::create):
              * svg/SVGFEMergeNodeElement.cpp:
              (WebCore::SVGFEMergeNodeElement::create):
              * svg/SVGFEMorphologyElement.cpp:
              (WebCore::SVGFEMorphologyElement::create):
              * svg/SVGFEOffsetElement.cpp:
              (WebCore::SVGFEOffsetElement::create):
              * svg/SVGFEPointLightElement.cpp:
              (WebCore::SVGFEPointLightElement::create):
              * svg/SVGFESpecularLightingElement.cpp:
              (WebCore::SVGFESpecularLightingElement::create):
              * svg/SVGFESpotLightElement.cpp:
              (WebCore::SVGFESpotLightElement::create):
              * svg/SVGFETileElement.cpp:
              (WebCore::SVGFETileElement::create):
              * svg/SVGFETurbulenceElement.cpp:
              (WebCore::SVGFETurbulenceElement::create):
              * svg/SVGFilterElement.cpp:
              (WebCore::SVGFilterElement::create):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::create):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::create):
              * svg/SVGFontFaceFormatElement.cpp:
              (WebCore::SVGFontFaceFormatElement::create):
              * svg/SVGFontFaceNameElement.cpp:
              (WebCore::SVGFontFaceNameElement::create):
              * svg/SVGFontFaceSrcElement.cpp:
              (WebCore::SVGFontFaceSrcElement::create):
              * svg/SVGFontFaceUriElement.cpp:
              (WebCore::SVGFontFaceUriElement::create):
              * svg/SVGForeignObjectElement.cpp:
              (WebCore::SVGForeignObjectElement::create):
              * svg/SVGGElement.cpp:
              (WebCore::SVGGElement::create):
              * svg/SVGGlyphElement.cpp:
              (WebCore::SVGGlyphElement::create):
              * svg/SVGHKernElement.cpp:
              (WebCore::SVGHKernElement::create):
              * svg/SVGImageElement.cpp:
              (WebCore::SVGImageElement::create):
              * svg/SVGLineElement.cpp:
              (WebCore::SVGLineElement::create):
              * svg/SVGLinearGradientElement.cpp:
              (WebCore::SVGLinearGradientElement::create):
              * svg/SVGMPathElement.cpp:
              (WebCore::SVGMPathElement::create):
              * svg/SVGMarkerElement.cpp:
              (WebCore::SVGMarkerElement::create):
              * svg/SVGMaskElement.cpp:
              (WebCore::SVGMaskElement::create):
              * svg/SVGMetadataElement.cpp:
              (WebCore::SVGMetadataElement::create):
              * svg/SVGMissingGlyphElement.cpp:
              (WebCore::SVGMissingGlyphElement::create):
              * svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::create):
              * svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::create):
              * svg/SVGPolygonElement.cpp:
              (WebCore::SVGPolygonElement::create):
              * svg/SVGPolylineElement.cpp:
              (WebCore::SVGPolylineElement::create):
              * svg/SVGRadialGradientElement.cpp:
              (WebCore::SVGRadialGradientElement::create):
              * svg/SVGRectElement.cpp:
              (WebCore::SVGRectElement::create):
              * svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::create):
              (WebCore::SVGSVGElement::currentView):
              * svg/SVGScriptElement.cpp:
              (WebCore::SVGScriptElement::create):
              * svg/SVGSetElement.cpp:
              (WebCore::SVGSetElement::create):
              * svg/SVGStopElement.cpp:
              (WebCore::SVGStopElement::create):
              * svg/SVGStyleElement.cpp:
              (WebCore::SVGStyleElement::create):
              * svg/SVGSwitchElement.cpp:
              (WebCore::SVGSwitchElement::create):
              * svg/SVGSymbolElement.cpp:
              (WebCore::SVGSymbolElement::create):
              * svg/SVGTRefElement.cpp:
              (WebCore::SVGTRefElement::create):
              * svg/SVGTSpanElement.cpp:
              (WebCore::SVGTSpanElement::create):
              * svg/SVGTextElement.cpp:
              (WebCore::SVGTextElement::create):
              * svg/SVGTextPathElement.cpp:
              (WebCore::SVGTextPathElement::create):
              * svg/SVGTitleElement.cpp:
              (WebCore::SVGTitleElement::create):
              * svg/SVGUseElement.cpp:
              (WebCore::SVGUseElement::create):
              (WebCore::SVGUseElement::expandUseElementsInShadowTree):
              * svg/SVGVKernElement.cpp:
              (WebCore::SVGVKernElement::create):
              * svg/SVGViewElement.cpp:
              (WebCore::SVGViewElement::create):
              * wml/WMLAElement.cpp:
              (WebCore::WMLAElement::create):
              * wml/WMLAccessElement.cpp:
              (WebCore::WMLAccessElement::create):
              * wml/WMLAnchorElement.cpp:
              (WebCore::WMLAnchorElement::create):
              * wml/WMLBRElement.cpp:
              (WebCore::WMLBRElement::create):
              * wml/WMLCardElement.cpp:
              (WebCore::WMLCardElement::create):
              * wml/WMLDoElement.cpp:
              (WebCore::WMLDoElement::create):
              * wml/WMLDocument.h:
              (WebCore::WMLDocument::create):
              * wml/WMLFieldSetElement.cpp:
              (WebCore::WMLFieldSetElement::create):
              * wml/WMLFormControlElement.cpp:
              (WebCore::WMLFormControlElement::create):
              * wml/WMLGoElement.cpp:
              (WebCore::WMLGoElement::create):
              * wml/WMLImageElement.cpp:
              (WebCore::WMLImageElement::create):
              * wml/WMLInputElement.cpp:
              (WebCore::WMLInputElement::create):
              * wml/WMLInsertedLegendElement.cpp:
              (WebCore::WMLInsertedLegendElement::create):
              * wml/WMLIntrinsicEvent.cpp:
              (WebCore::WMLIntrinsicEvent::create):
              * wml/WMLMetaElement.cpp:
              (WebCore::WMLMetaElement::create):
              * wml/WMLNoopElement.cpp:
              (WebCore::WMLNoopElement::create):
              * wml/WMLOnEventElement.cpp:
              (WebCore::WMLOnEventElement::create):
              * wml/WMLOptGroupElement.cpp:
              (WebCore::WMLOptGroupElement::create):
              * wml/WMLOptionElement.cpp:
              (WebCore::WMLOptionElement::create):
              * wml/WMLPElement.cpp:
              (WebCore::WMLPElement::create):
              * wml/WMLPostfieldElement.cpp:
              (WebCore::WMLPostfieldElement::create):
              * wml/WMLPrevElement.cpp:
              (WebCore::WMLPrevElement::create):
              * wml/WMLRefreshElement.cpp:
              (WebCore::WMLRefreshElement::create):
              * wml/WMLSelectElement.cpp:
              (WebCore::WMLSelectElement::create):
              * wml/WMLSetvarElement.cpp:
              (WebCore::WMLSetvarElement::create):
              * wml/WMLTableElement.cpp:
              (WebCore::WMLTableElement::create):
              * wml/WMLTaskElement.cpp:
              (WebCore::WMLTaskElement::create):
              * wml/WMLTemplateElement.cpp:
              (WebCore::WMLTemplateElement::create):
              * wml/WMLTimerElement.cpp:
              (WebCore::WMLTimerElement::create):
              Use adoptRef.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69b3ef4b
  14. 30 Aug, 2010 1 commit
    • darin@apple.com's avatar
      2010-08-30 Darin Adler <darin@apple.com> · c8b8f87b
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              Make SVG constructors private to make sure callers all use create
              https://bugs.webkit.org/show_bug.cgi?id=44872
      
              Made as many members private and protected as possible, and got rid of many
              unneeded empty constructor and destructor definitions, in some cases changing
              a class to be non-polymorphic. Made some functions inline. Used the word document
              instead of the abbreviation doc. Removed unneeded explicit base class
              initialization in cases where it is no different from the default behavior.
      
              * svg/SVGAElement.cpp:
              (WebCore::SVGAElement::SVGAElement):
              (WebCore::SVGAElement::childShouldCreateRenderer):
              * svg/SVGAElement.h:
              * svg/SVGAltGlyphElement.cpp:
              (WebCore::SVGAltGlyphElement::SVGAltGlyphElement):
              * svg/SVGAltGlyphElement.h:
              * svg/SVGAngle.cpp:
              * svg/SVGAngle.h:
              * svg/SVGAnimateColorElement.cpp:
              (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
              * svg/SVGAnimateColorElement.h:
              * svg/SVGAnimateElement.cpp:
              (WebCore::SVGAnimateElement::SVGAnimateElement):
              * svg/SVGAnimateElement.h:
              * svg/SVGAnimateMotionElement.cpp:
              (WebCore::SVGAnimateMotionElement::SVGAnimateMotionElement):
              * svg/SVGAnimateMotionElement.h:
              * svg/SVGAnimateTransformElement.cpp:
              (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
              * svg/SVGAnimateTransformElement.h:
              * svg/SVGAnimatedPathData.cpp:
              * svg/SVGAnimatedPathData.h:
              * svg/SVGAnimatedPoints.cpp:
              * svg/SVGAnimatedPoints.h:
              * svg/SVGAnimationElement.cpp:
              (WebCore::SVGAnimationElement::SVGAnimationElement):
              * svg/SVGAnimationElement.h:
              * svg/SVGCircleElement.cpp:
              (WebCore::SVGCircleElement::SVGCircleElement):
              * svg/SVGCircleElement.h:
              * svg/SVGClipPathElement.cpp:
              (WebCore::SVGClipPathElement::SVGClipPathElement):
              * svg/SVGClipPathElement.h:
              * svg/SVGColor.cpp:
              * svg/SVGColor.h:
              * svg/SVGComponentTransferFunctionElement.cpp:
              (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
              * svg/SVGComponentTransferFunctionElement.h:
              * svg/SVGCursorElement.cpp:
              (WebCore::SVGCursorElement::SVGCursorElement):
              * svg/SVGCursorElement.h:
              * svg/SVGDefsElement.cpp:
              (WebCore::SVGDefsElement::SVGDefsElement):
              * svg/SVGDefsElement.h:
              * svg/SVGDescElement.cpp:
              (WebCore::SVGDescElement::SVGDescElement):
              * svg/SVGDescElement.h:
              * svg/SVGDocument.cpp:
              * svg/SVGDocument.h:
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
              (WebCore::SVGDocumentExtensions::reportWarning):
              (WebCore::SVGDocumentExtensions::reportError):
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.h:
              * svg/SVGElementInstanceList.h:
              * svg/SVGEllipseElement.cpp:
              (WebCore::SVGEllipseElement::SVGEllipseElement):
              * svg/SVGEllipseElement.h:
              * svg/SVGExternalResourcesRequired.cpp:
              * svg/SVGExternalResourcesRequired.h:
              * svg/SVGFEBlendElement.cpp:
              (WebCore::SVGFEBlendElement::SVGFEBlendElement):
              * svg/SVGFEBlendElement.h:
              * svg/SVGFEColorMatrixElement.cpp:
              (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
              * svg/SVGFEColorMatrixElement.h:
              * svg/SVGFEComponentTransferElement.cpp:
              (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
              * svg/SVGFEComponentTransferElement.h:
              * svg/SVGFECompositeElement.cpp:
              (WebCore::SVGFECompositeElement::SVGFECompositeElement):
              * svg/SVGFECompositeElement.h:
              * svg/SVGFEConvolveMatrixElement.cpp:
              (WebCore::SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement):
              * svg/SVGFEConvolveMatrixElement.h:
              * svg/SVGFEDiffuseLightingElement.cpp:
              (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
              * svg/SVGFEDiffuseLightingElement.h:
              * svg/SVGFEDisplacementMapElement.cpp:
              (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
              * svg/SVGFEDisplacementMapElement.h:
              * svg/SVGFEDistantLightElement.cpp:
              (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
              * svg/SVGFEDistantLightElement.h:
              * svg/SVGFEFloodElement.cpp:
              (WebCore::SVGFEFloodElement::SVGFEFloodElement):
              * svg/SVGFEFloodElement.h:
              * svg/SVGFEFuncAElement.cpp:
              (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
              * svg/SVGFEFuncAElement.h:
              * svg/SVGFEFuncBElement.cpp:
              (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
              * svg/SVGFEFuncBElement.h:
              * svg/SVGFEFuncGElement.cpp:
              (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
              * svg/SVGFEFuncGElement.h:
              * svg/SVGFEFuncRElement.cpp:
              (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
              * svg/SVGFEFuncRElement.h:
              * svg/SVGFEGaussianBlurElement.cpp:
              (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
              * svg/SVGFEGaussianBlurElement.h:
              * svg/SVGFEImageElement.cpp:
              (WebCore::SVGFEImageElement::SVGFEImageElement):
              * svg/SVGFEImageElement.h:
              * svg/SVGFELightElement.cpp:
              (WebCore::SVGFELightElement::SVGFELightElement):
              * svg/SVGFELightElement.h:
              * svg/SVGFEMergeElement.cpp:
              (WebCore::SVGFEMergeElement::SVGFEMergeElement):
              * svg/SVGFEMergeElement.h:
              * svg/SVGFEMergeNodeElement.cpp:
              (WebCore::SVGFEMergeNodeElement::SVGFEMergeNodeElement):
              * svg/SVGFEMergeNodeElement.h:
              * svg/SVGFEMorphologyElement.cpp:
              (WebCore::SVGFEMorphologyElement::SVGFEMorphologyElement):
              * svg/SVGFEMorphologyElement.h:
              * svg/SVGFEOffsetElement.cpp:
              (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
              * svg/SVGFEOffsetElement.h:
              * svg/SVGFEPointLightElement.cpp:
              (WebCore::SVGFEPointLightElement::SVGFEPointLightElement):
              (WebCore::SVGFEPointLightElement::lightSource):
              * svg/SVGFEPointLightElement.h:
              * svg/SVGFESpecularLightingElement.cpp:
              (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
              * svg/SVGFESpecularLightingElement.h:
              * svg/SVGFESpotLightElement.cpp:
              (WebCore::SVGFESpotLightElement::SVGFESpotLightElement):
              * svg/SVGFESpotLightElement.h:
              * svg/SVGFETileElement.cpp:
              (WebCore::SVGFETileElement::SVGFETileElement):
              * svg/SVGFETileElement.h:
              * svg/SVGFETurbulenceElement.cpp:
              (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
              * svg/SVGFETurbulenceElement.h:
              * svg/SVGFilterElement.cpp:
              (WebCore::SVGFilterElement::SVGFilterElement):
              * svg/SVGFilterElement.h:
              * svg/SVGFilterPrimitiveStandardAttributes.cpp:
              (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
              * svg/SVGFilterPrimitiveStandardAttributes.h:
              * svg/SVGFitToViewBox.cpp:
              * svg/SVGFitToViewBox.h:
              * svg/SVGFontData.cpp:
              * svg/SVGFontData.h:
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::SVGFontElement):
              * svg/SVGFontElement.h:
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::SVGFontFaceElement):
              * svg/SVGFontFaceElement.h:
              * svg/SVGFontFaceFormatElement.cpp:
              (WebCore::SVGFontFaceFormatElement::SVGFontFaceFormatElement):
              * svg/SVGFontFaceFormatElement.h:
              * svg/SVGFontFaceNameElement.cpp:
              (WebCore::SVGFontFaceNameElement::SVGFontFaceNameElement):
              * svg/SVGFontFaceNameElement.h:
              * svg/SVGFontFaceSrcElement.cpp:
              (WebCore::SVGFontFaceSrcElement::SVGFontFaceSrcElement):
              * svg/SVGFontFaceSrcElement.h:
              * svg/SVGFontFaceUriElement.cpp:
              (WebCore::SVGFontFaceUriElement::SVGFontFaceUriElement):
              * svg/SVGFontFaceUriElement.h:
              * svg/SVGForeignObjectElement.cpp:
              (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
              * svg/SVGForeignObjectElement.h:
              * svg/SVGGElement.cpp:
              (WebCore::SVGGElement::SVGGElement):
              * svg/SVGGElement.h:
              * svg/SVGGlyphElement.cpp:
              (WebCore::SVGGlyphElement::SVGGlyphElement):
              * svg/SVGGlyphElement.h:
              * svg/SVGGradientElement.cpp:
              (WebCore::SVGGradientElement::SVGGradientElement):
              * svg/SVGGradientElement.h:
              * svg/SVGHKernElement.cpp:
              (WebCore::SVGHKernElement::SVGHKernElement):
              * svg/SVGHKernElement.h:
              * svg/SVGImageElement.cpp:
              (WebCore::SVGImageElement::SVGImageElement):
              * svg/SVGImageElement.h:
              * svg/SVGImageLoader.cpp:
              * svg/SVGImageLoader.h:
              * svg/SVGLangSpace.cpp:
              * svg/SVGLangSpace.h:
              * svg/SVGLengthList.cpp:
              * svg/SVGLengthList.h:
              * svg/SVGLineElement.cpp:
              (WebCore::SVGLineElement::SVGLineElement):
              * svg/SVGLineElement.h:
              * svg/SVGLinearGradientElement.cpp:
              (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
              * svg/SVGLinearGradientElement.h:
              * svg/SVGLocatable.cpp:
              * svg/SVGLocatable.h:
              * svg/SVGMPathElement.cpp:
              (WebCore::SVGMPathElement::SVGMPathElement):
              * svg/SVGMPathElement.h:
              * svg/SVGMarkerElement.cpp:
              (WebCore::SVGMarkerElement::SVGMarkerElement):
              * svg/SVGMarkerElement.h:
              * svg/SVGMaskElement.cpp:
              (WebCore::SVGMaskElement::SVGMaskElement):
              * svg/SVGMaskElement.h:
              * svg/SVGMetadataElement.cpp:
              (WebCore::SVGMetadataElement::SVGMetadataElement):
              * svg/SVGMetadataElement.h:
              * svg/SVGMissingGlyphElement.cpp:
              (WebCore::SVGMissingGlyphElement::SVGMissingGlyphElement):
              * svg/SVGMissingGlyphElement.h:
              * svg/SVGNumberList.cpp:
              * svg/SVGNumberList.h:
              * svg/SVGPaint.cpp:
              * svg/SVGPaint.h:
              * svg/SVGParserUtilities.cpp:
              (WebCore::genericParseNumber):
              (WebCore::parseNumber):
              * svg/SVGPathBlender.cpp:
              * svg/SVGPathBlender.h:
              * svg/SVGPathBuilder.h:
              * svg/SVGPathByteStreamBuilder.h:
              * svg/SVGPathByteStreamSource.cpp:
              * svg/SVGPathByteStreamSource.h:
              * svg/SVGPathConsumer.h:
              * svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::SVGPathElement):
              * svg/SVGPathElement.h:
              * svg/SVGPathParser.cpp:
              * svg/SVGPathParser.h:
              * svg/SVGPathSeg.cpp:
              * svg/SVGPathSeg.h:
              * svg/SVGPathSegArc.h:
              * svg/SVGPathSegClosePath.cpp:
              * svg/SVGPathSegClosePath.h:
              * svg/SVGPathSegCurvetoCubic.h:
              * svg/SVGPathSegCurvetoCubicSmooth.h:
              * svg/SVGPathSegCurvetoQuadratic.h:
              * svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * svg/SVGPathSegLineto.h:
              * svg/SVGPathSegLinetoHorizontal.h:
              * svg/SVGPathSegLinetoVertical.h:
              * svg/SVGPathSegList.cpp:
              * svg/SVGPathSegList.h:
              * svg/SVGPathSegListBuilder.h:
              * svg/SVGPathSegListSource.cpp:
              * svg/SVGPathSegListSource.h:
              * svg/SVGPathSegMoveto.h:
              * svg/SVGPathSource.h:
              * svg/SVGPathStringBuilder.cpp:
              * svg/SVGPathStringBuilder.h:
              * svg/SVGPathStringSource.cpp:
              * svg/SVGPathStringSource.h:
              * svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::SVGPatternElement):
              * svg/SVGPatternElement.h:
              * svg/SVGPointList.cpp:
              * svg/SVGPointList.h:
              * svg/SVGPolyElement.cpp:
              (WebCore::SVGPolyElement::SVGPolyElement):
              * svg/SVGPolyElement.h:
              * svg/SVGPolygonElement.cpp:
              (WebCore::SVGPolygonElement::SVGPolygonElement):
              * svg/SVGPolygonElement.h:
              * svg/SVGPolylineElement.cpp:
              (WebCore::SVGPolylineElement::SVGPolylineElement):
              * svg/SVGPolylineElement.h:
              * svg/SVGPreserveAspectRatio.cpp:
              * svg/SVGPreserveAspectRatio.h:
              * svg/SVGRadialGradientElement.cpp:
              (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
              * svg/SVGRadialGradientElement.h:
              * svg/SVGRectElement.cpp:
              (WebCore::SVGRectElement::SVGRectElement):
              * svg/SVGRectElement.h:
              * svg/SVGSVGElement.h:
              * svg/SVGScriptElement.cpp:
              (WebCore::SVGScriptElement::SVGScriptElement):
              * svg/SVGScriptElement.h:
              * svg/SVGSetElement.cpp:
              (WebCore::SVGSetElement::SVGSetElement):
              * svg/SVGSetElement.h:
              * svg/SVGStopElement.cpp:
              (WebCore::SVGStopElement::SVGStopElement):
              * svg/SVGStopElement.h:
              * svg/SVGStringList.cpp:
              * svg/SVGStringList.h:
              * svg/SVGStylable.cpp:
              * svg/SVGStylable.h:
              * svg/SVGStyleElement.cpp:
              (WebCore::SVGStyleElement::SVGStyleElement):
              * svg/SVGStyleElement.h:
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::SVGStyledElement):
              * svg/SVGStyledElement.h:
              * svg/SVGStyledLocatableElement.cpp:
              (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
              * svg/SVGStyledLocatableElement.h:
              * svg/SVGStyledTransformableElement.cpp:
              (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
              * svg/SVGStyledTransformableElement.h:
              * svg/SVGSwitchElement.cpp:
              (WebCore::SVGSwitchElement::SVGSwitchElement):
              (WebCore::SVGSwitchElement::childShouldCreateRenderer):
              * svg/SVGSwitchElement.h:
              * svg/SVGSymbolElement.cpp:
              (WebCore::SVGSymbolElement::SVGSymbolElement):
              * svg/SVGSymbolElement.h:
              * svg/SVGTRefElement.cpp:
              (WebCore::SVGTRefElement::SVGTRefElement):
              * svg/SVGTRefElement.h:
              * svg/SVGTSpanElement.cpp:
              (WebCore::SVGTSpanElement::SVGTSpanElement):
              * svg/SVGTests.cpp:
              * svg/SVGTests.h:
              * svg/SVGTextContentElement.cpp:
              (WebCore::SVGTextContentElement::SVGTextContentElement):
              * svg/SVGTextContentElement.h:
              * svg/SVGTextElement.cpp:
              (WebCore::SVGTextElement::SVGTextElement):
              * svg/SVGTextElement.h:
              * svg/SVGTextPathElement.cpp:
              (WebCore::SVGTextPathElement::SVGTextPathElement):
              * svg/SVGTextPathElement.h:
              * svg/SVGTextPositioningElement.cpp:
              (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
              * svg/SVGTextPositioningElement.h:
              * svg/SVGTitleElement.cpp:
              (WebCore::SVGTitleElement::SVGTitleElement):
              * svg/SVGTransform.cpp:
              * svg/SVGTransform.h:
              * svg/SVGTransformable.cpp:
              * svg/SVGTransformable.h:
              * svg/SVGURIReference.cpp:
              * svg/SVGURIReference.h:
              * svg/SVGUseElement.cpp:
              (WebCore::SVGUseElement::SVGUseElement):
              (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
              * svg/SVGUseElement.h:
              * svg/SVGViewElement.cpp:
              (WebCore::SVGViewElement::SVGViewElement):
              * svg/SVGViewElement.h:
              * svg/SVGViewSpec.cpp:
              (WebCore::SVGViewSpec::SVGViewSpec):
              * svg/SVGViewSpec.h:
              * svg/SVGZoomAndPan.cpp:
              * svg/SVGZoomAndPan.h:
              * svg/SVGZoomEvent.cpp:
              * svg/SVGZoomEvent.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8b8f87b
  15. 10 Aug, 2010 1 commit
    • barraclough@apple.com's avatar
      Bug 43786 - Move AtomicStringHash from WebCore to WTF · bbb3cd43
      barraclough@apple.com authored
      Also remove deprecated string headers from WebCore/platform/text.
      
      Rubber stamped by Sam Weinig.
      
      JavaScriptCore: 
      
      * GNUmakefile.am:
      * JavaScriptCore.gypi:
      * JavaScriptCore.vcproj/WTF/WTF.vcproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/text/AtomicString.h:
      * wtf/text/AtomicStringHash.h: Copied from WebCore/platform/text/AtomicStringHash.h.
      
      WebCore: 
      
      * ForwardingHeaders/wtf/text/AtomicStringHash.h: Added.
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      * bindings/cpp/WebDOMHTMLCollectionCustom.cpp:
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      * bindings/js/JSClipboardCustom.cpp:
      * bindings/js/JSDOMApplicationCacheCustom.cpp:
      * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
      * bindings/js/JSDOMPluginArrayCustom.cpp:
      * bindings/js/JSDOMPluginCustom.cpp:
      * bindings/js/JSDOMStringMapCustom.cpp:
      * bindings/js/JSDOMWindowCustom.cpp:
      * bindings/js/JSDataGridColumnListCustom.cpp:
      * bindings/js/JSHTMLAllCollectionCustom.cpp:
      * bindings/js/JSHTMLCollectionCustom.cpp:
      * bindings/js/JSMessagePortCustom.cpp:
      * bindings/js/JSNodeListCustom.cpp:
      * bindings/scripts/CodeGeneratorCPP.pm:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorV8.pm:
      * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
      * bindings/scripts/test/V8/V8TestInterface.h:
      * bindings/scripts/test/V8/V8TestObj.h:
      * bindings/v8/ScriptDebugServer.h:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8Binding.h:
      * bridge/jni/v8/JavaClassV8.h:
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      * css/CSSFontSelector.h:
      * css/CSSNamespace.h:
      * css/CSSParser.cpp:
      * css/CSSParser.h:
      * css/CSSParserValues.h:
      * css/CSSStyleSelector.h:
      * css/CSSVariablesDeclaration.h:
      * css/MediaFeatureNames.h:
      * css/MediaQueryExp.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CustomEvent.h:
      * dom/Document.cpp:
      * dom/Event.cpp:
      * dom/Event.h:
      * dom/EventNames.h:
      * dom/EventTarget.h:
      * dom/InputElement.h:
      * dom/MessagePort.cpp:
      * dom/MessagePort.h:
      * dom/NameNodeList.h:
      * dom/NodeRareData.h:
      * dom/QualifiedName.h:
      * dom/ScriptElement.cpp:
      * dom/SpaceSplitString.h:
      * dom/TagNodeList.h:
      * dom/XMLDocumentParser.h:
      * editing/EditorCommand.cpp:
      * history/mac/HistoryItemMac.mm:
      * html/BlobBuilder.cpp:
      * html/DataGridColumn.h:
      * html/DataGridColumnList.cpp:
      * html/HTMLDocument.h:
      * html/HTMLInputElement.cpp:
      * html/HTMLTokenizer.cpp:
      * html/HTMLTokenizer.h:
      * html/LegacyPreloadScanner.cpp:
      * html/LegacyPreloadScanner.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorController.h:
      * inspector/InspectorDOMAgent.cpp:
      * inspector/InspectorDOMAgent.h:
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorValues.h:
      * loader/Cache.h:
      * loader/CrossOriginAccessControl.cpp:
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocLoader.h:
      * loader/ImageLoader.h:
      * loader/appcache/ApplicationCache.h:
      * loader/appcache/ApplicationCacheStorage.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/icon/IconDatabase.h:
      * loader/icon/IconRecord.h:
      * loader/loader.h:
      * notifications/Notification.h:
      * page/FrameTree.h:
      * page/Page.cpp:
      * page/PageGroup.h:
      * page/SecurityOrigin.h:
      * page/Settings.h:
      * page/WindowFeatures.cpp:
      * page/animation/AnimationBase.h:
      * page/animation/AnimationControllerPrivate.h:
      * page/animation/CompositeAnimation.h:
      * platform/Cookie.h:
      * platform/KURL.cpp:
      * platform/KURLGoogle.cpp:
      * platform/KURLHash.h:
      * platform/Length.cpp:
      * platform/LinkHash.cpp:
      * platform/LinkHash.h:
      * platform/MIMETypeRegistry.cpp:
      * platform/MIMETypeRegistry.h:
      * platform/SchemeRegistry.h:
      * platform/ThreadGlobalData.cpp:
      * platform/ThreadGlobalData.h:
      * platform/cf/BinaryPropertyList.cpp:
      * platform/chromium/SearchPopupMenuChromium.cpp:
      * platform/efl/ClipboardEfl.cpp:
      * platform/efl/CookieJarEfl.cpp:
      * platform/efl/PlatformKeyboardEventEfl.cpp:
      * platform/graphics/FontCache.cpp:
      * platform/graphics/FontFamily.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/cg/ImageSourceCGWin.cpp:
      * platform/graphics/chromium/FontCacheChromiumWin.cpp:
      * platform/graphics/chromium/FontCacheLinux.cpp:
      * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
      * platform/graphics/chromium/LayerChromium.h:
      * platform/graphics/filters/Filter.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/mac/GraphicsLayerCA.h:
      * platform/graphics/qt/FontCacheQt.cpp:
      * platform/graphics/win/FontCacheWin.cpp:
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      * platform/graphics/win/FontPlatformDataWin.cpp:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
      * platform/graphics/win/WKCACFLayer.h:
      * platform/graphics/wince/FontPlatformData.cpp:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/gtk/ClipboardGtk.cpp:
      * platform/gtk/DataObjectGtk.h:
      * platform/haiku/ClipboardHaiku.cpp:
      * platform/haiku/CookieJarHaiku.cpp:
      * platform/haiku/SearchPopupMenuHaiku.cpp:
      * platform/mac/SearchPopupMenuMac.mm:
      * platform/mac/ThreadCheck.mm:
      * platform/network/CredentialStorage.cpp:
      * platform/network/HTTPHeaderMap.h:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/curl/CookieJarCurl.cpp:
      * platform/qt/ClipboardQt.cpp:
      * platform/text/AtomicString.h: Removed.
      * platform/text/AtomicStringHash.h: Removed.
      * platform/text/AtomicStringImpl.h: Removed.
      * platform/text/AtomicStringKeyedMRUCache.h:
      * platform/text/StringBuilder.cpp:
      * platform/text/StringHash.h: Removed.
      * platform/text/StringImpl.h: Removed.
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/cf/StringImplCF.cpp:
      * platform/text/mac/HyphenationMac.mm:
      * platform/text/mac/StringImplMac.mm:
      * platform/text/transcoder/FontTranscoder.h:
      * platform/text/wince/TextCodecWinCE.cpp:
      * platform/win/BString.cpp:
      * platform/win/ClipboardWin.cpp:
      * platform/win/SearchPopupMenuWin.cpp:
      * platform/wince/SearchPopupMenuWince.cpp:
      * platform/wx/ClipboardWx.cpp:
      * plugins/DOMMimeTypeArray.cpp:
      * plugins/DOMPlugin.cpp:
      * plugins/DOMPluginArray.cpp:
      * plugins/PluginDatabase.h:
      * plugins/PluginPackage.h:
      * plugins/PluginStream.h:
      * rendering/RenderApplet.h:
      * rendering/RenderText.cpp:
      * rendering/style/BindingURI.h:
      * rendering/style/ContentData.cpp:
      * rendering/style/CounterContent.h:
      * rendering/style/CounterDirectives.h:
      * rendering/style/KeyframeList.h:
      * rendering/style/StyleRareInheritedData.h:
      * storage/AbstractDatabase.cpp:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTracker.h:
      * storage/IDBDatabaseBackendImpl.h:
      * storage/IDBFactoryBackendImpl.h:
      * storage/IDBObjectStoreBackendImpl.h:
      * storage/OriginQuotaManager.h:
      * storage/OriginUsageRecord.h:
      * storage/SQLTransactionCoordinator.h:
      * storage/StorageAreaSync.h:
      * storage/StorageMap.h:
      * storage/StorageNamespaceImpl.cpp:
      * storage/chromium/QuotaTracker.h:
      * svg/SVGAltGlyphElement.h:
      * svg/SVGDocumentExtensions.cpp:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGFitToViewBox.cpp:
      * svg/SVGLangSpace.h:
      * svg/animation/SMILTimeContainer.h:
      * svg/graphics/filters/SVGFilterBuilder.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.cpp:
      * websockets/WebSocketHandshake.cpp:
      * websockets/WebSocketHandshakeResponse.cpp:
      * wml/WMLPageState.h:
      * workers/AbstractWorker.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContext.h:
      * xml/XMLHttpRequest.h:
      * xml/XMLHttpRequestUpload.cpp:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathExpressionNode.h:
      * xml/XPathNamespace.h:
      * xml/XPathParser.cpp:
      * xml/XSLTProcessor.h:
      
      WebKit/chromium: 
      
      * src/WebKit.cpp:
      * src/WebPageSerializerImpl.h:
      * src/WebString.cpp:
      
      WebKit/gtk: 
      
      * gdom/ConvertToGCharPrivate.h:
      
      WebKit/wx: 
      
      * WebEdit.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbb3cd43
  16. 03 Aug, 2010 3 commits
    • zimmermann@webkit.org's avatar
      2010-08-03 Nikolas Zimmermann <nzimmermann@rim.com> · 711245fe
      zimmermann@webkit.org authored
              Reviewed by Eric Seidel.
      
              Cleanup all of svg/ code
              https://bugs.webkit.org/show_bug.cgi?id=43311
      
              Unify the license header in all files in svg/, to use the same template as most WebCore files use.
              Unified email adress style, etc. all generated with a perl script attached to bug 43311.
      
              * svg/...: Updated header template in all files, in the svg/ subdirectory.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      711245fe
    • zimmermann@webkit.org's avatar
      2010-08-03 Sheriff Bot <webkit.review.bot@gmail.com> · c19aac83
      zimmermann@webkit.org authored
              Unreviewed, rolling out r64539.
              http://trac.webkit.org/changeset/64539
              https://bugs.webkit.org/show_bug.cgi?id=43409
      
              Accidently changed licenses in some files (Requested by
              WildFox on #webkit).
      
              * svg/ColorDistance.cpp:
              * svg/ColorDistance.h:
              * svg/ElementTimeControl.h:
              * svg/ElementTimeControl.idl:
              * svg/GradientAttributes.h:
              * svg/LinearGradientAttributes.h:
              * svg/PatternAttributes.h:
              * svg/RadialGradientAttributes.h:
              * svg/SVGAElement.cpp:
              * svg/SVGAElement.h:
              * svg/SVGAElement.idl:
              * svg/SVGAllInOne.cpp:
              * svg/SVGAltGlyphElement.cpp:
              * svg/SVGAltGlyphElement.h:
              * svg/SVGAltGlyphElement.idl:
              * svg/SVGAngle.cpp:
              * svg/SVGAngle.h:
              * svg/SVGAngle.idl:
              * svg/SVGAnimateColorElement.cpp:
              * svg/SVGAnimateColorElement.h:
              * svg/SVGAnimateColorElement.idl:
              * svg/SVGAnimateElement.cpp:
              * svg/SVGAnimateElement.h:
              * svg/SVGAnimateElement.idl:
              * svg/SVGAnimateMotionElement.cpp:
              * svg/SVGAnimateMotionElement.h:
              * svg/SVGAnimateTransformElement.cpp:
              * svg/SVGAnimateTransformElement.h:
              * svg/SVGAnimateTransformElement.idl:
              * svg/SVGAnimatedAngle.idl:
              * svg/SVGAnimatedBoolean.idl:
              * svg/SVGAnimatedEnumeration.idl:
              * svg/SVGAnimatedInteger.idl:
              * svg/SVGAnimatedLength.idl:
              * svg/SVGAnimatedLengthList.idl:
              * svg/SVGAnimatedNumber.idl:
              * svg/SVGAnimatedNumberList.idl:
              * svg/SVGAnimatedPathData.cpp:
              * svg/SVGAnimatedPathData.h:
              * svg/SVGAnimatedPathData.idl:
              * svg/SVGAnimatedPoints.cpp:
              * svg/SVGAnimatedPoints.h:
              * svg/SVGAnimatedPoints.idl:
              * svg/SVGAnimatedPreserveAspectRatio.idl:
              * svg/SVGAnimatedProperty.h:
              * svg/SVGAnimatedPropertySynchronizer.h:
              * svg/SVGAnimatedPropertyTraits.h:
              * svg/SVGAnimatedRect.idl:
              * svg/SVGAnimatedString.idl:
              * svg/SVGAnimatedTemplate.h:
              * svg/SVGAnimatedTransformList.idl:
              * svg/SVGAnimationElement.cpp:
              * svg/SVGAnimationElement.h:
              * svg/SVGAnimationElement.idl:
              * svg/SVGCircleElement.cpp:
              * svg/SVGCircleElement.h:
              * svg/SVGCircleElement.idl:
              * svg/SVGClipPathElement.cpp:
              * svg/SVGClipPathElement.h:
              * svg/SVGClipPathElement.idl:
              * svg/SVGColor.cpp:
              * svg/SVGColor.h:
              * svg/SVGColor.idl:
              * svg/SVGComponentTransferFunctionElement.cpp:
              * svg/SVGComponentTransferFunctionElement.h:
              * svg/SVGComponentTransferFunctionElement.idl:
              * svg/SVGCursorElement.cpp:
              * svg/SVGCursorElement.h:
              * svg/SVGCursorElement.idl:
              * svg/SVGDefsElement.cpp:
              * svg/SVGDefsElement.h:
              * svg/SVGDefsElement.idl:
              * svg/SVGDescElement.cpp:
              * svg/SVGDescElement.h:
              * svg/SVGDescElement.idl:
              * svg/SVGDocument.cpp:
              * svg/SVGDocument.h:
              * svg/SVGDocument.idl:
              * svg/SVGDocumentExtensions.cpp:
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.cpp:
              * svg/SVGElement.h:
              * svg/SVGElement.idl:
              * svg/SVGElementInstance.cpp:
              * svg/SVGElementInstance.h:
              * svg/SVGElementInstance.idl:
              * svg/SVGElementInstanceList.cpp:
              * svg/SVGElementInstanceList.h:
              * svg/SVGElementInstanceList.idl:
              * svg/SVGElementRareData.h:
              * svg/SVGEllipseElement.cpp:
              * svg/SVGEllipseElement.h:
              * svg/SVGEllipseElement.idl:
              * svg/SVGException.h:
              * svg/SVGExternalResourcesRequired.cpp:
              * svg/SVGExternalResourcesRequired.h:
              * svg/SVGExternalResourcesRequired.idl:
              * svg/SVGFEBlendElement.cpp:
              * svg/SVGFEBlendElement.h:
              * svg/SVGFEBlendElement.idl:
              * svg/SVGFEColorMatrixElement.cpp:
              * svg/SVGFEColorMatrixElement.h:
              * svg/SVGFEColorMatrixElement.idl:
              * svg/SVGFEComponentTransferElement.cpp:
              * svg/SVGFEComponentTransferElement.h:
              * svg/SVGFEComponentTransferElement.idl:
              * svg/SVGFECompositeElement.cpp:
              * svg/SVGFECompositeElement.h:
              * svg/SVGFECompositeElement.idl:
              * svg/SVGFEConvolveMatrixElement.cpp:
              * svg/SVGFEConvolveMatrixElement.h:
              * svg/SVGFEConvolveMatrixElement.idl:
              * svg/SVGFEDiffuseLightingElement.cpp:
              * svg/SVGFEDiffuseLightingElement.h:
              * svg/SVGFEDiffuseLightingElement.idl:
              * svg/SVGFEDisplacementMapElement.cpp:
              * svg/SVGFEDisplacementMapElement.h:
              * svg/SVGFEDisplacementMapElement.idl:
              * svg/SVGFEDistantLightElement.cpp:
              * svg/SVGFEDistantLightElement.h:
              * svg/SVGFEDistantLightElement.idl:
              * svg/SVGFEFloodElement.cpp:
              * svg/SVGFEFloodElement.h:
              * svg/SVGFEFloodElement.idl:
              * svg/SVGFEFuncAElement.cpp:
              * svg/SVGFEFuncAElement.h:
              * svg/SVGFEFuncAElement.idl:
              * svg/SVGFEFuncBElement.cpp:
              * svg/SVGFEFuncBElement.h:
              * svg/SVGFEFuncBElement.idl:
              * svg/SVGFEFuncGElement.cpp:
              * svg/SVGFEFuncGElement.h:
              * svg/SVGFEFuncGElement.idl:
              * svg/SVGFEFuncRElement.cpp:
              * svg/SVGFEFuncRElement.h:
              * svg/SVGFEFuncRElement.idl:
              * svg/SVGFEGaussianBlurElement.cpp:
              * svg/SVGFEGaussianBlurElement.h:
              * svg/SVGFEGaussianBlurElement.idl:
              * svg/SVGFEImageElement.cpp:
              * svg/SVGFEImageElement.h:
              * svg/SVGFEImageElement.idl:
              * svg/SVGFELightElement.cpp:
              * svg/SVGFELightElement.h:
              * svg/SVGFEMergeElement.cpp:
              * svg/SVGFEMergeElement.h:
              * svg/SVGFEMergeElement.idl:
              * svg/SVGFEMergeNodeElement.cpp:
              * svg/SVGFEMergeNodeElement.h:
              * svg/SVGFEMergeNodeElement.idl:
              * svg/SVGFEMorphologyElement.cpp:
              * svg/SVGFEMorphologyElement.h:
              * svg/SVGFEMorphologyElement.idl:
              * svg/SVGFEOffsetElement.cpp:
              * svg/SVGFEOffsetElement.h:
              * svg/SVGFEOffsetElement.idl:
              * svg/SVGFEPointLightElement.cpp:
              * svg/SVGFEPointLightElement.h:
              * svg/SVGFEPointLightElement.idl:
              * svg/SVGFESpecularLightingElement.cpp:
              * svg/SVGFESpecularLightingElement.h:
              * svg/SVGFESpecularLightingElement.idl:
              * svg/SVGFESpotLightElement.cpp:
              * svg/SVGFESpotLightElement.h:
              * svg/SVGFESpotLightElement.idl:
              * svg/SVGFETileElement.cpp:
              * svg/SVGFETileElement.h:
              * svg/SVGFETileElement.idl:
              * svg/SVGFETurbulenceElement.cpp:
              * svg/SVGFETurbulenceElement.h:
              * svg/SVGFETurbulenceElement.idl:
              * svg/SVGFilterElement.cpp:
              * svg/SVGFilterElement.h:
              * svg/SVGFilterElement.idl:
              * svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * svg/SVGFilterPrimitiveStandardAttributes.h:
              * svg/SVGFilterPrimitiveStandardAttributes.idl:
              * svg/SVGFitToViewBox.cpp:
              * svg/SVGFitToViewBox.h:
              * svg/SVGFitToViewBox.idl:
              * svg/SVGFont.cpp:
              * svg/SVGFontData.cpp:
              * svg/SVGFontData.h:
              * svg/SVGFontElement.cpp:
              * svg/SVGFontElement.h:
              * svg/SVGFontElement.idl:
              * svg/SVGFontFaceElement.cpp:
              * svg/SVGFontFaceElement.h:
              * svg/SVGFontFaceElement.idl:
              * svg/SVGFontFaceFormatElement.cpp:
              * svg/SVGFontFaceFormatElement.h:
              * svg/SVGFontFaceFormatElement.idl:
              * svg/SVGFontFaceNameElement.cpp:
              * svg/SVGFontFaceNameElement.h:
              * svg/SVGFontFaceNameElement.idl:
              * svg/SVGFontFaceSrcElement.cpp:
              * svg/SVGFontFaceSrcElement.h:
              * svg/SVGFontFaceSrcElement.idl:
              * svg/SVGFontFaceUriElement.cpp:
              * svg/SVGFontFaceUriElement.h:
              * svg/SVGFontFaceUriElement.idl:
              * svg/SVGForeignObjectElement.cpp:
              * svg/SVGForeignObjectElement.h:
              * svg/SVGForeignObjectElement.idl:
              * svg/SVGGElement.cpp:
              * svg/SVGGElement.h:
              * svg/SVGGElement.idl:
              * svg/SVGGlyphElement.cpp:
              * svg/SVGGlyphElement.h:
              * svg/SVGGlyphElement.idl:
              * svg/SVGGlyphMap.h:
              * svg/SVGGradientElement.cpp:
              * svg/SVGGradientElement.h:
              * svg/SVGGradientElement.idl:
              * svg/SVGHKernElement.cpp:
              * svg/SVGHKernElement.h:
              * svg/SVGHKernElement.idl:
              * svg/SVGImageElement.cpp:
              * svg/SVGImageElement.h:
              * svg/SVGImageElement.idl:
              * svg/SVGImageLoader.cpp:
              * svg/SVGImageLoader.h:
              * svg/SVGLangSpace.cpp:
              * svg/SVGLangSpace.h:
              * svg/SVGLangSpace.idl:
              * svg/SVGLength.cpp:
              * svg/SVGLength.h:
              * svg/SVGLength.idl:
              * svg/SVGLengthList.cpp:
              * svg/SVGLengthList.h:
              * svg/SVGLengthList.idl:
              * svg/SVGLineElement.cpp:
              * svg/SVGLineElement.h:
              * svg/SVGLineElement.idl:
              * svg/SVGLinearGradientElement.cpp:
              * svg/SVGLinearGradientElement.h:
              * svg/SVGLinearGradientElement.idl:
              * svg/SVGList.h:
              * svg/SVGListTraits.h:
              * svg/SVGLocatable.cpp:
              * svg/SVGLocatable.h:
              * svg/SVGLocatable.idl:
              * svg/SVGMPathElement.cpp:
              * svg/SVGMPathElement.h:
              * svg/SVGMarkerElement.cpp:
              * svg/SVGMarkerElement.h:
              * svg/SVGMarkerElement.idl:
              * svg/SVGMaskElement.cpp:
              * svg/SVGMaskElement.h:
              * svg/SVGMaskElement.idl:
              * svg/SVGMatrix.idl:
              * svg/SVGMetadataElement.cpp:
              * svg/SVGMetadataElement.h:
              * svg/SVGMetadataElement.idl:
              * svg/SVGMissingGlyphElement.cpp:
              * svg/SVGMissingGlyphElement.h:
              * svg/SVGMissingGlyphElement.idl:
              * svg/SVGNumber.idl:
              * svg/SVGNumberList.cpp:
              * svg/SVGNumberList.h:
              * svg/SVGNumberList.idl:
              * svg/SVGPaint.cpp:
              * svg/SVGPaint.h:
              * svg/SVGPaint.idl:
              * svg/SVGParserUtilities.cpp:
              * svg/SVGParserUtilities.h:
              * svg/SVGPathBuilder.cpp:
              * svg/SVGPathBuilder.h:
              * svg/SVGPathConsumer.h:
              * svg/SVGPathElement.cpp:
              * svg/SVGPathElement.h:
              * svg/SVGPathElement.idl:
              * svg/SVGPathParser.cpp:
              * svg/SVGPathParser.h:
              * svg/SVGPathSeg.h:
              * svg/SVGPathSeg.idl:
              * svg/SVGPathSegArc.cpp:
              * svg/SVGPathSegArc.h:
              * svg/SVGPathSegArcAbs.idl:
              * svg/SVGPathSegArcRel.idl:
              * svg/SVGPathSegClosePath.cpp:
              * svg/SVGPathSegClosePath.h:
              * svg/SVGPathSegClosePath.idl:
              * svg/SVGPathSegCurvetoCubic.cpp:
              * svg/SVGPathSegCurvetoCubic.h:
              * svg/SVGPathSegCurvetoCubicAbs.idl:
              * svg/SVGPathSegCurvetoCubicRel.idl:
              * svg/SVGPathSegCurvetoCubicSmooth.cpp:
              * svg/SVGPathSegCurvetoCubicSmooth.h:
              * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
              * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
              * svg/SVGPathSegCurvetoQuadratic.cpp:
              * svg/SVGPathSegCurvetoQuadratic.h:
              * svg/SVGPathSegCurvetoQuadraticAbs.idl:
              * svg/SVGPathSegCurvetoQuadraticRel.idl:
              * svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              * svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
              * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
              * svg/SVGPathSegLineto.cpp:
              * svg/SVGPathSegLineto.h:
              * svg/SVGPathSegLinetoAbs.idl:
              * svg/SVGPathSegLinetoHorizontal.cpp:
              * svg/SVGPathSegLinetoHorizontal.h:
              * svg/SVGPathSegLinetoHorizontalAbs.idl:
              * svg/SVGPathSegLinetoHorizontalRel.idl:
              * svg/SVGPathSegLinetoRel.idl:
              * svg/SVGPathSegLinetoVertical.cpp:
              * svg/SVGPathSegLinetoVertical.h:
              * svg/SVGPathSegLinetoVerticalAbs.idl:
              * svg/SVGPathSegLinetoVerticalRel.idl:
              * svg/SVGPathSegList.cpp:
              * svg/SVGPathSegList.h:
              * svg/SVGPathSegList.idl:
              * svg/SVGPathSegListBuilder.cpp:
              * svg/SVGPathSegListBuilder.h:
              * svg/SVGPathSegMoveto.cpp:
              * svg/SVGPathSegMoveto.h:
              * svg/SVGPathSegMovetoAbs.idl:
              * svg/SVGPathSegMovetoRel.idl:
              * svg/SVGPatternElement.cpp:
              * svg/SVGPatternElement.h:
              * svg/SVGPatternElement.idl:
              * svg/SVGPoint.idl:
              * svg/SVGPointList.cpp:
              * svg/SVGPointList.h:
              * svg/SVGPointList.idl:
              * svg/SVGPolyElement.cpp:
              * svg/SVGPolyElement.h:
              * svg/SVGPolygonElement.cpp:
              * svg/SVGPolygonElement.h:
              * svg/SVGPolygonElement.idl:
              * svg/SVGPolylineElement.cpp:
              * svg/SVGPolylineElement.h:
              * svg/SVGPolylineElement.idl:
              * svg/SVGPreserveAspectRatio.cpp:
              * svg/SVGPreserveAspectRatio.h:
              * svg/SVGPreserveAspectRatio.idl:
              * svg/SVGRadialGradientElement.cpp:
              * svg/SVGRadialGradientElement.h:
              * svg/SVGRadialGradientElement.idl:
              * svg/SVGRect.idl:
              * svg/SVGRectElement.cpp:
              * svg/SVGRectElement.h:
              * svg/SVGRectElement.idl:
              * svg/SVGRenderingIntent.h:
              * svg/SVGRenderingIntent.idl:
              * svg/SVGSVGElement.cpp:
              * svg/SVGSVGElement.h:
              * svg/SVGSVGElement.idl:
              * svg/SVGScriptElement.cpp:
              * svg/SVGScriptElement.h:
              * svg/SVGScriptElement.idl:
              * svg/SVGSetElement.cpp:
              * svg/SVGSetElement.h:
              * svg/SVGSetElement.idl:
              * svg/SVGStopElement.cpp:
              * svg/SVGStopElement.h:
              * svg/SVGStopElement.idl:
              * svg/SVGStringList.cpp:
              * svg/SVGStringList.h:
              * svg/SVGStringList.idl:
              * svg/SVGStylable.cpp:
              * svg/SVGStylable.h:
              * svg/SVGStylable.idl:
              * svg/SVGStyleElement.cpp:
              * svg/SVGStyleElement.h:
              * svg/SVGStyleElement.idl:
              * svg/SVGStyledElement.cpp:
              * svg/SVGStyledElement.h:
              * svg/SVGStyledLocatableElement.cpp:
              * svg/SVGStyledLocatableElement.h:
              * svg/SVGStyledTransformableElement.cpp:
              * svg/SVGStyledTransformableElement.h:
              * svg/SVGSwitchElement.cpp:
              * svg/SVGSwitchElement.h:
              * svg/SVGSwitchElement.idl:
              * svg/SVGSymbolElement.cpp:
              * svg/SVGSymbolElement.h:
              * svg/SVGSymbolElement.idl:
              * svg/SVGTRefElement.cpp:
              * svg/SVGTRefElement.h:
              * svg/SVGTRefElement.idl:
              * svg/SVGTSpanElement.cpp:
              * svg/SVGTSpanElement.h:
              * svg/SVGTSpanElement.idl:
              * svg/SVGTests.cpp:
              * svg/SVGTests.h:
              * svg/SVGTests.idl:
              * svg/SVGTextContentElement.cpp:
              * svg/SVGTextContentElement.h:
              * svg/SVGTextContentElement.idl:
              * svg/SVGTextElement.cpp:
              * svg/SVGTextElement.h:
              * svg/SVGTextElement.idl:
              * svg/SVGTextPathElement.cpp:
              * svg/SVGTextPathElement.h:
              * svg/SVGTextPathElement.idl:
              * svg/SVGTextPositioningElement.cpp:
              * svg/SVGTextPositioningElement.h:
              * svg/SVGTextPositioningElement.idl:
              * svg/SVGTitleElement.cpp:
              * svg/SVGTitleElement.h:
              * svg/SVGTitleElement.idl:
              * svg/SVGTransform.cpp:
              * svg/SVGTransform.h:
              * svg/SVGTransform.idl:
              * svg/SVGTransformDistance.cpp:
              * svg/SVGTransformDistance.h:
              * svg/SVGTransformList.cpp:
              * svg/SVGTransformList.h:
              * svg/SVGTransformList.idl:
              * svg/SVGTransformable.cpp:
              * svg/SVGTransformable.h:
              * svg/SVGTransformable.idl:
              * svg/SVGURIReference.cpp:
              * svg/SVGURIReference.h:
              * svg/SVGURIReference.idl:
              * svg/SVGUnitTypes.h:
              * svg/SVGUnitTypes.idl:
              * svg/SVGUseElement.cpp:
              * svg/SVGUseElement.h:
              * svg/SVGUseElement.idl:
              * svg/SVGVKernElement.cpp:
              * svg/SVGVKernElement.h:
              * svg/SVGVKernElement.idl:
              * svg/SVGViewElement.cpp:
              * svg/SVGViewElement.h:
              * svg/SVGViewElement.idl:
              * svg/SVGViewSpec.cpp:
              * svg/SVGViewSpec.h:
              * svg/SVGViewSpec.idl:
              * svg/SVGZoomAndPan.cpp:
              * svg/SVGZoomAndPan.h:
              * svg/SVGZoomAndPan.idl:
              * svg/SVGZoomEvent.cpp:
              * svg/SVGZoomEvent.h:
              * svg/SVGZoomEvent.idl:
              * svg/animation/SMILTime.cpp:
              * svg/animation/SMILTime.h:
              * svg/animation/SMILTimeContainer.cpp:
              * svg/animation/SMILTimeContainer.h:
              * svg/animation/SVGSMILElement.cpp:
              * svg/animation/SVGSMILElement.h:
              * svg/graphics/SVGImage.cpp:
              * svg/graphics/SVGImage.h:
              * svg/graphics/filters/SVGDistantLightSource.h:
              * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
              * svg/graphics/filters/SVGFEConvolveMatrix.h:
              * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
              * svg/graphics/filters/SVGFEDiffuseLighting.h:
              * svg/graphics/filters/SVGFEDisplacementMap.cpp:
              * svg/graphics/filters/SVGFEDisplacementMap.h:
              * svg/graphics/filters/SVGFEFlood.cpp:
              * svg/graphics/filters/SVGFEFlood.h:
              * svg/graphics/filters/SVGFEImage.cpp:
              * svg/graphics/filters/SVGFEImage.h:
              * svg/graphics/filters/SVGFELighting.cpp:
              * svg/graphics/filters/SVGFELighting.h:
              * svg/graphics/filters/SVGFEMerge.cpp:
              * svg/graphics/filters/SVGFEMerge.h:
              * svg/graphics/filters/SVGFEMorphology.cpp:
              * svg/graphics/filters/SVGFEMorphology.h:
              * svg/graphics/filters/SVGFEOffset.cpp:
              * svg/graphics/filters/SVGFEOffset.h:
              * svg/graphics/filters/SVGFESpecularLighting.cpp:
              * svg/graphics/filters/SVGFESpecularLighting.h:
              * svg/graphics/filters/SVGFETile.cpp:
              * svg/graphics/filters/SVGFETile.h:
              * svg/graphics/filters/SVGFETurbulence.cpp:
              * svg/graphics/filters/SVGFETurbulence.h:
              * svg/graphics/filters/SVGFilter.cpp:
              * svg/graphics/filters/SVGFilter.h:
              * svg/graphics/filters/SVGFilterBuilder.cpp:
              * svg/graphics/filters/SVGFilterBuilder.h:
              * svg/graphics/filters/SVGLightSource.cpp:
              * svg/graphics/filters/SVGLightSource.h:
              * svg/graphics/filters/SVGPointLightSource.h:
              * svg/graphics/filters/SVGSpotLightSource.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c19aac83
    • zimmermann@webkit.org's avatar
      2010-08-03 Nikolas Zimmermann <nzimmermann@rim.com> · 9d2c056e
      zimmermann@webkit.org authored
              Reviewed by Dirk Schulze.
      
              Cleanup all of svg/ code
              https://bugs.webkit.org/show_bug.cgi?id=43311
      
              Unify the license header in all files in svg/, to use the same template as most WebCore files use.
              Unified email adress style, etc. all generated with a perl script attached to bug 43311.i
      
              * svg/...: Updated header template in all files, in the svg/ subdirectory.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d2c056e
  17. 28 Jul, 2010 1 commit
    • zimmermann@webkit.org's avatar
      2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com> · 032746a4
      zimmermann@webkit.org authored
              Reviewed by Dirk Schulze.
      
              WebKit shouldn't ignore resource cycles, but break them as Opera does
              https://bugs.webkit.org/show_bug.cgi?id=43031
      
              Don't ignore resources containing cyclic references, but break them, as discussed on SVG WG mailing lists - to be compatible with Opera which already does that.
      
              We used to lookup RenderSVGResourceContainers objects, by extracting the URI reference from the SVGRenderStyle, then utilizing getElementById() to lookup the
              node, and access its renderer. Opera ignores such references, if they point to resources that contain cyclic references. Ignoring them would mean we have
              to mutate the render style to empty the resource strings. That obviously doesn't work, as it would break expectations (getComputedStyle, etc.).
      
              Introduce a SVGResources class that stores pointers to all resources, that can be applied to a RenderObject (clipper/filter/markers/masker).
              Add a SVGResourcesCache class, which is basically a HashMap<RenderObject*, SVGResources*>. Whenever a RenderObject receives style, we extract the URI references
              from the SVGRenderStyle, look up the RenderSVGResourceContainer* objects, and store them in a SVGResources* class. Then we execute a cycle detection logic,
              which detects cyclic references and breaks them. Breaking them means just nulling the pointer to the resource in the SVGResources object. Those SVGResources
              objects are cached, and used throughout the render tree to access resources. This way it's guaranteed that all cyclic references are resolved until layout/paint
              phase begins.
      
              This is the first chunk, which just adds the new SVGResources/SVGResourcesCache/SVGResourcesCycleSolver files, and does minor cleanups.
              It's not yet glued in and doesn't affect any tests.
      
              * Android.mk: Add SVGResources.* / SVGResourcesCache.* / SVGResourcesCycleSolver.* to build.
              * CMakeLists.txt: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto. 
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * rendering/RenderInline.h: Make styleDidChange protected, RenderSVGInline wants to override it.
              * rendering/RenderSVGAllInOne.cpp: Add SVGResources.* / SVGResourcesCache.* / SVGResourcesCycleSolver.* to build.
              * rendering/RenderSVGHiddenContainer.h:
              (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer): Make isSVGHiddenContainer() private and renderName() public.
              * rendering/RenderSVGResourceContainer.cpp: Added. Moved most methods from the header in the implementation file.
              (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::~RenderSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::idChanged):
              (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
              (WebCore::RenderSVGResourceContainer::containsCyclicReference):
              * rendering/RenderSVGResourceContainer.h: Add stubs, that SVGResourcesCache uses - a follow-up patch will add the logic.
              (WebCore::RenderSVGResourceContainer::addClient):
              (WebCore::RenderSVGResourceContainer::removeClient):
              * rendering/SVGResources.cpp: Added. Holds a list of resources applyable to a RenderObject (fill/stroke, mask/markers/clipper/filter)
              (WebCore::paintingResourceFromSVGPaint): Helper function looking up a RenderSVGResource for a SVGPaint object.
              (WebCore::registerPendingResource): Helper function that register a RenderSVGResource as pending in the SVGDocumentExtensions. 
              (WebCore::SVGResources::buildCachedResources): Build a list of resources for a RenderObject/RenderStyle pair, handles pending resources, if needed.
              (WebCore::SVGResources::invalidateClient): Helper function that calls invalidateClient() on all resources.
              (WebCore::SVGResources::resourceDestroyed): Helper function that calls invalidateClients() on a certain resource, and nulls it.
              (WebCore::SVGResources::buildSetOfResources): Helper function that stashes all resources present in the SVGResources members in a HashSet, used in SVGResourcesCycleSolver.
              (WebCore::SVGResources::resetClipper): Helper methods nulling a resource.
              (WebCore::SVGResources::resetFilter): Ditto.
              (WebCore::SVGResources::resetMarkerStart): Ditto.
              (WebCore::SVGResources::resetMarkerMid): Ditto.
              (WebCore::SVGResources::resetMarkerEnd): Ditto.
              (WebCore::SVGResources::resetMasker): Ditto.
              (WebCore::SVGResources::resetFill): Ditto.
              (WebCore::SVGResources::resetStroke): Ditto.
              (WebCore::SVGResources::dump):
              * rendering/SVGResources.h: Added.
              (WebCore::SVGResources::clipper): Accesor of the cached m_foo variable.
              (WebCore::SVGResources::filter): Ditto.
              (WebCore::SVGResources::markerStart): Ditto.
              (WebCore::SVGResources::markerMid): Ditto.
              (WebCore::SVGResources::markerEnd): Ditto.
              (WebCore::SVGResources::masker): Ditto.
              (WebCore::SVGResources::fill): Ditto.
              (WebCore::SVGResources::stroke): Ditto.
              * rendering/SVGResourcesCache.cpp: Added. Holds a HashMap<RenderObject*, SVGResources*> and utility functions that update/invalidate the cache.
              (WebCore::SVGResourcesCache::SVGResourcesCache):
              (WebCore::SVGResourcesCache::~SVGResourcesCache):
              (WebCore::SVGResourcesCache::addResourcesFromRenderObject): Build a SVGResources object for a RenderObject and adds it to the cache, then detects & breaks cycles using SVGResourcesCycleSolver.
              (WebCore::SVGResourcesCache::removeResourcesFromRenderObject): Remove a SVGResources object from the cache.
              (WebCore::resourcesCacheFromRenderObject): Helper function, retrieving a SVGResourcesCache method from a RenderObject.
              (WebCore::SVGResourcesCache::cachedResourcesForRenderObject): Returns a SVGResources object from the cache.
              (WebCore::SVGResourcesCache::clientLayoutChanged): (static) Calls invalidateClient() on all resources that are used by the passed RenderObject.
              (WebCore::SVGResourcesCache::clientStyleChanged): (static) Updates the cache (calling removeResourceFromRenderObject/addResourcesFrom...) and invalidates resources in the ancestor chain.
              (WebCore::SVGResourcesCache::clientUpdatedFromElement): (static) Does the same, without invalidating the ancestor chain.
              (WebCore::SVGResourcesCache::clientDestroyed): (static) Calls removeResourcesFromRenderObject() on the SVGResourcesCache, for the given renderer.
              (WebCore::SVGResourcesCache::resourceDestroyed): (static) Updates all SVGResources objects in the cache, that refer to the given resource.
              * rendering/SVGResourcesCache.h: Added.
              * rendering/SVGResourcesCycleSolver.cpp: Added. Detects and breaks cyclic references, just the way Opera handles it. Break cycles as they are detected.
              (WebCore::SVGResourcesCycleSolver::SVGResourcesCycleSolver):
              (WebCore::SVGResourcesCycleSolver::~SVGResourcesCycleSolver):
              (WebCore::SVGResourcesCycleSolver::resourceContainsCycles): Operates only on the render tree
              (WebCore::targetReferenceFromResource): Helper method for chainableResourceContainsCycles().
              (WebCore::setFollowLinkForChainableResource): Ditto.
              (WebCore::SVGResourcesCycleSolver::chainableResourceContainsCycles): Handles cycles for resources that are chainable through xlink:href (filter/gradient/pattern).
              (WebCore::SVGResourcesCycleSolver::resolveCycles): Main method executing the cycle breaking logic, utilizing (chainableResource)resourceContainsCycles.
              (WebCore::SVGResourcesCycleSolver::breakCycle): Nulls a resource in the given SVGResources* object, to avoid using an invalid resource while rendering/layouting.
              * rendering/SVGResourcesCycleSolver.h: Added.
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::SVGDocumentExtensions): Create SVGResourcesCache object once per SVGDocumentExtensions.
              * svg/SVGDocumentExtensions.h:
              (WebCore::SVGDocumentExtensions::resourcesCache): Expose accesor method for the SVGResourcesCache.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      032746a4
  18. 08 Jul, 2010 1 commit
  19. 28 Jun, 2010 1 commit
    • eric@webkit.org's avatar
      2010-06-28 Eric Seidel <eric@webkit.org> · e37f595a
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Add a new baseclass for XML, HTML and Text DocumentParsers to clean up DocumentParser call sites
              https://bugs.webkit.org/show_bug.cgi?id=41141
      
              By splitting ScriptableDocumentParser and DecodedDataDocumentParser
              out from DocumentParser we've made the DocumentParser and
              RawDataDocumentParser classes simpler.
      
              No functional change, thus no tests.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::eventHandlerLineNumber):
              * css/CSSStyleSheet.cpp:
              (WebCore::CSSStyleSheet::checkLoaded):
              * dom/Document.cpp:
              (WebCore::Document::scriptableDocumentParser):
              (WebCore::Document::open):
              (WebCore::Document::implicitOpen):
              (WebCore::Document::implicitClose):
              (WebCore::Document::removePendingSheet):
              * dom/Document.h:
              (WebCore::Document::parser):
              * dom/DocumentParser.cpp:
              (WebCore::DocumentParser::DocumentParser):
              * dom/DocumentParser.h:
              (WebCore::DocumentParser::asScriptableDocumentParser):
              * dom/RawDataDocumentParser.h:
              (WebCore::RawDataDocumentParser::finishWasCalled):
              * dom/ScriptableDocumentParser.cpp: Copied from WebCore/html/HTMLEntityParser.h.
              (WebCore::ScriptableDocumentParser::ScriptableDocumentParser):
              * dom/ScriptableDocumentParser.h: Added.
              (WebCore::ScriptableDocumentParser::isExecutingScript):
              (WebCore::ScriptableDocumentParser::executeScriptsWaitingForStylesheets):
              (WebCore::ScriptableDocumentParser::xssAuditor):
              (WebCore::ScriptableDocumentParser::setXSSAuditor):
              (WebCore::ScriptableDocumentParser::processingContentWrittenByScript):
              (WebCore::ScriptableDocumentParser::asScriptableDocumentParser):
              * dom/ViewportArguments.cpp:
              (WebCore::parserLineNumber):
              (WebCore::reportViewportWarning):
              * dom/XMLDocumentParser.h:
              * dom/XMLDocumentParserLibxml2.cpp:
              (WebCore::XMLDocumentParser::XMLDocumentParser):
              * html/HTMLDocumentParser.cpp:
              (WebCore::HTMLDocumentParser::HTMLDocumentParser):
              (WebCore::HTMLDocumentParser::shouldLoadExternalScriptFromSrc):
              * html/HTMLDocumentParser.h:
              * html/LegacyHTMLDocumentParser.cpp:
              (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser):
              (WebCore::LegacyHTMLDocumentParser::parseTag):
              * html/LegacyHTMLDocumentParser.h:
              (WebCore::LegacyHTMLDocumentParser::processingContentWrittenByScript):
              * html/LegacyHTMLTreeBuilder.cpp:
              (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole):
              * loader/DocumentLoader.cpp:
              * loader/DocumentWriter.cpp:
              * loader/TextDocument.cpp:
              (WebCore::TextDocumentParser::TextDocumentParser):
              (WebCore::TextDocumentParser::finish):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::parserLineNumber):
              (WebCore::reportMessage):
              (WebCore::SVGDocumentExtensions::reportWarning):
              (WebCore::SVGDocumentExtensions::reportError):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e37f595a
  20. 13 Jun, 2010 1 commit
    • abarth@webkit.org's avatar
      2010-06-13 Eric Seidel <eric@webkit.org> · 5d72ad25
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              Fix the rest of the references to the old Tokenizer class (now DocumentParser)
              https://bugs.webkit.org/show_bug.cgi?id=40512
      
              No functional changes, thus no new tests.
              This was mostly done by do-webcore-rename:
              tokenizer => parser
              m_tokenizer => m_parser
              createTextTokenizer => createTextDocumentParser
              createTokenizer => createParser
              getTokenizer => getParser
      
              However had to be careful to avoid renaming things related to
              css/tokenizer.flex (which we should later rename to CSSTokenizer.flex)
      
              Still a couple references with "tok" and "asHTMLTokenizer" which I'll
              get in the next patch.
      
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::isLoaded):
              * bindings/v8/ScriptEventListener.cpp:
              (WebCore::createAttributeEventListener):
              * dom/Document.cpp:
              (WebCore::Document::removedLastRef):
              (WebCore::Document::~Document):
              (WebCore::Document::createParser):
              (WebCore::Document::open):
              (WebCore::Document::cancelParsing):
              (WebCore::Document::implicitOpen):
              (WebCore::Document::implicitClose):
              (WebCore::Document::write):
              (WebCore::Document::finishParsing):
              (WebCore::Document::removePendingSheet):
              * dom/Document.h:
              (WebCore::Document::parser):
              * dom/DocumentParser.h:
              * dom/ViewportArguments.cpp:
              (WebCore::reportViewportWarning):
              * dom/XMLDocumentParserLibxml2.cpp:
              (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
              (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
              (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
              (WebCore::PendingCallbacks::PendingCharactersCallback::call):
              (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
              (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
              (WebCore::PendingCallbacks::PendingCommentCallback::call):
              (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
              (WebCore::PendingCallbacks::):
              (WebCore::getParser):
              (WebCore::startElementNsHandler):
              (WebCore::endElementNsHandler):
              (WebCore::charactersHandler):
              (WebCore::processingInstructionHandler):
              (WebCore::cdataBlockHandler):
              (WebCore::commentHandler):
              (WebCore::warningHandler):
              (WebCore::fatalErrorHandler):
              (WebCore::normalErrorHandler):
              (WebCore::getEntityHandler):
              (WebCore::startDocumentHandler):
              (WebCore::endDocumentHandler):
              (WebCore::internalSubsetHandler):
              (WebCore::externalSubsetHandler):
              (WebCore::parseXMLDocumentFragment):
              * dom/XMLDocumentParserQt.cpp:
              (WebCore::parseXMLDocumentFragment):
              * html/HTML5EntityParser.cpp:
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::createParser):
              * html/HTMLDocument.h:
              * html/HTMLDocumentParser.cpp:
              (WebCore::HTMLDocumentParser::write):
              (WebCore::HTMLDocumentParser::stopParsing):
              * html/HTMLFormControlElement.cpp:
              (WebCore::HTMLFormControlElement::removedFromTree):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::finished):
              (WebCore::HTMLParser::reportErrorToConsole):
              * html/HTMLViewSourceDocument.cpp:
              (WebCore::HTMLViewSourceDocument::createParser):
              (WebCore::HTMLViewSourceDocument::addLine):
              * html/HTMLViewSourceDocument.h:
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::isLoadingInAPISense):
              * loader/DocumentWriter.cpp:
              (WebCore::DocumentWriter::begin):
              (WebCore::DocumentWriter::addData):
              * loader/FTPDirectoryDocument.cpp:
              (WebCore::FTPDirectoryDocument::createParser):
              * loader/FTPDirectoryDocument.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::stopLoading):
              (WebCore::FrameLoader::stop):
              * loader/ImageDocument.cpp:
              (WebCore::ImageDocument::createParser):
              * loader/ImageDocument.h:
              * loader/MediaDocument.cpp:
              (WebCore::MediaDocument::createParser):
              * loader/MediaDocument.h:
              * loader/PluginDocument.cpp:
              (WebCore::PluginDocument::createParser):
              * loader/PluginDocument.h:
              * loader/SinkDocument.cpp:
              (WebCore::SinkDocument::createParser):
              * loader/SinkDocument.h:
              * loader/TextDocument.cpp:
              (WebCore::TextDocument::createParser):
              (WebCore::createTextDocumentParser):
              * loader/TextDocument.h:
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::reportWarning):
              (WebCore::SVGDocumentExtensions::reportError):
              * wml/WMLDocument.cpp:
              (WebCore::WMLDocument::finishedParsing):
              * wml/WMLErrorHandling.cpp:
              (WebCore::reportWMLError):
              * wml/WMLTemplateElement.cpp:
              (WebCore::WMLTemplateElement::registerTemplatesInDocument):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d72ad25
  21. 12 Jun, 2010 1 commit
    • eric@webkit.org's avatar
      2010-06-11 Eric Seidel <eric@webkit.org> · fa046f25
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Rename the rest of the *Tokenizer classes to *DocumentParser
              https://bugs.webkit.org/show_bug.cgi?id=40507
      
              * wtf/Platform.h:
               - fixed a comment to match new names.
      2010-06-11  Eric Seidel  <eric@webkit.org>
      
              Reviewed by Adam Barth.
      
              Rename the rest of the *Tokenizer classes to *DocumentParser
              https://bugs.webkit.org/show_bug.cgi?id=40507
      
              This search/replace was done by do-webcore-rename.
              Just looking for a rubber stamp.
      
              XMLTokenizer => XMLDocumentParser
              XMLTokenizerLibxml2 => XMLDocumentParserLibxml2
              XMLTokenizerQt => XMLDocumentParserQt
              XMLTokenizerScope => XMLDocumentParserScope
              HTML5Tokenizer => HTML5DocumentParser
              HTMLTokenizer => HTMLDocumentParser
      
              No functional change, thus no tests.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSheet.cpp:
              (WebCore::CSSStyleSheet::checkLoaded):
              * dom/Document.cpp:
              (WebCore::Document::createTokenizer):
              (WebCore::Document::write):
              * dom/Document.h:
              (WebCore::Document::setXMLEncoding):
              * dom/DocumentParser.h:
              (WebCore::DocumentParser::asHTMLTokenizer):
              * dom/Element.cpp:
              * dom/ProcessingInstruction.cpp:
              * dom/XMLDocumentParser.cpp: Added.
              (WebCore::XMLDocumentParser::isWMLDocument):
              (WebCore::XMLDocumentParser::pushCurrentNode):
              (WebCore::XMLDocumentParser::popCurrentNode):
              (WebCore::XMLDocumentParser::clearCurrentNodeStack):
              (WebCore::XMLDocumentParser::write):
              (WebCore::XMLDocumentParser::handleError):
              (WebCore::XMLDocumentParser::enterText):
              (WebCore::toString):
              (WebCore::XMLDocumentParser::exitText):
              (WebCore::XMLDocumentParser::end):
              (WebCore::XMLDocumentParser::finish):
              (WebCore::createXHTMLParserErrorHeader):
              (WebCore::XMLDocumentParser::insertErrorMessageBlock):
              (WebCore::XMLDocumentParser::notifyFinished):
              (WebCore::XMLDocumentParser::isWaitingForScripts):
              (WebCore::XMLDocumentParser::pauseParsing):
              * dom/XMLDocumentParser.h: Added.
              (WebCore::XMLParserContext::context):
              (WebCore::XMLParserContext::XMLParserContext):
              (WebCore::XMLDocumentParser::):
              (WebCore::XMLDocumentParser::setIsXHTMLDocument):
              (WebCore::XMLDocumentParser::isXHTMLDocument):
              (WebCore::XMLDocumentParser::setIsXHTMLMPDocument):
              (WebCore::XMLDocumentParser::isXHTMLMPDocument):
              (WebCore::XMLDocumentParser::wellFormed):
              (WebCore::XMLDocumentParser::context):
              * dom/XMLDocumentParserLibxml2.cpp: Added.
              (WebCore::PendingCallbacks::~PendingCallbacks):
              (WebCore::PendingCallbacks::appendStartElementNSCallback):
              (WebCore::PendingCallbacks::appendEndElementNSCallback):
              (WebCore::PendingCallbacks::appendCharactersCallback):
              (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
              (WebCore::PendingCallbacks::appendCDATABlockCallback):
              (WebCore::PendingCallbacks::appendCommentCallback):
              (WebCore::PendingCallbacks::appendInternalSubsetCallback):
              (WebCore::PendingCallbacks::appendErrorCallback):
              (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
              (WebCore::PendingCallbacks::isEmpty):
              (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
              (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
              (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
              (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
              (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
              (WebCore::PendingCallbacks::PendingCharactersCallback::call):
              (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
              (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
              (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
              (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
              (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
              (WebCore::PendingCallbacks::PendingCommentCallback::call):
              (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
              (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
              (WebCore::PendingCallbacks::):
              (WebCore::matchFunc):
              (WebCore::OffsetBuffer::OffsetBuffer):
              (WebCore::OffsetBuffer::readOutBytes):
              (WebCore::shouldAllowExternalLoad):
              (WebCore::openFunc):
              (WebCore::readFunc):
              (WebCore::writeFunc):
              (WebCore::closeFunc):
              (WebCore::errorFunc):
              (WebCore::XMLParserContext::createStringParser):
              (WebCore::XMLParserContext::createMemoryParser):
              (WebCore::XMLDocumentParser::XMLDocumentParser):
              (WebCore::XMLParserContext::~XMLParserContext):
              (WebCore::XMLDocumentParser::~XMLDocumentParser):
              (WebCore::XMLDocumentParser::doWrite):
              (WebCore::toString):
              (WebCore::handleElementNamespaces):
              (WebCore::handleElementAttributes):
              (WebCore::XMLDocumentParser::startElementNs):
              (WebCore::XMLDocumentParser::endElementNs):
              (WebCore::XMLDocumentParser::characters):
              (WebCore::XMLDocumentParser::error):
              (WebCore::XMLDocumentParser::processingInstruction):
              (WebCore::XMLDocumentParser::cdataBlock):
              (WebCore::XMLDocumentParser::comment):
              (WebCore::XMLDocumentParser::startDocument):
              (WebCore::XMLDocumentParser::endDocument):
              (WebCore::XMLDocumentParser::internalSubset):
              (WebCore::getTokenizer):
              (WebCore::hackAroundLibXMLEntityBug):
              (WebCore::startElementNsHandler):
              (WebCore::endElementNsHandler):
              (WebCore::charactersHandler):
              (WebCore::processingInstructionHandler):
              (WebCore::cdataBlockHandler):
              (WebCore::commentHandler):
              (WebCore::warningHandler):
              (WebCore::fatalErrorHandler):
              (WebCore::normalErrorHandler):
              (WebCore::):
              (WebCore::sharedXHTMLEntity):
              (WebCore::getXHTMLEntity):
              (WebCore::getEntityHandler):
              (WebCore::startDocumentHandler):
              (WebCore::endDocumentHandler):
              (WebCore::internalSubsetHandler):
              (WebCore::externalSubsetHandler):
              (WebCore::ignorableWhitespaceHandler):
              (WebCore::XMLDocumentParser::initializeParserContext):
              (WebCore::XMLDocumentParser::doEnd):
              (WebCore::xmlDocPtrForString):
              (WebCore::XMLDocumentParser::lineNumber):
              (WebCore::XMLDocumentParser::columnNumber):
              (WebCore::XMLDocumentParser::stopParsing):
              (WebCore::XMLDocumentParser::resumeParsing):
              (WebCore::parseXMLDocumentFragment):
              (WebCore::attributesStartElementNsHandler):
              (WebCore::parseAttributes):
              * dom/XMLDocumentParserQt.cpp: Added.
              (WebCore::EntityResolver::resolveUndeclaredEntity):
              (WebCore::XMLDocumentParser::XMLDocumentParser):
              (WebCore::XMLDocumentParser::~XMLDocumentParser):
              (WebCore::XMLDocumentParser::doWrite):
              (WebCore::XMLDocumentParser::initializeParserContext):
              (WebCore::XMLDocumentParser::doEnd):
              (WebCore::XMLDocumentParser::lineNumber):
              (WebCore::XMLDocumentParser::columnNumber):
              (WebCore::XMLDocumentParser::stopParsing):
              (WebCore::XMLDocumentParser::resumeParsing):
              (WebCore::parseXMLDocumentFragment):
              (WebCore::attributesStartElementNsHandler):
              (WebCore::parseAttributes):
              (WebCore::prefixFromQName):
              (WebCore::handleElementNamespaces):
              (WebCore::handleElementAttributes):
              (WebCore::XMLDocumentParser::parse):
              (WebCore::XMLDocumentParser::startDocument):
              (WebCore::XMLDocumentParser::parseStartElement):
              (WebCore::XMLDocumentParser::parseEndElement):
              (WebCore::XMLDocumentParser::parseCharacters):
              (WebCore::XMLDocumentParser::parseProcessingInstruction):
              (WebCore::XMLDocumentParser::parseCdata):
              (WebCore::XMLDocumentParser::parseComment):
              (WebCore::XMLDocumentParser::endDocument):
              (WebCore::XMLDocumentParser::hasError):
              (WebCore::XMLDocumentParser::parseDtd):
              * dom/XMLDocumentParserScope.cpp: Added.
              (WebCore::XMLDocumentParserScope::XMLDocumentParserScope):
              (WebCore::XMLDocumentParserScope::~XMLDocumentParserScope):
              * dom/XMLDocumentParserScope.h: Added.
              * dom/XMLTokenizer.cpp: Removed.
              * dom/XMLTokenizer.h: Removed.
              * dom/XMLTokenizerLibxml2.cpp: Removed.
              * dom/XMLTokenizerQt.cpp: Removed.
              * dom/XMLTokenizerScope.cpp: Removed.
              * dom/XMLTokenizerScope.h: Removed.
              * html/HTML5DocumentParser.cpp: Added.
              (WebCore::):
              (WebCore::HTML5DocumentParser::HTML5DocumentParser):
              (WebCore::HTML5DocumentParser::~HTML5DocumentParser):
              (WebCore::HTML5DocumentParser::begin):
              (WebCore::HTML5DocumentParser::pumpLexerIfPossible):
              (WebCore::HTML5DocumentParser::pumpLexer):
              (WebCore::HTML5DocumentParser::write):
              (WebCore::HTML5DocumentParser::end):
              (WebCore::HTML5DocumentParser::attemptToEnd):
              (WebCore::HTML5DocumentParser::endIfDelayed):
              (WebCore::HTML5DocumentParser::finish):
              (WebCore::HTML5DocumentParser::executingScript):
              (WebCore::HTML5DocumentParser::lineNumber):
              (WebCore::HTML5DocumentParser::columnNumber):
              (WebCore::HTML5DocumentParser::htmlParser):
              (WebCore::HTML5DocumentParser::isWaitingForScripts):
              (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution):
              (WebCore::HTML5DocumentParser::watchForLoad):
              (WebCore::HTML5DocumentParser::stopWatchingForLoad):
              (WebCore::HTML5DocumentParser::shouldLoadExternalScriptFromSrc):
              (WebCore::HTML5DocumentParser::executeScript):
              (WebCore::HTML5DocumentParser::notifyFinished):
              (WebCore::HTML5DocumentParser::executeScriptsWaitingForStylesheets):
              (WebCore::HTML5DocumentParser::script):
              * html/HTML5DocumentParser.h: Added.
              (WebCore::HTML5DocumentParser::InputStream::InputStream):
              (WebCore::HTML5DocumentParser::InputStream::appendToEnd):
              (WebCore::HTML5DocumentParser::InputStream::insertAtCurrentInsertionPoint):
              (WebCore::HTML5DocumentParser::InputStream::close):
              (WebCore::HTML5DocumentParser::InputStream::current):
              (WebCore::HTML5DocumentParser::InputStream::splitInto):
              (WebCore::HTML5DocumentParser::InputStream::mergeFrom):
              (WebCore::HTML5DocumentParser::InsertionPointRecord::InsertionPointRecord):
              (WebCore::HTML5DocumentParser::InsertionPointRecord::~InsertionPointRecord):
              (WebCore::HTML5DocumentParser::inWrite):
              * html/HTML5Lexer.h:
              (WebCore::HTML5Lexer::columnNumber):
              * html/HTML5Tokenizer.cpp: Removed.
              * html/HTML5Tokenizer.h: Removed.
              * html/HTML5TreeBuilder.cpp:
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::createTokenizer):
              * html/HTMLDocumentParser.cpp: Added.
              (WebCore::):
              (WebCore::fixUpChar):
              (WebCore::tagMatch):
              (WebCore::Token::addAttribute):
              (WebCore::HTMLDocumentParser::HTMLDocumentParser):
              (WebCore::HTMLDocumentParser::reset):
              (WebCore::HTMLDocumentParser::begin):
              (WebCore::HTMLDocumentParser::setForceSynchronous):
              (WebCore::HTMLDocumentParser::processListing):
              (WebCore::HTMLDocumentParser::parseNonHTMLText):
              (WebCore::HTMLDocumentParser::scriptHandler):
              (WebCore::HTMLDocumentParser::scriptExecution):
              (WebCore::HTMLDocumentParser::parseComment):
              (WebCore::HTMLDocumentParser::parseServer):
              (WebCore::HTMLDocumentParser::parseProcessingInstruction):
              (WebCore::HTMLDocumentParser::parseText):
              (WebCore::HTMLDocumentParser::parseEntity):
              (WebCore::HTMLDocumentParser::parseDoctype):
              (WebCore::HTMLDocumentParser::parseTag):
              (WebCore::HTMLDocumentParser::continueProcessing):
              (WebCore::HTMLDocumentParser::advance):
              (WebCore::HTMLDocumentParser::willWriteHTML):
              (WebCore::HTMLDocumentParser::didWriteHTML):
              (WebCore::HTMLDocumentParser::write):
              (WebCore::HTMLDocumentParser::stopParsing):
              (WebCore::HTMLDocumentParser::processingData):
              (WebCore::HTMLDocumentParser::timerFired):
              (WebCore::HTMLDocumentParser::end):
              (WebCore::HTMLDocumentParser::finish):
              (WebCore::HTMLDocumentParser::processToken):
              (WebCore::HTMLDocumentParser::processDoctypeToken):
              (WebCore::HTMLDocumentParser::~HTMLDocumentParser):
              (WebCore::HTMLDocumentParser::enlargeBuffer):
              (WebCore::HTMLDocumentParser::enlargeScriptBuffer):
              (WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets):
              (WebCore::HTMLDocumentParser::notifyFinished):
              (WebCore::HTMLDocumentParser::executeExternalScriptsIfReady):
              (WebCore::HTMLDocumentParser::executeExternalScriptsTimerFired):
              (WebCore::HTMLDocumentParser::continueExecutingExternalScripts):
              (WebCore::HTMLDocumentParser::isWaitingForScripts):
              (WebCore::HTMLDocumentParser::setSrc):
              (WebCore::parseHTMLDocumentFragment):
              (WebCore::decodeNamedEntity):
              * html/HTMLDocumentParser.h: Added.
              (WebCore::Token::Token):
              (WebCore::Token::~Token):
              (WebCore::Token::isOpenTag):
              (WebCore::Token::isCloseTag):
              (WebCore::Token::reset):
              (WebCore::Token::addViewSourceChar):
              (WebCore::):
              (WebCore::DoctypeToken::DoctypeToken):
              (WebCore::DoctypeToken::reset):
              (WebCore::DoctypeToken::state):
              (WebCore::DoctypeToken::setState):
              (WebCore::HTMLDocumentParser::forceSynchronous):
              (WebCore::HTMLDocumentParser::executingScript):
              (WebCore::HTMLDocumentParser::lineNumber):
              (WebCore::HTMLDocumentParser::columnNumber):
              (WebCore::HTMLDocumentParser::processingContentWrittenByScript):
              (WebCore::HTMLDocumentParser::htmlParser):
              (WebCore::HTMLDocumentParser::asHTMLTokenizer):
              (WebCore::HTMLDocumentParser::checkBuffer):
              (WebCore::HTMLDocumentParser::checkScriptBuffer):
              (WebCore::HTMLDocumentParser::):
              (WebCore::HTMLDocumentParser::State::State):
              (WebCore::HTMLDocumentParser::State::tagState):
              (WebCore::HTMLDocumentParser::State::setTagState):
              (WebCore::HTMLDocumentParser::State::entityState):
              (WebCore::HTMLDocumentParser::State::setEntityState):
              (WebCore::HTMLDocumentParser::State::inScript):
              (WebCore::HTMLDocumentParser::State::setInScript):
              (WebCore::HTMLDocumentParser::State::inStyle):
              (WebCore::HTMLDocumentParser::State::setInStyle):
              (WebCore::HTMLDocumentParser::State::inXmp):
              (WebCore::HTMLDocumentParser::State::setInXmp):
              (WebCore::HTMLDocumentParser::State::inTitle):
              (WebCore::HTMLDocumentParser::State::setInTitle):
              (WebCore::HTMLDocumentParser::State::inIFrame):
              (WebCore::HTMLDocumentParser::State::setInIFrame):
              (WebCore::HTMLDocumentParser::State::inPlainText):
              (WebCore::HTMLDocumentParser::State::setInPlainText):
              (WebCore::HTMLDocumentParser::State::inProcessingInstruction):
              (WebCore::HTMLDocumentParser::State::setInProcessingInstruction):
              (WebCore::HTMLDocumentParser::State::inComment):
              (WebCore::HTMLDocumentParser::State::setInComment):
              (WebCore::HTMLDocumentParser::State::inDoctype):
              (WebCore::HTMLDocumentParser::State::setInDoctype):
              (WebCore::HTMLDocumentParser::State::inTextArea):
              (WebCore::HTMLDocumentParser::State::setInTextArea):
              (WebCore::HTMLDocumentParser::State::escaped):
              (WebCore::HTMLDocumentParser::State::setEscaped):
              (WebCore::HTMLDocumentParser::State::inServer):
              (WebCore::HTMLDocumentParser::State::setInServer):
              (WebCore::HTMLDocumentParser::State::skipLF):
              (WebCore::HTMLDocumentParser::State::setSkipLF):
              (WebCore::HTMLDocumentParser::State::startTag):
              (WebCore::HTMLDocumentParser::State::setStartTag):
              (WebCore::HTMLDocumentParser::State::discardLF):
              (WebCore::HTMLDocumentParser::State::setDiscardLF):
              (WebCore::HTMLDocumentParser::State::allowYield):
              (WebCore::HTMLDocumentParser::State::setAllowYield):
              (WebCore::HTMLDocumentParser::State::loadingExtScript):
              (WebCore::HTMLDocumentParser::State::setLoadingExtScript):
              (WebCore::HTMLDocumentParser::State::forceSynchronous):
              (WebCore::HTMLDocumentParser::State::setForceSynchronous):
              (WebCore::HTMLDocumentParser::State::inAnyNonHTMLText):
              (WebCore::HTMLDocumentParser::State::hasTagState):
              (WebCore::HTMLDocumentParser::State::hasEntityState):
              (WebCore::HTMLDocumentParser::State::needsSpecialWriteHandling):
              (WebCore::HTMLDocumentParser::State::):
              (WebCore::HTMLDocumentParser::State::setBit):
              (WebCore::HTMLDocumentParser::State::testBit):
              * html/HTMLElement.cpp:
              * html/HTMLFormControlElement.cpp:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::reportErrorToConsole):
              * html/HTMLParser.h:
              * html/HTMLTokenizer.cpp: Removed.
              * html/HTMLTokenizer.h: Removed.
              * html/HTMLViewSourceDocument.cpp:
              (WebCore::HTMLViewSourceDocument::createTokenizer):
              (WebCore::HTMLViewSourceDocument::addViewSourceToken):
              * html/HTMLViewSourceDocument.h:
              * loader/DocumentLoader.cpp:
              * loader/FTPDirectoryDocument.cpp:
              (WebCore::FTPDirectoryTokenizer::FTPDirectoryTokenizer):
              (WebCore::FTPDirectoryTokenizer::loadDocumentTemplate):
              (WebCore::FTPDirectoryTokenizer::finish):
              * loader/FrameLoader.cpp:
              * loader/ImageDocument.cpp:
              * loader/MediaDocument.cpp:
              * loader/PluginDocument.cpp:
              * loader/TextDocument.cpp:
              * page/XSSAuditor.h:
              * svg/SVGDocumentExtensions.cpp:
              * wml/WMLErrorHandling.cpp:
              (WebCore::reportWMLError):
              * xml/XSLStyleSheetLibxslt.cpp:
              (WebCore::XSLStyleSheet::parseString):
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessorLibxslt.cpp:
      2010-06-11  Eric Seidel  <eric@webkit.org>
      
              Reviewed by Adam Barth.
      
              Rename the rest of the *Tokenizer classes to *DocumentParser
              https://bugs.webkit.org/show_bug.cgi?id=40507
      
              * src/WebEntities.cpp:
               - Fix a comment to match new class names.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa046f25
  22. 24 Apr, 2010 1 commit
    • zimmermann@webkit.org's avatar
      2010-04-24 Nikolas Zimmermann <nzimmermann@rim.com> · 555112dd
      zimmermann@webkit.org authored
              Reviewed by Dirk Schulze.
      
              SVGPaintServer needs to be converted to the new RenderSVGResource* system
              https://bugs.webkit.org/show_bug.cgi?id=37986
      
              Huge speedup for SVG painting using paint servers (gradient/patterns). Cache underlying
              WebCore::Gradient/Pattern datastructures, do not rebuild them on every painting. This marks
              the finish of the SVGResource -> RenderSVGResource transition.
      
              Outline of same key changes:
              - RenderSVGResource is an abstract base class now, and the previous class is now named RenderSVGResourceContainer
                All resources except RenderSVGResourceSolidColor now inherit from RenderSVGResourceContainer, as they are all
                associated with a SVG*Element class. RenderSVGResourceSolidColor inherits from RenderSVGResource, and is not
                associated with any SVG*Element class. RenderSVGResourceSolidColor is not a render tree object, despite its name.
                The reason for that is consistency with all other painting resources.
              - RenderSVGResourceSolidColor does not live in the render tree, and exists only as static object, which is shared
                and always used when filling/stroking with solid colors - just like the old SVGPaintServerSolid.
              - RenderSVGResourceGradient/RenderSVGResourcePattern now store the underlying WebCore::Gradient/Pattern object
                instead of rebuilding it everytime we're asked to paint -> this is the main difference with the old concept, leading
                to much faster speed.
              - SVGResource has vanished. All resources (clipper/filter/marker/masker/gradient/pattern) now share the same codepaths
                to handle updates and client invalidation - which is a huge benefit, and makes the code easier to understand.
      
              * Android.mk: Remove svg/graphics/SVGResource*, svg/graphics/SVGPaintServer.h from build.
              * GNUmakefile.am: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * platform/graphics/Gradient.cpp: Add addColorStop() method taking a ColorStop const-reference.
              (WebCore::Gradient::addColorStop):
              * platform/graphics/Gradient.h: Ditto.
              * platform/graphics/TextRun.h: Rename SVGPaintServer to RenderSVGResource
              (WebCore::TextRun::TextRun):
              (WebCore::TextRun::activePaintingResource): Renamed from activePaintServer.
              (WebCore::TextRun::setActivePaintingResource): Renamed from setActivePaintServer.
              * platform/graphics/win/GraphicsContextWin.cpp: Remove references to SVGResourceImage, which was removed a long time ago.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::toRenderSVGResourceContainer): Renamed from toRenderSVGResource().
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isSVGGradientStop): Added.
              (WebCore::RenderObject::isSVGResourceContainer): Renamed from isSVGResource().
              * rendering/RenderPath.cpp: Utilize RenderSVGResource::fill/strokePaintingResource to request paint servers, instead of SVGPaintServer.
              (WebCore::RenderPath::fillContains): Adapt to new concept.
              (WebCore::RenderPath::strokeContains): Ditto.
              (WebCore::fillAndStrokePath): Ditto.
              (WebCore::RenderPath::paint): Ditto.
              * rendering/RenderSVGGradientStop.cpp:
              (WebCore::RenderSVGGradientStop::styleDidChange): Ditto.
              * rendering/RenderSVGGradientStop.h: Fixed indention.
              * rendering/RenderSVGResource.cpp: Refactored old SVGPaintServer code to request fill/stroke painting resources, splitted up in several methods to aid readability. 
              (WebCore::registerPendingResource):
              (WebCore::adjustColorForPseudoRules):
              (WebCore::RenderSVGResource::fillPaintingResource):
              (WebCore::RenderSVGResource::strokePaintingResource):
              (WebCore::RenderSVGResource::sharedSolidPaintingResource):
              (WebCore::RenderSVGResource::markForLayoutAndResourceInvalidation):
              * rendering/RenderSVGResource.h: Make RenderSVGResource an abstract base class, see above for the reasoning.
              (WebCore::RenderSVGResource::RenderSVGResource):
              (WebCore::RenderSVGResource::~RenderSVGResource):
              (WebCore::RenderSVGResource::postApplyResource):
              * rendering/RenderSVGResourceClipper.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
              (WebCore::RenderSVGResourceClipper::RenderSVGResourceClipper):
              (WebCore::RenderSVGResourceClipper::invalidateClient):
              (WebCore::RenderSVGResourceClipper::applyResource): Adapt to signature changes (add RenderStyle* and resource mode parameters)
              (WebCore::RenderSVGResourceClipper::applyClippingToContext):
              * rendering/RenderSVGResourceClipper.h:
              * rendering/RenderSVGResourceContainer.h: Added. Renamed from RenderSVGResource. Now inherits from RenderSVGHiddenContainer and RenderSVGResource.
              (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::~RenderSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::idChanged):
              (WebCore::RenderSVGResourceContainer::isSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::drawsContents):
              (WebCore::RenderSVGResourceContainer::toRenderSVGResourceContainer):
              (WebCore::getRenderSVGResourceContainerById):
              (WebCore::getRenderSVGResourceById):
              * rendering/RenderSVGResourceFilter.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
              (WebCore::RenderSVGResourceFilter::RenderSVGResourceFilter):
              (WebCore::RenderSVGResourceFilter::invalidateClient):
              (WebCore::RenderSVGResourceFilter::applyResource): Adapt to signature changes (add RenderStyle* and resource mode parameters)
              (WebCore::RenderSVGResourceFilter::postApplyResource):
              * rendering/RenderSVGResourceFilter.h:
              * rendering/RenderSVGResourceGradient.cpp: Moved from SVGPaintServerGradient, cleaned up and refactored.
              (WebCore::RenderSVGResourceGradient::RenderSVGResourceGradient):
              (WebCore::RenderSVGResourceGradient::~RenderSVGResourceGradient):
              (WebCore::RenderSVGResourceGradient::invalidateClients):
              (WebCore::RenderSVGResourceGradient::invalidateClient):
              (WebCore::createMaskAndSwapContextForTextGradient):
              (WebCore::clipToTextMask):
              (WebCore::RenderSVGResourceGradient::applyResource):
              * rendering/RenderSVGResourceGradient.h:
              (WebCore::RenderSVGResourceGradient::resourceBoundingBox):
              * rendering/RenderSVGResourceLinearGradient.cpp: Moved from SVGPaintServerLinearGradient, cleaned up and refactored.
              (WebCore::RenderSVGResourceLinearGradient::RenderSVGResourceLinearGradient):
              (WebCore::RenderSVGResourceLinearGradient::~RenderSVGResourceLinearGradient):
              (WebCore::RenderSVGResourceLinearGradient::buildGradient):
              * rendering/RenderSVGResourceLinearGradient.h:
              (WebCore::RenderSVGResourceLinearGradient::renderName):
              (WebCore::RenderSVGResourceLinearGradient::resourceType):
              * rendering/RenderSVGResourceMarker.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
              (WebCore::RenderSVGResourceMarker::RenderSVGResourceMarker):
              (WebCore::RenderSVGResourceMarker::invalidateClient):
              * rendering/RenderSVGResourceMarker.h:
              (WebCore::RenderSVGResourceMarker::applyResource):
              * rendering/RenderSVGResourceMasker.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
              (WebCore::RenderSVGResourceMasker::RenderSVGResourceMasker):
              (WebCore::RenderSVGResourceMasker::invalidateClient):
              (WebCore::RenderSVGResourceMasker::applyResource):
              * rendering/RenderSVGResourceMasker.h:
              (WebCore::MaskerData::MaskerData):
              * rendering/RenderSVGResourcePattern.cpp: Moved from SVGPaintServerPattern, cleaned up and refactored.
              (WebCore::RenderSVGResourcePattern::RenderSVGResourcePattern):
              (WebCore::RenderSVGResourcePattern::~RenderSVGResourcePattern):
              (WebCore::RenderSVGResourcePattern::invalidateClients):
              (WebCore::RenderSVGResourcePattern::invalidateClient):
              (WebCore::RenderSVGResourcePattern::applyResource):
              (WebCore::RenderSVGResourcePattern::postApplyResource):
              (WebCore::calculatePatternBoundaries):
              (WebCore::RenderSVGResourcePattern::calculatePatternBoundariesIncludingOverflow):
              (WebCore::RenderSVGResourcePattern::createTileImage):
              (WebCore::RenderSVGResourcePattern::buildPattern):
              * rendering/RenderSVGResourcePattern.h:
              (WebCore::RenderSVGResourcePattern::renderName):
              (WebCore::RenderSVGResourcePattern::resourceBoundingBox):
              (WebCore::RenderSVGResourcePattern::resourceType):
              * rendering/RenderSVGResourceRadialGradient.cpp: Moved from SVGPaintServerRadialGradient, cleaned up and refactored.
              (WebCore::RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient):
              (WebCore::RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient):
              (WebCore::RenderSVGResourceRadialGradient::buildGradient):
              * rendering/RenderSVGResourceRadialGradient.h:
              (WebCore::RenderSVGResourceRadialGradient::renderName):
              (WebCore::RenderSVGResourceRadialGradient::resourceType):
              * rendering/RenderSVGResourceSolidColor.cpp: Moved from SVGPaintServerSolid, cleaned up and refactored.
              (WebCore::RenderSVGResourceSolidColor::RenderSVGResourceSolidColor):
              (WebCore::RenderSVGResourceSolidColor::~RenderSVGResourceSolidColor):
              (WebCore::RenderSVGResourceSolidColor::applyResource):
              (WebCore::RenderSVGResourceSolidColor::postApplyResource):
              * rendering/RenderSVGResourceSolidColor.h:
              (WebCore::RenderSVGResourceSolidColor::invalidateClients):
              (WebCore::RenderSVGResourceSolidColor::invalidateClient):
              (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox):
              (WebCore::RenderSVGResourceSolidColor::resourceType):
              (WebCore::RenderSVGResourceSolidColor::color):
              (WebCore::RenderSVGResourceSolidColor::setColor):
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::paint): Early exit if painting is disabled.
              * rendering/RenderTreeAsText.cpp:
              (WebCore::write): Add RenderSVGGradientStop dumping.
              (WebCore::externalRepresentation): Remove SVGResource dumping.
              * rendering/SVGInlineTextBox.cpp: Adapt to SVGPaintServer changes (paint server request).
              (WebCore::SVGInlineTextBox::paintCharacters):
              (WebCore::SVGInlineTextBox::paintDecoration):
              * rendering/SVGInlineTextBox.h: Ditto.
              (WebCore::SVGTextPaintInfo::SVGTextPaintInfo):
              * rendering/SVGRenderSupport.cpp: Ditto.
              (WebCore::SVGRenderBase::prepareToRenderSVGContent):
              (WebCore::SVGRenderBase::finishRenderSVGContent):
              (WebCore::invalidatePaintingResource):
              (WebCore::deregisterFromResources):
              (WebCore::dashArrayFromRenderingStyle): Moved here from SVGPaintServer.
              (WebCore::applyStrokeStyleToContext): Ditto.
              * rendering/SVGRenderSupport.h:
              * rendering/SVGRenderTreeAsText.cpp: Add new gradient/pattern dumping code. Stops are now properly dumped as well!
              (WebCore::operator<<):
              (WebCore::writeSVGPaintingResource):
              (WebCore::writeStyle):
              (WebCore::boundingBoxModeString):
              (WebCore::writeCommonGradientProperties):
              (WebCore::writeSVGResourceContainer):
              (WebCore::writeSVGGradientStop):
              * rendering/SVGRenderTreeAsText.h:
              * rendering/SVGRootInlineBox.cpp: Adapt to SVGPaintServer changes (paint server request).
              (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
              (WebCore::SVGRootInlineBoxPaintWalker::~SVGRootInlineBoxPaintWalker):
              (WebCore::SVGRootInlineBoxPaintWalker::teardownFillPaintServer):
              (WebCore::SVGRootInlineBoxPaintWalker::teardownStrokePaintServer):
              (WebCore::SVGRootInlineBoxPaintWalker::setupBackground):
              (WebCore::SVGRootInlineBoxPaintWalker::setupFill):
              (WebCore::SVGRootInlineBoxPaintWalker::setupFillSelection):
              (WebCore::SVGRootInlineBoxPaintWalker::setupStroke):
              (WebCore::SVGRootInlineBoxPaintWalker::setupStrokeSelection):
              (WebCore::SVGRootInlineBoxPaintWalker::setupForeground):
              (WebCore::SVGRootInlineBoxPaintWalker::activePaintingResource):
              (WebCore::SVGRootInlineBoxPaintWalker::paintChunk):
              * svg/GradientAttributes.h: Remove SVGGradientStop, use Gradient::ColorStop vector. Cleanup.
              (WebCore::GradientAttributes::stops):
              (WebCore::GradientAttributes::setStops):
              * svg/LinearGradientAttributes.h: Move ENABLE(SVG) guard to correct location.
              * svg/PatternAttributes.h: Add missing includes and class forwards.
              * svg/RadialGradientAttributes.h: Move ENABLE(SVG) guard to correct location.
              * svg/SVGClipPathElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
              (WebCore::SVGClipPathElement::svgAttributeChanged):
              (WebCore::SVGClipPathElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
              * svg/SVGClipPathElement.h:
              * svg/SVGDocumentExtensions.cpp: Change HashMaps to hash AtomicStrings instead of Strings. Rename RenderSVGResource to RenderSVGResourceContainer.
              (WebCore::SVGDocumentExtensions::addResource):
              (WebCore::SVGDocumentExtensions::removeResource):
              (WebCore::SVGDocumentExtensions::resourceById):
              (WebCore::SVGDocumentExtensions::addPendingResource):
              * svg/SVGDocumentExtensions.h:
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::insertedIntoDocument): Remove reference to SVGResource::invalidateClients(), handled differently now.
              (WebCore::SVGElement::updateAnimatedSVGAttribute): Change assertion, that is incorrect now.
              * svg/SVGElement.h: Make updateAnimatedSVGAttribute() public.
              * svg/SVGFont.cpp: Adapt to SVGPaintServer changes (paint server request).
              (WebCore::Font::drawTextUsingSVGFont):
              * svg/SVGGElement.cpp: If style()->display() is NONE, create a RenderSVGHiddenContainer, removing hacks in SVGStopElement for pservers-grad-19-b.svg (yes, SVG is crazy.)
              (WebCore::SVGGElement::createRenderer):
              * svg/SVGGElement.h: Remove childrenChanged() method which _always_ called renderer->setNeedsLayout(true), which is completly wrong and unnecessary.
              (WebCore::SVGGElement::rendererIsNeeded): Always return true.
              * svg/SVGGradientElement.cpp: Adapt to new RenderSVGResourceGradient code.
              (WebCore::SVGGradientElement::svgAttributeChanged):
              (WebCore::SVGGradientElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
              (WebCore::SVGGradientElement::buildStops):
              * svg/SVGGradientElement.h:
              * svg/SVGLinearGradientElement.cpp: Adapt to new RenderSVGResourceLinearGradient code.
              (WebCore::SVGLinearGradientElement::svgAttributeChanged):
              (WebCore::SVGLinearGradientElement::createRenderer):
              (WebCore::SVGLinearGradientElement::collectGradientProperties):
              (WebCore::SVGLinearGradientElement::calculateStartEndPoints):
              * svg/SVGLinearGradientElement.h:
              * svg/SVGMarkerElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
              (WebCore::SVGMarkerElement::svgAttributeChanged):
              (WebCore::SVGMarkerElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
              (WebCore::SVGMarkerElement::setOrientToAuto):
              (WebCore::SVGMarkerElement::setOrientToAngle):
              * svg/SVGMaskElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
              (WebCore::SVGMaskElement::svgAttributeChanged):
              (WebCore::SVGMaskElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
              * svg/SVGPatternElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
              (WebCore::SVGPatternElement::svgAttributeChanged):
              (WebCore::SVGPatternElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
              (WebCore::SVGPatternElement::createRenderer):
              * svg/SVGPatternElement.h:
              * svg/SVGPolyElement.h: Remove unneded rendererIsNeeded() override.
              * svg/SVGRadialGradientElement.cpp: Adapt to new RenderSVGResourceRadialGradient code.
              (WebCore::SVGRadialGradientElement::svgAttributeChanged):
              (WebCore::SVGRadialGradientElement::createRenderer):
              (WebCore::SVGRadialGradientElement::collectGradientProperties):
              (WebCore::SVGRadialGradientElement::calculateFocalCenterPointsAndRadius):
              * svg/SVGRadialGradientElement.h:
              * svg/SVGStopElement.cpp: Clean up code, moved stop color calculation from SVGGradientElement to here, where it belongs.
              (WebCore::SVGStopElement::parseMappedAttribute):
              (WebCore::SVGStopElement::stopColorIncludingOpacity):
              * svg/SVGStopElement.h:
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::~SVGStyledElement):
              (WebCore::SVGStyledElement::svgAttributeChanged): Only invalidateResourcesInAncestorChain()/deregisterFromResources() when we're not parsing.
              (WebCore::SVGStyledElement::invalidateResourcesInAncestorChain): Early exit if we find a parent resources, there is no resource nesting.
              (WebCore::SVGStyledElement::invalidateResourceClients): Renamed from invalidateCanvasResources()
              (WebCore::SVGStyledElement::childrenChanged): Only invalidate SVGElementInstances when !changedByParser is set.
              * svg/SVGStyledElement.h: Remove canvasResource() logic, remove detach() method.
              * svg/SVGTextPathElement.h:
              * svg/graphics/SVGPaintServer.h: Removed.
              * svg/graphics/SVGResource.cpp: Removed.
              * svg/graphics/SVGResource.h: Removed.
      2010-04-24  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Dirk Schulze.
      
              SVGPaintServer needs to be converted to the new RenderSVGResource* system
              https://bugs.webkit.org/show_bug.cgi?id=37986
      
              Rebaseline SVG tests, after the RenderSVGResource transition.
      
              NOTE: This WILL affect _any_ platform with custom svg results for tests using gradients/patterns.
                    That means I have to wait for the bot results, and update them ASAP. Therefore landing out
                    of california business hours and on the weekend - please stay tuned I'll fix any breakages soon.
                    (Except for chromium whose test results are not available on build.webkit.org, sorry.)
      
              * platform/mac/svg/W3C-SVG-1.1/animate-elem-31-t-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/animate-elem-78-t-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/color-prop-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/coords-units-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/filters-color-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/masking-mask-01-b-expected.checksum:
              * platform/mac/svg/W3C-SVG-1.1/masking-mask-01-b-expected.png:
              * platform/mac/svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/painting-render-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-02-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-03-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-04-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-05-b-expected.checksum:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-05-b-expected.png:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-05-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-07-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-09-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-10-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-11-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-12-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-14-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-15-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-16-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-17-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-18-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-19-b-expected.checksum:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-19-b-expected.png:
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-19-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/pservers-pattern-01-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/struct-group-03-t-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/struct-use-05-b-expected.txt:
              * platform/mac/svg/W3C-SVG-1.1/styling-inherit-01-b-expected.txt:
              * platform/mac/svg/batik/filters/feTile-expected.txt:
              * platform/mac/svg/batik/masking/maskRegions-expected.txt:
              * platform/mac/svg/batik/paints/gradientLimit-expected.txt:
              * platform/mac/svg/batik/paints/patternPreserveAspectRatioA-expected.txt:
              * platform/mac/svg/batik/paints/patternRegionA-expected.txt:
              * platform/mac/svg/batik/paints/patternRegions-expected.txt:
              * platform/mac/svg/batik/text/textEffect-expected.txt:
              * platform/mac/svg/batik/text/textEffect2-expected.txt:
              * platform/mac/svg/batik/text/textEffect3-expected.txt:
              * platform/mac/svg/batik/text/textProperties-expected.txt:
              * platform/mac/svg/carto.net/colourpicker-expected.txt:
              * platform/mac/svg/carto.net/tabgroup-expected.txt:
              * platform/mac/svg/css/circle-in-mask-with-shadow-expected.txt:
              * platform/mac/svg/css/mask-with-shadow-expected.txt:
              * platform/mac/svg/custom/broken-internal-references-expected.txt:
              * platform/mac/svg/custom/deep-dynamic-updates-expected.txt:
              * platform/mac/svg/custom/dominant-baseline-hanging-expected.checksum:
              * platform/mac/svg/custom/dominant-baseline-hanging-expected.png:
              * platform/mac/svg/custom/dominant-baseline-hanging-expected.txt:
              * platform/mac/svg/custom/feComponentTransfer-Discrete-expected.txt:
              * platform/mac/svg/custom/feComponentTransfer-Gamma-expected.txt:
              * platform/mac/svg/custom/feComponentTransfer-Linear-expected.txt:
              * platform/mac/svg/custom/feComponentTransfer-Table-expected.txt:
              * platform/mac/svg/custom/fill-fallback-expected.txt:
              * platform/mac/svg/custom/gradient-add-stops-expected.txt:
              * platform/mac/svg/custom/gradient-attr-update-expected.txt:
              * platform/mac/svg/custom/gradient-cycle-detection-expected.txt:
              * platform/mac/svg/custom/gradient-deep-referencing-expected.txt:
              * platform/mac/svg/custom/gradient-rotated-bbox-expected.txt:
              * platform/mac/svg/custom/gradient-stop-corner-cases-expected.txt:
              * platform/mac/svg/custom/gradient-stop-style-change-expected.txt:
              * platform/mac/svg/custom/gradient-stroke-width-expected.checksum:
              * platform/mac/svg/custom/gradient-stroke-width-expected.png:
              * platform/mac/svg/custom/gradient-stroke-width-expected.txt:
              * platform/mac/svg/custom/gradient-userSpaceOnUse-with-percentage-expected.txt:
              * platform/mac/svg/custom/grayscale-gradient-mask-expected.txt:
              * platform/mac/svg/custom/group-opacity-expected.txt:
              * platform/mac/svg/custom/inline-svg-in-xhtml-expected.txt:
              * platform/mac/svg/custom/invalid-css-expected.txt:
              * platform/mac/svg/custom/js-late-gradient-and-object-creation-expected.txt:
              * platform/mac/svg/custom/js-late-gradient-creation-expected.txt:
              * platform/mac/svg/custom/js-late-pattern-and-object-creation-expected.txt:
              * platform/mac/svg/custom/js-late-pattern-creation-expected.txt:
              * platform/mac/svg/custom/js-update-gradient-expected.checksum:
              * platform/mac/svg/custom/js-update-gradient-expected.png:
              * platform/mac/svg/custom/js-update-gradient-expected.txt:
              * platform/mac/svg/custom/js-update-pattern-child-expected.txt:
              * platform/mac/svg/custom/js-update-pattern-expected.txt:
              * platform/mac/svg/custom/js-update-stop-expected.txt:
              * platform/mac/svg/custom/large-bounding-box-percents-expected.txt:
              * platform/mac/svg/custom/pattern-cycle-detection-expected.txt:
              * platform/mac/svg/custom/pattern-deep-referencing-expected.txt:
              * platform/mac/svg/custom/pattern-excessive-malloc-expected.txt:
              * platform/mac/svg/custom/pattern-in-defs-expected.txt:
              * platform/mac/svg/custom/pattern-rotate-expected.txt:
              * platform/mac/svg/custom/pattern-size-bigger-than-target-size-expected.txt:
              * platform/mac/svg/custom/pattern-skew-transformed-expected.txt:
              * platform/mac/svg/custom/pattern-with-transformation-expected.txt:
              * platform/mac/svg/custom/pattern-y-offset-expected.txt:
              * platform/mac/svg/custom/resource-client-removal-expected.txt:
              * platform/mac/svg/custom/stroke-fallback-expected.txt:
              * platform/mac/svg/custom/stroked-pattern-expected.txt:
              * platform/mac/svg/custom/text-gradient-no-content-expected.txt:
              * platform/mac/svg/custom/use-on-symbol-inside-pattern-expected.txt:
              * platform/mac/svg/custom/use-recalcStyle-crash-expected.txt:
              * platform/mac/svg/filters/big-sized-filter-expected.txt:
              * platform/mac/svg/filters/feDisplacementMap-expected.txt:
              * platform/mac/svg/filters/feTile-expected.txt:
              * platform/mac/svg/filters/filterRes-expected.txt:
              * platform/mac/svg/hixie/error/003-expected.txt:
              * platform/mac/svg/hixie/perf/005-expected.txt:
              * platform/mac/svg/hixie/perf/006-expected.txt:
              * platform/mac/svg/text/selection-background-color-expected.txt:
              * platform/mac/svg/text/selection-styles-expected.txt:
              * platform/mac/svg/text/text-gradient-positioning-expected.txt:
              * platform/mac/svg/transforms/text-with-pattern-inside-transformed-html-expected.txt:
              * platform/mac/svg/transforms/text-with-pattern-with-svg-transform-expected.txt:
              * platform/win/svg/custom/broken-internal-references-expected.txt:
              * svg/custom/gradient-with-1d-boundingbox-expected.txt:
              * svg/custom/radial-gradient-with-outstanding-focalPoint-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      555112dd
  23. 15 Apr, 2010 1 commit
    • zimmermann@webkit.org's avatar
      2010-04-15 Nikolas Zimmermann <nzimmermann@rim.com> · bf49dc51
      zimmermann@webkit.org authored
              Reviewed by Beth Dakin.
      
              RenderSVGResource <-> id mapping should be cached
              https://bugs.webkit.org/show_bug.cgi?id=37575
      
              Test: svg/custom/clip-path-id-changes.svg
      
              * rendering/RenderSVGResource.h:
              (WebCore::RenderSVGResource::RenderSVGResource):
              (WebCore::RenderSVGResource::~RenderSVGResource):
              (WebCore::RenderSVGResource::idChanged):
              (WebCore::getRenderSVGResourceById):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::addResource):
              (WebCore::SVGDocumentExtensions::removeResource):
              (WebCore::SVGDocumentExtensions::resourceById):
              * svg/SVGDocumentExtensions.h:
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::svgAttributeChanged):
      2010-04-15  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Beth Dakin.
      
              RenderSVGResource <-> id mapping should be cached
              https://bugs.webkit.org/show_bug.cgi?id=37575
      
              * platform/mac/svg/custom/clip-path-id-changes-expected.checksum: Added.
              * platform/mac/svg/custom/clip-path-id-changes-expected.png: Added.
              * platform/mac/svg/custom/clip-path-id-changes-expected.txt: Added.
              * svg/custom/clip-path-id-changes.svg: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf49dc51
  24. 21 Feb, 2010 1 commit
    • jchaffraix@webkit.org's avatar
      Remove auto_ptr usage in WebCore. · a7d35a4b
      jchaffraix@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=35157
      
      Reviewed by Eric Seidel.
      
      The changes consists of:
      
      - Changing auto_ptr arguments or return types to PassOwnPtr.
      
      - Replacing local auto_ptr by OwnPtr.
      
      - Removing now unneeded <memory> inclusion.
      
      * css/CSSParser.cpp:
      (WebCore::CSSParser::addProperty):
      * loader/WorkerThreadableLoader.cpp:
      (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
      (WebCore::workerContextDidReceiveResponse):
      (WebCore::workerContextDidReceiveData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
      (WebCore::workerContextDidReceiveAuthenticationCancellation):
      * loader/WorkerThreadableLoader.h:
      * loader/icon/IconLoader.cpp:
      (WebCore::IconLoader::create):
      * loader/icon/IconLoader.h:
      * platform/ContextMenu.cpp:
      (WebCore::separatorItem):
      * platform/CrossThreadCopier.h:
      (WebCore::):
      * platform/network/HTTPHeaderMap.cpp:
      (WebCore::HTTPHeaderMap::copyData):
      (WebCore::HTTPHeaderMap::adopt):
      * platform/network/HTTPHeaderMap.h:
      * platform/network/ResourceRequestBase.cpp:
      (WebCore::ResourceRequestBase::adopt):
      (WebCore::ResourceRequestBase::copyData):
      * platform/network/ResourceRequestBase.h:
      * platform/network/ResourceResponseBase.cpp:
      (WebCore::ResourceResponseBase::adopt):
      (WebCore::ResourceResponseBase::copyData):
      * platform/network/ResourceResponseBase.h:
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::SVGDocumentExtensions::removePendingResource):
      * svg/SVGDocumentExtensions.h:
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::insertedIntoDocument):
      * workers/GenericWorkerTask.h:
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a7d35a4b
  25. 01 Dec, 2009 1 commit
    • zimmermann@webkit.org's avatar
      2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com> · 840d1766
      zimmermann@webkit.org authored
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
              forwarding the call to SVGDocumentExtensions, if SVG is enabled.
      
              Implemented just like the existing pauseAnimation* methods for CSS animations.
      
              * Api/qwebframe.cpp:
              (qt_drt_pauseSVGAnimation):
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
              forwarding the call to SVGDocumentExtensions, if SVG is enabled.
      
              Implemented just like the existing pauseAnimation* methods for CSS animations.
      
              * webkit/webkitprivate.h:
              * webkit/webkitwebframe.cpp:
              (webkit_web_frame_pause_svg_animation):
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
              forwarding the call to SVGDocumentExtensions, if SVG is enabled.
      
              Implemented just like the existing pauseAnimation* methods for CSS animations.
      
              * Interfaces/IWebFramePrivate.idl:
              * WebFrame.cpp:
              (WebFrame::pauseSVGAnimation):
              * WebFrame.h:
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
              forwarding the call to SVGDocumentExtensions, if SVG is enabled.
      
              Implemented just like the existing pauseAnimation* methods for CSS animations.
      
              * WebView/WebFrame.mm:
              (-[WebFrame _pauseSVGAnimation:onSMILNode:atTime:]):
              * WebView/WebFramePrivate.h:
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add 'sampleSVGAnimationForElementAtTime' method to the LayoutTestController,
              for the use within the new SVG animation test framework (LayoutTests/svg/animations/)
      
              layoutTestController.sampleAnimationAtTime(<svg animation id>, <absolute time>, <svg element id>);
              to sample a svg animateMotion/animateColor/animate/set element at certain times.
      
              After the desired SVG animation starts and calling the method above, it's immediately forwarded to
              the desired sampling time. After JS returns from the 'sampleSVGAnimationForElementAtTime' method
              a callback is fired used to sample the animation value at the target time. It's modelled similar
              to the CSS animation/transition testing framework, inspired by
              LayoutTests/animations/animation-test-helpers.js.
      
              Though it has been extended to integrate within the fast/js/js-test-* framework, that's used for
              the SVG dynamic-updates tests, to simplify test creation, by utilizing script-tests/* only.
      
              Adding a simple testcase testing the DRT methods, it will soon be extended to test animVal/baseVal
              interaction, while animating.
      
              Test: svg/animations/animVal-basics.html
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::sampleAnimationAtTime):
              * svg/SVGDocumentExtensions.h:
              * svg/animation/SMILTimeContainer.cpp:
              (WebCore::SMILTimeContainer::SMILTimeContainer):
              (WebCore::SMILTimeContainer::sampleAnimationAtTime):
              (WebCore::SMILTimeContainer::updateAnimations):
              * svg/animation/SMILTimeContainer.h:
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add LayoutTests/svg/animations directory, containing a new
              framework for SVG animation test with sampling at certain times.
      
              Added one example test, which will be extended soon to cover animVal
              support, once basic support has been implemented.
      
              * svg/animations: Added.
              * svg/animations/animVal-basics-expected.txt: Added.
              * svg/animations/animVal-basics.html: Added.
              * svg/animations/resources: Added.
              * svg/animations/resources/SVGAnimationTestCase.js: Added.
              (isCloseEnough):
              (moveAnimationTimelineAndSample):
              (startTest):
              (sampleAnimation):
              (runAnimationTest):
              * svg/animations/script-tests: Added.
              * svg/animations/script-tests/TEMPLATE.html: Added.
              * svg/animations/script-tests/animVal-basics.js: Added.
              (sample1):
              (sample2):
              (sample3):
              (executeTest):
      2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Simon Fraser.
      
              Add SVG animation test framework with 'snapshot' functionality
              https://bugs.webkit.org/show_bug.cgi?id=31897
      
              Add new 'sampleSVGAnimationForElementAtTime' DRT method,
              used by the new SVG animation testing framework, implemented
              for qt/gtk/win/mac.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (sampleSVGAnimationForElementAtTimeCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::sampleSVGAnimationForElementAtTime):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::sampleSVGAnimationForElementAtTime):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::sampleSVGAnimationForElementAtTime):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::sampleSVGAnimationForElementAtTime):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::sampleSVGAnimationForElementAtTime):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      840d1766
  26. 12 Jul, 2009 1 commit
    • bfulgham@webkit.org's avatar
      WebCore: · 0b68bb9d
      bfulgham@webkit.org authored
      2009-07-12  Keishi Hattori  <casey.hattori@gmail.com>
      
              Reviewed by Timothy Hatcher.
      
              Refactor ConsoleMessage to add MessageType attribute.
              https://bugs.webkit.org/show_bug.cgi?id=20625
      
              * bindings/js/JSCustomXPathNSResolver.cpp:
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/JSDOMWindowBase.cpp:
              (WebCore::JSDOMWindowBase::printErrorMessage):
              * dom/Document.cpp:
              (WebCore::Document::reportException):
              (WebCore::Document::addMessage):
              * dom/Document.h:
              * dom/ScriptExecutionContext.h:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::reportErrorToConsole):
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::ConsoleMessage):
              (WebCore::ConsoleMessage::addToConsole):
              (WebCore::ConsoleMessage::isEqual):
              * inspector/ConsoleMessage.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::addMessageToConsole):
              (WebCore::InspectorController::startGroup):
              (WebCore::InspectorController::endGroup):
              (WebCore::InspectorController::addProfileFinishedMessageToConsole):
              (WebCore::InspectorController::addStartProfilingMessageToConsole):
              (WebCore::InspectorController::count):
              * inspector/InspectorController.h:
              * inspector/front-end/Console.js:
              (WebInspector.Console.prototype.addMessage):
              (WebInspector.ConsoleMessage): Added type property.
              (WebInspector.ConsoleMessage.prototype.toMessageElement):
              (WebInspector.ConsoleMessage.prototype.toString):
              (WebInspector.ConsoleMessage.prototype.isEqual):
              (WebInspector.ConsoleCommandResult):
              (WebInspector.ConsoleGroup.prototype.addMessage):
              (WebInspector.ConsoleGroup.prototype._titleClicked):
              * inspector/front-end/Resource.js:
              (WebInspector.Resource.prototype._addTip):
              (WebInspector.Resource.prototype._checkWarning):
              * inspector/front-end/inspector.css: Changed ".console-group-title-level" to ".console-group-title"
              * inspector/front-end/inspector.js:
              (WebInspector.addMessageToConsole):
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::printAccessDeniedMessage):
              * loader/EmptyClients.h:
              (WebCore::EmptyChromeClient::addMessageToConsole):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::reportLocalLoadFailed):
              (WebCore::FrameLoader::shouldAllowNavigation):
              * page/ChromeClient.h:
              * page/Console.cpp:
              (WebCore::printMessageSourceAndLevelPrefix):
              (WebCore::Console::addMessage):
              (WebCore::Console::error):
              (WebCore::Console::log):
              (WebCore::Console::dir):
              (WebCore::Console::trace):
              (WebCore::Console::assertCondition):
              (WebCore::Console::timeEnd):
              (WebCore::Console::warn):
              * page/Console.h: Added MessageType enum.
              (WebCore::):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessageTimerFired):
              * page/XSSAuditor.cpp:
              (WebCore::XSSAuditor::canEvaluate):
              (WebCore::XSSAuditor::canLoadExternalScriptFromSrc):
              (WebCore::XSSAuditor::canLoadObject):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::reportWarning):
              (WebCore::SVGDocumentExtensions::reportError):
              * wml/WMLErrorHandling.cpp:
              (WebCore::reportWMLError):
              * workers/GenericWorkerTask.h: Added GenericWorkerTask8 for the extra argument.
              (WebCore::GenericWorkerTask8::create):
              (WebCore::GenericWorkerTask8::GenericWorkerTask8):
              (WebCore::GenericWorkerTask8::performTask):
              (WebCore::createCallbackTask):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::addMessage):
              (WebCore::WorkerContext::importScripts):
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::postConsoleMessageTask):
              (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
              * workers/WorkerMessagingProxy.h:
              * workers/WorkerObjectProxy.h:
              * xml/XMLHttpRequest.cpp:
              (WebCore::reportUnsafeUsage):
              (WebCore::XMLHttpRequest::didFinishLoading):
              * xml/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::parseErrorFunc):
      
      WebKit/mac:
      
      2009-07-12  Keishi Hattori  <casey.hattori@gmail.com>
      
              Reviewed by Timothy Hatcher.
      
              Refactor ConsoleMessage to add MessageType attribute.
              https://bugs.webkit.org/show_bug.cgi?id=20625
      
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::addMessageToConsole):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b68bb9d
  27. 23 Sep, 2008 1 commit
  28. 15 Sep, 2008 1 commit
    • zimmermann@webkit.org's avatar
      Reviewed by Eric. · 8cc8ad0a
      zimmermann@webkit.org authored
      Fixes: https://bugs.webkit.org/show_bug.cgi?id=20865
      Prepare HTMLScriptElement & SVGScriptElement unification, and unification of event handling.
      
      Several renames:
      dispatchHTMLEvent -> dispatchEventForType
      setHTMLEventListener -> setEventListenerForType
      getHTMLEventListener -> eventListenerForType
      removeHTMLEventListener -> removeEventListenerForType
      isHTMLEventListener -> isAttachedToEventTargetNode
      ...
      
      Similar renames for the dispatch/get/set/*Window*Event functions.
      Kill JSSVGLazyEventListener and merge with JSLazyEventListener.
      
      Most important change: Rename setHTMLEventListener to setEventListenerForTypeAndAttribute,
      as there exists a generic createEventListener() method now, taking care of JSLazyEventListener creation.
      
      setHTMLEventListener() used createHTMLEventListener() before and was HTML specific.
      SVG is able to use the code as well now. This affects most files in html/.
      
      No functional changes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cc8ad0a
  29. 16 Jun, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · 60d3e9f9
      darin@apple.com authored
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebCore.base.exp:
              * bindings/js/JSCustomSQLStatementCallback.cpp:
              (WebCore::JSCustomSQLStatementCallback::handleEvent):
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
              (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionCallback.cpp:
              (WebCore::JSCustomSQLTransactionCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
              (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
              * bindings/js/JSCustomVoidCallback.cpp:
              (WebCore::JSCustomVoidCallback::handleEvent):
              * bindings/js/JSCustomXPathNSResolver.cpp:
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/JSDOMWindowBase.cpp:
              (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
              (WebCore::allowPopUp):
              (WebCore::createWindow):
              (WebCore::windowProtoFuncOpen):
              (WebCore::toJS):
              (WebCore::toJSDOMWindow):
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation):
              * bindings/js/JSDOMWindowShell.cpp:
              (WebCore::toJS):
              (WebCore::toJSDOMWindowShell):
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::setLocation):
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::navigateIfAllowed):
              (WebCore::JSLocation::reload):
              * bindings/js/JSNodeFilterCondition.cpp:
              (WebCore::JSNodeFilterCondition::acceptNode):
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              (WebCore::JSLazyEventListener::parseCode):
              * bindings/js/kjs_html.cpp:
              (WebCore::runtimeObjectImplementsCall):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/jni/jni_jsobject.mm:
              (createRootObject):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
              * dom/Document.cpp:
              (WebCore::Document::nodeWillBeRemoved):
              (WebCore::Document::createHTMLEventListener):
              * dom/Element.cpp:
              (WebCore::Element::updateFocusAppearance):
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::dispatchGenericEvent):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              * editing/DeleteButtonController.cpp:
              (WebCore::DeleteButtonController::respondToChangedSelection):
              (WebCore::DeleteButtonController::enable):
              (WebCore::DeleteButtonController::deleteTarget):
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand):
              * editing/Editor.cpp:
              (WebCore::Editor::selectionForCommand):
              (WebCore::Editor::canEdit):
              (WebCore::Editor::canEditRichly):
              (WebCore::Editor::canDHTMLCut):
              (WebCore::Editor::canDHTMLCopy):
              (WebCore::Editor::canCopy):
              (WebCore::Editor::canDelete):
              (WebCore::Editor::deleteWithDirection):
              (WebCore::Editor::deleteSelectionWithSmartDelete):
              (WebCore::Editor::replaceSelectionWithFragment):
              (WebCore::Editor::selectedRange):
              (WebCore::Editor::tryDHTMLCopy):
              (WebCore::Editor::tryDHTMLCut):
              (WebCore::Editor::fontForSelection):
              (WebCore::Editor::selectionUnorderedListState):
              (WebCore::Editor::selectionOrderedListState):
              (WebCore::Editor::increaseSelectionListLevel):
              (WebCore::Editor::increaseSelectionListLevelOrdered):
              (WebCore::Editor::increaseSelectionListLevelUnordered):
              (WebCore::Editor::decreaseSelectionListLevel):
              (WebCore::Editor::dispatchCPPEvent):
              (WebCore::Editor::applyStyle):
              (WebCore::Editor::applyParagraphStyle):
              (WebCore::Editor::applyStyleToSelection):
              (WebCore::Editor::applyParagraphStyleToSelection):
              (WebCore::Editor::selectionHasStyle):
              (WebCore::Editor::appliedEditing):
              (WebCore::Editor::unappliedEditing):
              (WebCore::Editor::reappliedEditing):
              (WebCore::Editor::insertLineBreak):
              (WebCore::Editor::insertParagraphSeparator):
              (WebCore::Editor::paste):
              (WebCore::Editor::selectComposition):
              (WebCore::Editor::confirmComposition):
              (WebCore::Editor::setComposition):
              (WebCore::Editor::advanceToNextMisspelling):
              (WebCore::Editor::isSelectionUngrammatical):
              (WebCore::Editor::guessesForUngrammaticalSelection):
              (WebCore::Editor::getCompositionSelection):
              (WebCore::Editor::transpose):
              * editing/EditorCommand.cpp:
              (WebCore::expandSelectionToGranularity):
              (WebCore::executeDeleteToMark):
              (WebCore::executeMoveBackward):
              (WebCore::executeMoveBackwardAndModifySelection):
              (WebCore::executeMoveDown):
              (WebCore::executeMoveDownAndModifySelection):
              (WebCore::executeMoveForward):
              (WebCore::executeMoveForwardAndModifySelection):
              (WebCore::executeMoveLeft):
              (WebCore::executeMoveLeftAndModifySelection):
              (WebCore::executeMovePageDown):
              (WebCore::executeMovePageDownAndModifySelection):
              (WebCore::executeMovePageUp):
              (WebCore::executeMovePageUpAndModifySelection):
              (WebCore::executeMoveRight):
              (WebCore::executeMoveRightAndModifySelection):
              (WebCore::executeMoveToBeginningOfDocument):
              (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
              (WebCore::executeMoveToBeginningOfLine):
              (WebCore::executeMoveToBeginningOfLineAndModifySelection):
              (WebCore::executeMoveToBeginningOfParagraph):
              (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
              (WebCore::executeMoveToBeginningOfSentence):
              (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfDocument):
              (WebCore::executeMoveToEndOfDocumentAndModifySelection):
              (WebCore::executeMoveToEndOfSentence):
              (WebCore::executeMoveToEndOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfLine):
              (WebCore::executeMoveToEndOfLineAndModifySelection):
              (WebCore::executeMoveToEndOfParagraph):
              (WebCore::executeMoveToEndOfParagraphAndModifySelection):
              (WebCore::executeMoveParagraphBackwardAndModifySelection):
              (WebCore::executeMoveParagraphForwardAndModifySelection):
              (WebCore::executeMoveUp):
              (WebCore::executeMoveUpAndModifySelection):
              (WebCore::executeMoveWordBackward):
              (WebCore::executeMoveWordBackwardAndModifySelection):
              (WebCore::executeMoveWordForward):
              (WebCore::executeMoveWordForwardAndModifySelection):
              (WebCore::executeMoveWordLeft):
              (WebCore::executeMoveWordLeftAndModifySelection):
              (WebCore::executeMoveWordRight):
              (WebCore::executeMoveWordRightAndModifySelection):
              (WebCore::executeSelectAll):
              (WebCore::executeSelectToMark):
              (WebCore::executeSetMark):
              (WebCore::executeSwapWithMark):
              (WebCore::executeUnselect):
              (WebCore::enabledAnySelection):
              (WebCore::enabledAnySelectionAndMark):
              (WebCore::enabledInRichlyEditableText):
              (WebCore::enabledRangeInEditableText):
              (WebCore::enabledRangeInRichlyEditableText):
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
              * editing/RemoveFormatCommand.cpp:
              (WebCore::RemoveFormatCommand::doApply):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteSelection):
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              (WebCore::CachedPage::restore):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::setActive):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * html/HTMLPlugInElement.cpp:
              (WebCore::HTMLPlugInElement::createNPObject):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::evaluateScript):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::processToken):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::userGestureHint):
              (WebCore::FrameLoader::open):
              (WebCore::FrameLoader::dispatchWindowObjectAvailable):
              (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::createFromSelection):
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::selection):
              (WebCore::AccessibilityRenderObject::setSelectedTextRange):
              (WebCore::AccessibilityRenderObject::isFocused):
              (WebCore::AccessibilityRenderObject::doAXTextMarkerRangeForLine):
              (WebCore::AccessibilityRenderObject::doSetAXSelectedTextMarkerRange):
              (WebCore::AccessibilityRenderObject::doAXRangeForLine):
              (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              * 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::toString):
              * page/DragController.cpp:
              (WebCore::DragController::dragIsMove):
              (WebCore::DragController::tryDocumentDrag):
              (WebCore::setSelectionToDragCaret):
              (WebCore::DragController::concludeDrag):
              (WebCore::prepareClipboardForImageDrag):
              (WebCore::DragController::startDrag):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::selectClosestWordFromMouseEvent):
              (WebCore::EventHandler::selectClosestWordOrLinkFromMouseEvent):
              (WebCore::EventHandler::handleMousePressEventDoubleClick):
              (WebCore::EventHandler::handleMousePressEventTripleClick):
              (WebCore::EventHandler::handleMousePressEventSingleClick):
              (WebCore::EventHandler::handleMousePressEvent):
              (WebCore::EventHandler::updateSelectionForMouseDrag):
              (WebCore::EventHandler::handleMouseReleaseEvent):
              (WebCore::nodeIsNotBeingEdited):
              (WebCore::EventHandler::selectCursor):
              (WebCore::EventHandler::dispatchMouseEvent):
              (WebCore::EventHandler::sendContextMenuEvent):
              (WebCore::EventHandler::handleKeyboardSelectionMovement):
              (WebCore::EventHandler::handleDrag):
              * page/FocusController.cpp:
              (WebCore::FocusController::setFocusedFrame):
              (WebCore::clearSelectionIfNeeded):
              (WebCore::FocusController::setActive):
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              (WebCore::Frame::script):
              (WebCore::Frame::setDocument):
              (WebCore::Frame::selectedText):
              (WebCore::Frame::selection):
              (WebCore::Frame::animation):
              (WebCore::Frame::notifyRendererOfSelectionChange):
              (WebCore::Frame::invalidateSelection):
              (WebCore::Frame::clearCaretRectIfNeeded):
              (WebCore::Frame::setFocusedNodeIfNeeded):
              (WebCore::Frame::selectionLayoutChanged):
              (WebCore::Frame::caretBlinkTimerFired):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::updateSecureKeyboardEntryIfActive):
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::selectionComputedStyle):
              (WebCore::Frame::bindingRootObject):
              (WebCore::Frame::windowScriptNPObject):
              (WebCore::Frame::clearScriptController):
              (WebCore::Frame::selectionTextRects):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::revealSelection):
              (WebCore::Frame::revealCaret):
              (WebCore::Frame::clearTimers):
              (WebCore::Frame::styleForSelectionStart):
              (WebCore::Frame::setSelectionFromNone):
              (WebCore::Frame::findString):
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::respondToChangedSelection):
              (WebCore::FramePrivate::FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/InspectorController.cpp:
              (WebCore::canPassNodeToJavaScript):
              (WebCore::InspectorController::windowScriptObjectAvailable):
              * page/JavaScriptDebugServer.cpp:
              (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
              * page/Page.cpp:
              (WebCore::Page::findString):
              (WebCore::Page::selection):
              (WebCore::Page::setDebugger):
              * page/mac/FrameMac.mm:
              (WebCore::Frame::baseWritingDirectionForSelectionStart):
              (WebCore::Frame::dragImageForSelection):
              (WebCore::Frame::createScriptInstanceForWidget):
              (WebCore::Frame::windowScriptObject):
              * page/win/FrameWin.cpp:
              (WebCore::Frame::dragImageForSelection):
              * platform/ContextMenu.cpp:
              (WebCore::selectionContainsPossibleWord):
              (WebCore::ContextMenu::populate):
              (WebCore::ContextMenu::checkOrEnableIfNeeded):
              * plugins/PluginView.cpp:
              (WebCore::PluginView::performRequest):
              (WebCore::PluginView::bindingInstance):
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::isSelected):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintCaret):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::paintItemForeground):
              (WebCore::RenderListBox::paintItemBackground):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::selectionBackgroundColor):
              (WebCore::RenderObject::selectionForegroundColor):
              (WebCore::RenderObject::setAnimatableStyle):
              (WebCore::RenderObject::destroy):
              (WebCore::RenderObject::animation):
              * rendering/RenderObject.h:
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::selectionStart):
              (WebCore::RenderTextControl::selectionEnd):
              (WebCore::RenderTextControl::setSelectionRange):
              (WebCore::RenderTextControl::selectionChanged):
              (WebCore::RenderTextControl::capsLockStateMayHaveChanged):
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isFocused):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeSelection):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::createSVGEventListener):
              * svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::deselectAll):
              * svg/SVGTextContentElement.cpp:
              (WebCore::SVGTextContentElement::selectSubString):
      
      WebKit/gtk:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebCoreSupport/EditorClientGtk.cpp:
              (WebKit::EditorClient::handleKeyboardEvent):
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::windowObjectCleared):
              * webkit/webkitwebframe.cpp:
              * webkit/webkitwebview.cpp:
      
      WebKit/mac:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * Plugins/WebPluginController.mm:
              (-[WebPluginController webPlugInContainerSelectionColor]):
              * WebView/WebFrame.mm:
              (-[WebFrame _attachScriptDebugger]):
              (-[WebFrame _hasSelection]):
              (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
              (-[WebFrame _convertToNSRange:]):
              (-[WebFrame _convertToDOMRange:]):
              (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
              (-[WebFrame _selectedNSRange]):
              (-[WebFrame _selectNSRange:]):
              (-[WebFrame globalContext]):
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _selectedRange]):
              (-[WebHTMLView _hasSelection]):
              (-[WebHTMLView _hasSelectionOrInsertionPoint]):
              (-[WebHTMLView _hasInsertionPoint]):
              (-[WebHTMLView _isEditable]):
              (-[WebHTMLView _updateFocusedAndActiveState]):
              (-[WebHTMLView readSelectionFromPasteboard:]):
              (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
              (-[WebHTMLView maintainsInactiveSelection]):
              (-[WebHTMLView paste:]):
              (isTextInput):
              (-[WebHTMLView inputContext]):
              (-[WebTextCompleteController doCompletion]):
              (-[WebHTMLView selectAll]):
              (-[WebHTMLView deselectAll]):
              (-[WebHTMLView selectedAttributedString]):
              * WebView/WebView.mm:
              (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
              (-[WebView setSelectedDOMRange:affinity:]):
              (-[WebView selectedDOMRange]):
              (-[WebView selectionAffinity]):
      
      WebKit/qt:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * Api/qwebframe.cpp:
              (QWebFrame::evaluateJavaScript):
              * Api/qwebpage.cpp:
              (QWebPagePrivate::focusInEvent):
              (QWebPagePrivate::focusOutEvent):
              (QWebPage::inputMethodQuery):
              * WebCoreSupport/EditorClientQt.cpp:
              (WebCore::EditorClientQt::handleKeyboardEvent):
      
      WebKit/win:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebFrame.cpp:
              (WebFrame::globalContext):
              (WebFrame::windowObjectCleared):
              * WebView.cpp:
              (WebView::handleContextMenuEvent):
              (WebViewWndProc):
              (WebView::updateFocusedAndActiveState):
              (WebView::hasSelectedRange):
              (WebView::replaceSelectionWithText):
              (WebView::clearSelection):
              (WebView::prepareCandidateWindow):
              (WebView::onIMERequestCharPosition):
              (WebView::onIMERequestReconvertString):
      
      WebKit/wx:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebKitSupport/EditorClientWx.cpp:
              (WebCore::EditorClientWx::handleKeyboardEvent):
              * WebView.cpp:
              (wxWebView::RunScript):
              (wxWebView::OnSetFocus):
              (wxWebView::OnKillFocus):
      
      WebKitTools:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              * Scripts/do-webcore-rename: Updated for the latest round of renaming.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60d3e9f9
  30. 15 Jun, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · 92aaa2a0
      darin@apple.com authored
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSAudioConstructor.h:
              * bindings/js/JSCustomSQLStatementCallback.cpp:
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
              * bindings/js/JSCustomSQLTransactionCallback.cpp:
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
              * bindings/js/JSCustomVoidCallback.cpp:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSDOMBinding.cpp: Copied from WebCore/bindings/js/kjs_binding.cpp.
              * bindings/js/JSDOMBinding.h: Copied from WebCore/bindings/js/kjs_binding.h.
              * bindings/js/JSDOMWindowBase.cpp:
              * bindings/js/JSDOMWindowBase.h:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDOMWindowShell.cpp:
              * bindings/js/JSDOMWindowShell.h:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSHTMLFrameElementCustom.cpp:
              * bindings/js/JSHTMLFrameSetElementCustom.cpp:
              * bindings/js/JSHTMLIFrameElementCustom.cpp:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSImageConstructor.h:
              * bindings/js/JSLocationCustom.cpp:
              * bindings/js/JSNamedNodeMapCustom.cpp:
              * bindings/js/JSNamedNodesCollection.h:
              * bindings/js/JSNodeFilterCondition.cpp:
              * bindings/js/JSNodeFilterCustom.cpp:
              * bindings/js/JSRGBColor.h:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSXMLHttpRequestConstructor.h:
              * bindings/js/JSXSLTProcessorConstructor.h:
              * bindings/js/JSXSLTProcessorCustom.cpp:
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/ScriptController.cpp: Copied from WebCore/bindings/js/kjs_proxy.cpp.
              * bindings/js/ScriptController.h: Copied from WebCore/bindings/js/kjs_proxy.h.
              * bindings/js/kjs_binding.cpp: Removed.
              * bindings/js/kjs_binding.h: Removed.
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_proxy.cpp: Removed.
              * bindings/js/kjs_proxy.h: Removed.
              * bindings/objc/DOMInternal.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/jni/jni_jsobject.mm:
              * dom/Document.cpp:
              * dom/EventTarget.cpp:
              * dom/Node.cpp:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              (WebCore::CachedPage::restore):
              * html/HTMLPlugInElement.cpp:
              * html/HTMLScriptElement.cpp:
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::processToken):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * page/Frame.cpp:
              (WebCore::Frame::scriptProxy):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/InspectorController.cpp:
              * page/JavaScriptDebugServer.cpp:
              * page/JavaScriptProfileNode.cpp:
              * page/Page.cpp:
              * page/gtk/FrameGtk.cpp:
              * page/mac/FrameMac.mm:
              * page/qt/FrameQt.cpp:
              * page/win/FrameWin.cpp:
              * plugins/PluginView.cpp:
              (WebCore::getString):
              * plugins/gtk/PluginViewGtk.cpp:
              * plugins/qt/PluginViewQt.cpp:
              * plugins/win/PluginViewWin.cpp:
              * svg/SVGDocumentExtensions.cpp:
              * xml/XMLHttpRequest.cpp:
      
      WebKit/gtk:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              * webkit/webkitwebframe.cpp:
      
      WebKit/mac:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebView/WebFrame.mm:
              * WebView/WebScriptDebugDelegate.mm:
              * WebView/WebView.mm:
      
      WebKit/qt:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * Api/qwebframe.cpp:
              (QWebFrame::evaluateJavaScript):
              * WebKit_pch.h:
      
      WebKit/win:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebFrame.cpp:
      
      WebKit/wx:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebView.cpp:
      
      WebKitTools:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              * Scripts/do-webcore-rename: Moved planned renames into a separate hash
              from the actual renames. Removed many renames that are either done or
              no longer planned.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92aaa2a0
  31. 16 Apr, 2008 1 commit
    • aroben@apple.com's avatar
      Change calls to Chrome::addMessageToConsole to use Console::addMessage · 92cfa90a
      aroben@apple.com authored
              Part of Bug 17228: console.{log,warn,info,error} should support format
              strings, variable arguments
              <http://bugs.webkit.org/show_bug.cgi?id=17228>
              <rdar://problem/5732828>
      
              Console now takes care of calling ChromeClient::addMessageToConsole
              for the appropriate messages (i.e., just messages from JavaScript). If
              you ever want to add a message to the console, Console is the place to
              do it.
      
              Reviewed by Darin Adler.
      
              * WebCore.xcodeproj/project.pbxproj: Mark Console.h Private.
              * page/Chrome.cpp: Removed addMessageToConsole
              * page/Chrome.h: Moved MessageSource/MessageLevel to Console.h.
              * page/Console.cpp:
              (WebCore::Console::addMessage): Added. Calls
              ChromeClient::addMessageToConsole for JS messages, and calls
              InspectorController::addMessageToConsole for all messages.
              (WebCore::Console::error): Changed to call directly to
              InspectorController in addition to ChromeClient.
              (WebCore::Console::info): Ditto.
              (WebCore::Console::log): Ditto.
              (WebCore::Console::warn): Ditto.
              * page/Console.h: Added MessageSource/MessageLevel enums from Chrome.h.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92cfa90a
  32. 11 Apr, 2008 1 commit
    • antti@apple.com's avatar
      2008-04-10 Antti Koivisto <antti@apple.com> · ef20b03f
      antti@apple.com authored
              Reviewed by Eric.
      
              Redo the SVG animation support.
              
              It does
              - Full SMIL interval timing model including syncbase and event base timing (the hard part).
              - CSS and XML attribute animation.
              - Linear, discrete and spline calcModes.
              - Values animation with keyTimes and keySplines.
              - Link activated animations.
              - Pretty good support for <animate> and <set> animations
              - Basic support for <animateColor>, <animateMotion> and <animateTransform>.
      
              This passes some 35 of the 56 tests in W3C SVG animation test suite, a bunch more
              with some subtest failures.
      
              What is still missing
              - Additive animation with multiple animations operating on the same property. This is a
                major architectural feature in animation code. It shouldn't be too hard to add.
              - Only <animate> implements accumulate.
              - <animateMotion> does not do paths, keypoints, rotate.
              - <animateTransform> does not work correctly in all cases
              - calcMode paced is missing.
              - repeat, beginEvent, endEvent are missing.
              - accesskey() is missing.
              - JS does not see correct values for baseVal/animVal, changing values that are being
                animted for a script produces wrong results. This problem needs to be solved outside
                the animation code.
              - Some other stuff I forgot or do not know about.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              
              Use cache notification mechanism to start/stop animations.
      
              * svg/SVGAElement.cpp:
              (WebCore::SVGAElement::defaultEventHandler):
              
              Start target animation on link activation.
              
              * svg/SVGAnimateColorElement.cpp:
              (WebCore::SVGAnimateColorElement::applyAnimatedValueToElement):
              (WebCore::SVGAnimateColorElement::updateAnimatedValue):
              (WebCore::SVGAnimateColorElement::calculateFromAndToValues):
              (WebCore::SVGAnimateColorElement::calculateFromAndByValues):
              * svg/SVGAnimateColorElement.h:
              * svg/SVGAnimateElement.cpp:
              (WebCore::SVGAnimateElement::SVGAnimateElement):
              (WebCore::parseNumberValueAndUnit):
              (WebCore::SVGAnimateElement::applyAnimatedValueToElement):
              (WebCore::SVGAnimateElement::updateAnimatedValue):
              (WebCore::isColorAttribute):
              (WebCore::SVGAnimateElement::calculateFromAndToValues):
              (WebCore::SVGAnimateElement::calculateFromAndByValues):
              * svg/SVGAnimateElement.h:
              (WebCore::SVGAnimateElement::):
              * svg/SVGAnimateMotionElement.cpp:
              (WebCore::SVGAnimateMotionElement::SVGAnimateMotionElement):
              (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
              (WebCore::SVGAnimateMotionElement::updateAnimatedValue):
              (WebCore::parsePoint):
              (WebCore::SVGAnimateMotionElement::calculateFromAndToValues):
              (WebCore::SVGAnimateMotionElement::calculateFromAndByValues):
              (WebCore::SVGAnimateMotionElement::applyAnimatedValueToElement):
              (WebCore::SVGAnimateMotionElement::startedActiveInterval):
              * svg/SVGAnimateMotionElement.h:
              * svg/SVGAnimateTransformElement.cpp:
              (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
              (WebCore::SVGAnimateTransformElement::hasValidTarget):
              (WebCore::SVGAnimateTransformElement::updateAnimatedValue):
              (WebCore::transformListFor):
              (WebCore::SVGAnimateTransformElement::applyAnimatedValueToElement):
              (WebCore::SVGAnimateTransformElement::calculateFromAndToValues):
              (WebCore::SVGAnimateTransformElement::calculateFromAndByValues):
              (WebCore::SVGAnimateTransformElement::startedActiveInterval):
              (WebCore::SVGAnimateTransformElement::parseTransformValue):
              * svg/SVGAnimateTransformElement.h:
              
              Concrete anmation element classes.
              
              * svg/SVGAnimationElement.cpp:
              (WebCore::SVGAnimationElement::SVGAnimationElement):
              (WebCore::SVGAnimationElement::~SVGAnimationElement):
              (WebCore::parseKeyTimes):
              (WebCore::parseKeySplines):
              (WebCore::SVGAnimationElement::parseMappedAttribute):
              (WebCore::SVGAnimationElement::attributeChanged):
              (WebCore::SVGAnimationElement::getStartTime):
              (WebCore::SVGAnimationElement::getCurrentTime):
              (WebCore::SVGAnimationElement::getSimpleDuration):
              (WebCore::SVGAnimationElement::beginElement):
              (WebCore::SVGAnimationElement::beginElementAt):
              (WebCore::SVGAnimationElement::endElement):
              (WebCore::SVGAnimationElement::endElementAt):
              (WebCore::SVGAnimationElement::animationMode):
              (WebCore::SVGAnimationElement::calcMode):
              (WebCore::SVGAnimationElement::attributeType):
              (WebCore::SVGAnimationElement::toValue):
              (WebCore::SVGAnimationElement::byValue):
              (WebCore::SVGAnimationElement::fromValue):
              (WebCore::SVGAnimationElement::attributeName):
              (WebCore::SVGAnimationElement::isAdditive):
              (WebCore::SVGAnimationElement::isAccumulated):
              (WebCore::SVGAnimationElement::hasValidTarget):
              (WebCore::SVGAnimationElement::targetAttributeIsCSS):
              (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
              (WebCore::SVGAnimationElement::targetAttributeBaseValue):
              (WebCore::solveEpsilon):
              (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
              (WebCore::SVGAnimationElement::startedActiveInterval):
              (WebCore::SVGAnimationElement::applyAnimation):
              (WebCore::SVGAnimationElement::unapplyAnimation):
              (WebCore::SVGAnimationElement::endedActiveInterval):
              * svg/SVGAnimationElement.h:
              (WebCore::SVGAnimationElement::):
              
              This is pretty much a complete rewrite of the SVGAnimationElement. Timing related functionality
              was refactored to SMILTimingElement class that this class now inherits.
              
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::startAnimations):
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::ownerSVGElement):
              * svg/SVGSVGElement.cpp:
              
              We need to reach the <svg> element from <use> too so go out from the shadow tree.
              
              (WebCore::SVGSVGElement::SVGSVGElement):
              (WebCore::SVGSVGElement::~SVGSVGElement):
              (WebCore::SVGSVGElement::pauseAnimations):
              (WebCore::SVGSVGElement::unpauseAnimations):
              (WebCore::SVGSVGElement::animationsPaused):
              (WebCore::SVGSVGElement::getCurrentTime):
              (WebCore::SVGSVGElement::willSaveToCache):
              (WebCore::SVGSVGElement::willRestoreFromCache):
              * svg/SVGSVGElement.h:
              (WebCore::SVGSVGElement::timeContainer):
              * svg/SVGSetElement.cpp:
              (WebCore::SVGSetElement::applyAnimatedValueToElement):
              (WebCore::SVGSetElement::calculateFromAndToValues):
              (WebCore::SVGSetElement::calculateFromAndByValues):
              (WebCore::SVGSetElement::updateAnimatedValue):
              * svg/SVGSetElement.h:
              
              Concrete anmation element classes.
              
              * svg/SVGTimer.cpp: Removed.
              * svg/SVGTimer.h: Removed.
              * svg/SVGUseElement.cpp:
              (WebCore::SVGUseElement::removedFromDocument):
              * svg/TimeScheduler.cpp: Removed.
              * svg/TimeScheduler.h: Removed.
              
              Replaced these with SMILTimeContainer class.
              
              * svg/animation: Added.
              * svg/animation/SMILTime.cpp: Added.
              (WebCore::operator+):
              (WebCore::operator-):
              (WebCore::operator*):
              * svg/animation/SMILTime.h: Added.
              (WebCore::SMILTime::SMILTime):
              (WebCore::SMILTime::unresolved):
              (WebCore::SMILTime::indefinite):
              (WebCore::SMILTime::operator=):
              (WebCore::SMILTime::value):
              (WebCore::SMILTime::isFinite):
              (WebCore::SMILTime::isIndefinite):
              (WebCore::SMILTime::isUnresolved):
              (WebCore::operator==):
              (WebCore::operator!=):
              (WebCore::operator>):
              (WebCore::operator<):
              (WebCore::operator>=):
              (WebCore::operator<=):
              (WebCore::max):
              (WebCore::min):
              
              A floating point number with special values "indefinite" and "unresolved". Defines math for those.
              
              * svg/animation/SMILTimeContainer.cpp: Added.
              (WebCore::SMILTimeContainer::SMILTimeContainer):
              (WebCore::SMILTimeContainer::schedule):
              (WebCore::SMILTimeContainer::unschedule):
              (WebCore::SMILTimeContainer::elapsed):
              (WebCore::SMILTimeContainer::isActive):
              (WebCore::SMILTimeContainer::isPaused):
              (WebCore::SMILTimeContainer::begin):
              (WebCore::SMILTimeContainer::pause):
              (WebCore::SMILTimeContainer::resume):
              (WebCore::SMILTimeContainer::startTimer):
              (WebCore::SMILTimeContainer::timerFired):
              (WebCore::SMILTimeContainer::updateAnimations):
              * svg/animation/SMILTimeContainer.h: Added.
              
              Manages the clock and time line for active animations in a document.
              
              * svg/animation/SVGSMILElement.cpp: Added.
              (WebCore::ConditionEventListener::ConditionEventListener):
              (WebCore::ConditionEventListener::handleEvent):
              (WebCore::SVGSMILElement::Condition::Condition):
              (WebCore::SVGSMILElement::SVGSMILElement):
              (WebCore::SVGSMILElement::~SVGSMILElement):
              (WebCore::SVGSMILElement::insertedIntoDocument):
              (WebCore::SVGSMILElement::removedFromDocument):
              (WebCore::SVGSMILElement::finishParsingChildren):
              (WebCore::SVGSMILElement::parseOffsetValue):
              (WebCore::SVGSMILElement::parseClockValue):
              (WebCore::smilTimeSortFunction):
              (WebCore::sortTimeList):
              (WebCore::SVGSMILElement::parseCondition):
              (WebCore::SVGSMILElement::isTimingElement):
              (WebCore::SVGSMILElement::parseBeginOrEnd):
              (WebCore::SVGSMILElement::parseMappedAttribute):
              (WebCore::SVGSMILElement::attributeChanged):
              (WebCore::SVGSMILElement::connectConditions):
              (WebCore::SVGSMILElement::disconnectConditions):
              (WebCore::SVGSMILElement::reschedule):
              (WebCore::SVGSMILElement::targetElement):
              (WebCore::SVGSMILElement::elapsed):
              (WebCore::SVGSMILElement::restart):
              (WebCore::SVGSMILElement::fill):
              (WebCore::SVGSMILElement::xlinkHref):
              (WebCore::SVGSMILElement::dur):
              (WebCore::SVGSMILElement::repeatDur):
              (WebCore::SVGSMILElement::repeatCount):
              (WebCore::SVGSMILElement::maxValue):
              (WebCore::SVGSMILElement::minValue):
              (WebCore::SVGSMILElement::simpleDuration):
              (WebCore::SVGSMILElement::addBeginTime):
              (WebCore::SVGSMILElement::addEndTime):
              (WebCore::SVGSMILElement::findInstanceTime):
              (WebCore::SVGSMILElement::repeatingDuration):
              (WebCore::SVGSMILElement::resolveActiveEnd):
              (WebCore::SVGSMILElement::resolveInterval):
              (WebCore::SVGSMILElement::resolveFirstInterval):
              (WebCore::SVGSMILElement::resolveNextInterval):
              (WebCore::SVGSMILElement::nextProgressTime):
              (WebCore::SVGSMILElement::beginListChanged):
              (WebCore::SVGSMILElement::endListChanged):
              (WebCore::SVGSMILElement::checkRestart):
              (WebCore::SVGSMILElement::calculateAnimationPercentAndRepeat):
              (WebCore::SVGSMILElement::calculateNextProgressTime):
              (WebCore::SVGSMILElement::determineActiveState):
              (WebCore::SVGSMILElement::progress):
              (WebCore::SVGSMILElement::notifyDependentsIntervalChanged):
              (WebCore::SVGSMILElement::createInstanceTimesFromSyncbase):
              (WebCore::SVGSMILElement::addTimeDependent):
              (WebCore::SVGSMILElement::removeTimeDependent):
              (WebCore::SVGSMILElement::handleConditionEvent):
              (WebCore::SVGSMILElement::beginByLinkActivation):
              * svg/animation/SVGSMILElement.h: Added.
              (WebCore::SVGSMILElement::timeContainer):
              (WebCore::SVGSMILElement::):
              (WebCore::SVGSMILElement::intervalBegin):
              (WebCore::SVGSMILElement::intervalEnd):
              (WebCore::SVGSMILElement::Condition::):
              
                  This abstract class implements the SMIL timing model. As an output it produces calls
                  to these virtual functions:
              
                  virtual void startedActiveInterval() = 0;
                  virtual void applyAnimation(float percent, unsigned repeat) = 0;
                  virtual void unapplyAnimation() = 0;
                  virtual void endedActiveInterval() = 0;
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef20b03f
  33. 15 Feb, 2008 1 commit
    • alice.liu@apple.com's avatar
      Reviewed by Darin. · 95a8197d
      alice.liu@apple.com authored
              Fixed <rdar://problem/5741440> REGRESSION (r28496): After deactivating JavaScript, scripts embedded in the HTML page continue to run
           
              Before this patch, Frame::scriptProxy() would only return null in the case that javascript was 
              disabled and if the script proxy field wasn't set (which would only be the case if the window 
              hasn't loaded anything yet).  Not all callers of scriptProxy() always check for a non-null return 
              value.  Those that did check would effectively be checking if javascript was enabled before proceeding.
              This fix consists of 2 elements: first, make sure that scriptProxy() will never return null, regardless 
              of whether javascript is disabled.  This will mean that callers who don't check for null won't crash.  
              Second, callers who did check for null now instead check for javascript being disabled.  This means that 
              code paths intended for preventing javascript from being run will be making the correct check.  Another
              minor addition to this patch is that I added a function on Frame to be a shortcut for checking if javascript
              is enabled. 
      
              * bindings/js/JSCustomSQLStatementCallback.cpp:
              (WebCore::JSCustomSQLStatementCallback::handleEvent):
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
              (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionCallback.cpp:
              (WebCore::JSCustomSQLTransactionCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
              (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
              * bindings/js/JSCustomVoidCallback.cpp:
              (WebCore::JSCustomVoidCallback::handleEvent):
              * bindings/js/JSCustomXPathNSResolver.cpp:
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              (WebCore::JSLazyEventListener::parseCode):
              * bindings/js/kjs_html.cpp:
              (WebCore::runtimeObjectImplementsCall):
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::isEnabled):
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.cpp:
              (KJS::Window::retrieveWindow):
              (KJS::Window::retrieve):
              * dom/Document.cpp:
              (WebCore::Document::createHTMLEventListener):
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::dispatchGenericEvent):
              * html/HTMLPlugInElement.cpp:
              (WebCore::HTMLPlugInElement::createNPObject):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::evaluateScript):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::processToken):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              (WebCore::FrameLoader::userGestureHint):
              (WebCore::FrameLoader::open):
              (WebCore::FrameLoader::dispatchWindowObjectAvailable):
              (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
              * manual-tests/disable-javascript-reload.html: Added.
              * page/Frame.cpp:
              (WebCore::Frame::scriptProxy):
              (WebCore::Frame::bindingRootObject):
              (WebCore::Frame::windowScriptNPObject):
              * page/Frame.h:
              * page/InspectorController.cpp:
              (WebCore::canPassNodeToJavaScript):
              * page/mac/FrameMac.mm:
              (WebCore::Frame::windowScriptObject):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::createSVGEventListener):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95a8197d
  34. 08 Dec, 2007 1 commit
  35. 30 Nov, 2007 1 commit
    • zimmermann@webkit.org's avatar
      Rubber stamped by Eric. · 095ababf
      zimmermann@webkit.org authored
      Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
      by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
      mailing list and on IRC with David/Darin & Eric.
      
      Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      095ababf
  36. 12 Oct, 2007 1 commit