1. 19 May, 2010 3 commits
    • alex@webkit.org's avatar
      2010-05-18 Alejandro G. Castro <alex@igalia.com> · b6e58433
      alex@webkit.org authored
              Unreviewed, skip test.
      
              Skipping fast/workers/storage
              https://bugs.webkit.org/show_bug.cgi?id=39346
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6e58433
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · c2f2b026
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Make the HTML5 parser correctly parse <div>Hello</div>
              https://bugs.webkit.org/show_bug.cgi?id=39345
      
              Again, this patch is covered by a large number of LayoutTests.
      
              * html/HTML5Lexer.cpp:
              (WebCore::HTML5Lexer::HTML5Lexer):
              (WebCore::HTML5Lexer::reset):
              (WebCore::HTML5Lexer::nextToken):
              (WebCore::HTML5Lexer::emitCommentToken):
              (WebCore::HTML5Lexer::emitCharacter):
              (WebCore::HTML5Lexer::emitCurrentTagToken):
              * html/HTML5Lexer.h:
              * html/HTML5Token.h:
              (WebCore::HTML5Token::beginCharacter):
              (WebCore::HTML5Token::appendToCharacter):
              (WebCore::HTML5Token::characters):
              * html/HTML5Tokenizer.cpp:
              (WebCore::convertToOldStyle):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2f2b026
    • barraclough@apple.com's avatar
      Bug 39343 - Dynamically generate a native call thunk per NativeFunction · 8cc46690
      barraclough@apple.com authored
              
      Reviewed by Geoff Garen.
      
      https://bugs.webkit.org/show_bug.cgi?id=39252 regressed performance on i386,
      by adding an extra indirection to making a native call.  By introducing per-
      NativeFunction thunks we can hard code the function pointer into the thunk
      so that it need not be loaded from the callee.
      
      * jit/JIT.h:
      (JSC::JIT::compileCTINativeCall):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::privateCompileCTINativeCall):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::privateCompileCTINativeCall):
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::emitSlow_op_get_by_val):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::emitSlow_op_get_by_val):
      * jit/JITStubs.cpp:
      (JSC::JITThunks::ctiStub):
      (JSC::JITThunks::hostFunctionStub):
      * jit/JITStubs.h:
      * jit/SpecializedThunkJIT.h:
      (JSC::SpecializedThunkJIT::finalize):
      * jit/ThunkGenerators.cpp:
      (JSC::charCodeAtThunkGenerator):
      (JSC::charAtThunkGenerator):
      (JSC::fromCharCodeThunkGenerator):
      (JSC::sqrtThunkGenerator):
      (JSC::powThunkGenerator):
      * runtime/JSFunction.cpp:
      (JSC::JSFunction::JSFunction):
      * runtime/JSGlobalData.cpp:
      (JSC::JSGlobalData::getHostFunction):
      * runtime/JSGlobalData.h:
      (JSC::JSGlobalData::getCTIStub):
      * runtime/Lookup.cpp:
      (JSC::setUpStaticFunctionSlot):
      * runtime/StringConstructor.cpp:
      (JSC::StringConstructor::StringConstructor):
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cc46690
  2. 18 May, 2010 37 commits
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · 59e0d55f
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Make the HTML5 parser actually parse <div></div>
              https://bugs.webkit.org/show_bug.cgi?id=39342
      
              This patch is covered by every LayoutTest.  Yes.  All of them.  :)
      
              * html/HTML5Lexer.cpp:
              (WebCore::toLowerCase):
              (WebCore::HTML5Lexer::HTML5Lexer):
              (WebCore::HTML5Lexer::nextToken):
              (WebCore::HTML5Lexer::emitCharacter):
              * html/HTML5Lexer.h:
              * html/HTML5Token.h:
              (WebCore::HTML5Token::HTML5Token):
              (WebCore::HTML5Token::beginStartTag):
              (WebCore::HTML5Token::beginEndTag):
              (WebCore::HTML5Token::appendToName):
              (WebCore::HTML5Token::type):
              (WebCore::HTML5Token::name):
              (WebCore::HTML5Token::selfClosing):
              (WebCore::HTML5Token::attrs):
              * html/HTML5Tokenizer.cpp:
              (WebCore::convertToOldStyle):
              (WebCore::HTML5Tokenizer::write):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59e0d55f
    • tkent@chromium.org's avatar
      [DRT/Chromium] Fix a repaint issue and textarea tests · d31b2683
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=39054
      
      Reviewed by Dimitri Glazkov.
      
      WebKit/chromium:
      
      * DEPS: Update to Chromium r47248 to use a fix for CommandLine assertion
        and textAreaResizeCorner.png
      * WebKit.gyp: Add textAreaResizeCorner.png as a Mac resource
      
      WebKitTools:
      
      * DumpRenderTree/chromium/WebViewHost.cpp:
      (WebViewHost::canvas): Remove m_paintRect initialization in canvas().
       This line updated m_paintRect unexpectedly during paintRect().
       We don't need to initialize m_paintRect because show() does it.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d31b2683
    • tony@chromium.org's avatar
      2010-05-18 Tony Chang <tony@chromium.org> · 15099a32
      tony@chromium.org authored
              Reviewed by Kent Tamura.
      
              [chromium] new-run-webkit-tests --use-drt should run on Linux
              https://bugs.webkit.org/show_bug.cgi?id=37845
      
              * Scripts/webkitpy/layout_tests/port/chromium.py:
              * Scripts/webkitpy/layout_tests/port/chromium_linux.py:
              * Scripts/webkitpy/layout_tests/port/chromium_mac.py:
              * Scripts/webkitpy/layout_tests/port/chromium_unittest.py:
              * Scripts/webkitpy/layout_tests/port/chromium_win.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15099a32
    • ggaren@apple.com's avatar
      JavaScriptCore: Simplified handling of 'arguments' -- 1.2% SunSpider speedup · 83ce11ca
      ggaren@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=39200
              
      Reviewed by Darin Adler.
      
      Removed the reserved OptionalCalleeArguments slot from the CallFrame.
      Now, slots for 'arguments' are allocated and initialized only by
      functions that might need them.
              
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump): Updated for new bytecode operands.
      
      (JSC::CodeBlock::CodeBlock):
      * bytecode/CodeBlock.h:
      (JSC::unmodifiedArgumentsRegister): Added a helper function for mapping
      from the arguments register to its unmodified counterpart.
      
      (JSC::CodeBlock::setArgumentsRegister):
      (JSC::CodeBlock::argumentsRegister):
      (JSC::CodeBlock::usesArguments):  Changed from a "usesArguments" bool to
      an optional int index representing the arguments register.
      
      * bytecode/Opcode.h: Updated for new bytecode operands.
      
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::addVar): Factored out a helper function for
      allocating an anonymous var.
      
      (JSC::BytecodeGenerator::BytecodeGenerator): Merged / simplified some
      arguments vs activation logic, and added code to allocate the arguments
      registers when needed.
      
      (JSC::BytecodeGenerator::createArgumentsIfNecessary): Updated for new bytecode operands.
      
      (JSC::BytecodeGenerator::emitCallEval): No need to create the arguments
      object before calling eval; the activation object will lazily create the
      arguments object if eval resolves it.
      
      (JSC::BytecodeGenerator::emitReturn): Updated for new bytecode operands.
      
      (JSC::BytecodeGenerator::emitPushScope):
      (JSC::BytecodeGenerator::emitPushNewScope): Ditto emitCallEval.
      
      * bytecompiler/BytecodeGenerator.h:
      (JSC::BytecodeGenerator::addVar): Factored out a helper function for
      allocating an anonymous var.
      
      (JSC::BytecodeGenerator::registerFor): No more need for special handling
      of the arguments registers; they're allocated just like normal registers
      now.
      
      * interpreter/CallFrame.h:
      (JSC::ExecState::callerFrame):
      (JSC::ExecState::init):
      * interpreter/CallFrameClosure.h:
      (JSC::CallFrameClosure::resetCallFrame): Nixed optionalCalleeArguments.
      
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::dumpRegisters):
      (JSC::Interpreter::unwindCallFrame):
      (JSC::Interpreter::privateExecute):
      (JSC::Interpreter::retrieveArguments): Opcodes accessing 'arguments' now
      take operands specifying registers, just like all other opcodes.
      JSActivation::copyRegisters is no longer responsible for tearing off the
      arguments object; instead, the VM is responsible for both.
      
      Also, a behavior change: Each access to f.arguments creates a new object,
      unless f itself uses 'arguments'. This matches Chrome, and is necessary
      for the optimization. f.arguments is a nonstandard, deprecated feature,
      so high fidelity to a given implementation is not necessarily a goal.
      Also, as illustrated by the new test case, the identity of f.arguments
      has been broken since 2008, except in the case where f itself accesses
      f.arguments -- but nobody seemed to notice. So, hopefully this change won't
      break the web.
              
      * interpreter/Register.h: Nixed the special arguments accessor. It's no
      longer needed.
      
      * interpreter/RegisterFile.h:
      (JSC::RegisterFile::):
      * jit/JITCall.cpp:
      (JSC::JIT::compileOpCallInitializeCallFrame):
      (JSC::JIT::compileOpCall):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_tear_off_activation):
      (JSC::JIT::emit_op_tear_off_arguments):
      (JSC::JIT::emit_op_create_arguments):
      (JSC::JIT::emit_op_init_arguments):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::emit_op_tear_off_activation):
      (JSC::JIT::emit_op_tear_off_arguments):
      (JSC::JIT::emit_op_create_arguments):
      (JSC::JIT::emit_op_init_arguments): The actual optimization: Removed
      OptionalCalleeArguments from the callframe slot. Now, it doesn't need
      to be initialized for most calls.
      
      * jit/JITStubs.cpp:
      (JSC::DEFINE_STUB_FUNCTION):
      * jit/JITStubs.h:
      (JSC::): Updated stubs to support arbitrary 'arguments' registers,
      instead of hard-coding something in the call frame.
      
      * runtime/Arguments.h:
      (JSC::JSActivation::copyRegisters): Removed some obfuscatory abstraction.
      
      * runtime/Executable.h:
      (JSC::FunctionExecutable::generatedByteCode): Added a helper for accessing
      the 'arguments' register. In a future patch, that kind of data should
      probably move out of CodeBlock and into Executable.
      
      * runtime/JSActivation.cpp:
      (JSC::JSActivation::getOwnPropertySlot):
      (JSC::JSActivation::argumentsGetter):
      * runtime/JSActivation.h: Simplified / fixed access to 'arguments' via
      the activation object. It now implements the same behavior implemented
      by optimized variable access in the VM. This simplifies some other
      things, too -- like eval code generation.
      
      LayoutTests: Simplified handling of 'arguments' -- 1.2% SunSpider speedup
      https://bugs.webkit.org/show_bug.cgi?id=39200
      
      Reviewed by Darin Adler.
      
      * fast/js/function-dot-arguments-expected.txt:
      * fast/js/script-tests/function-dot-arguments.js:
      (argumentsIdentity): Updated to match new behavior.
      
      * fast/js/function-dot-arguments2-expected.txt:
      * fast/js/function-dot-arguments2.html: New tests for some things that
      weren't covered before.
      
      * fast/js/global-recursion-on-full-stack.html: Rejiggered the stack
      usage in this test. Since stack usage is more efficient now, you
      need a slightly different usage pattern to hit the exact thing this
      test wanted to test.
      
      * fast/js/kde/script-tests/function_arguments.js:
      (f): Updated to more specifically test what this was trying to test,
      to avoid just testing the identity of f.arguments.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83ce11ca
    • tkent@chromium.org's avatar
      Unreviewed test fix. · d2d2f504
      tkent@chromium.org authored
      fast/css/pseudo-required-optional-unapplied.html failure with ENABLE_METER_TAG
      https://bugs.webkit.org/show_bug.cgi?id=39341
      
      Remove test elements at the end of the test because dumpAsText() output
      for <meter> depends on ENABLE_METER_TAG.
      
      * fast/css/pseudo-required-optional-unapplied-expected.txt:
      * fast/css/pseudo-required-optional-unapplied.html:
      * platform/qt/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2d2f504
    • tkent@chromium.org's avatar
    • tony@chromium.org's avatar
      2010-05-18 Tony Chang <tony@chromium.org> · b50d9cb2
      tony@chromium.org authored
              Reviewed by Ojan Vafai.
      
              REGRESSION: crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting in an empty li
              https://bugs.webkit.org/show_bug.cgi?id=38232
      
              * editing/execCommand/crash-indenting-list-item-expected.txt: Added.
              * editing/execCommand/crash-indenting-list-item.html: Added.
      2010-05-18  Tony Chang  <tony@chromium.org>
      
              Reviewed by Ojan Vafai.
      
              REGRESSION: crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting in an empty li
              https://bugs.webkit.org/show_bug.cgi?id=38232
      
              Test: editing/execCommand/crash-indenting-list-item.html
      
              * editing/IndentOutdentCommand.cpp:
              (WebCore::IndentOutdentCommand::tryIndentingAsListItem):
              (WebCore::IndentOutdentCommand::indentIntoBlockquote):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b50d9cb2
    • tkent@chromium.org's avatar
      ':optional' pseudo selector should not be applied to <keygen> and <progress> · 51999eeb
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=39292
      
      Reviewed by Darin Adler.
      
      WebCore:
      
      Test: fast/css/pseudo-required-optional-unapplied.html
      
      * html/HTMLKeygenElement.h:
      (WebCore::HTMLKeygenElement::isOptionalFormControl):
        Add isOptionalFormControl() returning false.
        HTMLKeygenElement inherits HTMLSelectElement, which should return true
        for isOptionalFormControl(). However, <keygen> is not :optional
        according to the standard.
      * html/HTMLProgressElement.h:
        Remove isOptionalFormControl().
      
      LayoutTests:
      
      Add a test for non-optional form elements.
      
      * fast/css/pseudo-required-optional-unapplied-expected.txt: Added.
      * fast/css/pseudo-required-optional-unapplied.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51999eeb
    • tkent@chromium.org's avatar
      2010-05-18 Kent Tamura <tkent@chromium.org> · 97346b66
      tkent@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              [DRT/Chromium] Fix some initialization/reset issues
              https://bugs.webkit.org/show_bug.cgi?id=39281
      
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::reset): Reset m_userStyleSheetLocation.
              * DumpRenderTree/chromium/LayoutTestController.h:
                Remove unused variable, m_workQueueFrozen.
              (LayoutTestController::WorkQueue::WorkQueue): Initialize m_frozen.
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::resetTestController): Reset WebSettings too.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97346b66
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · e7f162ce
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement the DOCTYPE states for the HTML5 lexer
              https://bugs.webkit.org/show_bug.cgi?id=39335
      
              * html/HTML5Lexer.cpp:
              (WebCore::HTML5Lexer::nextToken):
              (WebCore::emitCurrentDoctypeToken):
              * html/HTML5Lexer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7f162ce
    • tony@chromium.org's avatar
      2010-05-18 Tony Chang <tony@chromium.org> · a4ac98e1
      tony@chromium.org authored
              Reviewed by Ojan Vafai.
      
              [chromium] ignore IME events if the keydown event was prevented
              https://bugs.webkit.org/show_bug.cgi?id=37692
      
              A manual test to verify the IME behavior since the existing methods of
              textInputController test at a lower level than the fix.
      
              * manual-tests/ime-keydown-preventdefault.html: Added.
      2010-05-18  Tony Chang  <tony@chromium.org>
      
              Reviewed by Ojan Vafai.
      
              [chromium] ignore IME events if the keydown event was prevented
              https://bugs.webkit.org/show_bug.cgi?id=37692
      
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::handleCompositionEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4ac98e1
    • weinig@apple.com's avatar
      Fix the build for platforms that don't always include UnusedParam.h · fc68fffb
      weinig@apple.com authored
      * dom/Attribute.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc68fffb
    • morrita@google.com's avatar
      2010-05-18 MORITA Hajime <morrita@google.com> · 2c89b8ce
      morrita@google.com authored
              Reviewed by Kent Tamura.
      
              [Chromium] Windows: Determinate progress bar should have glossy overlay
              https://bugs.webkit.org/show_bug.cgi?id=39269
      
              - Moved animation code from RenderThemeChromiumWin to chromium tree
                because it should be behind the theme implementation, which lives
                in chromium tree.
              - Passed current time to the bridge, which will be used to compute
                the state of the theme animation.
      
              No new tests, animation effect can be confirmed only manually.
      
              * platform/chromium/ChromiumBridge.h:
              * rendering/RenderProgress.h:
              (WebCore::RenderProgress::animationStartTime): Added.
              * rendering/RenderThemeChromiumWin.cpp:
              (WebCore::RenderThemeChromiumWin::animationDurationForProgressBar):
              (WebCore::RenderThemeChromiumWin::paintProgressBar):
      2010-05-18  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Kent Tamura.
      
              [Chromium] Windows: Determinate progress bar should have glossy overlay
              https://bugs.webkit.org/show_bug.cgi?id=39269
      
              Changed WebThemeEngine::drawProgressBar() signature to delegate
              theme implementation detail to the engine.
              Chromium side will come to http://crbug.com/44430.
      
              No new tests, animation effect can be confirmed only manually.
      
              * public/WebThemeEngine.h:
              (WebKit::WebThemeEngine::paintProgressBar):
              * src/ChromiumBridge.cpp:
              (WebCore::ChromiumBridge::paintProgressBar):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c89b8ce
    • weinig@apple.com's avatar
      Fix release build. · 9d01a021
      weinig@apple.com authored
      * dom/Attribute.cpp:
      (WebCore::Attribute::unbindAttr):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d01a021
    • weinig@apple.com's avatar
      Move Attr pointer from Attribute to a global HashMap. · cbbbbde5
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=39337
      <rdar://problem/8001168>
      
      Reviewed by Maciej Stachowiak.
      
      Shaves another word off of Attribute.
      
      * dom/Attr.cpp:
      (WebCore::Attr::Attr):
      (WebCore::Attr::~Attr):
      * dom/Attribute.cpp:
      (WebCore::attributeAttrMap):
      (WebCore::Attribute::attr):
      (WebCore::Attribute::createAttrIfNeeded):
      (WebCore::Attribute::bindAttr):
      (WebCore::Attribute::unbindAttr):
      * dom/Attribute.h:
      (WebCore::Attribute::Attribute):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbbbbde5
    • jamesr@google.com's avatar
      2010-05-18 James Robinson <jamesr@chromium.org> · 33bd183e
      jamesr@google.com authored
              Unreviewed.
      
              Add leopard-specific pixel results for more tests that need them
              https://bugs.webkit.org/show_bug.cgi?id=39325
      
              This adds new Leopard baselines for all tests that currently
              pass with tolerance=0 on Snow Leopard but fail on Leopard
              with an image diff of <= 0.1%.  These tests previously had
              expectations in platform/mac that were Snow Leopard specific.
      
              * platform/mac-leopard/animations: Added.
              * platform/mac-leopard/animations/3d: Added.
              * platform/mac-leopard/animations/3d/change-transform-in-end-event-expected.checksum: Added.
              * platform/mac-leopard/animations/3d/change-transform-in-end-event-expected.png: Added.
              * platform/mac-leopard/compositing/animation: Added.
              * platform/mac-leopard/compositing/animation/state-at-end-event-transform-layer-expected.checksum: Added.
              * platform/mac-leopard/compositing/animation/state-at-end-event-transform-layer-expected.png: Added.
              * platform/mac-leopard/compositing/compositing-visible-descendant-expected.checksum: Added.
              * platform/mac-leopard/compositing/compositing-visible-descendant-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/abs-position-inside-opacity-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/abs-position-inside-opacity-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/fixed-position-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/fixed-position-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/horizontal-scroll-composited-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/horizontal-scroll-composited-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/partial-layout-update-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/partial-layout-update-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.png: Added.
              * platform/mac-leopard/compositing/geometry/vertical-scroll-composited-expected.checksum: Added.
              * platform/mac-leopard/compositing/geometry/vertical-scroll-composited-expected.png: Added.
              * platform/mac-leopard/compositing/iframes/iframe-copy-on-scroll-expected.checksum: Added.
              * platform/mac-leopard/compositing/iframes/iframe-copy-on-scroll-expected.png: Added.
              * platform/mac-leopard/compositing/masks: Added.
              * platform/mac-leopard/compositing/masks/direct-image-mask-expected.checksum: Added.
              * platform/mac-leopard/compositing/masks/direct-image-mask-expected.png: Added.
              * platform/mac-leopard/compositing/overflow/fixed-position-ancestor-clip-expected.checksum: Added.
              * platform/mac-leopard/compositing/overflow/fixed-position-ancestor-clip-expected.png: Added.
              * platform/mac-leopard/compositing/reflections/reflection-in-composited-expected.checksum: Added.
              * platform/mac-leopard/compositing/reflections/reflection-in-composited-expected.png: Added.
              * platform/mac-leopard/compositing/reflections/reflection-ordering-expected.checksum: Added.
              * platform/mac-leopard/compositing/reflections/reflection-ordering-expected.png: Added.
              * platform/mac-leopard/compositing/repaint/content-into-overflow-expected.checksum: Added.
              * platform/mac-leopard/compositing/repaint/content-into-overflow-expected.png: Added.
              * platform/mac-leopard/compositing/repaint/layer-repaint-expected.checksum: Added.
              * platform/mac-leopard/compositing/repaint/layer-repaint-expected.png: Added.
              * platform/mac-leopard/compositing/repaint/opacity-between-absolute-expected.checksum: Added.
              * platform/mac-leopard/compositing/repaint/opacity-between-absolute-expected.png: Added.
              * platform/mac-leopard/compositing/repaint/opacity-between-absolute2-expected.checksum: Added.
              * platform/mac-leopard/compositing/repaint/opacity-between-absolute2-expected.png: Added.
              * platform/mac-leopard/fast/borders: Added.
              * platform/mac-leopard/fast/borders/svg-as-border-image-2-expected.checksum: Added.
              * platform/mac-leopard/fast/borders/svg-as-border-image-2-expected.png: Added.
              * platform/mac-leopard/fast/borders/svg-as-border-image-expected.checksum: Added.
              * platform/mac-leopard/fast/borders/svg-as-border-image-expected.png: Added.
              * platform/mac-leopard/fast/forms/placeholder-stripped-expected.checksum: Added.
              * platform/mac-leopard/fast/forms/placeholder-stripped-expected.png: Added.
              * platform/mac-leopard/fast/multicol: Added.
              * platform/mac-leopard/fast/multicol/column-count-with-rules-expected.checksum: Added.
              * platform/mac-leopard/fast/multicol/column-count-with-rules-expected.png: Added.
              * platform/mac-leopard/media/controls-strict-expected.checksum:
              * platform/mac-leopard/media/controls-strict-expected.png:
              * platform/mac-leopard/media/video-display-toggle-expected.checksum:
              * platform/mac-leopard/media/video-display-toggle-expected.png:
              * platform/mac-leopard/media/video-replaces-poster-expected.checksum: Added.
              * platform/mac-leopard/media/video-replaces-poster-expected.png: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33bd183e
    • jpetsovits@rim.com's avatar
      2010-05-18 Jakob Petsovits <jpetsovits@rim.com> · 889a7db4
      jpetsovits@rim.com authored
              Unreviewed, forgot to svn add source file in r59619.
              http://trac.webkit.org/changeset/59619
      
              * platform/image-decoders/openvg: Added.
              * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Added.
              (WebCore::RGBA32Buffer::asNewNativeImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      889a7db4
    • mrobinson@webkit.org's avatar
      2010-05-18 Martin Robinson <mrobinson@igalia.com> · f63c2ed9
      mrobinson@webkit.org authored
              Not reviewed.
      
              [GTK] fast/dom/Geolocation/enabled.html is crashing on the bots
              https://bugs.webkit.org/show_bug.cgi?id=39326
      
              * platform/gtk/Skipped: Skip another test causing crashes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f63c2ed9
    • yaar@chromium.org's avatar
      2010-05-18 Yaar Schnitman <yaar@chromium.org> · 3ad35cae
      yaar@chromium.org authored
              Unreviewed, rolling out r59693.
              http://trac.webkit.org/changeset/59693
              https://bugs.webkit.org/show_bug.cgi?id=37815
      
              Broke GTK Release
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSCallbackData.cpp:
              (WebCore::JSCallbackData::invokeCallback):
              * bindings/js/JSEventListener.cpp:
              (WebCore::JSEventListener::handleEvent):
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::InjectedScriptHost::createInjectedScript):
              * bindings/js/JSMainThreadExecState.cpp: Removed.
              * bindings/js/JSMainThreadExecState.h: Removed.
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::executeFunctionInContext):
              (WebCore::ScheduledAction::execute):
              * bindings/js/ScheduledAction.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluateInWorld):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptFunctionCall.cpp:
              (WebCore::ScriptFunctionCall::call):
              * bindings/objc/ObjCEventListener.mm:
              * bindings/objc/WebScriptObject.mm:
              (-[WebScriptObject callWebScriptMethod:withArguments:]):
              (-[WebScriptObject evaluateWebScript:]):
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bindings/scripts/test/ObjC/DOMTestCallback.mm:
              (-[DOMTestCallback callbackWithClass1Param:]):
              (-[DOMTestCallback callbackWithClass2Param:strArg:]):
              (-[DOMTestCallback callbackWithNonBoolReturnType:]):
              (-[DOMTestCallback customCallback:class6Param:]):
              * bindings/scripts/test/ObjC/DOMTestInterface.mm:
              * bindings/scripts/test/ObjC/DOMTestObj.mm:
              (-[DOMTestObj readOnlyIntAttr]):
              (-[DOMTestObj readOnlyStringAttr]):
              (-[DOMTestObj readOnlyTestObjAttr]):
              (-[DOMTestObj intAttr]):
              (-[DOMTestObj setIntAttr:]):
              (-[DOMTestObj longLongAttr]):
              (-[DOMTestObj setLongLongAttr:]):
              (-[DOMTestObj unsignedLongLongAttr]):
              (-[DOMTestObj setUnsignedLongLongAttr:]):
              (-[DOMTestObj stringAttr]):
              (-[DOMTestObj setStringAttr:]):
              (-[DOMTestObj testObjAttr]):
              (-[DOMTestObj setTestObjAttr:]):
              (-[DOMTestObj attrWithException]):
              (-[DOMTestObj setAttrWithException:]):
              (-[DOMTestObj attrWithSetterException]):
              (-[DOMTestObj setAttrWithSetterException:]):
              (-[DOMTestObj attrWithGetterException]):
              (-[DOMTestObj setAttrWithGetterException:]):
              (-[DOMTestObj customAttr]):
              (-[DOMTestObj setCustomAttr:]):
              (-[DOMTestObj scriptStringAttr]):
              (-[DOMTestObj voidMethod]):
              (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj intMethod]):
              (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj objMethod]):
              (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
              (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
              (-[DOMTestObj serializedValue:]):
              (-[DOMTestObj methodWithException]):
              (-[DOMTestObj customMethod]):
              (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj customArgsAndException:]):
              (-[DOMTestObj addEventListener:listener:useCapture:]):
              (-[DOMTestObj removeEventListener:listener:useCapture:]):
              (-[DOMTestObj withDynamicFrame]):
              (-[DOMTestObj withDynamicFrameAndArg:]):
              (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
              (-[DOMTestObj withDynamicFrameAndUserGesture:]):
              (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
              (-[DOMTestObj withScriptStateVoid]):
              (-[DOMTestObj withScriptStateObj]):
              (-[DOMTestObj withScriptStateVoidException]):
              (-[DOMTestObj withScriptStateObjException]):
              (-[DOMTestObj methodWithOptionalArg:]):
              (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
              (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
              * bindings/v8/ScriptController.cpp:
              * bindings/v8/ScriptController.h:
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::isURLAllowed):
      2010-05-18  Yaar Schnitman  <yaar@chromium.org>
      
              Unreviewed, rolling out r59693.
              http://trac.webkit.org/changeset/59693
              https://bugs.webkit.org/show_bug.cgi?id=37815
      
              Broke GTK Release
      
              * http/tests/security/xss-DENIED-iframe-src-alias-expected.txt:
              * http/tests/security/xss-DENIED-iframe-src-alias.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59727 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ad35cae
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · 18d7f0ec
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement comment states for HTML5 lexer
              https://bugs.webkit.org/show_bug.cgi?id=39334
      
              * html/HTML5Lexer.cpp:
              (WebCore::HTML5Lexer::nextToken):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18d7f0ec
    • dpranke@chromium.org's avatar
      2010-05-18 Dirk Pranke <dpranke@chromium.org> · 81d805cb
      dpranke@chromium.org authored
              Reviewed by Ojan Vafai.
      
              new-run-webkit-tests: implement '--reset-results' flag to complement
              the '--new-baseline' flag. '--new-baseline' will always write the
              results into the platform directory; '--reset-results' will update the
              existing baseline wherever it happens to be. Both sets of behavior
              are useful in different circumstances.
      
              https://bugs.webkit.org/show_bug.cgi?id=38879
      
              * Scripts/webkitpy/layout_tests/data/image/canvas-bg.html: Added.
              * Scripts/webkitpy/layout_tests/data/image/canvas-zoom-expected.checksum: Added.
              * Scripts/webkitpy/layout_tests/data/image/canvas-zoom-expected.png: Added.
              * Scripts/webkitpy/layout_tests/data/image/canvas-zoom-expected.txt: Added.
              * Scripts/webkitpy/layout_tests/data/image/canvas-zoom.html: Added.
              * Scripts/webkitpy/layout_tests/data/misc/crash-expected.txt: Added.
              * Scripts/webkitpy/layout_tests/data/misc/crash.html: Added.
              * Scripts/webkitpy/layout_tests/data/misc/missing-expectation.html: Added.
              * Scripts/webkitpy/layout_tests/data/misc/passing-expected.txt: Added.
              * Scripts/webkitpy/layout_tests/data/misc/passing.html: Added.
              * Scripts/webkitpy/layout_tests/data/platform/test/image/canvas-bg-expected.checksum: Added.
              * Scripts/webkitpy/layout_tests/data/platform/test/image/canvas-bg-expected.png: Added.
              * Scripts/webkitpy/layout_tests/data/platform/test/image/canvas-bg-expected.txt: Added.
              * Scripts/webkitpy/layout_tests/data/platform/test/test_expectations.txt: Added.
              * Scripts/webkitpy/layout_tests/data/text/article-element-expected.txt: Added.
              * Scripts/webkitpy/layout_tests/data/text/article-element.html: Added.
              * Scripts/webkitpy/layout_tests/layout_package/test_expectations_unittest.py:
              * Scripts/webkitpy/layout_tests/port/test.py:
              * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
              * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py:
              * Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py:
              * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
              * Scripts/webkitpy/layout_tests/test_types/image_diff.py:
              * Scripts/webkitpy/layout_tests/test_types/test_type_base.py:
              * Scripts/webkitpy/layout_tests/test_types/text_diff.py:
              * Scripts/webkitpy/layout_tests/port/test.py:
              * Scripts/webkitpy/layout_tests/port/dryrun.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81d805cb
    • andersca@apple.com's avatar
      2010-05-18 Anders Carlsson <andersca@apple.com> · 7165ad62
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Move all member variables from MappedAttribute to Attribute.
              https://bugs.webkit.org/show_bug.cgi?id=39336
              <rdar://problem/8000853>
      
              This saves one word because we no longer have any virtual member functions in Attribute, and
              thus no vtable pointer.
              
              I plan to remove MappedAttribute altogether in a subsequent commit.
      
              * Android.mk:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::styleForElement):
              * dom/Attribute.cpp:
              (WebCore::Attribute::clone):
              * dom/Attribute.h:
              (WebCore::Attribute::create):
              (WebCore::Attribute::style):
              (WebCore::Attribute::decl):
              (WebCore::Attribute::setDecl):
              (WebCore::Attribute::isMappedAttribute):
              (WebCore::Attribute::Attribute):
              * dom/MappedAttribute.cpp: Removed.
              * dom/MappedAttribute.h:
              (WebCore::MappedAttribute::create):
              (WebCore::MappedAttribute::MappedAttribute):
              (WebCore::toMappedAttribute):
              * dom/NamedMappedAttrMap.cpp:
              (WebCore::NamedMappedAttrMap::declCount):
              (WebCore::NamedMappedAttrMap::mapsEquivalent):
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::attributeChanged):
              * svg/SVGSVGElement.cpp:
              (WebCore::updateCSSForAttribute):
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::getPresentationAttribute):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7165ad62
    • jamesr@google.com's avatar
      2010-05-18 James Robinson <jamesr@chromium.org> · 9b4d584e
      jamesr@google.com authored
              Unreviewed.
      
              Add leopard-specific pixel results for tests that need them
              https://bugs.webkit.org/show_bug.cgi?id=39325
      
              This adds new Leopard baselines for all tests that currently
              pass with tolerance=0 on Snow Leopard but fail on Leopard
              with an image diff of <= 0.01%.  These tests previously had
              expectations in platform/mac that were Snow Leopard specific.
      
              * platform/mac-leopard/compositing/color-matching: Added.
              * platform/mac-leopard/compositing/color-matching/pdf-image-match-expected.checksum: Added.
              * platform/mac-leopard/compositing/color-matching/pdf-image-match-expected.png: Added.
              * platform/mac-leopard/compositing/reflections: Added.
              * platform/mac-leopard/compositing/reflections/simple-composited-reflections-expected.checksum: Added.
              * platform/mac-leopard/compositing/reflections/simple-composited-reflections-expected.png: Added.
              * platform/mac-leopard/compositing/repaint/overflow-into-content-expected.checksum: Added.
              * platform/mac-leopard/compositing/repaint/overflow-into-content-expected.png: Added.
              * platform/mac-leopard/editing/pasteboard: Added.
              * platform/mac-leopard/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.checksum: Added.
              * platform/mac-leopard/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.png: Added.
              * platform/mac-leopard/fast/css: Added.
              * platform/mac-leopard/fast/css/pseudo-cache-stale-expected.checksum: Added.
              * platform/mac-leopard/fast/css/pseudo-cache-stale-expected.png: Added.
              * platform/mac-leopard/fast/frames: Added.
              * platform/mac-leopard/fast/frames/take-focus-from-iframe-expected.checksum: Added.
              * platform/mac-leopard/fast/frames/take-focus-from-iframe-expected.png: Added.
              * platform/mac-leopard/fast/repaint: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-move-after-scroll-expected.checksum: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-move-after-scroll-expected.png: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-of-fixed-move-after-scroll-expected.checksum: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-of-fixed-move-after-scroll-expected.png: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-of-transformed-move-after-scroll-expected.checksum: Added.
              * platform/mac-leopard/fast/repaint/fixed-child-of-transformed-move-after-scroll-expected.png: Added.
              * platform/mac-leopard/fast/repaint/fixed-move-after-scroll-expected.checksum: Added.
              * platform/mac-leopard/fast/repaint/fixed-move-after-scroll-expected.png: Added.
              * platform/mac-leopard/fast/text/format-control-expected.checksum: Added.
              * platform/mac-leopard/fast/text/format-control-expected.png: Added.
              * platform/mac-leopard/plugins: Added.
              * platform/mac-leopard/plugins/qt-qwidget-plugin-expected.checksum: Added.
              * platform/mac-leopard/plugins/qt-qwidget-plugin-expected.png: Added.
              * platform/mac-leopard/transforms/svg-vs-css-expected.checksum: Added.
              * platform/mac-leopard/transforms/svg-vs-css-expected.png: Added.
              * platform/mac-leopard/transitions: Added.
              * platform/mac-leopard/transitions/move-after-transition-expected.checksum: Added.
              * platform/mac-leopard/transitions/move-after-transition-expected.png: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b4d584e
    • tony@chromium.org's avatar
      2010-05-18 Tony Chang <tony@chromium.org> · 22edb9b1
      tony@chromium.org authored
              Reviewed by Darin Adler.
      
              https://bugs.webkit.org/show_bug.cgi?id=24943
              Command-B and Command-I do not generate keydown events in contentEditable regions.
      
              * manual-tests/style-keypress-events.html: Added.
      2010-05-18  Tony Chang  <tony@chromium.org>
      
              Reviewed by Darin Adler.
      
              https://bugs.webkit.org/show_bug.cgi?id=24943
              Command-B and Command-I do not generate keydown events in contentEditable regions.
      
              Manual test because performKeyEquivalent is not called by DRT.
      
              Test: manual-tests/style-keypress-events.html
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView performKeyEquivalent:]): Move style key handling until after webcore gets a chance to handle the event
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22edb9b1
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · 9a065102
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add more state to the HTML5 lexer
              https://bugs.webkit.org/show_bug.cgi?id=39333
      
              This code is just transliteration from the spec.
      
              * html/HTML5Lexer.cpp:
              (WebCore::HTML5Lexer::HTML5Lexer):
              (WebCore::HTML5Lexer::nextToken):
              * html/HTML5Lexer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a065102
    • abarth@webkit.org's avatar
      2010-05-18 Adam Barth <abarth@webkit.org> · 5f4d0ebe
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement two more lexer states
              https://bugs.webkit.org/show_bug.cgi?id=39298
      
              No tests because Eric is still working on wiring up the lexer to the
              test harness.
      
              * html/HTML5Lexer.cpp:
              (WebCore::HTML5Lexer::nextToken):
              (WebCore::HTML5Lexer::emitParseError):
              (WebCore::HTML5Lexer::emitCurrentTagToken):
              * html/HTML5Lexer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f4d0ebe
    • beidson@apple.com's avatar
      Repro crash with many Google image search results · 34f94513
      beidson@apple.com authored
      <rdar://problem/7685669> and https://bugs.webkit.org/show_bug.cgi?id=39323
      
      Reviewed by Maciej Stachowiak.
      
      WebCore: 
      
      When an iframe has a plugin resource as its src, that case bypassed the plugin sandboxing checks and continued to load
      the data for the plugin resource. It handed that data off to a nonexistent Widget, causing a null deref and the crash.
      
      By replacing PluginDocuments in sandboxes iframes with a new "SinkDocument" that just acts as a data sink, we prevent the
      crash and also prevent actually loading the plugin binaries.
      
      I filed https://bugs.webkit.org/show_bug.cgi?id=39330 to follow up and let us cancel the load as soon as we know we should.
      
      Test: fast/loader/sandboxed-plugin-crash.html
      
      * CMakeLists.txt:
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::begin): If the created document is a PluginDocument and the plugin sandbox flag is set,
        replace it with a SinkDocument.
      
      * loader/PluginDocument.h:
      (WebCore::PluginDocument::isPluginDocument): Make public (it was already public at the Document.h level).
      
      Add a simple document/tokenizer pair that simply presents a blank HTML document and acts as a data sink for whatever
      data is handed to it:
      * loader/SinkDocument.cpp: Added.
      (WebCore::SinkTokenizer::SinkTokenizer):
      (WebCore::SinkTokenizer::write):
      (WebCore::SinkTokenizer::isWaitingForScripts):
      (WebCore::SinkTokenizer::wantsRawData):
      (WebCore::SinkTokenizer::writeRawData):
      (WebCore::SinkTokenizer::stopParsing):
      (WebCore::SinkTokenizer::finish):
      (WebCore::SinkDocument::SinkDocument):
      (WebCore::SinkDocument::createTokenizer):
      * loader/SinkDocument.h: Added.
      (WebCore::SinkDocument::create):
      
      LayoutTests: 
      
      * fast/loader/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
      * fast/loader/sandboxed-plugin-crash-expected.txt: Added.
      * fast/loader/sandboxed-plugin-crash.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34f94513
    • mrobinson@webkit.org's avatar
      2010-05-18 Martin Robinson <mrobinson@igalia.com> · d2ae40ad
      mrobinson@webkit.org authored
              No review necessary.
      
              [GTK] fast/dom/Geolocation/enabled.html is crashing on the bots
              https://bugs.webkit.org/show_bug.cgi?id=39326
      
              * platform/gtk/Skipped: Skip the crashing tests.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2ae40ad
    • laszlo.1.gombos@nokia.com's avatar
      2010-05-18 Laszlo Gombos <laszlo.1.gombos@nokia.com> · 60bcd84b
      laszlo.1.gombos@nokia.com authored
              Symbian build fix.
      
              [Qt] Updated the def file with new exports after r59335.
      
              * symbian/eabi/QtWebKitu.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59717 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60bcd84b
    • weinig@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=39321 · 69301187
      weinig@apple.com authored
      Reduce the size of ListHashSets used by Document
      <rdar://problem/7999388>
      
      Reviewed by Anders Carlsson.
      
      Reduce Membuster peak memory usage by ~450K by reducing the pool sizes
      of the ListHashSets used by Document.
      
      * dom/Document.cpp:
      (WebCore::Document::addStyleSheetCandidateNode):
      (WebCore::Document::recalcStyleSelector):
      * dom/Document.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69301187
    • jianli@chromium.org's avatar
      Updated WebCore/Change to correct the bug link. · 6277e24c
      jianli@chromium.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6277e24c
    • mrobinson@webkit.org's avatar
      2010-05-18 Martin Robinson <mrobinson@igalia.com> · 8ee7b23b
      mrobinson@webkit.org authored
              Reviewed by Xan Lopez.
      
              [GTK] DragClientGtk::startDrag leaks GdkEvents
              https://bugs.webkit.org/show_bug.cgi?id=39322
      
              * WebCoreSupport/DragClientGtk.cpp:
              (WebKit::DragClient::startDrag): Properly clean up allocated GdkEvent.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ee7b23b
    • kenneth@webkit.org's avatar
      Return null when creating an ImageBuffer failed, due to for · 6f80f987
      kenneth@webkit.org authored
      instance a nulled pixmap.
      
      Rubberstamped by Simon Hausmann.
      
      * platform/graphics/qt/ImageBufferQt.cpp:
      (WebCore::ImageBufferData::ImageBufferData):
      (WebCore::ImageBuffer::ImageBuffer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f80f987
    • jianli@chromium.org's avatar
      Fix bug 39285: fast/files/file-reader.html is timing out on all mac bots. · f739487c
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=39135
      
      Reviewed by Dmitry Titov.
      
      WebCore:
      
      The timeout is caused by 59659 that changed the GC timer to 0 and thus
      triggered a bug in FileReader code. The fix is to add more states so
      that hasPendingActivity() can do the check correctly.
      
      * html/FileReader.cpp:
      (WebCore::FileReader::FileReader):
      (WebCore::FileReader::hasPendingActivity):
      (WebCore::FileReader::readInternal):
      (WebCore::FileReader::terminate):
      (WebCore::FileReader::didStart):
      (WebCore::FileReader::didGetSize):
      (WebCore::FileReader::didRead):
      (WebCore::FileReader::didFinish):
      (WebCore::FileReader::didFail):
      (WebCore::FileReader::readyState):
      (WebCore::FileReader::result):
      * html/FileReader.h:
      (WebCore::FileReader::):
      
      LayoutTests:
      
      Re-enale the file reader test.
      
      * fast/files/file-reader-expected.txt:
      * fast/files/file-reader.html:
      * platform/mac/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f739487c
    • simon.fraser@apple.com's avatar
      2010-05-18 Simon Fraser <simon.fraser@apple.com> · ac6d19e1
      simon.fraser@apple.com authored
              Reviewed by Darin Adler.
      
              Clean up GraphicsLayer naming code
              https://bugs.webkit.org/show_bug.cgi?id=39316
      
              Move code that generates a name for the GraphicsLayer (used in debug builds only) into
              a new nameForLayer() method. Use it when naming the foreground layer.
      
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::createGraphicsLayer):
              (WebCore::RenderLayerBacking::updateForegroundLayer):
              (WebCore::RenderLayerBacking::nameForLayer):
              * rendering/RenderLayerBacking.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac6d19e1
    • yaar@chromium.org's avatar
      2010-05-18 Justin Schuh <jschuh@chromium.org> · dd98f030
      yaar@chromium.org authored
              Reviewed by Adam Barth.
      
              Moving frame.src checks out of the bindings
              https://bugs.webkit.org/show_bug.cgi?id=37815
      
              Moved JavaScript frame.src checks out of bindings and into
              HTMLFrameElementBase. Added main thread state stack to JavaScriptCore
              so ExecState is available inside core DOM. Updated affected bindings
              (except for GObject, which will need to be updated to avoid origin
              failures inside native code).
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSCallbackData.cpp:
              (WebCore::JSCallbackData::invokeCallback):
              * bindings/js/JSEventListener.cpp:
              (WebCore::JSEventListener::handleEvent):
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::InjectedScriptHost::createInjectedScript):
              * bindings/js/JSMainThreadExecState.cpp: Added.
              * bindings/js/JSMainThreadExecState.h: Added.
              (WebCore::JSMainThreadExecState::currentState):
              (WebCore::JSMainThreadExecState::call):
              (WebCore::JSMainThreadExecState::evaluate):
              (WebCore::JSMainThreadExecState::JSMainThreadExecState):
              (WebCore::JSMainThreadExecState::~JSMainThreadExecState):
              (WebCore::JSMainThreadNullState::JSMainThreadNullState):
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::executeFunctionInContext):
              (WebCore::ScheduledAction::execute):
              * bindings/js/ScheduledAction.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluateInWorld):
              (WebCore::ScriptController::canAccessFromCurrentOrigin):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptFunctionCall.cpp:
              (WebCore::ScriptFunctionCall::call):
              * bindings/objc/ObjCEventListener.mm:
              * bindings/objc/WebScriptObject.mm:
              (-[WebScriptObject callWebScriptMethod:withArguments:]):
              (-[WebScriptObject evaluateWebScript:]):
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bindings/scripts/test/ObjC/DOMTestCallback.mm:
              (-[DOMTestCallback callbackWithClass1Param:]):
              (-[DOMTestCallback callbackWithClass2Param:strArg:]):
              (-[DOMTestCallback callbackWithNonBoolReturnType:]):
              (-[DOMTestCallback customCallback:class6Param:]):
              * bindings/scripts/test/ObjC/DOMTestInterface.mm:
              * bindings/scripts/test/ObjC/DOMTestObj.mm:
              (-[DOMTestObj readOnlyIntAttr]):
              (-[DOMTestObj readOnlyStringAttr]):
              (-[DOMTestObj readOnlyTestObjAttr]):
              (-[DOMTestObj intAttr]):
              (-[DOMTestObj setIntAttr:]):
              (-[DOMTestObj longLongAttr]):
              (-[DOMTestObj setLongLongAttr:]):
              (-[DOMTestObj unsignedLongLongAttr]):
              (-[DOMTestObj setUnsignedLongLongAttr:]):
              (-[DOMTestObj stringAttr]):
              (-[DOMTestObj setStringAttr:]):
              (-[DOMTestObj testObjAttr]):
              (-[DOMTestObj setTestObjAttr:]):
              (-[DOMTestObj attrWithException]):
              (-[DOMTestObj setAttrWithException:]):
              (-[DOMTestObj attrWithSetterException]):
              (-[DOMTestObj setAttrWithSetterException:]):
              (-[DOMTestObj attrWithGetterException]):
              (-[DOMTestObj setAttrWithGetterException:]):
              (-[DOMTestObj customAttr]):
              (-[DOMTestObj setCustomAttr:]):
              (-[DOMTestObj scriptStringAttr]):
              (-[DOMTestObj voidMethod]):
              (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj intMethod]):
              (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj objMethod]):
              (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
              (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
              (-[DOMTestObj serializedValue:]):
              (-[DOMTestObj methodWithException]):
              (-[DOMTestObj customMethod]):
              (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
              (-[DOMTestObj customArgsAndException:]):
              (-[DOMTestObj addEventListener:listener:useCapture:]):
              (-[DOMTestObj removeEventListener:listener:useCapture:]):
              (-[DOMTestObj withDynamicFrame]):
              (-[DOMTestObj withDynamicFrameAndArg:]):
              (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
              (-[DOMTestObj withDynamicFrameAndUserGesture:]):
              (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
              (-[DOMTestObj withScriptStateVoid]):
              (-[DOMTestObj withScriptStateObj]):
              (-[DOMTestObj withScriptStateVoidException]):
              (-[DOMTestObj withScriptStateObjException]):
              (-[DOMTestObj methodWithOptionalArg:]):
              (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
              (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::canAccessFromCurrentOrigin):
              * bindings/v8/ScriptController.h:
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::isURLAllowed):
      2010-05-18  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Adam Barth.
      
              Moving frame.src checks out of the bindings
              https://bugs.webkit.org/show_bug.cgi?id=37815
      
              * http/tests/security/xss-DENIED-iframe-src-alias-expected.txt:
              * http/tests/security/xss-DENIED-iframe-src-alias.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd98f030
    • atwilson@chromium.org's avatar
      Unreviewed: Speculative build fix for Chromium win. · 73a3a017
      atwilson@chromium.org authored
      * platform/graphics/skia/SkiaFontWin.cpp: Properly set inlineCapacity.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73a3a017