1. 17 Apr, 2008 7 commits
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 3752fb81
      andersca@apple.com authored
              Reviewed by Sam.
              
              Add plumbing for associating document loaders with application caches.
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::DocumentLoader):
              (WebCore::DocumentLoader::~DocumentLoader):
              (WebCore::DocumentLoader::originalURL):
              (WebCore::DocumentLoader::requestURL):
              (WebCore::DocumentLoader::responseURL):
              (WebCore::DocumentLoader::responseMIMEType):
              (WebCore::DocumentLoader::setCandidateApplicationCacheGroup):
              (WebCore::DocumentLoader::setApplicationCache):
              (WebCore::DocumentLoader::toplevelApplicationCache):
              * loader/DocumentLoader.h:
              (WebCore::DocumentLoader::candidateApplicationCacheGroup):
              (WebCore::DocumentLoader::applicationCache):
              * loader/appcache/ApplicationCacheGroup.h:
              (WebCore::ApplicationCacheGroup::documentLoaderDestroyed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3752fb81
    • ap@webkit.org's avatar
      Reviewed by Maciej. · c32ab617
      ap@webkit.org authored
              Thread static data destructors are not guaranteed to be called in any particular order;
              turn ThreadSpecific into a phoenix-style singleton to avoid accessing freed memory when
              deleted objects are interdependent (e.g. CommonIdentifiers and internal identifier tables).
      
              No change on SunSpider.
      
              * wtf/ThreadSpecific.h:
              (WTF::ThreadSpecific::Data::Data):
              (WTF::::get):
              (WTF::::set):
              (WTF::::destroy):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c32ab617
    • aroben@apple.com's avatar
      Fix Bug 18544: REGRESSION (r31951): Two fast/xsl tests crash · d0c768a0
      aroben@apple.com authored
              <https://bugs.webkit.org/show_bug.cgi?id=18544>
      
              r31951 changed XSLTProcessor::parseErrorFunc to expect a Console* as
              the context parameter. The caller in XSLTProcessor was changed, but
              the one in XSLStyleSheet was missed.
      
              Reviewed by Alexey Proskuryakov.
      
              * xml/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::parseString): Pass the Console as the context
              to parseErrorFunc.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0c768a0
    • aroben@apple.com's avatar
      Windows build fix after r31981 · 7df5fd3c
      aroben@apple.com authored
              * dom/Document.idl: Omit getCSSCanvasContext from the COM bindings.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7df5fd3c
    • hausmann@webkit.org's avatar
      Ariya Hidayat <ariya.hidayat@trolltech.com> · 7feadc1f
      hausmann@webkit.org authored
      Implemented getFileModificationTime and pathGetFileName for the Qt port.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7feadc1f
    • mrowe@apple.com's avatar
      2008-04-17 Mark Rowe <mrowe@apple.com> · f8d942a9
      mrowe@apple.com authored
              Fix the non-Mac builds that I broke with my Mac build fix.
      
              * css/CSSMutableStyleDeclaration.cpp:
              (WebCore::CSSMutableStyleDeclaration::getLayeredShorthandValue): Explicitly use the size_t version of max
              to avoid making assumptions about sizeof(size_t).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8d942a9
    • mrowe@apple.com's avatar
      2008-04-17 Mark Rowe <mrowe@apple.com> · 0b524a0a
      mrowe@apple.com authored
              Rubber-stamped by Dan Bernstein.
      
              Fix the Mac build.
      
              * css/CSSMutableStyleDeclaration.cpp:
              (WebCore::CSSMutableStyleDeclaration::getLayeredShorthandValue): Update to use size_t in place of unsigned.
              * dom/NamedNodeMap.h: Ditto.
              * page/AccessibilityObject.h: Forward-declare AccessibilityObjectWrapper in the non-Objective-C case too.
      
      2008-04-17  Mark Rowe  <mrowe@apple.com>
      
              Rubber-stamped by Dan Bernstein.
      
              Fix the Mac build.
      
              * WebView/WebFrame.mm: Define HAVE_ACCESSIBILITY before including AccessibilityObject.h and AXObjectCache.h to get things building
              for now.  This comes from config.h in WebCore but we don't have an equivalent in WebKit so we'll need to work out the correct place
              for this to live going forward.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b524a0a
  2. 16 Apr, 2008 33 commits
    • mitz@apple.com's avatar
      2008-04-15 Srinivas Rao. M Hamse <msrinirao@gmail.com> · 2f7ed65e
      mitz@apple.com authored
              Reviewed by Maciej Stachowiak.
      
              - gcc 3.x build fix
      
              * kjs/nodes.h: CallerType definition made public for gcc 3.x compilation
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f7ed65e
    • jhoneycutt@apple.com's avatar
      Add AccessibilityObject wrapper class to WebKit. · e9661f72
      jhoneycutt@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9661f72
    • jhoneycutt@apple.com's avatar
      Fix size_t -> unsigned conversion warnings. · 46831a6e
      jhoneycutt@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46831a6e
    • jhoneycutt@apple.com's avatar
      96910b59
    • jhoneycutt@apple.com's avatar
      Add AccessibilityObjectWrapper on Windows. · adf339ea
      jhoneycutt@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      adf339ea
    • jhoneycutt@apple.com's avatar
      Add AXObjectCache to Windows. · 4faafbd5
      jhoneycutt@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4faafbd5
    • jhoneycutt@apple.com's avatar
      Fix path to AXObjectCache.h on Windows. · ade2e7eb
      jhoneycutt@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ade2e7eb
    • beidson@apple.com's avatar
      2008-04-16 Brady Eidson <beidson@apple.com> · fe0bc442
      beidson@apple.com authored
      Fix ChangeLog typo
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe0bc442
    • beidson@apple.com's avatar
      2008-04-16 Brady Eidson <beidson@apple.com> · bb69e1eb
      beidson@apple.com authored
              Reviewed by Darin Adler
      
              Merge the StorageAreaClient into the StorageArea class itself as pure virtual methods.
              Add "LocalStorageArea" add "SessionStorageArea" implementations, and have SessionStorage
              and LocalStorage instantiate the appropriate type of StorageArea object.
      
              This purpose of this change is because while adding the persistent store to LocalStorage,
              it became obvious that the client approach wasn't scaling well.  Additionally, a StorageArea
              backing a local storage area required vastly different data members compared to one backing
              a session storage area.
      
              This will be much cleaner going forward.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
      
              * storage/LocalStorage.cpp:
              (WebCore::LocalStorage::storageArea):
              * storage/LocalStorage.h:
      
              * storage/LocalStorageArea.cpp: Added.
              (WebCore::LocalStorageArea::LocalStorageArea):
              (WebCore::LocalStorageArea::itemChanged):
              (WebCore::LocalStorageArea::itemRemoved):
              (WebCore::LocalStorageArea::dispatchStorageEvent):
              * storage/LocalStorageArea.h: Added.
              (WebCore::LocalStorageArea::create):
      
              * storage/SessionStorage.cpp:
              (WebCore::SessionStorage::copy):
              (WebCore::SessionStorage::storageArea):
              * storage/SessionStorage.h:
      
              * storage/SessionStorageArea.cpp: Added.
              (WebCore::SessionStorageArea::copy):
              (WebCore::SessionStorageArea::SessionStorageArea):
              (WebCore::SessionStorageArea::itemChanged):
              (WebCore::SessionStorageArea::itemRemoved):
              (WebCore::SessionStorageArea::dispatchStorageEvent):
              * storage/SessionStorageArea.h: Added.
              (WebCore::SessionStorageArea::create):
              (WebCore::SessionStorageArea::page):
      
              * storage/StorageArea.cpp:
              (WebCore::StorageArea::StorageArea):
              (WebCore::StorageArea::setItem):
              (WebCore::StorageArea::removeItem):
              (WebCore::StorageArea::storageMap):
              * storage/StorageArea.h:
      
              * storage/StorageAreaClient.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb69e1eb
    • hyatt@apple.com's avatar
      Update window properties test for the new DOM document method. · 7f192d4a
      hyatt@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f192d4a
    • hyatt@apple.com's avatar
      2008-04-16 David Hyatt <hyatt@apple.com> · 6838215c
      hyatt@apple.com authored
              Add support for the ability to draw directly into CSS images using CanvasRenderingContext2D.
      
              Reviewed by olliej
      
              Added fast/canvas/canvas-bg.html
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * css/CSSCanvasValue.cpp: Added.
              (WebCore::CSSCanvasValue::~CSSCanvasValue):
              (WebCore::CSSCanvasValue::cssText):
              (WebCore::CSSCanvasValue::canvasChanged):
              (WebCore::CSSCanvasValue::canvasResized):
              (WebCore::CSSCanvasValue::fixedSize):
              (WebCore::CSSCanvasValue::element):
              (WebCore::CSSCanvasValue::image):
              * css/CSSCanvasValue.h: Added.
              (WebCore::CSSCanvasValue::CSSCanvasValue):
              (WebCore::CSSCanvasValue::isFixedSize):
              (WebCore::CSSCanvasValue::setName):
              * css/CSSGradientValue.cpp:
              * css/CSSGradientValue.h:
              * css/CSSImageGeneratorValue.cpp:
              (WebCore::CSSImageGeneratorValue::generatedImage):
              * css/CSSImageGeneratorValue.h:
              (WebCore::CSSImageGeneratorValue::isFixedSize):
              (WebCore::CSSImageGeneratorValue::fixedSize):
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseContent):
              (WebCore::CSSParser::parseBackgroundImage):
              (WebCore::CSSParser::parseBorderImage):
              (WebCore::CSSParser::parseCanvas):
              * css/CSSParser.h:
              * dom/Document.cpp:
              (WebCore::Document::getCSSCanvasContext):
              (WebCore::Document::getCSSCanvasElement):
              * dom/Document.h:
              * dom/Document.idl:
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::HTMLCanvasElement):
              (WebCore::HTMLCanvasElement::reset):
              * html/HTMLCanvasElement.h:
              (WebCore::HTMLCanvasElement::setSize):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calculateBackgroundSize):
              (WebCore::RenderBox::imageChanged):
              * rendering/RenderBox.h:
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              * rendering/RenderImage.h:
              (WebCore::RenderImage::imagePtr):
              (WebCore::RenderImage::intrinsicSizeChanged):
              * rendering/RenderImageGeneratedContent.h:
              (WebCore::RenderImageGeneratedContent::imageSize):
              (WebCore::RenderImageGeneratedContent::imagePtr):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::layout):
              (WebCore::RenderListMarker::imageChanged):
              (WebCore::RenderListMarker::calcPrefWidths):
              (WebCore::RenderListMarker::getRelativeMarkerRect):
              * rendering/RenderListMarker.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::imageChanged):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::imageChanged):
              * rendering/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::imageChanged):
              * rendering/RenderSVGImage.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleCachedImage::imageSize):
              (WebCore::StyleGeneratedImage::imageSize):
              * rendering/RenderStyle.h:
              (WebCore::StyleCachedImage::data):
              (WebCore::StyleGeneratedImage::StyleGeneratedImage):
              (WebCore::StyleGeneratedImage::data):
              (WebCore::StyleGeneratedImage::imageHasRelativeWidth):
              (WebCore::StyleGeneratedImage::imageHasRelativeHeight):
              (WebCore::StyleGeneratedImage::usesImageContainerSize):
              * rendering/RenderTableCol.cpp:
              (WebCore::RenderTableCol::imageChanged):
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::imageChanged):
              * rendering/RenderTableRow.h:
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::imageChanged):
              * rendering/RenderTableSection.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6838215c
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · eed4bbb7
      andersca@apple.com authored
              Reviewed by Darin.
      
              Add manifest parser.
      
              * loader/appcache/ManifestParser.cpp:
              (WebCore::):
              (WebCore::parseManifest):
              * loader/appcache/ManifestParser.h:
              * platform/text/CharacterNames.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eed4bbb7
    • darin@apple.com's avatar
      WebCore: · 23cd10a4
      darin@apple.com authored
      2008-04-16  Darin Adler  <darin@apple.com>
      
              Reviewed by Mitz.
      
              - fix <rdar://problem/5858617> REGRESSION (r21452-Safari 3.1):
                Safari does not find words containing ß (German letter sharp-s)
      
              Test: fast/text/find-case-folding.html
      
              * platform/text/StringImpl.cpp:
              (WebCore::StringImpl::foldCase):
              Pass the folded length to foldCase rather than the original string length.
              Without this, we get an error code every time.
      
      LayoutTests:
      
      2008-04-16  Darin Adler  <darin@apple.com>
      
              Earlier version reviewed by Mitz.
      
              - test for <rdar://problem/5858617> REGRESSION (r21452-Safari 3.1):
                Safari does not find words containing ß (German letter sharp-s)
      
              * fast/text/find-case-folding-expected.txt: Added.
              * fast/text/find-case-folding.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23cd10a4
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · f9edcc3f
      andersca@apple.com authored
              Fix build.
              
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::ApplicationCache):
              (WebCore::ApplicationCache::setManifestResource):
              (WebCore::ApplicationCache::addResource):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9edcc3f
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · 636fceaf
      andersca@apple.com authored
              Reviewed by Darin.
      
              Add new protocolHostAndPortAreEqual function.
              
              * platform/KURL.cpp:
              (WebCore::KURL::host):
              (WebCore::KURL::setHost):
              (WebCore::KURL::setHostAndPort):
              (WebCore::protocolHostAndPortAreEqual):
              * platform/KURL.h:
              (WebCore::KURL::hostStart):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      636fceaf
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · 0728f0b0
      andersca@apple.com authored
              Reviewed by Sam.
              
              Fix some style nits.
              
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::ApplicationCache):
              (WebCore::ApplicationCache::setManifestResource):
              (WebCore::ApplicationCache::addResource):
              (WebCore::ApplicationCache::removeResource):
              (WebCore::ApplicationCache::dump):
              * loader/appcache/ApplicationCacheGroup.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0728f0b0
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · ca715382
      andersca@apple.com authored
              Reviewed by Brady and Sam.
      
              Add ApplicationCache implementation. Stub out ApplicationCacheGroup methods
              needed by ApplicationCache.
              
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::ApplicationCache):
              (WebCore::ApplicationCache::~ApplicationCache):
              (WebCore::ApplicationCache::setManifestResource):
              (WebCore::ApplicationCache::addResource):
              (WebCore::ApplicationCache::removeResource):
              (WebCore::ApplicationCache::resourceForURL):
              (WebCore::ApplicationCache::resourceForRequest):
              (WebCore::ApplicationCache::numDynamicEntries):
              (WebCore::ApplicationCache::dynamicEntry):
              (WebCore::ApplicationCache::addDynamicEntry):
              (WebCore::ApplicationCache::removeDynamicEntry):
              (WebCore::ApplicationCache::setOnlineWhitelist):
              (WebCore::ApplicationCache::isURLInOnlineWhitelist):
              (WebCore::ApplicationCache::dump):
              * loader/appcache/ApplicationCache.h:
              (WebCore::ApplicationCache::create):
              (WebCore::ApplicationCache::manifestResource):
              (WebCore::ApplicationCache::group):
              (WebCore::ApplicationCache::begin):
              (WebCore::ApplicationCache::end):
              * loader/appcache/ApplicationCacheGroup.h:
              (WebCore::ApplicationCacheGroup::manifestURL):
              (WebCore::ApplicationCacheGroup::cacheDestroyed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca715382
    • aroben@apple.com's avatar
      Fix Bug 18505: REGRESSION: Search is disabled and not functional · b0fc075e
      aroben@apple.com authored
              <https://bugs.webkit.org/show_bug.cgi?id=18505>
      
              Reviewed by Tim Hatcher.
      
              * page/inspector/ResourcesPanel.js:
              (WebInspector.ResourcesPanel.sourceFrameForResource): Added.
              * page/inspector/inspector.css: Added back rules for the search field
              that were removed in r31736.
              * page/inspector/inspector.html:
                - Removed the disabled attribute from the search field
                - Added back the #searchResults and #searchResultsResizer divs which
                  were removed in r31736
              * page/inspector/inspector.js:
              (WebInspector.set showingSearchResults): Updated for class rename
              panels -> main-panels.
              (WebInspector.loaded): Added back the mousedown event listener for the
              search results resizer that was removed in r31736.
              (WebInspector.searchResultsResizerDrag): Updated for class rename
              panels -> main-panels.
              (WebInspector.performSearch):
                - Changed to use sourceFrameForResource
                - Changed to use showResource
                - Changed to save/restore the focused element around the setting of
                  the current panel
                - Changed to get the source document from the match range instead of
                  by crawling back up to the source view
                - Changed to bind the onselect handlers to this so that we can
                  access the Elements/Resources panels
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0fc075e
    • beidson@apple.com's avatar
      JavaScriptCore: · 69d45af4
      beidson@apple.com authored
      2008-04-16  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              Change ThreadSafeShared to act like RefCounted by starting out with a single ref by default
      
              * wtf/Threading.h:
              (WTF::ThreadSafeShared::ThreadSafeShared):
      
      WebCore:
      
      2008-04-16  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              Changing ThreadSafeShared to start with a ref count of 1, so updating all users to
              adoptRef() that initial reference.
      
              * bindings/js/JSCustomSQLStatementCallback.h:
              (WebCore::JSCustomSQLStatementCallback::create):
              * bindings/js/JSCustomSQLStatementErrorCallback.h:
              (WebCore::JSCustomSQLStatementErrorCallback::create):
              * bindings/js/JSCustomSQLTransactionCallback.h:
              (WebCore::JSCustomSQLTransactionCallback::create):
              * bindings/js/JSCustomSQLTransactionErrorCallback.h:
              (WebCore::JSCustomSQLTransactionErrorCallback::create):
      
              * bindings/js/JSDatabaseCustom.cpp:
              (WebCore::JSDatabase::changeVersion):
              (WebCore::JSDatabase::transaction):
      
              * bindings/js/JSSQLTransactionCustom.cpp:
              (WebCore::JSSQLTransaction::executeSql):
      
              * dom/Document.cpp:
              (WebCore::Document::databaseThread):
      
              * platform/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::create):
      
              * platform/sql/SQLiteAuthorizer.h:
              (WebCore::SQLiteAuthorizer::create):
              (WebCore::SQLiteAuthorizer::SQLiteAuthorizer):
      
              * storage/ChangeVersionWrapper.cpp:
              (WebCore::ChangeVersionWrapper::performPreflight):
              (WebCore::ChangeVersionWrapper::performPostflight):
              * storage/ChangeVersionWrapper.h:
              (WebCore::ChangeVersionWrapper::create):
      
              * storage/Database.cpp:
              (WebCore::Database::openAndVerifyVersion):
              (WebCore::Database::markAsDeletedAndClose):
              (WebCore::Database::changeVersion):
              (WebCore::Database::transaction):
              (WebCore::Database::scheduleTransaction):
              (WebCore::Database::scheduleTransactionStep):
              (WebCore::Database::tableNames):
      
              * storage/DatabaseAuthorizer.h:
              (WebCore::DatabaseAuthorizer::create):
      
              * storage/DatabaseTask.h:
              (WebCore::DatabaseOpenTask::create):
              (WebCore::DatabaseCloseTask::create):
              (WebCore::DatabaseTransactionTask::create):
              (WebCore::DatabaseTableNamesTask::create):
      
              * storage/DatabaseThread.cpp:
              (WebCore::DatabaseThread::scheduleTask): Change to take a PassRefPtr instead of raw
              (WebCore::DatabaseThread::scheduleImmediateTask): Ditto
              * storage/DatabaseThread.h:
              (WebCore::DatabaseThread::create):
      
              * storage/SQLError.h:
              (WebCore::SQLError::create):
              (WebCore::SQLError::SQLError):
      
              * storage/SQLResultSet.h:
              (WebCore::SQLResultSet::create):
      
              * storage/SQLStatement.cpp:
              (WebCore::SQLStatement::create):
              (WebCore::SQLStatement::execute):
              (WebCore::SQLStatement::setDatabaseDeletedError):
              (WebCore::SQLStatement::setVersionMismatchedError):
              (WebCore::SQLStatement::setFailureDueToQuota):
              * storage/SQLStatement.h:
      
              * storage/SQLTransaction.cpp:
              (WebCore::SQLTransaction::create):
              (WebCore::SQLTransaction::executeSQL):
              (WebCore::SQLTransaction::openTransactionAndPreflight):
              (WebCore::SQLTransaction::deliverTransactionCallback):
              (WebCore::SQLTransaction::handleCurrentStatementError):
              (WebCore::SQLTransaction::deliverStatementCallback):
              (WebCore::SQLTransaction::postflightAndCommit):
              * storage/SQLTransaction.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69d45af4
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · 5675b087
      andersca@apple.com authored
              Reviewed by Adam and Brady.
              
              Add implementation of ApplicationCacheResource.
              
              * loader/appcache/ApplicationCacheResource.cpp:
              (WebCore::ApplicationCacheResource::ApplicationCacheResource):
              (WebCore::ApplicationCacheResource::dumpType):
              * loader/appcache/ApplicationCacheResource.h:
              (WebCore::ApplicationCacheResource::):
              (WebCore::ApplicationCacheResource::create):
              (WebCore::ApplicationCacheResource::type):
              (WebCore::ApplicationCacheResource::addType):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5675b087
    • timothy@apple.com's avatar
      Fixes an issue where the source for a resource that had errors would · 331eb76a
      timothy@apple.com authored
      not be shown because the view was created before the resource load
      finished. The right view is now created, even if the resource isn't
      finished. The SourceView just makes sure to not load the source until
      the resource is finished. Only if the category changes, does the view
      need to be recreated.
      
      Reviewed by Adam Roben.
      
      * page/inspector/Resource.js:
      (WebInspector.Resource.prototype.set category): Call recreateViewForResourceIfNeeded.
      * page/inspector/ResourcesPanel.js:
      (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
      Added. Tries to make a new view, if the view is the same prototype of the
      previous view, return early. If they differ, close and detach the old view
      and associate the resource with the new view. Calling updateErrorsAndWarnings
      is needed, because the errors and warnings that might have been added to the
      previous view will be lost, so make the tree element match.
      (WebInspector.Resource.prototype._createResourceView): Always create a view
      that matches the resource category. Ignore the loading and failed status.
      * page/inspector/SourceView.js:
      (WebInspector.SourceView.prototype.setupSourceFrameIfNeeded): Don't setup the
      frame if the resource hasn't finished or if the load failed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      331eb76a
    • timothy@apple.com's avatar
      Adds a console formatter for Error objects. So typing a expression in the · 1e631f2b
      timothy@apple.com authored
      console that ends in an exception will print meaningful info. Also calling
      console.{log,error,warn,info} with an error object will output nicely.
      
      Reviewed by Adam Roben.
      
      * page/inspector/Console.js:
      (WebInspector.Console.prototype._formaterror): Added. Formats an error
      object by showing it like other exceptions, with a clickable file URL.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e631f2b
    • timothy@apple.com's avatar
      Refactors code that updates the errors and warnings count in the · 5a5785c6
      timothy@apple.com authored
      resources sidebar so other functions can easily trigger updates.
      
      Reviewed by Adam Roben.
      
      * page/inspector/ResourcesPanel.js:
      (WebInspector.ResourcesPanel.prototype.addMessageToResource): Call updateErrorsAndWarnings.
      Removes code that updates the bubbleText and class names.
      (WebInspector.ResourcesPanel.prototype.clearMessages): Ditto.
      (WebInspector.ResourceSidebarTreeElement.prototype.updateErrorsAndWarnings):
      Added. Updates the bubbleText and adds or removes the class names
      depending on if the values are zero.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a5785c6
    • antti@apple.com's avatar
      WebCore: · 5fcdfd24
      antti@apple.com authored
      2008-04-16  Antti Koivisto  <antti@apple.com>
      
              Reviewed by Alexey.
              
              Fix <rdar://problem/5863728>
              REGRESSION: Garbage character shown in temperatures in the Weather widget (encoding issue with degree symbol)
              
              Parse the encoding attribute in PreloadScanner.
      
              Test: fast/encoding/script-preload-encoding.html
      
              * html/PreloadScanner.cpp:
              (WebCore::PreloadScanner::processAttribute):
              (WebCore::PreloadScanner::emitTag):
              (WebCore::PreloadScanner::emitCSSRule):
              * html/PreloadScanner.h:
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::preload):
              * loader/DocLoader.h:
      
      LayoutTests:
      
      2008-04-16  Antti Koivisto  <antti@apple.com>
      
              Reviewed by Alexey.
              
              Test for <rdar://problem/5863728>
              REGRESSION: Garbage character shown in temperatures in the Weather widget (encoding issue with degree symbol)
      
              * fast/encoding/resources/utf-8.css: Added.
              * fast/encoding/resources/utf-8.js: Added.
              * fast/encoding/preload-encoding-expected.txt: Added.
              * fast/encoding/preload-encoding.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5fcdfd24
    • andersca@apple.com's avatar
      2008-04-16 Anders Carlsson <andersca@apple.com> · c6839d1c
      andersca@apple.com authored
              Reviewed by Adam.
      
              Generate the DOMApplicationCache JS wrapper, add JSDOMApplicationCacheCustom.cpp and 
              fix typos in the #if line.
              
              * DerivedSources.make:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMApplicationCacheCustom.cpp: Added.
              * loader/appcache/ApplicationCache.cpp:
              * loader/appcache/ApplicationCache.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheResource.cpp:
              * loader/appcache/ApplicationCacheResource.h:
              * loader/appcache/DOMApplicationCache.cpp:
              * loader/appcache/DOMApplicationCache.h:
              * loader/appcache/DOMApplicationCache.idl:
              * loader/appcache/ManifestParser.cpp:
              * loader/appcache/ManifestParser.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6839d1c
    • weinig@apple.com's avatar
      JavaScriptCore: · 6ae58b39
      weinig@apple.com authored
      2008-04-16  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Geoffrey Garen.
      
              - To keep the behavior of the WebKit and JavaScriptCore API's the same,
                we need to hide the fact that the global object and the window object
                are no longer the same thing, and the the global object now changes on
                navigations.  To do this, only the wrapper should ever be exposed.  This
                fixes the two remaining spots where the internal global object is exposed,
                the windowScriptObject returned from [WebFrame windowObject] and the object
                return by calling JSContextGetGlobalObject on [WebFrame globalContext].
      
              * API/JSContextRef.cpp:
              (JSContextGetGlobalObject):
              This is a bit of a hack, this returns the "this" representation of the globalObject
              which will be the WrapperWindow for WebCore and the globalObject for non-WebCore.
      
              * API/JSObjectRef.cpp:
              (JSObjectSetProperty):
              Call the new putWithAttributes method instead of relying on lower-level calls.
              This is needed so that the window wrapper can forward the calls.
      
              * JavaScriptCore.exp:
              * kjs/Activation.h:
              * kjs/JSGlobalObject.cpp:
              (KJS::JSGlobalObject::putWithAttributes):
              * kjs/JSGlobalObject.h:
              * kjs/JSVariableObject.h:
              (KJS::JSVariableObject::symbolTablePutWithAttributes):
              * kjs/function.cpp:
              (KJS::ActivationImp::putWithAttributes):
              * kjs/nodes.cpp:
              (KJS::ConstDeclNode::handleSlowCase):
              (KJS::ConstDeclNode::evaluateSingle):
              (KJS::EvalNode::processDeclarations):
              * kjs/object.cpp:
              (KJS::JSObject::putWithAttributes):
              * kjs/object.h:
              Rename initializeVariable to putWithAttributes and move it down to JSObject so it
              can be used for JSObjectSetProperty.
      
      WebCore:
      
      2008-04-16  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Geoffrey Garen.
      
              - To keep the behavior of the WebKit and JavaScriptCore API's the same,
                we need to hide the fact that the global object and the window object
                are no longer the same thing, and the the global object now changes on
                navigations.  To do this, only the wrapper should ever be exposed.  This
                fixes the two remaining spots where the internal global object is exposed,
                the windowScriptObject returned from [WebFrame windowObject] and the object
                return by calling JSContextGetGlobalObject on [WebFrame globalContext]
      
              * bindings/js/JSDOMWindowWrapper.cpp:
              (WebCore::JSDOMWindowWrapper::putWithAttributes):
              * bindings/js/JSDOMWindowWrapper.h:
              Forward this new method so that JSObjectSetProperty doesn't set properties on the 
              wrapper.
      
              * page/mac/FrameMac.mm:
              (WebCore::Frame::windowScriptObject):
              Return the wrapper instead of the global object.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ae58b39
    • hyatt@apple.com's avatar
      2008-04-16 David Hyatt <hyatt@apple.com> · e95c6176
      hyatt@apple.com authored
              Eliminate the paintBuffer and drawImage(ImageBuffer*) methods from GraphicsContext* in favor of just
              snagging an Image* from the ImageBuffer and drawing that instead.
      
              Enhance canvas with a CanvasObserver so that notifications of dirtying or resizing can be tracked by
              a consumer.
      
              Reviewed by olliej
      
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::drawImage):
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::HTMLCanvasElement):
              (WebCore::HTMLCanvasElement::willDraw):
              (WebCore::HTMLCanvasElement::reset):
              (WebCore::HTMLCanvasElement::paint):
              * html/HTMLCanvasElement.h:
              (WebCore::CanvasObserver::~CanvasObserver):
              (WebCore::HTMLCanvasElement::setSize):
              (WebCore::HTMLCanvasElement::setObserver):
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawImage):
              (WebCore::GraphicsContext::drawTiledImage):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/ImageBuffer.h:
              (WebCore::ImageBuffer::clearImage):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              * platform/graphics/cg/ImageCG.cpp:
              (WebCore::BitmapImage::draw):
              (WebCore::Image::drawPattern):
              * platform/graphics/cg/ImageSourceCG.cpp:
              (WebCore::ImageSource::createFrameAtIndex):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              * platform/graphics/wx/GraphicsContextWx.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e95c6176
    • sfalken@apple.com's avatar
      2008-04-16 Steve Falkenburg <sfalken@apple.com> · cd852d70
      sfalken@apple.com authored
              Improve timer latency/resolution.
                      
              The primary timing mechanism is now CreateTimerQueueTimer, with a PostMessage from
              the callback proc.  This event will be delivered sooner than if we used SetTimer(),
              since it is higher priority than other messages.
              
              If there is an input message pending, we'll use we SetTimer() based timers to avoid
              starving user input.
      
              Don't call PostMessage immediately on all timers < 10ms.  Only call immediately if
              timer is already expired.  This avoids the case where no timers would be processed,
              causing the timer to be re-posted via the slower SetTimer method.
      
              Don't call PostMessage immediately if there's a pending WM_PAINT, since
              we don't want to starve all paints when bombarded with a continuous stream of low
              duration timers.
      
              Removed reentrancy check, since we're now looking for specific starvation cases,
              and will typically defer non-expired timers through reateTimerQueueTimer.
      
              The reason Windows wouldn't starve paints in favor of timers with the old code:
              When we went to reset the timer when it fired, the timer reset code treated this as a
              reentrant timer, causing us to hit the slow SetTimer code rather than calling PostMessage,
              even for timers expiring in < 10ms. I corrected that, exposing the paint starvation problem.
      
              Use timeBeginPeriod/timeEndPeriod to improve resolution of system timers.
              Limit this resolution change to within 20ms of the last high resolution timer request.
      
              Corrected GetQueueStatus to check for specific input (and paint) messages rather than
              checking QS_ALLINPUT.  Contrary to its name, QS_ALLINPUT actually indicates interest
              in ALL queued messages, not just input messages.
              
              Fix SetTimer/KillTimer calls to pass our window handle.
      
              Reviewed by Brady.
      
              * platform/win/SharedTimerWin.cpp:
              (WebCore::):
              (WebCore::TimerWindowWndProc):
              (WebCore::queueTimerProc):
              (WebCore::setSharedTimerFireTime):
              (WebCore::stopSharedTimer):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd852d70
    • aroben@apple.com's avatar
      Fix console-log-formatting to truly test formatting an undefined value · 15639d85
      aroben@apple.com authored
              Exceptions thrown by the test will also now be shown as errors.
      
              Reviewed by Tim Hatcher.
      
              * manual-tests/inspector/console-log-formatting.html:
              (test): Use console.error to report exceptions.
              (runTests): Use window.noSuchVariable instead of just noSuchVariable
              to avoid an exception.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15639d85
    • jchaffraix@webkit.org's avatar
      2008-04-16 Anatoli Papirovski <apapirovski@mac.com> · f0f35e96
      jchaffraix@webkit.org authored
              Reviewed by David.
      
              Optimized the calculation of background-size.
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calculateBackgroundSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0f35e96
    • aroben@apple.com's avatar
      Fix Bug 17228: console.{log,warn,info,error} should support format... · 722e0c7e
      aroben@apple.com authored
              Fix Bug 17228: console.{log,warn,info,error} should support format strings, variable arguments
      
              <https://bugs.webkit.org/show_bug.cgi?id=17228>
              <rdar://problem/5732828>
      
              Reviewed by Tim Hatcher.
      
              Test: manual-tests/inspector/console-log-formatting.html
      
              * page/inspector/Console.js:
              (WebInspector.ConsoleMessage): Pass any extra arguments down to
              _format.
              (WebInspector.ConsoleMessage._format): This method constructs
              this.formattedMessage. We treat the first parameter as a format
              string. Any parameters that have not been used after substituting into
              the format string are concatenated together, separated by spaces.
              (WebInspector.ConsoleMessage.toMessageElement): Updated to use
              this.formattedMessage.
              (WebInspector.ConsoleMessage.toString): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      722e0c7e
    • aroben@apple.com's avatar
      Make String.format return an array of unused substitutions · 76b71e74
      aroben@apple.com authored
              String.format now returns an object with two properties:
              formattedResult and unusedSubstitutions.
      
              Reviewed by Tim Hatcher.
      
              * page/inspector/utilities.js:
              (String.vsprintf): Updated for changes to String.format. We throw away
              the array of unused substitutions.
              (String.format): Changed to keep track of which substitutions are used
              when formatting. We then return both the formatted result and the
              array of unused substitutions.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76b71e74
    • aroben@apple.com's avatar
      Generalize String.format some more · 86bdbcc9
      aroben@apple.com authored
              String.format now takes an initial value and an append function which
              it uses to build the result. Each time a token is processed,
              append(valueSoFar, newValue) is called.
      
              Reviewed by Tim Hatcher.
      
              * page/inspector/utilities.js:
              (String.vsprintf): Pass the empty string for the initial value, and
              a function that concatenates two strings as the append function.
              (String.format): Use initialValue and append to build the result
              instead of only working with strings.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86bdbcc9