1. 17 Apr, 2008 17 commits
  2. 16 Apr, 2008 23 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