1. 04 Nov, 2008 31 commits
    • andersca@apple.com's avatar
      2008-11-04 Anders Carlsson <andersca@apple.com> · bc1984b0
      andersca@apple.com authored
              Reviewed by Kevin Decker.
      
              More cleanup. Make a bunch of instance variables RetainPtrs.
              
              * Plugins/WebBaseNetscapePluginView.h:
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView visibleRect]):
              (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
              (-[WebBaseNetscapePluginView sendActivateEvent:]):
              (-[WebBaseNetscapePluginView sendDrawRectEvent:]):
              (-[WebBaseNetscapePluginView stopTimers]):
              (-[WebBaseNetscapePluginView restartTimers]):
              (-[WebBaseNetscapePluginView setHasFocus:]):
              (-[WebBaseNetscapePluginView mouseDown:]):
              (-[WebBaseNetscapePluginView mouseUp:]):
              (-[WebBaseNetscapePluginView mouseEntered:]):
              (-[WebBaseNetscapePluginView mouseExited:]):
              (-[WebBaseNetscapePluginView handleMouseMoved:]):
              (-[WebBaseNetscapePluginView mouseDragged:]):
              (-[WebBaseNetscapePluginView scrollWheel:]):
              (-[WebBaseNetscapePluginView keyUp:]):
              (-[WebBaseNetscapePluginView keyDown:]):
              (-[WebBaseNetscapePluginView flagsChanged:]):
              (-[WebBaseNetscapePluginView cut:]):
              (-[WebBaseNetscapePluginView copy:]):
              (-[WebBaseNetscapePluginView paste:]):
              (-[WebBaseNetscapePluginView selectAll:]):
              (-[WebBaseNetscapePluginView didStart]):
              (-[WebBaseNetscapePluginView start]):
              (-[WebBaseNetscapePluginView stop]):
              (-[WebBaseNetscapePluginView dataSource]):
              (-[WebBaseNetscapePluginView pluginPackage]):
              (-[WebBaseNetscapePluginView setPluginPackage:]):
              (-[WebBaseNetscapePluginView setAttributeKeys:andValues:]):
              (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
              (-[WebBaseNetscapePluginView fini]):
              (-[WebBaseNetscapePluginView dealloc]):
              (-[WebBaseNetscapePluginView pluginView:receivedError:]):
              (-[WebBaseNetscapePluginView requestWithURLCString:]):
              (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
              (-[WebBaseNetscapePluginView loadPluginRequest:]):
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
              (-[WebBaseNetscapePluginView userAgent]):
              (-[WebBaseNetscapePluginView getVariable:value:]):
              (-[WebBaseNetscapePluginView setVariable:value:]):
              (-[WebBaseNetscapePluginView _createPlugin]):
              (-[WebBaseNetscapePluginView _redeliverStream]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc1984b0
    • pam@chromium.org's avatar
      2008-11-04 Jonathan Haas <myrdred@gmail.com> · 28f3c1bd
      pam@chromium.org authored
              Addiitonal tweaks and patch prep by Pamela Greene <pam@chromium.org>
      
              Reviewed by Darin Adler.
      
              Fixed an issue which could cause memory corruption using ToT libxml.
              See https://bugs.webkit.org/show_bug.cgi?id=15715
      
              Test: fast/xsl/xslt-nested-stylesheets.xml
      
              * xml/XSLImportRule.cpp:
              (WebCore::XSLImportRule::setXSLStyleSheet): Set parent rather than owner document
              * xml/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::XSLStyleSheet): Initialize m_parentStyleSheet
              (WebCore::XSLStyleSheet::parseString): Make all child stylesheets use parent's dictionary
              (WebCore::XSLStyleSheet::setParentStyleSheet): Added
              * xml/XSLStyleSheet.h: Added m_parentStyleSheet member
      
      2008-11-04  Pamela Greene  <pam@chromium.org>
      
              Reviewed by Darin Adler.
      
              Added test for crash resulting from nested stylesheets using certain
              builds of libxml2.  See https://bugs.webkit.org/show_bug.cgi?id=15715 .
      
              * fast/xsl/resources/xslt-nested-stylesheets0.xsl: Added.
              * fast/xsl/resources/xslt-nested-stylesheets1.xsl: Added.
              * fast/xsl/xslt-nested-stylesheets-expected.txt: Added.
              * fast/xsl/xslt-nested-stylesheets.xml: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28f3c1bd
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · 38c9c9d1
      cwzwarich@webkit.org authored
              Rubber-stamped by Sam Weinig.
      
              Move kjs/config.h to the top level of JavaScriptCore.
      
              * GNUmakefile.am:
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * config.h: Copied from kjs/config.h.
              * kjs/config.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38c9c9d1
    • simon.fraser@apple.com's avatar
      2008-11-04 Simon Fraser <simon.fraser@apple.com> · 2a47342b
      simon.fraser@apple.com authored
              Add AccessibilityObject.o to the exclude list for the
              check for global destructors.
      
              * Scripts/check-for-exit-time-destructors:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a47342b
    • simon.fraser@apple.com's avatar
      2008-11-04 Simon Fraser <simon.fraser@apple.com> · 0d555c0c
      simon.fraser@apple.com authored
              No review.
      
              Improved buid fix: include MathExtras.h to get roundf on all platforms.
      
              * platform/graphics/FloatPoint.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d555c0c
    • darin@apple.com's avatar
      2008-11-04 Darin Adler <darin@apple.com> · 9b6dc2a0
      darin@apple.com authored
              * Scripts/check-for-exit-time-destructors: Fix failures seen on the
              bot, but for some reason not on my computer.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b6dc2a0
    • beidson@apple.com's avatar
      WebCore: · 0d9e16ff
      beidson@apple.com authored
      2008-11-04  Brady Eidson  <beidson@apple.com>
      
              Reviewed by John Sullivan
      
              Add a simple "visited" method to HistoryItem for use by global history
      
              * WebCore.base.exp:
      
              * history/HistoryItem.cpp:
              (WebCore::HistoryItem::visited):  Update the title on the item, set last visited time,
                and bump the visit count.  All things that should happen when a url is visited again!
              * history/HistoryItem.h:
      
      WebKit/mac:
      
      2008-11-04  Brady Eidson  <beidson@apple.com>
      
              Reviewed by John Sullivan
      
              Cleanup global history a tad.  
      
              Used to _addItemForURL always create a new item and merge it with a previous item if one existed.
      
              It is more efficient and less complicated to update the previous item if one exists.
      
              * History/WebHistory.mm:
              (-[WebHistoryPrivate visitedURL:withTitle:]):
              (-[WebHistory _visitedURL:withTitle:]):  Instead of calling the general purpose [WebHistoryPrivate addItem:]
                with a new history item, call the new special purposed visitedURL:withTitle:
              * History/WebHistoryInternal.h:
      
              * History/WebHistoryItem.mm:
              (-[WebHistoryItem _visitedWithTitle:]): Call "visited()" on the WebCore history item with the pertinent info.
              * History/WebHistoryItemInternal.h:
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::updateGlobalHistory):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d9e16ff
    • andersca@apple.com's avatar
      2008-11-04 Anders Carlsson <andersca@apple.com> · 31293443
      andersca@apple.com authored
              Reviewed by Kevin Decker.
      
              https://bugs.webkit.org/show_bug.cgi?id=22065
      
              Only create the plug-in stream loader when the stream is started. 
              
              * Plugins/WebBaseNetscapePluginStream.mm:
              (WebNetscapePluginStream::WebNetscapePluginStream):
              (WebNetscapePluginStream::start):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31293443
    • jmalonzo@webkit.org's avatar
      2008-11-04 Jan Michael Alonzo <jmalonzo@webkit.org> · 5b93bc27
      jmalonzo@webkit.org authored
              Build fix. Not reviewed.
      
              * platform/graphics/FloatPoint.h: include math.h.
              reported by zdobersek in #webkit.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b93bc27
    • darin@chromium.org's avatar
      2008-11-04 Darin Fisher <darin@chromium.org> · 48246856
      darin@chromium.org authored
              Reviewed by Anders Carlsson.
      
              No need to clobber all ResourceRequest fields in FrameLoader::reload()
              https://bugs.webkit.org/show_bug.cgi?id=21949
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::reload):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48246856
    • darin@apple.com's avatar
      2008-11-04 Darin Adler <darin@apple.com> · ebdfeb60
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              * storage/Database.cpp:
              (WebCore::databaseVersionKey): Tweaked formatting.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebdfeb60
    • darin@apple.com's avatar
      2008-11-04 Darin Adler <darin@apple.com> · 3b841b41
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              * wtf/ThreadingNone.cpp: Tweak formatting.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b841b41
    • darin@apple.com's avatar
      2008-11-03 Darin Adler <darin@apple.com> · 6d0ef6fb
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              - https://bugs.webkit.org/show_bug.cgi?id=22061
                create script to check for exit-time destructors
      
              * WebCore.xcodeproj/project.pbxproj: Added a script
              phase that runs the check-for-exit-time-destructors script.
      
              * html/HTMLAttributeNames.in: Removed some unused attribute names.
      
              * html/HTMLEmbedElement.cpp:
              (WebCore::HTMLEmbedElement::parseMappedAttribute): Removed code that
              sets the write-only m_pluginPage.
              * html/HTMLEmbedElement.h: Ditto.
      
              * platform/mac/CursorMac.mm:
              (WebCore::leakNamedCursor): Changed to return a Cursor&.
              (WebCore::pointerCursor): Changed to leak an object to avoid an
              exit-time destructor.
              (WebCore::crossCursor): Ditto.
              (WebCore::handCursor): Ditto.
              (WebCore::moveCursor): Ditto.
              (WebCore::verticalTextCursor): Ditto.
              (WebCore::cellCursor): Ditto.
              (WebCore::contextMenuCursor): Ditto.
              (WebCore::aliasCursor): Ditto.
              (WebCore::zoomInCursor): Ditto.
              (WebCore::zoomOutCursor): Ditto.
              (WebCore::copyCursor): Ditto.
              (WebCore::noneCursor): Ditto.
              (WebCore::progressCursor): Ditto.
              (WebCore::noDropCursor): Ditto.
              (WebCore::notAllowedCursor): Ditto.
              (WebCore::iBeamCursor): Ditto.
              (WebCore::waitCursor): Ditto.
              (WebCore::helpCursor): Ditto.
              (WebCore::eastResizeCursor): Ditto.
              (WebCore::northResizeCursor): Ditto.
              (WebCore::northEastResizeCursor): Ditto.
              (WebCore::northWestResizeCursor): Ditto.
              (WebCore::southResizeCursor): Ditto.
              (WebCore::southEastResizeCursor): Ditto.
              (WebCore::southWestResizeCursor): Ditto.
              (WebCore::westResizeCursor): Ditto.
              (WebCore::northSouthResizeCursor): Ditto.
              (WebCore::eastWestResizeCursor): Ditto.
              (WebCore::northEastSouthWestResizeCursor): Ditto.
              (WebCore::northWestSouthEastResizeCursor): Ditto.
              (WebCore::columnResizeCursor): Ditto.
              (WebCore::rowResizeCursor): Ditto.
              (WebCore::grabCursor): Ditto.
              (WebCore::grabbingCursor): Ditto.
      
              * storage/Database.cpp:
              (WebCore::guidMutex): Changed to leak an object to avoid an
              exit-time destructor. Also added a comment explaining why it's
              thread safe.
              (WebCore::guidToVersionMap): Ditto.
              (WebCore::guidToDatabaseMap): Ditto.
              (WebCore::Database::databaseInfoTableName): Ditto.
              (WebCore::databaseVersionKey): Ditto.
              (WebCore::Database::getVersionFromDatabase): Ditto.
              (WebCore::Database::setVersionInDatabase): Ditto.
              (WebCore::guidForOriginAndName): Ditto.
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::tracker): Ditto.
              (WebCore::notificationMutex): Ditto.
              (WebCore::notificationQueue): Ditto.
              (WebCore::DatabaseTracker::notifyDatabasesChanged): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d0ef6fb
    • mitz@apple.com's avatar
      2008-11-04 Pierre-Olivier Latour <pol@apple.com> · dd69d23f
      mitz@apple.com authored
              Reviewed by Dan Bernstein.
      
              - part of https://bugs.webkit.org/show_bug.cgi?id=21821
                Removed pixel results in platform/mac-tiger that were only slightly different
                (within 1% tolerance) from the platform/mac results.
                Removed results in platform/mac-tiger where the results in platform/mac were
                also correct for Tiger.
      
              (file listing elided)
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd69d23f
    • darin@apple.com's avatar
      2008-11-03 Darin Adler <darin@apple.com> · f700e86f
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              - https://bugs.webkit.org/show_bug.cgi?id=22061
                create script to check for exit-time destructors
      
              * WebKit.xcodeproj/project.pbxproj: Added a script
              phase that runs the check-for-exit-time-destructors script.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f700e86f
    • darin@apple.com's avatar
      2008-11-03 Darin Adler <darin@apple.com> · b2d6e144
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              - https://bugs.webkit.org/show_bug.cgi?id=22061
                create script to check for exit-time destructors
      
              * JavaScriptCore.exp: Changed to export functions rather than
              a global for the atomically initialized static mutex.
      
              * JavaScriptCore.xcodeproj/project.pbxproj: Added a script
              phase that runs the check-for-exit-time-destructors script.
      
              * wtf/MainThread.cpp:
              (WTF::mainThreadFunctionQueueMutex): Changed to leak an object
              rather than using an exit time destructor.
              (WTF::functionQueue): Ditto.
              * wtf/unicode/icu/CollatorICU.cpp:
              (WTF::cachedCollatorMutex): Ditto.
      
              * wtf/Threading.h: Changed other platforms to share the Windows
              approach where the mutex is internal and the functions are exported.
              * wtf/ThreadingGtk.cpp:
              (WTF::lockAtomicallyInitializedStaticMutex): Ditto.
              (WTF::unlockAtomicallyInitializedStaticMutex): Ditto.
              * wtf/ThreadingNone.cpp:
              (WTF::lockAtomicallyInitializedStaticMutex): Ditto.
              (WTF::unlockAtomicallyInitializedStaticMutex): Ditto.
              * wtf/ThreadingPthreads.cpp:
              (WTF::threadMapMutex): Changed to leak an object rather than using
              an exit time destructor.
              (WTF::lockAtomicallyInitializedStaticMutex): Mutex change.
              (WTF::unlockAtomicallyInitializedStaticMutex): Ditto.
              (WTF::threadMap): Changed to leak an object rather than using
              an exit time destructor.
              * wtf/ThreadingQt.cpp:
              (WTF::lockAtomicallyInitializedStaticMutex): Mutex change.
              (WTF::unlockAtomicallyInitializedStaticMutex): Ditto.
              * wtf/ThreadingWin.cpp:
              (WTF::lockAtomicallyInitializedStaticMutex): Added an assertion.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2d6e144
    • darin@apple.com's avatar
      2008-11-03 Darin Adler <darin@apple.com> · d0175992
      darin@apple.com authored
              Reviewed by Tim Hatcher.
      
              - https://bugs.webkit.org/show_bug.cgi?id=22061
                create script to check for exit-time destructors
      
              * Scripts/check-for-exit-time-destructors: Added.
              Started as a copy of check-for-global-initializers.
      
              * Scripts/check-for-global-initializers: Added code to make
              this script rerun any time it's modified, and also to properly
              run again after the first time it reports an error.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0175992
    • andersca@apple.com's avatar
      2008-11-04 Anders Carlsson <andersca@apple.com> · 9b4c9743
      andersca@apple.com authored
              Reviewed by Kevin Decker.
              
              https://bugs.webkit.org/show_bug.cgi?id=22065
              
              Remove some old, unused plug-in code.
              
              * Plugins/WebBaseNetscapePluginView.h:
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
              (-[WebBaseNetscapePluginView start]):
              (-[WebBaseNetscapePluginView setVariable:value:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b4c9743
    • simon.fraser@apple.com's avatar
      2008-11-04 Simon Fraser <simon.fraser@apple.com> · c65d3288
      simon.fraser@apple.com authored
              Reviewed by Dave Hyatt
      
              https://bugs.webkit.org/show_bug.cgi?id=21941
      
              Rename absolutePosition() to localToAbsolute(), and add the ability
              to optionally take transforms into account (which will eventually be the
              default behavior).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c65d3288
    • hausmann@webkit.org's avatar
      WebCore: · b8b5aa1d
      hausmann@webkit.org authored
          2008-11-03  Yael Aharon  <yael.aharon@nokia.com>
      
                  Reviewed by Simon Hausmann.
      
                  Add methods for getting and setting user data on History Item.
                  This change is limited to QT port only. Tests were added in
                  the patch for https://bugs.webkit.org/show_bug.cgi?id=21864.
      
                  Minor change by Simon: made the functions inline and added a missing
                  const.
      
      WebKit/qt:
          2008-10-24  Yael Aharon <yael.aharon@nokia.com>
      
                  Reviewed by Simon Hausmann.
      
                  Add userData() and setUserData() to QWebHistoryItem.
                  Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
                  Add currentItemIndex() to QWebHistory.
      
                  See also https://bugs.webkit.org/show_bug.cgi?id=21864
      
                  Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8b5aa1d
    • aroben@apple.com's avatar
      Windows build fix · ec67500a
      aroben@apple.com authored
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Update
              the location of JSStaticScopeObject.{cpp,h}.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec67500a
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · 7c5adbdb
      cwzwarich@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              Move AllInOneFile.cpp to the top level of JavaScriptCore.
      
              * AllInOneFile.cpp: Copied from kjs/AllInOneFile.cpp.
              * GNUmakefile.am:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/AllInOneFile.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c5adbdb
    • ap@webkit.org's avatar
      Reviewed by Darin Adler. · c5e3f1b1
      ap@webkit.org authored
              https://bugs.webkit.org/show_bug.cgi?id=22030
              Make EventNames usable from multiple threads
      
              * platform/text/AtomicString.cpp:
              (WebCore::stringTable):
              (WebCore::AtomicString::add):
              (WebCore::AtomicString::remove):
              (WebCore::AtomicString::find):
              (WebCore::AtomicString::init):
              * platform/text/AtomicString.h:
              Atomic string table is now per-thread. Individual strings cannot be shared between threads,
              so global AtomicString constants cannot be used from threads other than the main one.
      
              * dom/EventNames.cpp:
              (WebCore::EventNames::EventNames):
              (WebCore::eventNames):
              (WebCore::EventNames::init):
              * dom/EventNames.h:
              Made EventNames a ThreadSpecific struct. Individual event names are now accessed as
              eventNames().fooEvent, not EventNames::fooEvent. This makes EventNames usable from all
              threads.
      
              * <Many files>: Access event names via eventNames() function.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5e3f1b1
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · a148926d
      cwzwarich@webkit.org authored
              Rubber-stamped by Alexey Proskuryakov.
      
              Add NodeInfo.h to the JavaScriptCore Xcode project.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a148926d
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · d39a1fcf
      cwzwarich@webkit.org authored
              Reviewed by Mark Rowe.
      
              Delete unused forwarding headers.
      
              WebCore:
      
              * ForwardingHeaders/kjs/Activation.h: Removed.
              * ForwardingHeaders/kjs/Register.h: Removed.
              * ForwardingHeaders/kjs/RegisterID.h: Removed.
      
              WebKit/mac:
      
              * ForwardingHeaders/kjs/string_object.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d39a1fcf
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · 08676cd7
      cwzwarich@webkit.org authored
              Reviewed by Mark Rowe.
      
              Remove JavaScriptGlue forwarding headers that are no longer necessary,
              and correct the path of the ExecState.h forwarding header.
      
              * ForwardingHeaders/kjs: Removed.
              * ForwardingHeaders/kjs/CTI.h: Removed.
              * ForwardingHeaders/kjs/ExecState.h: Removed.
              * ForwardingHeaders/kjs/JSValue.h: Removed.
              * ForwardingHeaders/kjs/PutPropertySlot.h: Removed.
              * ForwardingHeaders/kjs/ustring.h: Removed.
              * ForwardingHeaders/runtime: Added.
              * ForwardingHeaders/runtime/ExecState.h: Copied from ForwardingHeaders/kjs/ExecState.h.
              * config.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08676cd7
    • cwzwarich@webkit.org's avatar
      2008-11-04 Cameron Zwarich <zwarich@apple.com> · 26ab56bc
      cwzwarich@webkit.org authored
              Not reviewed.
      
              Fix stupid typo in previous build fix.
      
              * bindings/js/JSStorageCustom.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/NP_jsobject.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26ab56bc
    • cwzwarich@webkit.org's avatar
      2008-11-03 Cameron Zwarich <zwarich@apple.com> · 5d5284b8
      cwzwarich@webkit.org authored
              Not reviewed.
      
              Fix the build for all non-Mac platforms.
      
              * ForwardingHeaders/kjs/PropertyNameArray.h: Removed.
              * ForwardingHeaders/runtime/PropertyNameArray.h: Copied from ForwardingHeaders/kjs/PropertyNameArray.h.
              * bindings/js/JSStorageCustom.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/NP_jsobject.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d5284b8
    • cwzwarich@webkit.org's avatar
      2008-11-03 Cameron Zwarich <zwarich@apple.com> · e0e250b3
      cwzwarich@webkit.org authored
              Not reviewed.
      
              Fix the wxWindows build.
      
              * bridge/c/c_instance.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0e250b3
    • cwzwarich@webkit.org's avatar
      2008-11-03 Cameron Zwarich <zwarich@apple.com> · b91210c0
      cwzwarich@webkit.org authored
              Rubber-stamped by Maciej Stachowiak.
      
              Move more files into the runtime subdirectory of JavaScriptCore.
      
              JavaScriptCore:
      
              * API/JSBase.cpp:
              * API/JSCallbackConstructor.cpp:
              * API/JSCallbackFunction.cpp:
              * API/JSClassRef.cpp:
              * API/OpaqueJSString.cpp:
              * GNUmakefile.am:
              * JavaScriptCore.pri:
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * JavaScriptCoreSources.bkl:
              * kjs/AllInOneFile.cpp:
              * kjs/ArgList.cpp: Removed.
              * kjs/ArgList.h: Removed.
              * kjs/Arguments.cpp: Removed.
              * kjs/Arguments.h: Removed.
              * kjs/BatchedTransitionOptimizer.h: Removed.
              * kjs/CollectorHeapIterator.h: Removed.
              * kjs/CommonIdentifiers.cpp: Removed.
              * kjs/CommonIdentifiers.h: Removed.
              * kjs/ExecState.cpp: Removed.
              * kjs/ExecState.h: Removed.
              * kjs/GetterSetter.cpp: Removed.
              * kjs/GetterSetter.h: Removed.
              * kjs/InitializeThreading.cpp: Removed.
              * kjs/InitializeThreading.h: Removed.
              * kjs/JSActivation.cpp: Removed.
              * kjs/JSActivation.h: Removed.
              * kjs/JSGlobalData.cpp: Removed.
              * kjs/JSGlobalData.h: Removed.
              * kjs/JSLock.cpp: Removed.
              * kjs/JSLock.h: Removed.
              * kjs/JSStaticScopeObject.cpp: Removed.
              * kjs/JSStaticScopeObject.h: Removed.
              * kjs/JSType.h: Removed.
              * kjs/PropertyNameArray.cpp: Removed.
              * kjs/PropertyNameArray.h: Removed.
              * kjs/ScopeChain.cpp: Removed.
              * kjs/ScopeChain.h: Removed.
              * kjs/ScopeChainMark.h: Removed.
              * kjs/SymbolTable.h: Removed.
              * kjs/Tracing.d: Removed.
              * kjs/Tracing.h: Removed.
              * runtime/ArgList.cpp: Copied from kjs/ArgList.cpp.
              * runtime/ArgList.h: Copied from kjs/ArgList.h.
              * runtime/Arguments.cpp: Copied from kjs/Arguments.cpp.
              * runtime/Arguments.h: Copied from kjs/Arguments.h.
              * runtime/BatchedTransitionOptimizer.h: Copied from kjs/BatchedTransitionOptimizer.h.
              * runtime/CollectorHeapIterator.h: Copied from kjs/CollectorHeapIterator.h.
              * runtime/CommonIdentifiers.cpp: Copied from kjs/CommonIdentifiers.cpp.
              * runtime/CommonIdentifiers.h: Copied from kjs/CommonIdentifiers.h.
              * runtime/ExecState.cpp: Copied from kjs/ExecState.cpp.
              * runtime/ExecState.h: Copied from kjs/ExecState.h.
              * runtime/GetterSetter.cpp: Copied from kjs/GetterSetter.cpp.
              * runtime/GetterSetter.h: Copied from kjs/GetterSetter.h.
              * runtime/InitializeThreading.cpp: Copied from kjs/InitializeThreading.cpp.
              * runtime/InitializeThreading.h: Copied from kjs/InitializeThreading.h.
              * runtime/JSActivation.cpp: Copied from kjs/JSActivation.cpp.
              * runtime/JSActivation.h: Copied from kjs/JSActivation.h.
              * runtime/JSGlobalData.cpp: Copied from kjs/JSGlobalData.cpp.
              * runtime/JSGlobalData.h: Copied from kjs/JSGlobalData.h.
              * runtime/JSLock.cpp: Copied from kjs/JSLock.cpp.
              * runtime/JSLock.h: Copied from kjs/JSLock.h.
              * runtime/JSStaticScopeObject.cpp: Copied from kjs/JSStaticScopeObject.cpp.
              * runtime/JSStaticScopeObject.h: Copied from kjs/JSStaticScopeObject.h.
              * runtime/JSType.h: Copied from kjs/JSType.h.
              * runtime/PropertyNameArray.cpp: Copied from kjs/PropertyNameArray.cpp.
              * runtime/PropertyNameArray.h: Copied from kjs/PropertyNameArray.h.
              * runtime/ScopeChain.cpp: Copied from kjs/ScopeChain.cpp.
              * runtime/ScopeChain.h: Copied from kjs/ScopeChain.h.
              * runtime/ScopeChainMark.h: Copied from kjs/ScopeChainMark.h.
              * runtime/SymbolTable.h: Copied from kjs/SymbolTable.h.
              * runtime/Tracing.d: Copied from kjs/Tracing.d.
              * runtime/Tracing.h: Copied from kjs/Tracing.h.
      
              WebCore:
      
              * ForwardingHeaders/kjs/ArgList.h: Removed.
              * ForwardingHeaders/kjs/CollectorHeapIterator.h: Removed.
              * ForwardingHeaders/kjs/ExecState.h: Removed.
              * ForwardingHeaders/kjs/InitializeThreading.h: Removed.
              * ForwardingHeaders/kjs/JSGlobalData.h: Removed.
              * ForwardingHeaders/kjs/JSLock.h: Removed.
              * ForwardingHeaders/kjs/SymbolTable.h: Removed.
              * ForwardingHeaders/runtime/ArgList.h: Copied from ForwardingHeaders/kjs/ArgList.h.
              * ForwardingHeaders/runtime/CollectorHeapIterator.h: Copied from ForwardingHeaders/kjs/CollectorHeapIterator.h.
              * ForwardingHeaders/runtime/ExecState.h: Copied from ForwardingHeaders/kjs/ExecState.h.
              * ForwardingHeaders/runtime/InitializeThreading.h: Copied from ForwardingHeaders/kjs/InitializeThreading.h.
              * ForwardingHeaders/runtime/JSGlobalData.h: Copied from ForwardingHeaders/kjs/JSGlobalData.h.
              * ForwardingHeaders/runtime/JSLock.h: Copied from ForwardingHeaders/kjs/JSLock.h.
              * ForwardingHeaders/runtime/SymbolTable.h: Copied from ForwardingHeaders/kjs/SymbolTable.h.
              * bindings/js/GCController.cpp:
              * bindings/js/JSCustomPositionCallback.cpp:
              * bindings/js/JSCustomPositionErrorCallback.cpp:
              * 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/JSDOMWindowBase.cpp:
              * bindings/js/JSEventCustom.cpp:
              * bindings/js/JSEventListener.cpp:
              * bindings/js/JSNodeFilterCondition.cpp:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/ScriptController.cpp:
              * bindings/js/ScriptControllerMac.mm:
              * bindings/objc/WebScriptObject.mm:
              * bridge/NP_jsobject.cpp:
              * bridge/c/c_class.cpp:
              * bridge/c/c_instance.cpp:
              * bridge/c/c_runtime.cpp:
              * bridge/c/c_utility.cpp:
              * bridge/jni/jni_class.cpp:
              * bridge/jni/jni_instance.cpp:
              * bridge/jni/jni_jsobject.mm:
              * bridge/jni/jni_objc.mm:
              * bridge/jni/jni_runtime.cpp:
              * bridge/jni/jni_runtime.h:
              * bridge/jni/jni_utility.cpp:
              * bridge/npruntime.cpp:
              * bridge/objc/objc_instance.mm:
              * bridge/objc/objc_runtime.mm:
              * bridge/objc/objc_utility.mm:
              * bridge/runtime.cpp:
              * dom/Document.cpp:
              * dom/Node.cpp:
              * dom/NodeFilter.cpp:
              * dom/NodeIterator.cpp:
              * dom/TreeWalker.cpp:
              * history/CachedPage.cpp:
              * inspector/InspectorController.cpp:
              * inspector/JavaScriptCallFrame.cpp:
              * inspector/JavaScriptCallFrame.h:
              * inspector/JavaScriptDebugServer.cpp:
              * inspector/JavaScriptProfileNode.cpp:
              * loader/FrameLoader.cpp:
              * loader/icon/IconDatabase.cpp:
              * page/Console.cpp:
              * page/Page.cpp:
              * page/mac/FrameMac.mm:
              * plugins/PluginView.cpp:
              * plugins/gtk/PluginViewGtk.cpp:
              * plugins/qt/PluginViewQt.cpp:
              * plugins/win/PluginViewWin.cpp:
              * storage/Database.cpp:
              * xml/XMLHttpRequest.cpp:
      
              WebKit/gtk:
      
              * webkit/webkitprivate.cpp:
      
              WebKit/mac:
      
              * ForwardingHeaders/kjs/JSLock.h: Removed.
              * ForwardingHeaders/kjs/SymbolTable.h: Removed.
              * ForwardingHeaders/runtime/JSLock.h: Copied from ForwardingHeaders/kjs/JSLock.h.
              * ForwardingHeaders/runtime/SymbolTable.h: Copied from ForwardingHeaders/kjs/SymbolTable.h.
              * Misc/WebCoreStatistics.mm:
              * Plugins/WebBaseNetscapePluginStream.mm:
              * Plugins/WebBaseNetscapePluginView.mm:
              * Plugins/WebPluginController.mm:
              * WebView/WebFrame.mm:
              * WebView/WebScriptDebugDelegate.mm:
              * WebView/WebView.mm:
      
              WebKit/qt:
      
              * Api/qwebpage.cpp:
      
              WebKit/win:
      
              * WebJavaScriptCollector.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b91210c0
    • mitz@apple.com's avatar
      Reviewed by Steve Falkenburg. · f6778904
      mitz@apple.com authored
              - implement WebMutableURLRequest::setHTTPShouldHandleCookies()
              - add and implement WebMutableURLRequest::mutableCopy()
      
              * Interfaces/IWebURLRequest.idl:
              * WebMutableURLRequest.cpp:
              (WebMutableURLRequest::setHTTPShouldHandleCookies):
              (WebMutableURLRequest::mutableCopy):
              * WebMutableURLRequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6778904
  2. 03 Nov, 2008 9 commits
    • mrowe@apple.com's avatar
      Fix the 64-bit build. · 748e44d4
      mrowe@apple.com authored
      Pull the frequently-made check for drawingModel == NPDrawingModelQuickDraw out into a
      helper function to avoid #ifdef'ing all of the new places that this check is made.
      
      A few other #ifdef's are moved inside functions to allow their call sites to remain #ifdef-free,
      and we rely on the compiler to optimise out the check (which will always be false in 64-bit) instead.
      
      * Plugins/WebBaseNetscapePluginView.mm:
      (isDrawingModelQuickDraw):
      (-[WebBaseNetscapePluginView fixWindowPort]):
      (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
      (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]):
      (-[WebBaseNetscapePluginView updateAndSetWindow]):
      (-[WebBaseNetscapePluginView start]):
      (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
      (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
      (-[WebBaseNetscapePluginView _viewHasMoved]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      748e44d4
    • alp@webkit.org's avatar
      2008-11-03 Alp Toker <alp@nuanti.com> · e359c84d
      alp@webkit.org authored
              autotools distcleancheck fix. Add dolt-generated files and
              webkitenumtypes.h to the list of files that need to be cleaned.
              Unreviewed.
      
              * GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e359c84d
    • cwzwarich@webkit.org's avatar
      2008-11-03 Cameron Zwarich <zwarich@apple.com> · 4b497867
      cwzwarich@webkit.org authored
              Reviewed by Sam Weinig.
      
              Remove the forwarding header for FunctionCallProfile, because it was
              renamed to ProfileNode in r33466.
      
              * ForwardingHeaders/kjs/FunctionCallProfile.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b497867
    • mitz@apple.com's avatar
      2008-11-03 Pierre-Olivier Latour <pol@apple.com> · 2654c027
      mitz@apple.com authored
              Reviewed by Dan Bernstein.
      
              Fixed the override of the "AppleScrollBarVariant" system setting to also work with HIToolbox.
      
              https://bugs.webkit.org/show_bug.cgi?id=22054
      
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (setDefaultsToConsistentValuesForTesting):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2654c027
    • mjs@apple.com's avatar
      2008-11-03 Maciej Stachowiak <mjs@apple.com> · e618cf50
      mjs@apple.com authored
              Reviewed by Kevin Decker.
              
              - fix release build (and unitialized variable for CG drawing model!)
      
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]): initialize portState in all code paths
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e618cf50
    • weinig@apple.com's avatar
      2008-11-03 Sam Weinig <sam@webkit.org> · 5777147d
      weinig@apple.com authored
              Reviewed by Mark Rowe.
      
              Move #define to turn on dumping StructureID statistics to StructureID.cpp so that
              turning it on does not require a full rebuild. 
      
              * runtime/StructureID.cpp:
              (JSC::StructureID::dumpStatistics):
              * runtime/StructureID.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5777147d
    • simon.fraser@apple.com's avatar
      2008-11-03 Simon Fraser <simon.fraser@apple.com> · f9050b37
      simon.fraser@apple.com authored
              Reviewed by Dave Hyatt
      
              https://bugs.webkit.org/show_bug.cgi?id=22026
      
              When computing the bounds of the transparency layer, we need to
              map the clipRect through the enclosing transform.
      
              Test: fast/layers/opacity-transforms.html
      
              * rendering/RenderLayer.cpp:
              (WebCore::transparencyClipBox):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9050b37
    • kdecker@apple.com's avatar
      Reviewed by Anders Carlsson. · eb4eabb2
      kdecker@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=22053
              
              This patch adds initial support for the NPDrawingModelCoreAnimation drawing model. 
                      
              * Plugins/WebBaseNetscapePluginView.h: Added _layer ivar.
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): ASSERT this is not a plug-in using NPDrawingModelCoreAnimation.
              (-[WebBaseNetscapePluginView restorePortState:]): Ditto.
              (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]): Slightly refactored a small block of code which with the PortState.
              Plug-ins using the NPDrawingModelCoreAnimation drawing model have no PortState. 
              (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]): ASSERT this is not a plug-in using NPDrawingModelCoreAnimation
              (-[WebBaseNetscapePluginView updateAndSetWindow]):  Ditto.
              (-[WebBaseNetscapePluginView setWindowIfNecessary]): Ditto.
              (-[WebBaseNetscapePluginView start]): If the plug-in is a plug-in using the Core Animation model, request a layer from it.
              (-[WebBaseNetscapePluginView drawRect:]): Return early for NPDrawingModelCoreAnimation plug-ins.
              (-[WebBaseNetscapePluginView getVariable:value:]): Tell plug-ins running on post-Tiger systems WebKit supports
               NPDrawingModelCoreAnimation.
              (-[WebBaseNetscapePluginView setVariable:value:]): Added the new NPDrawingModelCoreAnimation case, which initializes drawingMode.
              (-[WebBaseNetscapePluginView _viewHasMoved]): Reworded the conditional call to updateAndSetWindow to be specific to 
              CoreGraphics and QuickDraw plug-ins.
      
              Reviewed by Anders Carlsson.
      
              https://bugs.webkit.org/show_bug.cgi?id=22053
      
              Added additional support needed for the NPDrawingModelCoreAnimation drawing model. 
      
              * bridge/npapi.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb4eabb2
    • alp@webkit.org's avatar
      2008-11-03 Alp Toker <alp@nuanti.com> · c1f39dc9
      alp@webkit.org authored
              Reviewed by Geoffrey Garen.
      
              Fix warning when building on Darwin without JSC_MULTIPLE_THREADS
              enabled.
      
              * kjs/InitializeThreading.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1f39dc9