1. 28 Feb, 2011 40 commits
    • oliver@apple.com's avatar
      2011-02-28 Oliver Hunt <oliver@apple.com> · 97cdbd4c
      oliver@apple.com authored
              Reviewed by Gavin Barraclough.
      
              Make ScopeChainNode GC allocated
              https://bugs.webkit.org/show_bug.cgi?id=55283
      
              Simplify lifetime and other issues with the scopechain
              by making it gc allocated.  This allows us to simplify
              function exit and unwinding, as well as making the
              current iterative refcounting go away.
      
              * JavaScriptCore.exp:
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
              * bytecode/CodeBlock.cpp:
              (JSC::CodeBlock::createActivation):
              * bytecode/StructureStubInfo.cpp:
              * bytecompiler/BytecodeGenerator.cpp:
              (JSC::BytecodeGenerator::generate):
              (JSC::BytecodeGenerator::BytecodeGenerator):
              (JSC::BytecodeGenerator::emitJumpIfNotFunctionCall):
              (JSC::BytecodeGenerator::emitJumpIfNotFunctionApply):
              * bytecompiler/BytecodeGenerator.h:
              * debugger/Debugger.cpp:
              (JSC::Recompiler::operator()):
              * debugger/DebuggerCallFrame.h:
              (JSC::DebuggerCallFrame::scopeChain):
              * interpreter/CachedCall.h:
              (JSC::CachedCall::CachedCall):
              * interpreter/CallFrame.h:
              * interpreter/Interpreter.cpp:
              (JSC::depth):
              (JSC::Interpreter::unwindCallFrame):
              (JSC::Interpreter::throwException):
              (JSC::Interpreter::execute):
              (JSC::Interpreter::executeCall):
              (JSC::Interpreter::executeConstruct):
              (JSC::Interpreter::privateExecute):
              * jit/JITCall.cpp:
              (JSC::JIT::compileOpCallInitializeCallFrame):
              (JSC::JIT::compileOpCall):
              * jit/JITCall32_64.cpp:
              (JSC::JIT::compileOpCallInitializeCallFrame):
              (JSC::JIT::emit_op_ret):
              (JSC::JIT::emit_op_ret_object_or_this):
              (JSC::JIT::compileOpCall):
              * jit/JITOpcodes.cpp:
              (JSC::JIT::emit_op_end):
              (JSC::JIT::emit_op_ret):
              (JSC::JIT::emit_op_ret_object_or_this):
              * jit/JITOpcodes32_64.cpp:
              (JSC::JIT::emit_op_end):
              * jit/JITStubs.cpp:
              (JSC::DEFINE_STUB_FUNCTION):
              * jit/JITStubs.h:
              * runtime/ArgList.cpp:
              * runtime/Completion.cpp:
              (JSC::evaluate):
              * runtime/Completion.h:
              * runtime/DateConversion.cpp:
              * runtime/Executable.cpp:
              (JSC::EvalExecutable::compileInternal):
              (JSC::ProgramExecutable::compileInternal):
              (JSC::FunctionExecutable::compileForCallInternal):
              (JSC::FunctionExecutable::compileForConstructInternal):
              * runtime/FunctionConstructor.cpp:
              (JSC::constructFunction):
              * runtime/GCActivityCallbackCF.cpp:
              * runtime/Identifier.cpp:
              * runtime/JSCell.h:
              * runtime/JSChunk.cpp: Added.
              * runtime/JSChunk.h: Added.
              * runtime/JSFunction.cpp:
              (JSC::JSFunction::JSFunction):
              (JSC::JSFunction::markChildren):
              (JSC::JSFunction::getCallData):
              (JSC::JSFunction::getOwnPropertySlot):
              (JSC::JSFunction::getConstructData):
              * runtime/JSFunction.h:
              (JSC::JSFunction::scope):
              (JSC::JSFunction::setScope):
              * runtime/JSGlobalData.cpp:
              (JSC::JSGlobalData::JSGlobalData):
              * runtime/JSGlobalData.h:
              * runtime/JSGlobalObject.cpp:
              (JSC::JSGlobalObject::init):
              (JSC::JSGlobalObject::markChildren):
              * runtime/JSGlobalObject.h:
              (JSC::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData):
              (JSC::JSGlobalObject::globalScopeChain):
              * runtime/JSGlobalObjectFunctions.cpp:
              (JSC::globalFuncEval):
              * runtime/JSLock.cpp:
              * runtime/JSNumberCell.cpp:
              * runtime/JSZombie.cpp:
              * runtime/MarkedBlock.cpp:
              * runtime/MarkedSpace.cpp:
              * runtime/PropertyNameArray.cpp:
              * runtime/ScopeChain.cpp:
              (JSC::ScopeChainNode::print):
              (JSC::ScopeChainNode::localDepth):
              (JSC::ScopeChainNode::markChildren):
              * runtime/ScopeChain.h:
              (JSC::ScopeChainNode::ScopeChainNode):
              (JSC::ScopeChainNode::createStructure):
              (JSC::ScopeChainNode::push):
              (JSC::ScopeChainNode::pop):
              (JSC::ScopeChainIterator::ScopeChainIterator):
              (JSC::ScopeChainIterator::operator*):
              (JSC::ScopeChainIterator::operator->):
              (JSC::ScopeChainIterator::operator++):
              (JSC::ScopeChainNode::begin):
              (JSC::ScopeChainNode::end):
              (JSC::ExecState::globalData):
              (JSC::ExecState::lexicalGlobalObject):
              (JSC::ExecState::globalThisValue):
              * runtime/ScopeChainMark.h:
              * wtf/DateMath.cpp:
      2011-02-28  Oliver Hunt  <oliver@apple.com>
      
              Reviewed by Gavin Barraclough.
      
              Make ScopeChainNode GC allocated
              https://bugs.webkit.org/show_bug.cgi?id=55283
      
              Update WebCore to deal with the absence of the ScopeChain
              class.
      
              * ForwardingHeaders/runtime/ScopeChain.h: Added.
              * bindings/js/JSHTMLElementCustom.cpp:
              (WebCore::JSHTMLElement::pushEventHandlerScope):
              * bindings/js/JSJavaScriptCallFrameCustom.cpp:
              (WebCore::JSJavaScriptCallFrame::scopeChain):
              (WebCore::JSJavaScriptCallFrame::scopeType):
              * bindings/js/JSLazyEventListener.cpp:
              (WebCore::JSLazyEventListener::initializeJSFunction):
              * bindings/js/JSMainThreadExecState.h:
              (WebCore::JSMainThreadExecState::evaluate):
              * bindings/js/JSNodeCustom.cpp:
              (WebCore::JSNode::pushEventHandlerScope):
              * bindings/js/JavaScriptCallFrame.cpp:
              (WebCore::JavaScriptCallFrame::scopeChain):
              * bindings/js/JavaScriptCallFrame.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/c/c_class.cpp:
              * bridge/c/c_runtime.cpp:
              * bridge/jni/JNIBridge.cpp:
              * bridge/qt/qt_runtime.cpp:
              (JSC::Bindings::QtConnectionObject::execute):
              * plugins/PluginViewNone.cpp:
      2011-02-28  Oliver Hunt  <oliver@apple.com>
      
              Reviewed by Gavin Barraclough.
      
              Make ScopeChainNode GC allocated
              https://bugs.webkit.org/show_bug.cgi?id=55283
      
              More updates for the absence of the ScopeChain class
      
              * WebView/WebScriptDebugDelegate.mm:
              (-[WebScriptCallFrame scopeChain]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97cdbd4c
    • commit-queue@webkit.org's avatar
      2011-02-28 Chang Shu <cshu@webkit.org> · 049f16eb
      commit-queue@webkit.org authored
              Reviewed by Adele Peterson.
      
              REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
              https://bugs.webkit.org/show_bug.cgi?id=55323
      
              Added test case to make sure no focus ring is drawn on selected items.
      
              * fast/forms/select-listbox-multiple-no-focusring.html: Added.
              * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.checksum: Added.
              * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.png: Added.
              * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.txt: Added.
      2011-02-28  Chang Shu  <cshu@webkit.org>
      
              Reviewed by Adele Peterson.
      
              REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
              https://bugs.webkit.org/show_bug.cgi?id=55323
      
              Draw focus ring on selected items only if spatial navigation is enabled.
      
              Test: fast/forms/select-listbox-multiple-no-focusring.html
      
              * rendering/RenderBlock.h:
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::addFocusRingRects):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      049f16eb
    • inferno@chromium.org's avatar
      2011-02-28 Abhishek Arya <inferno@chromium.org> · ddfc9272
      inferno@chromium.org authored
              Reviewed by Anders Carlsson.
      
              We can cancel the plugin load and fail with error before m_manualStream
              got a chance to initialize in PluginView::didReceiveResponse. This can
              happen when we run pending document onload events during plugin load that
              remove the frame from underneath. So, change the assert into a null check. 
              https://bugs.webkit.org/show_bug.cgi?id=55307
      
              * plugins/PluginView.cpp:
              (WebCore::PluginView::didFail):
      2011-02-28  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Anders Carlsson.
      
              Unskip crashing test fast/frames/iframe-plugin-load-remove-document-crash.html.
              https://bugs.webkit.org/show_bug.cgi?id=55307
      
              * platform/gtk/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ddfc9272
    • commit-queue@webkit.org's avatar
      2011-02-28 Alexis Menard <alexis.menard@openbossa.org> · d1805d4e
      commit-queue@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              Build fix for Intel ICC Compiler.
              https://bugs.webkit.org/show_bug.cgi?id=55221
      
              The virtual inheritance seems to confuse ICC.
              Anything that links with webkit has an undefined reference otherwise.
      
              * svg/SVGTransformable.cpp:
              (WebCore::SVGTransformable::~SVGTransformable):
              * svg/SVGTransformable.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1805d4e
    • commit-queue@webkit.org's avatar
      2011-02-28 Adam Klein <adamk@chromium.org> · 40930f06
      commit-queue@webkit.org authored
              Reviewed by James Robinson.
      
              [chromium] Remove "PASS TEXT" expectation for fast/filesystem/op-get-entry.html
              https://bugs.webkit.org/show_bug.cgi?id=55262
      
              Test now passes as Chromium has rolled past r76098.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40930f06
    • ossy@webkit.org's avatar
      [Qt]tst_QDeclarativeWebView - 8 test cases fail · 50df15af
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=55214
      
      Patch by Alexis Menard <alexis.menard@openbossa.org> on 2011-02-28
      Reviewed by Andreas Kling.
      
      Fix the API tests for the QML WebView element. The default size of the element should be the size of the QGraphicsWebView
      if no preferred width or height are provided (see http://trac.webkit.org/changeset/79672).
      I also refactored the tests so we don't use the network but instead a local html file.
      QML doesn't support qrc loading so I had to workaround by using a property that I update afterwards.
      
      * tests/qdeclarativewebview/resources/sample.html: Added.
      * tests/qdeclarativewebview/resources/webviewtest.qml:
      * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
      * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
      (tst_QDeclarativeWebView::preferredWidthTest):
      (tst_QDeclarativeWebView::preferredHeightTest):
      (tst_QDeclarativeWebView::preferredWidthDefaultTest):
      (tst_QDeclarativeWebView::preferredHeightDefaultTest):
      * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50df15af
    • andersca@apple.com's avatar
      2011-02-28 Anders Carlsson <andersca@apple.com> · 3ca0b57d
      andersca@apple.com authored
              Reviewed by Dan Bernstein.
      
              PDFViewController should hold a reference to the PDF data
              https://bugs.webkit.org/show_bug.cgi?id=55394
      
              * UIProcess/API/mac/PDFViewController.h:
              * UIProcess/API/mac/PDFViewController.mm:
              (WebKit::PDFViewController::setPDFDocumentData):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ca0b57d
    • abarth@webkit.org's avatar
      2011-02-28 Dimitri Glazkov <dglazkov@chromium.org> · 50a810f5
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              Add necessary build steps to JavaScriptGlue GYP project.
              https://bugs.webkit.org/show_bug.cgi?id=55196
      
              * gyp/JavaScriptGlue.gyp: Added pre- and post- build steps.
              * gyp/JavaScriptGlue.gypi: Added Info.plist.
              * gyp/remove-headers-if-needed.sh: Added.
              * gyp/run-if-exists.sh: Added.
              * gyp/update-info-plist.sh: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50a810f5
    • sergio@webkit.org's avatar
      2011-02-28 Sergio Villar Senin <svillar@igalia.com> · 33fa7b30
      sergio@webkit.org authored
              Reviewed by Martin Robinson.
      
              [Gtk] Resource size is incorrectly reported to WebCore
              https://bugs.webkit.org/show_bug.cgi?id=53228
      
              * platform/gtk/Skipped: unskipped http/tests/inspector/network-size.html
      2011-02-28  Sergio Villar Senin  <svillar@igalia.com>
      
              Reviewed by Martin Robinson.
      
              [Gtk] Resource size is incorrectly reported to WebCore
              https://bugs.webkit.org/show_bug.cgi?id=53228
      
              When calling didReceiveData we are sending an invalid value for
              lengthReceived. Sometimes we were even passing a boolean value instead of the
              expected integer. We should pass the size of the received data instead of the
              total amount of data received.
      
              * platform/network/ResourceHandleInternal.h:
              (WebCore::ResourceHandleInternal::ResourceHandleInternal):
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::gotChunkCallback):
              (WebCore::sendRequestCallback):
              (WebCore::readCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33fa7b30
    • laszlo.1.gombos@nokia.com's avatar
      2011-02-28 Laszlo Gombos <laszlo.1.gombos@nokia.com> · 72c7eb63
      laszlo.1.gombos@nokia.com authored
              Reviewed by Dan Bernstein.
      
              Cleanup the include guard form an Objective-C files
              https://bugs.webkit.org/show_bug.cgi?id=55379
      
              Normally Objective-C files do not need include guard.
              r76916 introduced an include guard in EmptyProtocolDefinitions.h.
              The guard is no longer needed after r76991.
      
              No new tests as there is no new functionality.
      
              * platform/mac/EmptyProtocolDefinitions.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72c7eb63
    • pfeldman@chromium.org's avatar
      2011-02-28 Pavel Podivilov <podivilov@chromium.org> · 35e0555f
      pfeldman@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: [REGRESSION] no resources in scripts panel because debugger is enabled too early.
              https://bugs.webkit.org/show_bug.cgi?id=55389
      
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::populateScriptObjects):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::setFrontend):
              (WebCore::InspectorDebuggerAgent::enableDebuggerAfterShown):
              * inspector/InspectorDebuggerAgent.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35e0555f
    • weinig@apple.com's avatar
      Size of text in popup menu doesn't match size of text in <select> itself in WebKit2 · 040f6198
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=48234
      
      Reviewed by Darin Adler.
      
      * Shared/TextInfo.cpp: Removed.
      * Shared/TextInfo.h: Removed.
      Replace this with the more appropriately DictionaryPopupInfo.
      
      * Shared/DictionaryPopupInfo.cpp: Copied from Source/WebKit2/Shared/TextInfo.cpp.
      (WebKit::DictionaryPopupInfo::encode):
      (WebKit::DictionaryPopupInfo::decode):
      * Shared/DictionaryPopupInfo.h: Copied from Source/WebKit2/Shared/TextInfo.h.
      (WebKit::DictionaryPopupInfo::DictionaryPopupInfo):
      Replace individual font related fields with FontInfo.
      
      * Shared/FontInfo.cpp: Added.
      (WebKit::FontInfo::FontInfo):
      (WebKit::FontInfo::encode):
      (WebKit::FontInfo::decode):
      * Shared/FontInfo.h: Added.
      Add class to encapsulate passing a font description over the wire.
      
      * Shared/PlatformPopupMenuData.cpp:
      (WebKit::PlatformPopupMenuData::encode):
      (WebKit::PlatformPopupMenuData::decode):
      * Shared/PlatformPopupMenuData.h:
      Add FontInfo as extra data for the Mac.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::didPerformDictionaryLookup):
      * UIProcess/PageClient.h:
      Add scaleFactor and use it to construct a font at the right size.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::showPopupMenu):
      (WebKit::WebPageProxy::didPerformDictionaryLookup):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebPopupMenuProxy.h:
      * UIProcess/mac/WebPopupMenuProxyMac.h:
      (WebKit::WebPopupMenuProxyMac::create):
      * UIProcess/mac/WebPopupMenuProxyMac.mm:
      (WebKit::WebPopupMenuProxyMac::WebPopupMenuProxyMac):
      (WebKit::WebPopupMenuProxyMac::populate):
      (WebKit::WebPopupMenuProxyMac::showPopupMenu):
      * UIProcess/qt/WebPopupMenuProxyQt.cpp:
      (WebKit::WebPopupMenuProxyQt::showPopupMenu):
      * UIProcess/qt/WebPopupMenuProxyQt.h:
      * UIProcess/win/WebPopupMenuProxyWin.cpp:
      (WebKit::WebPopupMenuProxyWin::showPopupMenu):
      * UIProcess/win/WebPopupMenuProxyWin.h:
      * WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm:
      (WebKit::WebPopupMenu::setUpPlatformData):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::performDictionaryLookupAtLocation):
      Pass scale factor through and rename TextInfo -> DictionaryPopupInfo.
      
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      Add new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      040f6198
    • ossy@webkit.org's avatar
      Unreviewed. · af2f1de9
      ossy@webkit.org authored
      [Qt] Add Qt specific expected results for passing fast tests.
      
      * platform/qt/Skipped: Unskip passing tests.
      * platform/qt/fast/transforms [...] : Added.
      * platform/qt/fast/tokenizer [...] : Added.
      * platform/qt/fast/replaced [...] : Added.
      * platform/qt/fast/runin [...] : Added.
      * platform/qt/fast/selectors [...] : Added.
      * platform/qt/fast/table [...] : Added.
      * ChangeLog : Remove duplicated ChangeLog entry.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af2f1de9
    • commit-queue@webkit.org's avatar
      2011-02-28 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> · 3d815f3d
      commit-queue@webkit.org authored
              Reviewed by Andreas Kling.
      
              [Qt] Add clipped version of QWebElement::render method.
              Allows faster rendering of web element part.
              https://bugs.webkit.org/show_bug.cgi?id=50311
      
              * Api/qwebelement.cpp:
              (QWebElement::render):
              * Api/qwebelement.h:
              * tests/qwebelement/tst_qwebelement.cpp:
              (tst_QWebElement::render):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d815f3d
    • mihaip@chromium.org's avatar
      2011-02-28 Mihai Parparita <mihaip@chromium.org> · 99aa9065
      mihaip@chromium.org authored
              Unreviewed Chromium expectations change.
      
              Skip over fast/overflow/horizontal-scroll-after-back.html added by
              r79844, since it's page cache-specific.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99aa9065
    • pfeldman@chromium.org's avatar
      2011-02-28 Sheriff Bot <webkit.review.bot@gmail.com> · 67b0a377
      pfeldman@chromium.org authored
              Unreviewed, rolling out r79877.
              http://trac.webkit.org/changeset/79877
              https://bugs.webkit.org/show_bug.cgi?id=55388
      
              Breaks chromium build (Requested by antonm_ on #webkit).
      
              * WebCore.gypi:
              * platform/graphics/chromium/ContentLayerChromium.cpp:
              (WebCore::ContentLayerChromium::updateContentsIfDirty):
              (WebCore::ContentLayerChromium::resizeUploadBufferForImage):
              (WebCore::ContentLayerChromium::resizeUploadBuffer):
              (WebCore::SkBitmapConditionalAutoLockerPixels::SkBitmapConditionalAutoLockerPixels):
              (WebCore::SkBitmapConditionalAutoLockerPixels::~SkBitmapConditionalAutoLockerPixels):
              (WebCore::SkBitmapConditionalAutoLockerPixels::lockPixels):
              (WebCore::ContentLayerChromium::updateTextureIfNeeded):
              (WebCore::ContentLayerChromium::draw):
              * platform/graphics/chromium/ContentLayerChromium.h:
              * platform/graphics/chromium/ImageLayerChromium.cpp:
              (WebCore::ImageLayerChromium::updateContentsIfDirty):
              * platform/graphics/chromium/ImageLayerChromium.h:
              * platform/graphics/chromium/LayerTilerChromium.cpp:
              (WebCore::LayerTilerChromium::contentRectToTileIndices):
              (WebCore::LayerTilerChromium::update):
              * platform/graphics/chromium/LayerTilerChromium.h:
              * platform/graphics/chromium/PlatformCanvas.cpp: Removed.
              * platform/graphics/chromium/PlatformCanvas.h: Removed.
              * platform/graphics/chromium/PlatformImage.cpp: Removed.
              * platform/graphics/chromium/PlatformImage.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67b0a377
    • mihaip@chromium.org's avatar
      2011-02-28 Mihai Parparita <mihaip@chromium.org> · 686318dd
      mihaip@chromium.org authored
              Unreviewed Chromium expectations change.
      
              Rebaseline fast/forms/listbox-hit-test-zoomed.html after r79762.
              Also make a new other expectations more specific.
      
              * platform/chromium/test_expectations.txt:
              * platform/mac/fast/forms/listbox-hit-test-zoomed-expected.checksum:
              * platform/mac/fast/forms/listbox-hit-test-zoomed-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      686318dd
    • podivilov@chromium.org's avatar
      2011-02-28 Pavel Podivilov <podivilov@chromium.org> · ebf9d3ab
      podivilov@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: add live edit test.
              https://bugs.webkit.org/show_bug.cgi?id=55360
      
              * http/tests/inspector/debugger-test.js:
              (initialize_DebuggerTest):
              * inspector/debugger/debug-inlined-scripts.html:
              * inspector/debugger/live-edit-expected.txt: Added.
              * inspector/debugger/live-edit.html: Added.
              * inspector/debugger/resources/edit-me.js: Added.
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2011-02-28  Pavel Podivilov  <podivilov@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: add live edit test.
              https://bugs.webkit.org/show_bug.cgi?id=55360
      
              Test: inspector/debugger/live-edit.html
      
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype._doubleClick):
              (WebInspector.SourceFrame.prototype._didEditLine):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebf9d3ab
    • pfeldman@chromium.org's avatar
      2011-02-28 Pavel Feldman <pfeldman@chromium.org> · d5f07bfb
      pfeldman@chromium.org authored
              Not reviewed. More follow ups to XML Viewer tests commit.
      
              * http/tests/xmlviewer/dumpAsText/frames.html:
              * platform/qt/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5f07bfb
    • pfeldman@chromium.org's avatar
      2011-02-28 Pavel Feldman <pfeldman@chromium.org> · 059d7127
      pfeldman@chromium.org authored
              Not reviewed. Follow up to r79858, removing optimistic assertion that fails on debug bot.
      
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              (WebCore::InspectorBrowserDebuggerAgent::inspectedURLChanged):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      059d7127
    • enne@google.com's avatar
      2011-02-25 Adrienne Walker <enne@google.com> · b72820f2
      enne@google.com authored
              Reviewed by James Robinson.
      
              [chromium] Abstract "pixels with a graphics context" into its own class
              https://bugs.webkit.org/show_bug.cgi?id=55259
      
              This creates new PlatformCanvas/PlatformImage classes which wrap
              all of the #ifdef Skia/Cg warts from the compositor.  All classes
              (LayerTilerChromium, ContentLayerChromium, and ImageLayerChromium) are
              modified to use these abstractions.
      
              Tests: LayoutTests/compositing
      
              * WebCore.gypi:
              * platform/graphics/chromium/ContentLayerChromium.cpp:
              (WebCore::ContentLayerChromium::updateContentsIfDirty):
              (WebCore::ContentLayerChromium::resizeUploadBuffer):
              (WebCore::ContentLayerChromium::updateTextureIfNeeded):
              (WebCore::ContentLayerChromium::updateTexture):
              (WebCore::ContentLayerChromium::draw):
              * platform/graphics/chromium/ContentLayerChromium.h:
              * platform/graphics/chromium/ImageLayerChromium.cpp:
              (WebCore::ImageLayerChromium::updateContentsIfDirty):
              (WebCore::ImageLayerChromium::updateTextureIfNeeded):
              * platform/graphics/chromium/ImageLayerChromium.h:
              * platform/graphics/chromium/LayerTilerChromium.cpp:
              (WebCore::LayerTilerChromium::contentRectToTileIndices):
              (WebCore::LayerTilerChromium::update):
              (WebCore::LayerTilerChromium::updateFromPixels):
              * platform/graphics/chromium/LayerTilerChromium.h:
              * platform/graphics/chromium/PlatformCanvas.cpp: Added.
              (WebCore::PlatformCanvas::PlatformCanvas):
              (WebCore::PlatformCanvas::~PlatformCanvas):
              (WebCore::PlatformCanvas::resize):
              (WebCore::PlatformCanvas::AutoLocker::AutoLocker):
              (WebCore::PlatformCanvas::AutoLocker::~AutoLocker):
              (WebCore::PlatformCanvas::Painter::Painter):
              (WebCore::PlatformCanvas::Painter::~Painter):
              * platform/graphics/chromium/PlatformCanvas.h: Added.
              (WebCore::PlatformCanvas::AutoLocker::pixels):
              (WebCore::PlatformCanvas::Painter::context):
              (WebCore::PlatformCanvas::size):
              * platform/graphics/chromium/PlatformImage.cpp: Copied from Source/WebCore/platform/graphics/chromium/ImageLayerChromium.cpp.
              (WebCore::PlatformImage::PlatformImage):
              (WebCore::PlatformImage::updateFromImage):
              * platform/graphics/chromium/PlatformImage.h: Added.
              (WebCore::PlatformImage::pixels):
              (WebCore::PlatformImage::size):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b72820f2
    • pfeldman@chromium.org's avatar
      2011-02-28 Sheriff Bot <webkit.review.bot@gmail.com> · 935f34f1
      pfeldman@chromium.org authored
              Unreviewed, rolling out r79784.
              http://trac.webkit.org/changeset/79784
              https://bugs.webkit.org/show_bug.cgi?id=55386
      
              This change causes lots of assertion failures in Debug builds
              (Requested by aroben on #webkit).
      
              * transitions/matched-transform-functions.html:
              * transitions/retargetted-transition.html:
      2011-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r79784.
              http://trac.webkit.org/changeset/79784
              https://bugs.webkit.org/show_bug.cgi?id=55386
      
              This change causes lots of assertion failures in Debug builds
              (Requested by aroben on #webkit).
      
              * css/CSSStyleSelector.cpp:
              (WebCore::convertToLength):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::createTransformOperations):
              * platform/Length.h:
              (WebCore::Length::Length):
              (WebCore::Length::operator==):
              (WebCore::Length::operator!=):
              (WebCore::Length::rawValue):
              (WebCore::Length::type):
              (WebCore::Length::quirk):
              (WebCore::Length::setValue):
              (WebCore::Length::setRawValue):
              (WebCore::Length::calcFloatValue):
              (WebCore::Length::isZero):
              (WebCore::Length::blend):
              * rendering/AutoTableLayout.cpp:
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
              * rendering/FixedTableLayout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      935f34f1
    • andreas.kling@nokia.com's avatar
      2011-02-28 Andreas Kling <kling@webkit.org> · 8319420a
      andreas.kling@nokia.com authored
              Reviewed by Darin Adler.
      
              Use Frame::ownerElement() directly where appropriate.
              https://bugs.webkit.org/show_bug.cgi?id=55385
      
              Don't take the roundabout way through frame->document->ownerElement
              which just checks that the document->frame is non-null.
      
              No new test, refactoring only.
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::loadWithDocumentLoader):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::dispatchLoadEvent):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::scrollRecursively):
              (WebCore::EventHandler::logicalScrollRecursively):
              * page/FrameView.cpp:
              (WebCore::FrameView::init):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::repaintContentRectangle):
              (WebCore::FrameView::windowClipRect):
              (WebCore::FrameView::paintContents):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8319420a
    • pfeldman@chromium.org's avatar
      2011-02-28 Pavel Feldman <pfeldman@chromium.org> · af93ca9c
      pfeldman@chromium.org authored
              Not reviewed: follow up to r79861, moved utf-16-no-bom to its new home, fixed flaky frames.html.
      
              * fast/encoding/dumpAsText/utf-16-no-bom.xml: Renamed from LayoutTests/fast/encoding/utf-16-no-bom.xml.
              * http/tests/xmlviewer/dumpAsText/frames.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af93ca9c
    • podivilov@chromium.org's avatar
      2011-02-28 Pavel Podivilov <podivilov@chromium.org> · ceb60078
      podivilov@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: [REGRESSION] source frame is recreated for each inlined script in document.
              https://bugs.webkit.org/show_bug.cgi?id=55377
      
              * inspector/debugger/scripts-panel-expected.txt:
              * inspector/debugger/scripts-panel.html:
      2011-02-28  Pavel Podivilov  <podivilov@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: [REGRESSION] source frame is recreated for each inlined script in document.
              https://bugs.webkit.org/show_bug.cgi?id=55377
      
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished):
              (WebInspector.ScriptsPanel.prototype._sourceFrameForSourceName):
              (WebInspector.ScriptsPanel.prototype._createSourceFrame):
              (WebInspector.ScriptsPanel.prototype._recreateSourceFrame):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ceb60078
    • ossy@webkit.org's avatar
      Unreviewed. · 0afa17b8
      ossy@webkit.org authored
      [Qt] Remove non-existent tests from Skipped list after r79861.
      
      * platform/qt/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0afa17b8
    • paroga@webkit.org's avatar
      2011-02-28 Patrick Gansterer <paroga@webkit.org> · e388e4a6
      paroga@webkit.org authored
              Unreviewed build fix for !ENABLE(SVG_ANIMATION) after r79569.
      
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::removeAllAnimationElementsFromTarget):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e388e4a6
    • ossy@webkit.org's avatar
      Unreviewed. · 79597610
      ossy@webkit.org authored
      [Qt] Add Qt specific expected results for passing fast/css tests.
      
      * platform/qt/Skipped:
      * platform/qt/fast/css [...] : Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79597610
    • aroben@apple.com's avatar
      One more rename as a followup to r79868 · 7ed177ae
      aroben@apple.com authored
      Rubber-stamped by Anders Carlsson.
      
      * UIProcess/DrawingAreaProxyImpl.cpp:
      * UIProcess/DrawingAreaProxyImpl.h:
      Rename stateDidChange to backingStoreStateDidChange.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ed177ae
    • aroben@apple.com's avatar
      Rename DrawingArea[Proxy]Impl's "state ID" concept to "backing store state ID" · 0f41202d
      aroben@apple.com authored
      Rubber-stamped (and suggested) by Anders Carlsson.
      
      * UIProcess/DrawingAreaProxy.h:
      * UIProcess/DrawingAreaProxy.messages.in:
      * UIProcess/DrawingAreaProxyImpl.cpp:
      * UIProcess/DrawingAreaProxyImpl.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingArea.messages.in:
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      * WebProcess/WebPage/DrawingAreaImpl.h:
      Perform the rename.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79868 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f41202d
    • aroben@apple.com's avatar
      Decouple state changes from sending of UpdateState messages in DrawingAreaProxyImpl · b2d59981
      aroben@apple.com authored
      The new DrawingAreaProxyImpl::stateDidChange function should be called whenever
      DrawingAreaProxyImpl's state changes in a way that will require allocating a new backing
      store. (Currently, this is just when the size changes.) This function will sometimes (but
      not always, as when we're waiting for a DidUpdateState message) send an UpdateState message
      to the web process. This means it's now possible for the state IDs sent in consecutive
      UpdateState messages to increase by more than one, but that's OK.
      
      This should cause no change in behavior.
      
      Fixes <http://webkit.org/b/55382> DrawingAreaProxyImpl's state ID should be updated whenever
      its state changes, not just when we send an UpdateState message
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl): Updated for rename.
      (WebKit::DrawingAreaProxyImpl::sizeDidChange): Changed to call stateDidChange.
      (WebKit::DrawingAreaProxyImpl::didUpdateState): Updated for rename, and changed to call
      sendUpdateState whenever our state has changed for any reason since the last UpdateState
      message was sent.
      (WebKit::DrawingAreaProxyImpl::stateDidChange): Added. Increments m_nextStateID and calls
      through to sendUpdateState.
      (WebKit::DrawingAreaProxyImpl::sendUpdateState): Updated for rename, moved incrementing of
      the state ID we send to the web process from here to stateDidChange, and added an assertion.
      
      * UIProcess/DrawingAreaProxyImpl.h: Renamed m_requestedStateID to m_nextStateID, and updated
      the comment explaining its meaning.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2d59981
    • reni@webkit.org's avatar
      2011-02-28 Renata Hodovan <reni@webkit.org> · 0aa95393
      reni@webkit.org authored
              Reviewed by Andreas Kling.
      
              Optimize parameter transmissions in FEConvolveMatrix.
              https://bugs.webkit.org/show_bug.cgi?id=55381
      
              Parameter transmission via reference is more efficient than with copy. So they are substituted.
      
              No new tests are needed since this is a refactoring.
      
              * platform/graphics/filters/FEConvolveMatrix.cpp:
              (WebCore::FEConvolveMatrix::setKernelSize):
              (WebCore::FEConvolveMatrix::setTargetOffset):
              (WebCore::FEConvolveMatrix::setKernelUnitLength):
              * platform/graphics/filters/FEConvolveMatrix.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79866 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0aa95393
    • aroben@apple.com's avatar
      Skip a sometimes-crashing test on Windows · 85216773
      aroben@apple.com authored
      The failure is tracked by <http://webkit.org/b/55375>.
      
      * platform/win/Skipped: Added http/tests/websocket/tests/reload-crash.html.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85216773
    • yurys@chromium.org's avatar
      2011-02-28 Yury Semikhatsky <yurys@chromium.org> · bbfc395d
      yurys@chromium.org authored
              Unreviewed. Fix Chromium tests failures due to r79858.
      
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::inspectedPageDestroyed):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbfc395d
    • aroben@apple.com's avatar
      Pass the right dirty rect to Plugin::paint · 7511136d
      aroben@apple.com authored
      A typo in r79040 broke this. Much of this patch is just support for testing the fix.
      
      Fixes <http://webkit.org/b/55365> <rdar://problem/9031089> REGRESSION (r79040): WebKit2:
      Large portions of pages with plugins paint black
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit2:
      
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::paint): Pass the dirty rect we calculated earlier to Plugin::paint,
      rather than just passing along the dirty rect that was passed into this function. This is
      the bug fix.
      
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageForceRepaint):
      * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
      Added new SPI. Just calls through to WebPage::forceRepaintWithoutCallback.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::forceRepaintWithoutCallback): Moved code to force a repaint here...
      (WebKit::WebPage::forceRepaint): ...from here.
      
      * WebProcess/WebPage/WebPage.h: Added forceRepaintWithoutCallback.
      
      Tools:
      
      Add a test for the paint rect passed via WM_PAINT to windowless plugins
      
      * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp:
      (PluginTest::NPP_HandleEvent):
      * DumpRenderTree/TestNetscapePlugIn/PluginTest.h:
      Added NPP_HandleEvent. Just returns 0 at this level.
      
      * DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowlessPaintRectCoordinates.cpp: Added.
      (WindowlessPaintRectCoordinates::WindowlessPaintRectCoordinates): Call up to the base class.
      (WindowlessPaintRectCoordinates::NPP_New): Mark ourselves as windowless.
      (WindowlessPaintRectCoordinates::NPP_HandleEvent): Check that the paint rect passed via
      WM_PAINT has the expected coordinates.
      
      * DumpRenderTree/TestNetscapePlugIn/main.cpp:
      (NPP_HandleEvent): Give the PluginTest a chance to handle the event before doing anything
      else.
      
      * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: Added new file, let VS
      resort things.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::didFinishLoadForFrame): Added a call to WKBundlePageForceRepaint.
      This is roughly equivalent to the call to -[WebView displayIfNeeded] in -[FrameLoadDelegate
      webView:didFinishLoadForFrame:] in DumpRenderTree.
      
      * WebKitTestRunner/win/PlatformWebViewWin.cpp:
      (WTR::PlatformWebView::PlatformWebView): Tell the WKView it's in a window so that plugins
      can start running.
      
      LayoutTests:
      
      Add a test for the paint rect passed via WM_PAINT to windowless plugins
      
      * platform/win-wk2/platform/win/plugins/windowless-paint-rect-coordinates-expected.txt: Added.
      * platform/win/plugins/windowless-paint-rect-coordinates-expected.txt: Added. WebKit1
      doesn't pass a paint rect via WM_PAINT, so we have different results there.
      * platform/win/plugins/windowless-paint-rect-coordinates.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7511136d
    • aroben@apple.com's avatar
      Tell MiniBrowser's WKViews that they're in a window · 9d1f23ed
      aroben@apple.com authored
      Fixes <http://webkit.org/b/55364> Plugins don't work in MiniBrowser on Windows
      
      Reviewed by Anders Carlsson.
      
      * MiniBrowser/win/BrowserView.cpp:
      (BrowserView::create): Call WKViewSetIsInWindow after creating the view.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d1f23ed
    • pfeldman@chromium.org's avatar
      2011-02-28 Vsevolod Vlasov <vsevik@chromium.org> · 81b45e5d
      pfeldman@chromium.org authored
              Reviewed by Pavel Feldman.
      
              XML without style should render as syntax-highlighted source.
              https://bugs.webkit.org/show_bug.cgi?id=13807
      
              Added tests for XML tree view mode. Testing both logic for entering
              XML tree view mode and rendering itself.
              Tests are disabled for QT since this logic is not yet implemented, see
              https://bugs.webkit.org/show_bug.cgi?id=55302
      
              * fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Copied from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
              * fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog.xml: Renamed from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
              * fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
              * fast/encoding/dumpAsText/utf-16-no-bom.xml: Renamed from LayoutTests/fast/encoding/utf-16-no-bom.xml.
              * http/tests/xmlviewer/dumpAsText/css-stylesheet-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/css-stylesheet.xml: Added.
              * http/tests/xmlviewer/dumpAsText/frames-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/frames.html: Added.
              * http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/mathml.xml: Added.
              * http/tests/xmlviewer/dumpAsText/resources/css-stylesheet.css: Added.
              (assertion):
              * http/tests/xmlviewer/dumpAsText/resources/frames-helper.xml: Added.
              * http/tests/xmlviewer/dumpAsText/resources/xsl.xml: Added.
              * http/tests/xmlviewer/dumpAsText/svg-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/svg.xml: Added.
              * http/tests/xmlviewer/dumpAsText/wml-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/wml.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xhtml-tag-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xhtml-tag.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xlink-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xlink.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xmlviewer.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xsl-stylesheet-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml: Added.
              * http/tests/xmlviewer/dumpAsText/xul-expected.txt: Added.
              * http/tests/xmlviewer/dumpAsText/xul.xml: Added.
              * platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
              * platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
              * platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
              * platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.png: Removed.
              * platform/chromium-linux/svg/hixie/error/004-expected.checksum: Removed.
              * platform/chromium-linux/svg/hixie/error/004-expected.png: Removed.
              * platform/chromium-linux/svg/hixie/error/005-expected.checksum: Removed.
              * platform/chromium-linux/svg/hixie/error/005-expected.png: Removed.
              * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
              * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
              * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
              * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
              * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.png: Removed.
              * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.txt: Removed.
              * platform/chromium-win/svg/hixie/error/004-expected.checksum: Removed.
              * platform/chromium-win/svg/hixie/error/004-expected.png: Removed.
              * platform/chromium-win/svg/hixie/error/004-expected.txt: Removed.
              * platform/chromium-win/svg/hixie/error/005-expected.checksum: Removed.
              * platform/chromium-win/svg/hixie/error/005-expected.png: Removed.
              * platform/chromium-win/svg/hixie/error/005-expected.txt: Removed.
              * platform/chromium/http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
              * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
              * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
              * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
              * platform/gtk/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
              * platform/gtk/fast/encoding/utf-16-no-bom-expected.png: Removed.
              * platform/gtk/fast/encoding/utf-16-no-bom-expected.txt: Removed.
              * platform/gtk/svg/hixie/error/004-expected.checksum: Removed.
              * platform/gtk/svg/hixie/error/004-expected.png: Removed.
              * platform/gtk/svg/hixie/error/004-expected.txt: Removed.
              * platform/gtk/svg/hixie/error/005-expected.checksum: Removed.
              * platform/gtk/svg/hixie/error/005-expected.png: Removed.
              * platform/gtk/svg/hixie/error/005-expected.txt: Removed.
              * platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
              * platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
              * platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
              * platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.png: Removed.
              * platform/mac-leopard/svg/hixie/error/004-expected.checksum: Removed.
              * platform/mac-leopard/svg/hixie/error/004-expected.png: Removed.
              * platform/mac-leopard/svg/hixie/error/005-expected.checksum: Removed.
              * platform/mac-leopard/svg/hixie/error/005-expected.png: Removed.
              * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
              * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
              * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
              * platform/mac/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
              * platform/mac/fast/encoding/utf-16-no-bom-expected.png: Removed.
              * platform/mac/fast/encoding/utf-16-no-bom-expected.txt: Removed.
              * platform/mac/svg/hixie/error/004-expected.checksum: Removed.
              * platform/mac/svg/hixie/error/004-expected.png: Removed.
              * platform/mac/svg/hixie/error/004-expected.txt: Removed.
              * platform/mac/svg/hixie/error/005-expected.checksum: Removed.
              * platform/mac/svg/hixie/error/005-expected.png: Removed.
              * platform/mac/svg/hixie/error/005-expected.txt: Removed.
              * platform/qt/Skipped:
              * platform/qt/fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Added.
              * platform/qt/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
              * platform/qt/fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
              * platform/qt/fast/encoding/utf-16-no-bom-expected.txt: Removed.
              * platform/qt/svg/hixie/error/004-expected.txt: Removed.
              * platform/qt/svg/hixie/error/005-expected.txt: Removed.
              * platform/qt/svg/hixie/error/dumpAsText/004-expected.txt: Added.
              * platform/qt/svg/hixie/error/dumpAsText/005-expected.txt: Added.
              * svg/hixie/error/dumpAsText/004-expected.txt: Added.
              * svg/hixie/error/dumpAsText/004.xml: Renamed from LayoutTests/svg/hixie/error/004.xml.
              * svg/hixie/error/dumpAsText/005-expected.txt: Added.
              * svg/hixie/error/dumpAsText/005.xml: Renamed from LayoutTests/svg/hixie/error/005.xml.
      2011-02-28  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              XML without style should render as syntax-highlighted source.
              https://bugs.webkit.org/show_bug.cgi?id=13807
      
              XML tree view mode implemented. If XML does not have any style
              information, it is rendered as highlighted source with collapsable
              elements.
      
              Tests: fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog.xml
                     fast/encoding/dumpAsText/utf-16-no-bom.xml
                     http/tests/xmlviewer/dumpAsText/css-stylesheet.xml
                     http/tests/xmlviewer/dumpAsText/frames.html
                     http/tests/xmlviewer/dumpAsText/mathml.xml
                     http/tests/xmlviewer/dumpAsText/svg.xml
                     http/tests/xmlviewer/dumpAsText/wml.xml
                     http/tests/xmlviewer/dumpAsText/xhtml-tag.xml
                     http/tests/xmlviewer/dumpAsText/xlink.xml
                     http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml
                     http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml
                     http/tests/xmlviewer/dumpAsText/xmlviewer.xml
                     http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml
                     http/tests/xmlviewer/dumpAsText/xul.xml
                     svg/hixie/error/dumpAsText/004.xml
                     svg/hixie/error/dumpAsText/005.xml
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gyp/WebCore.gyp:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::matchUARules):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::createElement):
              * dom/Document.h:
              (WebCore::Document::usesViewSourceStyles):
              (WebCore::Document::setUsesViewSourceStyles):
              (WebCore::Document::sawElementsInKnownNamespaces):
              * dom/XMLDocumentParser.h:
              * dom/XMLDocumentParserLibxml2.cpp:
              (WebCore::XMLDocumentParser::XMLDocumentParser):
              (WebCore::XMLDocumentParser::processingInstruction):
              (WebCore::XMLDocumentParser::initializeParserContext):
              (WebCore::XMLDocumentParser::doEnd):
              * dom/XMLDocumentParserQt.cpp:
              (WebCore::XMLDocumentParser::XMLDocumentParser):
              (WebCore::XMLDocumentParser::initializeParserContext):
              (WebCore::XMLDocumentParser::parseProcessingInstruction):
              * html/HTMLViewSourceDocument.cpp:
              (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
              * xml/XMLTreeViewer.cpp: Added.
              (WebCore::XMLTreeViewer::XMLTreeViewer):
              (WebCore::XMLTreeViewer::hasNoStyleInformation):
              (WebCore::XMLTreeViewer::transformDocumentToTreeView):
              * xml/XMLTreeViewer.h: Added.
              (WebCore::XMLTreeViewer::~XMLTreeViewer):
              * xml/XMLViewer.xsl: Added.
              * xml/XSLStyleSheet.h:
              (WebCore::XSLStyleSheet::createForXMLTreeViewer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81b45e5d
    • pfeldman@chromium.org's avatar
      Nvel Feldman <pfeldman@chromium.org> · 97357ece
      pfeldman@chromium.org authored
              Not reviewed: skipping new inspector network tests on win.
      
              * platform/win/Skipped:ot reviewed: skipping new inspector network tests on win.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97357ece
    • commit-queue@webkit.org's avatar
      2011-02-28 Alexis Menard <alexis.menard@openbossa.org> · 15dcbd6f
      commit-queue@webkit.org authored
              Reviewed by Csaba Osztrogonác.
      
              The new QML tests require QML_IMPORT_PATH variable to be set in order to
              load the proper plugin.
      
              * Scripts/run-qtwebkit-tests:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15dcbd6f
    • yurys@chromium.org's avatar
      2011-02-28 Yury Semikhatsky <yurys@chromium.org> · 81e5e2f7
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: debugger agents should have same livetime as InspectorAgent
              https://bugs.webkit.org/show_bug.cgi?id=55369
      
              * inspector/report-protocol-errors-expected.txt:
              * inspector/report-protocol-errors.html:
      2011-02-28  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: debugger agents should have same livetime as InspectorAgent
              https://bugs.webkit.org/show_bug.cgi?id=55369
      
              DOM and JS debugger agents are now created in InspectorAgent's constructor and owned
              by the agent. Debugger state is cleared on frontend disconnect.
      
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
              (WebCore::InspectorAgent::setFrontend):
              (WebCore::InspectorAgent::disconnectFrontend):
              (WebCore::InspectorAgent::populateScriptObjects):
              (WebCore::InspectorAgent::didCommitLoad):
              (WebCore::InspectorAgent::showScriptsPanel):
              * inspector/InspectorAgent.h:
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              (WebCore::InspectorBrowserDebuggerAgent::create):
              (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
              (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
              (WebCore::InspectorBrowserDebuggerAgent::debuggerWasEnabled):
              (WebCore::InspectorBrowserDebuggerAgent::debuggerWasDisabled):
              (WebCore::InspectorBrowserDebuggerAgent::disable):
              (WebCore::InspectorBrowserDebuggerAgent::setFrontend):
              (WebCore::InspectorBrowserDebuggerAgent::clearFrontend):
              (WebCore::InspectorBrowserDebuggerAgent::setAllBrowserBreakpoints):
              (WebCore::InspectorBrowserDebuggerAgent::inspectedURLChanged):
              (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
              (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
              (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
              (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
              (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
              (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
              (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
              (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
              (WebCore::InspectorBrowserDebuggerAgent::clear):
              * inspector/InspectorBrowserDebuggerAgent.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::debuggerEnabled):
              (WebCore::InspectorController::showAndEnableDebugger):
              (WebCore::InspectorController::disableDebugger):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::create):
              (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
              (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
              (WebCore::InspectorDebuggerAgent::startUserInitiatedDebugging):
              (WebCore::InspectorDebuggerAgent::enable):
              (WebCore::InspectorDebuggerAgent::disable):
              (WebCore::InspectorDebuggerAgent::enabled):
              (WebCore::InspectorDebuggerAgent::restore):
              (WebCore::InspectorDebuggerAgent::setFrontend):
              (WebCore::InspectorDebuggerAgent::clearFrontend):
              (WebCore::InspectorDebuggerAgent::setJavaScriptBreakpoint):
              (WebCore::InspectorDebuggerAgent::removeJavaScriptBreakpoint):
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::getCompletionsOnCallFrame):
              (WebCore::InspectorDebuggerAgent::currentCallFrames):
              (WebCore::InspectorDebuggerAgent::didParseSource):
              (WebCore::InspectorDebuggerAgent::clear):
              * inspector/InspectorDebuggerAgent.h:
              (WebCore::InspectorDebuggerAgent::enable):
              (WebCore::InspectorDebuggerAgent::disable):
              (WebCore::InspectorDebuggerAgent::Listener::~Listener):
              (WebCore::InspectorDebuggerAgent::setListener):
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
              (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
              (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
              * inspector/front-end/DebuggerModel.js:
              (WebInspector.DebuggerModel.prototype.enableDebugger):
              (WebInspector.DebuggerModel.prototype.disableDebugger):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81e5e2f7