1. 24 Jun, 2008 10 commits
  2. 23 Jun, 2008 20 commits
    • mrowe@apple.com's avatar
      Prepration for returning memory to the OS on Windows. Track whether a portion... · 20c85fe3
      mrowe@apple.com authored
      Prepration for returning memory to the OS on Windows.  Track whether a portion of a span of memory was returned to the OS.
      If it was, ask that it be recommitted before returning it to the application as an allocated region.
      
      Reviewed by Oliver Hunt.
      
      * wtf/FastMalloc.cpp:
      (WTF::TCMalloc_PageHeap::New):  If the span was decommitted, ask that it be recommitted before returning it.
      (WTF::TCMalloc_PageHeap::AllocLarge):  Ditto.
      (WTF::TCMalloc_PageHeap::Carve):  When splitting a span, ensure that the decommitted state propogates to the two new spans.
      (WTF::TCMalloc_PageHeap::Delete):  When merging a span, ensure that the resulting span is marked as decommitted if any of the
      spans being merged were marked as decommitted.
      (WTF::TCMalloc_PageHeap::IncrementalScavenge):  Mark as decommitted after releasing the span.
      (WTF::TCMalloc_Central_FreeList::FetchFromSpans): Add an assertion to catch a decommitted span being returned to the application
      without first being recommitted.
      (WTF::TCMalloc_Central_FreeList::Populate): Ditto.
      * wtf/TCSystemAlloc.cpp: Stub out TCMalloc_SystemCommit.
      * wtf/TCSystemAlloc.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20c85fe3
    • mrowe@apple.com's avatar
      Remove the sample member of Span when NO_TCMALLOC_SAMPLES is defined. · 8ace5e01
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      * wtf/FastMalloc.cpp:
      (WTF::TCMalloc_PageHeap::Delete): Only update Span::sample if NO_TCMALLOC_SAMPLES is not defined.
      (WTF::TCMallocStats::do_free):  Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ace5e01
    • darin@apple.com's avatar
      JavaScriptCore: · 1edff436
      darin@apple.com authored
      2008-06-23  Darin Adler  <darin@apple.com>
      
              Reviewed by Geoff.
      
              - work toward https://bugs.webkit.org/show_bug.cgi?id=19721
      
              More preparation toward making functions work on primitive types without
              creating wrapper objects. No speedup this time, but prepares for a future
              speedup without slowing things down.
      
              SunSpider reports no change.
      
              - Eliminated the implementsCall, callAsFunction and construct virtual
                functions from JSObject. Instead, the CallData and ConstructData for
                a native function includes a function pointer that the caller can use
                directly. Changed all call sites to use CallData and ConstructData.
      
              - Changed the "this" argument to native functions to be a JSValue rather
                than a JSObject. This prepares us for passing primitives into these
                functions. The conversion to an object now must be done inside the
                function. Critically, if it's a function that can be c...
      1edff436
    • abarth@webkit.org's avatar
      2008-06-23 Adam Barth <abarth@webkit.org> · 82988b5d
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              https://bugs.webkit.org/show_bug.cgi?id=16756
      
              Move isAllowedToLoadLocalResources into SecurityOrigin.
      
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::setURL):
              (WebCore::Document::initSecurityContext):
              * dom/Document.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::canLoad):
              * platform/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::SecurityOrigin):
              (WebCore::SecurityOrigin::isLocal):
              * platform/SecurityOrigin.h:
              (WebCore::SecurityOrigin::protocol):
              (WebCore::SecurityOrigin::host):
              (WebCore::SecurityOrigin::domain):
              (WebCore::SecurityOrigin::port):
              (WebCore::SecurityOrigin::canLoadLocalResources):
              (WebCore::SecurityOrigin::grantLoadLocalResources):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::setRequestHeader):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82988b5d
    • mrowe@apple.com's avatar
      Fix Windows build. · 2b8ef06b
      mrowe@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b8ef06b
    • cwzwarich@webkit.org's avatar
      2008-06-23 Cameron Zwarich <cwzwarich@uwaterloo.ca> · a2e0ef7d
      cwzwarich@webkit.org authored
              Reviewed by Oliver.
      
              Bug 19716: REGRESSION (SquirrelFish): Reproducible crash after entering a username at mint.com
              <https://bugs.webkit.org/show_bug.cgi?id=19716>
      
              When unwinding callframes for exceptions, check whether the callframe
              was created by a reentrant native call to JavaScript after tearing off
              the local variables instead of before.
      
              JavaScriptCore:
      
              * VM/Machine.cpp:
              (KJS::Machine::unwindCallFrame):
      
              LayoutTests:
      
              * fast/js/reentrant-call-unwind-expected.txt: Added.
              * fast/js/reentrant-call-unwind.html: Added.
              * fast/js/resources/reentrant-call-unwind.js: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2e0ef7d
    • sfalken@apple.com's avatar
      Fix a math error in my last change. · 8e687ad5
      sfalken@apple.com authored
              
              Reviewed by Ada Chan.
      
              * platform/win/FileSystemWin.cpp:
              (WebCore::openTemporaryFile):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e687ad5
    • kmccullough@apple.com's avatar
      2008-06-23 Kevin McCullough <kmccullough@apple.com> · 21de6b78
      kmccullough@apple.com authored
              -Build fix.
      
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21de6b78
    • cfleizach@apple.com's avatar
      <rdar://problem/6024267> VO unable to read massive emails because... · a050d35d
      cfleizach@apple.com authored
      <rdar://problem/6024267> VO unable to read massive emails because AccessibilityObject::lengthForVisiblePositionRange makes the string
      
      Improves performance of asking for the length/string of text marker ranges
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a050d35d
    • mrowe@apple.com's avatar
      Get testapi passing again in a debug build. · f558995b
      mrowe@apple.com authored
      Reviewed by Oliver Hunt.
      
      * API/testapi.c:
      (main): Update the expected output of calling JSValueMakeString on a function object.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f558995b
    • sfalken@apple.com's avatar
      Added our own mechanism for generating temporary file names. · d1e2f812
      sfalken@apple.com authored
              
              Reviewed by Ada Chan, Darin Adler.
      
              * platform/win/FileSystemWin.cpp:
              (WebCore::openTemporaryFile):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1e2f812
    • ddkilzer@apple.com's avatar
      2008-06-23 David Kilzer <ddkilzer@apple.com> · 3d55fe7f
      ddkilzer@apple.com authored
              Updated test for Bug 15823: getPropertyValue for border returns null, should compute the shorthand value
      
              <https://bugs.webkit.org/show_bug.cgi?id=15823>
      
              Rubber-stamped by Darin.
      
              * fast/css/getPropertyValue-border-expected.txt: Updated results.
              * fast/css/getPropertyValue-border.html: Test all combinations of
              (mismatched) border values.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d55fe7f
    • weinig@apple.com's avatar
      2008-06-23 Sam Weinig <sam@webkit.org> · 9b12c722
      weinig@apple.com authored
              Remove XMLHttpRequestProgressEvent.cpp from project files.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b12c722
    • weinig@apple.com's avatar
      2008-06-23 Sam Weinig <sam@webkit.org> · ce382ab9
      weinig@apple.com authored
              Reviewed by Dave Hyatt.
      
              Remove empty file.
      
              * xml/XMLHttpRequestProgressEvent.cpp: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce382ab9
    • weinig@apple.com's avatar
      2008-06-23 Sam Weinig <sam@webkit.org> · 813e39b5
      weinig@apple.com authored
              Rubber-stamped by Tim Hatcher.
      
              Rename XMLHttpRequest::sameOriginRequest to XMLHttpRequest::makeSameOriginRequest
              and XMLHttpRequest::crossSiteAccessRequest to XMLHttpRequest::makeCrossSiteAccessRequest.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::createRequest):
              (WebCore::XMLHttpRequest::makeSameOriginRequest):
              (WebCore::XMLHttpRequest::makeCrossSiteAccessRequest):
              * xml/XMLHttpRequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      813e39b5
    • weinig@apple.com's avatar
      2008-06-23 Sam Weinig <sam@webkit.org> · 93b29209
      weinig@apple.com authored
              Reviewed by Alexey Proskuryakov.
      
              Some XMLHttpRequest re-organization to aid further enhancements coming soon.
      
              * bindings/js/JSXMLHttpRequestCustom.cpp:
              (WebCore::JSXMLHttpRequest::send): Explicitly call overloaded versions of send,
              instead of always calling though send(DOMString).
              * dom/Document.idl: Adds native converter.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::initSend):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::createRequest):
              (WebCore::XMLHttpRequest::sameOriginRequest):
              (WebCore::XMLHttpRequest::crossSiteAccessRequest):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::clearResponse):
              (WebCore::XMLHttpRequest::clearRequest):
              (WebCore::XMLHttpRequest::genericError):
              (WebCore::XMLHttpRequest::dispatchProgressEvent):
              * xml/XMLHttpRequest.h:
              (WebCore::XMLHttpRequest::setOnReadyStateChangeListener): Inline.
              (WebCore::XMLHttpRequest::onReadyStateChangeListener): Ditto.
              (WebCore::XMLHttpRequest::setOnLoadListener): Ditto.
              (WebCore::XMLHttpRequest::onLoadListener): Ditto.
              (WebCore::XMLHttpRequest::setOnProgressListener): Ditto.
              (WebCore::XMLHttpRequest::onProgressListener): Ditto.
              Makes the request entity body a member variable so that the send method
              can be more easily broken up.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93b29209
    • timothy@apple.com's avatar
      Make profiles of the same name in the Inspector group in the · ef76a280
      timothy@apple.com authored
              sidebar under a collapsable item that contains all the runs.
      
              https://bugs.webkit.org/show_bug.cgi?id=19713
      
              Reviewed by Darin Adler.
      
              * English.lproj/localizedStrings.js: New strings.
              * page/inspector/Images/profileGroupIcon.png: Added.
              * page/inspector/Images/profileSmallIcon.png: Added.
              * page/inspector/ProfilesPanel.js:
              (WebInspector.ProfilesPanel.prototype.reset): Clear _profileGroups.
              Remove the "some-expandable" class from the sidebarTree.
              (WebInspector.ProfilesPanel.prototype.addProfile): Append new profiles
              that have the same name as a previous profile into a group. When a
              group has 2 profiles a ProfileGroupSidebarTreeElement is made and the
              ProfileSidebarTreeElements are appended to the group's element.
              (WebInspector.ProfileSidebarTreeElement.prototype.get mainTitle):
              Return _mainTitle is it is set.
              (WebInspector.ProfileSidebarTreeElement.prototype.set mainTitle):
              Set _mainTitle which is an override title.
              (WebInspector.ProfileGroupSidebarTreeElement): Inherit SidebarTreeElement.
              (WebInspector.ProfileGroupSidebarTreeElement.prototype.onselect):
              Show the last profile in the group when selected.
              * page/inspector/SidebarTreeElement.js:
              (WebInspector.SidebarTreeElement.prototype.get small): Return _small.
              (WebInspector.SidebarTreeElement.prototype.set small): Set _small and
              update the style to match.
              (WebInspector.SidebarTreeElement.prototype.onattach): Set the small
              class if the small property is true.
              * page/inspector/inspector.css: New styles for profiles groups
              and for the small profiles.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef76a280
    • andersca@apple.com's avatar
      2008-06-23 Anders Carlsson <andersca@apple.com> · f1fef132
      andersca@apple.com authored
              Reviewed by Geoff.
      
              Make changedDocuments a HashSet.
      
              * dom/Document.cpp:
              (WebCore::Document::setDocumentChanged):
              (WebCore::Document::updateDocumentsRendering):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1fef132
    • hausmann@webkit.org's avatar
      2008-06-23 Benjamin C Meyer <ben@meyerhome.net> · 810ae40e
      hausmann@webkit.org authored
              Reviewed by Simon.
      
              Add function to retrieve the standard context menu
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      810ae40e
    • ap@webkit.org's avatar
      Reviewed by Mark Rowe. · b6e784f0
      ap@webkit.org authored
              Restore a collectOnMainThreadOnly call that was accidentally removed in r34659. It will not
              be needed when heaps are actually per-thread, but this isn't the case yet, and collecting
              on a different thread causes crashes.
      
              * bindings/js/JSDOMBinding.h:
              (WebCore::DOMObject::DOMObject):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6e784f0
  3. 22 Jun, 2008 8 commits
  4. 21 Jun, 2008 2 commits