1. 17 Apr, 2008 20 commits
    • antti@apple.com's avatar
      2008-04-17 Antti Koivisto <antti@apple.com> · 8450dde3
      antti@apple.com authored
              Reviewed by Oliver.
              
              Fix https://bugs.webkit.org/show_bug.cgi?id=18551
              Bug 18551: REGRESSION (r31801?): Crash in ContainerNode::removedFromDocument on many SVG tests under guard malloc
              
              Freeing a RefPtr that is the last ref to the parent from removedFromDocument() is a bad idea.
      
              Caching the target element is too dangerous, let's simply not do it. Getting it is very cheap anyway.
      
              * svg/animation/SVGSMILElement.cpp:
              (WebCore::SVGSMILElement::removedFromDocument):
              (WebCore::SVGSMILElement::attributeChanged):
              (WebCore::SVGSMILElement::targetElement):
              * svg/animation/SVGSMILElement.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8450dde3
    • weinig@apple.com's avatar
      WebCore: · 81ed4494
      weinig@apple.com authored
      2008-04-17  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Autogenerate the XMLHttpRequest javascript binding.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCoreSources.bkl:
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMWindowBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp: Removed.
              * bindings/js/JSXMLHttpRequest.h: Removed.
              * bindings/js/JSXMLHttpRequestConstructor.cpp: Added.
              (WebCore::JSXMLHttpRequestConstructor::JSXMLHttpRequestConstructor):
              (WebCore::JSXMLHttpRequestConstructor::implementsConstruct):
              (WebCore::JSXMLHttpRequestConstructor::construct):
              * bindings/js/JSXMLHttpRequestConstructor.h: Added.
              (WebCore::JSXMLHttpRequestConstructor::classInfo):
              * bindings/js/JSXMLHttpRequestCustom.cpp: Added.
              (WebCore::JSXMLHttpRequest::mark):
              (WebCore::JSXMLHttpRequest::onreadystatechange):
              (WebCore::JSXMLHttpRequest::setOnreadystatechange):
              (WebCore::JSXMLHttpRequest::onload):
              (WebCore::JSXMLHttpRequest::setOnload):
              (WebCore::JSXMLHttpRequest::responseXML):
              (WebCore::JSXMLHttpRequest::open):
              (WebCore::JSXMLHttpRequest::setRequestHeader):
              (WebCore::JSXMLHttpRequest::send):
              (WebCore::JSXMLHttpRequest::getResponseHeader):
              (WebCore::JSXMLHttpRequest::overrideMimeType):
              (WebCore::JSXMLHttpRequest::addEventListener):
              (WebCore::JSXMLHttpRequest::removeEventListener):
              (WebCore::JSXMLHttpRequest::dispatchEvent):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::readyState):
              (WebCore::XMLHttpRequest::responseText):
              * xml/XMLHttpRequest.h:
              * xml/XMLHttpRequest.idl: Added.
      
      LayoutTests:
      
      2008-04-17  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Update test result for additon of XMLHttpRequest constants.
      
              * fast/dom/Window/window-properties-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81ed4494
    • beidson@apple.com's avatar
      2008-04-17 Brady Eidson <beidson@apple.com> · 477c47c8
      beidson@apple.com authored
              Reviewed by Anders
      
              The SessionStorage for a Page has to be copied every time a new Page is created.
      
              I thought I had the right choke point for creating new Pages at FrameLoader::createWindow(),
              but it just so happens there was another - in the ContextMenuController.
      
              The *real* choke point for this, then, is in the Chrome itself.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::createWindow): Don't do the SessionStorage copy here...
      
              * page/Chrome.cpp:
              (WebCore::Chrome::createWindow): Do it here, instead!
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      477c47c8
    • alice.liu@apple.com's avatar
      2008-04-17 Alice Liu <alice.liu@apple.com> · af5528c8
      alice.liu@apple.com authored
              Reviewed by Jon Honeycutt.
      
              Added some asserts to catch undesirable usage of setWrapper and addChildren.
      
              * page/AccessibilityObject.cpp:
              (WebCore::AccessibilityObject::addChildren):
              * page/AccessibilityObject.h:
              (WebCore::AccessibilityObject::setWrapper):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af5528c8
    • beidson@apple.com's avatar
      2008-04-17 Brady Eidson <beidson@apple.com> · 653985c6
      beidson@apple.com authored
              Reviewed by the Mitzpettel
      
              Before things get much more intertwined, move away from a global LocalStorage model
              to a per-PageGroup LocalStorage model.
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::localStorage): Get it from the current PageGroup, not the global
                LocalStorage (which doesn't exist anymore).
      
              * page/Page.cpp:
              * page/PageGroup.cpp:
              (WebCore::PageGroup::localStorage): Create a LocalStorage object on demand.
              * page/PageGroup.h:
      
              * storage/LocalStorage.cpp:
              (WebCore::LocalStorage::LocalStorage): Hold a back pointer to the owning PageGroup.
              (WebCore::LocalStorage::storageArea):
              * storage/LocalStorage.h:
              (WebCore::LocalStorage::create):
      
              * storage/LocalStorageArea.cpp:
              (WebCore::LocalStorageArea::LocalStorageArea): Hold a back pointer to the owning LocalStorage.
              * storage/LocalStorageArea.h:
              (WebCore::LocalStorageArea::create):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      653985c6
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · f843f772
      andersca@apple.com authored
              Fix indentation.
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::scheduleArchiveLoad):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f843f772
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 837b694d
      andersca@apple.com authored
              Reviewed by Brady.
      
              When in the web archive debug mode, don't call didFail immediately. Instead,
              add the loader to the substitute resource map, but with a null resource, which
              indicates to substituteResourceDeliveryTimerFired that the load should fail.
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
              (WebCore::DocumentLoader::scheduleArchiveLoad):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::load):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      837b694d
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 8e1e57d8
      andersca@apple.com authored
              Reviewed by Sam.
      
              Add JS bindings for the DOMApplicationCache object.
              
              * bindings/js/JSDOMApplicationCacheCustom.cpp:
              (WebCore::JSDOMApplicationCache::add):
              (WebCore::JSDOMApplicationCache::remove):
              (WebCore::JSDOMApplicationCache::addEventListener):
              (WebCore::JSDOMApplicationCache::removeEventListener):
              (WebCore::JSDOMApplicationCache::dispatchEvent):
              (WebCore::JSDOMApplicationCache::setOnchecking):
              (WebCore::JSDOMApplicationCache::onchecking):
              (WebCore::JSDOMApplicationCache::setOnerror):
              (WebCore::JSDOMApplicationCache::onerror):
              (WebCore::JSDOMApplicationCache::setOnnoupdate):
              (WebCore::JSDOMApplicationCache::onnoupdate):
              (WebCore::JSDOMApplicationCache::setOndownloading):
              (WebCore::JSDOMApplicationCache::ondownloading):
              (WebCore::JSDOMApplicationCache::setOnprogress):
              (WebCore::JSDOMApplicationCache::onprogress):
              (WebCore::JSDOMApplicationCache::setOnupdateready):
              (WebCore::JSDOMApplicationCache::onupdateready):
              (WebCore::JSDOMApplicationCache::setOncached):
              (WebCore::JSDOMApplicationCache::oncached):
              (WebCore::JSDOMApplicationCache::mark):
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::mark):
              * bindings/js/JSEventTargetBase.cpp:
              (WebCore::toJS):
              * loader/appcache/DOMApplicationCache.idl:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e1e57d8
    • adele@apple.com's avatar
      2008-04-17 Eric Carlson <eric.carlson@apple.com> · 5b1001dc
      adele@apple.com authored
              Reviewed by Adele. 
      
              Fix for <rdar://problem/5861642> QTMovieWin returns uninitialized values
      
              * platform/graphics/win/QTMovieWin.cpp:
              (QTMovieWin::rate):
              (QTMovieWin::setRate):
              (QTMovieWin::setVolume):
              (QTMovieWin::getNaturalSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b1001dc
    • alp@webkit.org's avatar
      2008-04-17 Marco Barisione <marco.barisione@collabora.co.uk> · f398cfd9
      alp@webkit.org authored
              Reviewed by Alp Toker.
      
              http://bugs.webkit.org/show_bug.cgi?id=18335
              Pango font backend unable to display japanese properly
      
              Different fonts can have different glyph indices, so we need to pass
              the right font when retrieving a glyph index.
      
              * platform/graphics/gtk/GlyphPageTreeNodePango.cpp:
              (WebCore::pango_font_get_glyph): Temporarily override the font in the
              PangoAnalysis passed to pango_shape.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f398cfd9
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 2a4a02b0
      andersca@apple.com authored
              According to Sam and David, it's "topLevel", not "toplevel".
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::topLevelApplicationCache):
              * loader/DocumentLoader.h:
              * loader/appcache/DOMApplicationCache.cpp:
              (WebCore::DOMApplicationCache::associatedCache):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a4a02b0
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 0d86d9d8
      andersca@apple.com authored
              Reviewed by Sam.
      
              Add DOMApplicationCache implementation.
              
              * dom/EventNames.h:
              Add new event names.
              
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toDOMApplicationCache):
              * dom/EventTarget.h:
              Add EventTarget conversion method.
              
              * loader/appcache/ApplicationCacheGroup.h:
              (WebCore::ApplicationCacheGroup::):
              (WebCore::ApplicationCacheGroup::status):
              (WebCore::ApplicationCacheGroup::update):
              (WebCore::ApplicationCacheGroup::newestCache):
              Add more stubs.
              
              * loader/appcache/DOMApplicationCache.cpp:
              * loader/appcache/DOMApplicationCache.h:
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::applicationCache):
              * page/DOMWindow.h:
              (WebCore::DOMWindow::optionalApplicationCache):
              Add ApplicationCache member.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d86d9d8
    • andersca@apple.com's avatar
      2008-04-17 Anders Carlsson <andersca@apple.com> · 2ad7d02e
      andersca@apple.com authored
              Build fix.
      
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ad7d02e
    • adele@apple.com's avatar
      WebCore: · 22ad69c3
      adele@apple.com authored
      2008-04-17  Dean Jackson  <dino@apple.com>
      
              Reviewed by Hyatt.
      
              Fix for <rdar://problem/5849968> translate method should have Y=0 when only X is present
      
              Test: fast/css/transform-default-parameter.html
      
              * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty):
              translate function with only X parameter now leaves the Y parameter as zero.
      
      LayoutTests:
      
      2008-04-17  Dean Jackson  <dino@apple.com>
      
              Reviewed by Hyatt.
      
              Test for <rdar://problem/5849968> translate method should have Y=0 when only X is present
      
              * fast/css/transform-default-parameter.html: Added.
              * platform/mac/fast/css/transform-default-parameter-expected.checksum: Added.
              * platform/mac/fast/css/transform-default-parameter-expected.png: Added.
              * platform/mac/fast/css/transform-default-parameter-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22ad69c3
    • 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
    • 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 20 commits
    • 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
      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