1. 12 Nov, 2007 33 commits
  2. 11 Nov, 2007 7 commits
    • aroben@apple.com's avatar
      Fix <rdar://5578982> ASSERT in... · 390aaf4f
      aroben@apple.com authored
              Fix <rdar://5578982> ASSERT in HashTable::checkTableConsistencyExceptSize beneath WebNotificationCenter
              The bug was due to a mismatch between HashMap::remove and
              HashTable::checkTableConsistency. HashMap::remove can delete the value
              stored in the HashTable (by derefing it), which is not normally
              allowed by HashTable. It's OK in this case because the value is about
              to be removed from the table, but HashTable wasn't aware of this.
              HashMap::remove now performs the consistency check itself before
              derefing the value.
              Darin noticed that the same bug would occur in HashSet, so I've fixed
              it there as well.
              Reviewed by Darin.
              * wtf/HashMap.h:
              (WTF::HashMap::remove): Perform the HashTable consistency check
              manually before calling deref.
              * wtf/HashSet.h:
              (WTF::HashSet::remove): Ditto.
              * wtf/HashTable.h: Made checkTableConsistency public so that HashMap
              and HashSet can call it.
              (WTF::HashTable::removeAndInvalidate): Added.
              (WTF::HashTable::removeWithoutEntryConsistencyCheck): Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mrowe@apple.com's avatar
      Roll out r27708 as it breaks the Mac PowerPC build. · c05214d7
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mrowe@apple.com's avatar
      2007-11-11 Mike Hommey <mh+webkit@glandium.org> · 383057a9
      mrowe@apple.com authored
              Reviewed by Maciej.
              Fix http://bugs.webkit.org/show_bug.cgi?id=14521
              Bug 14521: JavaScriptCore fails to build on Linux/PPC gcc 4.1.2
              * wtf/TCSpinLock.h:
              (TCMalloc_SpinLock::Unlock): Change constraint from o to m.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mrowe@apple.com's avatar
      2007-11-11 Justin Haygood <jhaygood@reaktix.com> · 6f520711
      mrowe@apple.com authored
              Reviewed by Adam Roben.
              Adds a currentThread API for use by SQLiteDatabase, etc.
              * platform/Threading.h:
              * platform/ThreadingNone.cpp:
              * platform/gtk/ThreadingGtk.cpp:
              * platform/pthreads/ThreadingPthreads.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mitz@apple.com's avatar
      WebCore: · cb71b59e
      mitz@apple.com authored
              Reviewed by Adam Roben.
              - fix http://bugs.webkit.org/show_bug.cgi?id=15942
                REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())
              Test: editing/selection/cleared-by-relayout.html
              * editing/Selection.cpp:
              (WebCore::Selection::toRange): Check if the selection has been cleared
              by updating layout.
              Reviewed by Adam Roben.
              - test for http://bugs.webkit.org/show_bug.cgi?id=15942
                REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())
              * editing/selection/cleared-by-relayout-expected.txt: Added.
              * editing/selection/cleared-by-relayout.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin@apple.com's avatar
      Reviewed by Mark Rowe. · 4dfc68a2
      darin@apple.com authored
              - fix line numbers that were off since my recent patch
              * platform/SegmentedString.h:
              (WebCore::SegmentedSubstring::SegmentedSubstring): Reversed the sense of m_excludeLineNumbers
              and rename it to m_doNotExcludeLineNumbers.
              (WebCore::SegmentedSubstring::excludeLineNumbers): Updated.
              (WebCore::SegmentedSubstring::doNotExcludeLineNumbers): Added.
              (WebCore::SegmentedSubstring::setExcludeLineNumbers): Updated.
              (WebCore::SegmentedString::advance): Use doNotExcludeLineNumbers to reverse the sense and fix
              the regression, but keep the speediness. I accidentally had removed a ! here.
              * platform/SegmentedString.cpp:
              (WebCore::SegmentedString::advanceSlowCase): Use doNotExcludeLineNumbers.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • oliver's avatar
      Fix for <rdar://problem/5585334> · b1bdd112
      oliver authored
      Reviewed by Darin.
      Fix for <rdar://problem/5585334> numfuzz: integer overflows opening
      malformed SVG file in WebCore::ImageBuffer::create. Add protection
      against a potential overflow.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27704 268f45cc-cd09-0410-ab3c-d52691b4dbfc