WebKit-https.git
8 years agoPartially revert 104427, change WebWidgetClient::didHandleGestureEvent semantics.
commit-queue@webkit.org [Wed, 23 Jan 2013 22:31:21 +0000 (22:31 +0000)]
Partially revert 104427, change WebWidgetClient::didHandleGestureEvent semantics.
https://bugs.webkit.org/show_bug.cgi?id=107605

Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-01-23
Reviewed by Darin Fisher.

Per discussion in https://codereview.chromium.org/11473027/ we decided
not to introduce an enum to WebWidgetClient::didHandleGestureEvent().
Instead, change the semantics of the bool flag to indicate whether the
gesture event is cancelled for disambiguation.

* public/WebWidgetClient.h:
(WebKit::WebWidgetClient::didHandleGestureEvent):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):
* tests/WebViewTest.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140596 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAvoid unnecessary format conversion for tex{Sub}Image2D() for ImageData of WebGL
commit-queue@webkit.org [Wed, 23 Jan 2013 22:26:38 +0000 (22:26 +0000)]
Avoid unnecessary format conversion for tex{Sub}Image2D() for ImageData of WebGL
https://bugs.webkit.org/show_bug.cgi?id=107532

Patch by Jun Jiang <jun.a.jiang@intel.com> on 2013-01-23
Reviewed by Kenneth Russell.

This patch removes the unnecessary format conversion in tex{Sub}Image2D() for ImageData in WebGL to improve performance.

Already covered by current tests.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore):
(WebCore::WebGLRenderingContext::texImage2D):
(WebCore::WebGLRenderingContext::texSubImage2D):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140595 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoReplace ASSERT_NOT_REACHED with RELEASE_ASSERT_NOT_REACHED in JSC
oliver@apple.com [Wed, 23 Jan 2013 22:25:07 +0000 (22:25 +0000)]
Replace ASSERT_NOT_REACHED with RELEASE_ASSERT_NOT_REACHED in JSC
https://bugs.webkit.org/show_bug.cgi?id=107736

Reviewed by Mark Hahnenberg.

Mechanical change with no performance impact.

* API/JSBlockAdaptor.mm:
(BlockArgumentTypeDelegate::typeVoid):
* API/JSCallbackObjectFunctions.h:
(JSC::::construct):
(JSC::::call):
* API/JSScriptRef.cpp:
* API/ObjCCallbackFunction.mm:
(ArgumentTypeDelegate::typeVoid):
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::link):
(JSC::ARMv7Assembler::replaceWithLoad):
(JSC::ARMv7Assembler::replaceWithAddressComputation):
* assembler/MacroAssembler.h:
(JSC::MacroAssembler::invert):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::countLeadingZeros32):
(JSC::MacroAssemblerARM::divDouble):
* assembler/MacroAssemblerMIPS.h:
(JSC::MacroAssemblerMIPS::absDouble):
(JSC::MacroAssemblerMIPS::replaceWithJump):
(JSC::MacroAssemblerMIPS::maxJumpReplacementSize):
* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::absDouble):
(JSC::MacroAssemblerSH4::replaceWithJump):
(JSC::MacroAssemblerSH4::maxJumpReplacementSize):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::shllImm8r):
(JSC::SH4Assembler::shlrImm8r):
(JSC::SH4Assembler::cmplRegReg):
(JSC::SH4Assembler::branch):
* assembler/X86Assembler.h:
(JSC::X86Assembler::replaceWithLoad):
(JSC::X86Assembler::replaceWithAddressComputation):
* bytecode/CallLinkInfo.cpp:
(JSC::CallLinkInfo::unlink):
* bytecode/CodeBlock.cpp:
(JSC::debugHookName):
(JSC::CodeBlock::printGetByIdOp):
(JSC::CodeBlock::printGetByIdCacheStatus):
(JSC::CodeBlock::visitAggregate):
(JSC::CodeBlock::finalizeUnconditionally):
(JSC::CodeBlock::usesOpcode):
* bytecode/DataFormat.h:
(JSC::needDataFormatConversion):
* bytecode/ExitKind.cpp:
(JSC::exitKindToString):
(JSC::exitKindIsCountable):
* bytecode/MethodOfGettingAValueProfile.cpp:
(JSC::MethodOfGettingAValueProfile::getSpecFailBucket):
* bytecode/Opcode.h:
(JSC::opcodeLength):
* bytecode/PolymorphicPutByIdList.cpp:
(JSC::PutByIdAccess::fromStructureStubInfo):
(JSC::PutByIdAccess::visitWeak):
* bytecode/StructureStubInfo.cpp:
(JSC::StructureStubInfo::deref):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::ResolveResult::checkValidity):
(JSC::BytecodeGenerator::emitGetLocalVar):
(JSC::BytecodeGenerator::beginSwitch):
* bytecompiler/NodesCodegen.cpp:
(JSC::BinaryOpNode::emitBytecode):
(JSC::emitReadModifyAssignment):
* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::execute):
(JSC::DFG::AbstractState::mergeStateAtTail):
(JSC::DFG::AbstractState::mergeToSuccessors):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::makeSafe):
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGCFGSimplificationPhase.cpp:
(JSC::DFG::CFGSimplificationPhase::fixPossibleGetLocal):
(JSC::DFG::CFGSimplificationPhase::fixTailOperand):
* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::setLocalStoreElimination):
* dfg/DFGCapabilities.cpp:
(JSC::DFG::canHandleOpcodes):
* dfg/DFGCommon.h:
(JSC::DFG::useKindToString):
* dfg/DFGDoubleFormatState.h:
(JSC::DFG::mergeDoubleFormatStates):
(JSC::DFG::doubleFormatStateToString):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::blessArrayOperation):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::clobbersWorld):
* dfg/DFGNode.h:
(JSC::DFG::Node::valueOfJSConstant):
(JSC::DFG::Node::successor):
* dfg/DFGNodeFlags.cpp:
(JSC::DFG::nodeFlagsAsString):
* dfg/DFGNodeType.h:
(JSC::DFG::defaultFlags):
* dfg/DFGRepatch.h:
(JSC::DFG::dfgResetGetByID):
(JSC::DFG::dfgResetPutByID):
* dfg/DFGSlowPathGenerator.h:
(JSC::DFG::SlowPathGenerator::call):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::silentSavePlanForGPR):
(JSC::DFG::SpeculativeJIT::silentSpill):
(JSC::DFG::SpeculativeJIT::silentFill):
(JSC::DFG::SpeculativeJIT::checkArray):
(JSC::DFG::SpeculativeJIT::checkGeneratedTypeForToInt32):
(JSC::DFG::SpeculativeJIT::compileValueToInt32):
(JSC::DFG::SpeculativeJIT::compileGetByValOnFloatTypedArray):
(JSC::DFG::SpeculativeJIT::compilePutByValForFloatTypedArray):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::bitOp):
(JSC::DFG::SpeculativeJIT::shiftOp):
(JSC::DFG::SpeculativeJIT::integerResult):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGStructureCheckHoistingPhase.cpp:
(JSC::DFG::StructureCheckHoistingPhase::run):
* dfg/DFGValueSource.h:
(JSC::DFG::ValueSource::valueRecovery):
* dfg/DFGVariableEvent.cpp:
(JSC::DFG::VariableEvent::dump):
* dfg/DFGVariableEventStream.cpp:
(JSC::DFG::VariableEventStream::reconstruct):
* heap/BlockAllocator.h:
(JSC::BlockAllocator::regionSetFor):
* heap/GCThread.cpp:
(JSC::GCThread::gcThreadMain):
* heap/MarkedBlock.cpp:
(JSC::MarkedBlock::sweepHelper):
* heap/MarkedBlock.h:
(JSC::MarkedBlock::isLive):
* interpreter/CallFrame.h:
(JSC::ExecState::inlineCallFrame):
* interpreter/Interpreter.cpp:
(JSC::getCallerInfo):
(JSC::getStackFrameCodeType):
(JSC::Interpreter::execute):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolExecutableAllocator::notifyPageIsFree):
* jit/JIT.cpp:
(JSC::JIT::privateCompileMainPass):
(JSC::JIT::privateCompileSlowCases):
(JSC::JIT::privateCompile):
* jit/JITArithmetic.cpp:
(JSC::JIT::emitSlow_op_mod):
* jit/JITArithmetic32_64.cpp:
(JSC::JIT::emitBinaryDoubleOp):
(JSC::JIT::emitSlow_op_mod):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::isDirectPutById):
* jit/JITStubs.cpp:
(JSC::getPolymorphicAccessStructureListSlot):
(JSC::DEFINE_STUB_FUNCTION):
* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::jitCompileAndSetHeuristics):
* parser/Lexer.cpp:
(JSC::::lex):
* parser/Nodes.h:
(JSC::ExpressionNode::emitBytecodeInConditionContext):
* parser/Parser.h:
(JSC::Parser::getTokenName):
(JSC::Parser::updateErrorMessageSpecialCase):
* parser/SyntaxChecker.h:
(JSC::SyntaxChecker::operatorStackPop):
* runtime/Arguments.cpp:
(JSC::Arguments::tearOffForInlineCallFrame):
* runtime/DatePrototype.cpp:
(JSC::formatLocaleDate):
* runtime/Executable.cpp:
(JSC::samplingDescription):
* runtime/Executable.h:
(JSC::ScriptExecutable::unlinkCalls):
* runtime/Identifier.cpp:
(JSC):
* runtime/InternalFunction.cpp:
(JSC::InternalFunction::getCallData):
* runtime/JSArray.cpp:
(JSC::JSArray::push):
(JSC::JSArray::sort):
* runtime/JSCell.cpp:
(JSC::JSCell::defaultValue):
(JSC::JSCell::getOwnPropertyNames):
(JSC::JSCell::getOwnNonIndexPropertyNames):
(JSC::JSCell::className):
(JSC::JSCell::getPropertyNames):
(JSC::JSCell::customHasInstance):
(JSC::JSCell::putDirectVirtual):
(JSC::JSCell::defineOwnProperty):
(JSC::JSCell::getOwnPropertyDescriptor):
* runtime/JSCell.h:
(JSCell):
* runtime/JSNameScope.cpp:
(JSC::JSNameScope::put):
* runtime/JSObject.cpp:
(JSC::JSObject::getOwnPropertySlotByIndex):
(JSC::JSObject::putByIndex):
(JSC::JSObject::ensureArrayStorageSlow):
(JSC::JSObject::deletePropertyByIndex):
(JSC::JSObject::getOwnPropertyNames):
(JSC::JSObject::putByIndexBeyondVectorLength):
(JSC::JSObject::putDirectIndexBeyondVectorLength):
(JSC::JSObject::getOwnPropertyDescriptor):
* runtime/JSObject.h:
(JSC::JSObject::canGetIndexQuickly):
(JSC::JSObject::getIndexQuickly):
(JSC::JSObject::tryGetIndexQuickly):
(JSC::JSObject::canSetIndexQuickly):
(JSC::JSObject::canSetIndexQuicklyForPutDirect):
(JSC::JSObject::setIndexQuickly):
(JSC::JSObject::initializeIndex):
(JSC::JSObject::hasSparseMap):
(JSC::JSObject::inSparseIndexingMode):
* runtime/JSScope.cpp:
(JSC::JSScope::isDynamicScope):
* runtime/JSSymbolTableObject.cpp:
(JSC::JSSymbolTableObject::putDirectVirtual):
* runtime/JSSymbolTableObject.h:
(JSSymbolTableObject):
* runtime/LiteralParser.cpp:
(JSC::::parse):
* runtime/RegExp.cpp:
(JSC::RegExp::compile):
(JSC::RegExp::compileMatchOnly):
* runtime/StructureTransitionTable.h:
(JSC::newIndexingType):
* tools/CodeProfile.cpp:
(JSC::CodeProfile::sample):
* yarr/YarrCanonicalizeUCS2.h:
(JSC::Yarr::getCanonicalPair):
(JSC::Yarr::areCanonicallyEquivalent):
* yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::matchCharacterClass):
(JSC::Yarr::Interpreter::matchBackReference):
(JSC::Yarr::Interpreter::backtrackParenthesesTerminalEnd):
(JSC::Yarr::Interpreter::matchParentheses):
(JSC::Yarr::Interpreter::backtrackParentheses):
(JSC::Yarr::Interpreter::matchDisjunction):
* yarr/YarrJIT.cpp:
(JSC::Yarr::YarrGenerator::generateTerm):
(JSC::Yarr::YarrGenerator::backtrackTerm):
* yarr/YarrParser.h:
(JSC::Yarr::Parser::CharacterClassParserDelegate::assertionWordBoundary):
(JSC::Yarr::Parser::CharacterClassParserDelegate::atomBackReference):
* yarr/YarrPattern.cpp:
(JSC::Yarr::YarrPatternConstructor::atomCharacterClassBuiltIn):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140594 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoShould update compositing state when an out-of-view fixed position element becomes...
wangxianzhu@chromium.org [Wed, 23 Jan 2013 22:24:49 +0000 (22:24 +0000)]
Should update compositing state when an out-of-view fixed position element becomes in-view
https://bugs.webkit.org/show_bug.cgi?id=107410

Reviewed by Simon Fraser.

Source/WebCore:

When a non-compositing page contains some not-composited fixed position element because of bounds out-of-view, when the element changes position and RenderLayerCompositor::updateCompositingLayers() is called, the function may return early because of "if (!m_reevaluateCompositingAfterLayout && !m_compositing)" without updating the compositing layers.

Set m_reevaluateCompositingAfterLayout when a fixed position element is not composited because of bounds out-of-view.

Test: compositing/layer-creation/fixed-position-change-out-of-view-in-view.html

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::requiresCompositingForPosition):

LayoutTests:

Tests if compositing status is properly updated when fixed position elements change from out-of-view to in-view and back.

* compositing/layer-creation/fixed-position-change-out-of-view-in-view-expected.txt: Added.
* compositing/layer-creation/fixed-position-change-out-of-view-in-view.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140593 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Build fix.
ap@apple.com [Wed, 23 Jan 2013 22:18:59 +0000 (22:18 +0000)]
    Build fix.

        * Platform/CoreIPC/Connection.cpp: (CoreIPC::Connection::sendSyncMessage):
        Copy/paste trouble fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140591 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed, set svn:eol-style to CRLF on Windows .sln files.
tony@chromium.org [Wed, 23 Jan 2013 22:17:36 +0000 (22:17 +0000)]
Unreviewed, set svn:eol-style to CRLF on Windows .sln files.

Source/JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore.sln: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCoreSubmit.sln: Modified property svn:eol-style.

Source/ThirdParty:

* gtest/msvc/gtest-md.sln: Added property svn:eol-style.
* gtest/msvc/gtest.sln: Added property svn:eol-style.

Source/WebCore:

* WebCore.vcproj/WebCore.sln: Modified property svn:eol-style.
* WebCore.vcproj/WebCore.submit.sln: Modified property svn:eol-style.

Source/WebKit:

* WebKit.vcxproj/WebKit.sln: Added property svn:eol-style.

Source/WebKit/win:

* WebKit.vcproj/WebKit.sln: Modified property svn:eol-style.
* WebKit.vcproj/WebKit.submit.sln: Modified property svn:eol-style.

Source/WTF:

* WTF.vcproj/WTF.sln: Added property svn:eol-style.

Tools:

* CLWrapper/CLWrapper.sln: Modified property svn:eol-style.
* DumpRenderTree/DumpRenderTree.sln: Modified property svn:eol-style.
* MIDLWrapper/MIDLWrapper.sln: Modified property svn:eol-style.
* WebKitTestRunner/WebKitTestRunner.sln: Modified property svn:eol-style.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140590 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoBackgroundHTMLParser::sendTokensToMainThread should use bind
abarth@webkit.org [Wed, 23 Jan 2013 22:15:54 +0000 (22:15 +0000)]
BackgroundHTMLParser::sendTokensToMainThread should use bind
https://bugs.webkit.org/show_bug.cgi?id=107637

Reviewed by Eric Seidel.

Source/WebCore:

This patch replaces our hand-written implementation of bind for
didReceiveTokensFromBackgroundParser with bind from Functional.h. To
use the generic version of bind, we need to switch to using WeakPtr to
hold a reference to the main thread parser in the BackgroundHTMLParser.

* html/parser/BackgroundHTMLParser.cpp:
(WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
(WebCore::BackgroundHTMLParser::sendTokensToMainThread):
(WebCore::BackgroundHTMLParser::createPartial):
* html/parser/BackgroundHTMLParser.h:
(WebCore::BackgroundHTMLParser::create):
(BackgroundHTMLParser):
(ParserMap):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::HTMLDocumentParser):
(WebCore::HTMLDocumentParser::startBackgroundParser):
(WebCore::HTMLDocumentParser::stopBackgroundParser):
* html/parser/HTMLDocumentParser.h:
(HTMLDocumentParser):

Source/WTF:

* wtf/Functional.h:
    - I had to re-work the approach to validating WeakPtr |this|
      arguments a bit. Previously you couldn't pass a WeakPtr as a
      non-|this| argument to a function because we would try to unwrap
      it into a raw pointer.
* wtf/WeakPtr.h:
(WTF::WeakPtrFactory::revokeAll):
(WeakPtrFactory):
    - Let clients revoke all outstanding WeakPtrs without needing to
      destroy the WeakPtrFactory.
* wtf/chromium/MainThreadChromium.cpp:
(WTF::callFunctionObject):
(WTF::callOnMainThread):
    - Implement callOnMainThread for Function objects. The non-Chromium
      implementation of MainThread.cpp already implements this feature.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140589 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed. Cleanup VS2010 WebCore project.
roger_fong@apple.com [Wed, 23 Jan 2013 22:14:47 +0000 (22:14 +0000)]
Unreviewed. Cleanup VS2010 WebCore project.
Lots of files that no longer exist in solution.

* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140588 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Remove WebArrayBufferView and WebSerializedScriptValue from chromium/publi...
pilgrim@chromium.org [Wed, 23 Jan 2013 21:56:20 +0000 (21:56 +0000)]
[Chromium] Remove WebArrayBufferView and WebSerializedScriptValue from chromium/public/platform/
https://bugs.webkit.org/show_bug.cgi?id=107720

Reviewed by Darin Fisher.

These headers have been moved to chromium/public/ and all
references downstream were changed in
https://codereview.chromium.org/11946050/.
No DEPS roll necessary because it's already above 177695.

* WebKit.gyp:
* public/platform/WebArrayBufferView.h: Removed.
* public/platform/WebSerializedScriptValue.h: Removed.
* src/DeliveredIntentClientImpl.cpp:
* src/IDBCallbacksProxy.cpp:
* src/IDBCursorBackendProxy.cpp:
* src/WebArrayBufferView.cpp:
* src/WebBindings.cpp:
* src/WebDOMCustomEvent.cpp:
* src/WebDOMMessageEvent.cpp:
* src/WebFrameImpl.cpp:
* src/WebHistoryItem.cpp:
* src/WebIDBCallbacksImpl.cpp:
* src/WebIntent.cpp:
* src/WebIntentRequest.cpp:
* src/WebSerializedScriptValue.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140586 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoLayout Test platform/chromium-win/fast/events/panScroll-panIcon.html is failing
arv@chromium.org [Wed, 23 Jan 2013 21:55:54 +0000 (21:55 +0000)]
Layout Test platform/chromium-win/fast/events/panScroll-panIcon.html is failing
https://bugs.webkit.org/show_bug.cgi?id=107729

Unreviewed gardening.

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140585 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoReplace numerous manual CRASH's in JSC with RELEASE_ASSERT
oliver@apple.com [Wed, 23 Jan 2013 21:44:29 +0000 (21:44 +0000)]
Replace numerous manual CRASH's in JSC with RELEASE_ASSERT
https://bugs.webkit.org/show_bug.cgi?id=107726

Reviewed by Filip Pizlo.

Fairly manual change from if (foo) CRASH(); to RELEASE_ASSERT(!foo);

* assembler/MacroAssembler.h:
(JSC::MacroAssembler::branchAdd32):
(JSC::MacroAssembler::branchMul32):
* bytecode/CodeBlockHash.cpp:
(JSC::CodeBlockHash::CodeBlockHash):
* heap/BlockAllocator.h:
(JSC::Region::create):
(JSC::Region::createCustomSize):
* heap/GCAssertions.h:
* heap/HandleSet.cpp:
(JSC::HandleSet::visitStrongHandles):
(JSC::HandleSet::writeBarrier):
* heap/HandleSet.h:
(JSC::HandleSet::allocate):
* heap/Heap.cpp:
(JSC::Heap::collect):
* heap/SlotVisitor.cpp:
(JSC::SlotVisitor::validate):
* interpreter/Interpreter.cpp:
(JSC::Interpreter::execute):
* jit/ExecutableAllocator.cpp:
(JSC::DemandExecutableAllocator::allocateNewSpace):
(JSC::ExecutableAllocator::allocate):
* jit/ExecutableAllocator.h:
(JSC::roundUpAllocationSize):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolExecutableAllocator::FixedVMPoolExecutableAllocator):
(JSC::ExecutableAllocator::allocate):
* runtime/ButterflyInlines.h:
(JSC::Butterfly::createUninitialized):
* runtime/Completion.cpp:
(JSC::evaluate):
* runtime/JSArray.h:
(JSC::constructArray):
* runtime/JSGlobalObject.cpp:
(JSC::slowValidateCell):
* runtime/JSObject.cpp:
(JSC::JSObject::enterDictionaryIndexingModeWhenArrayStorageAlreadyExists):
(JSC::JSObject::createArrayStorage):
* tools/TieredMMapArray.h:
(JSC::TieredMMapArray::append):
* yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::allocDisjunctionContext):
(JSC::Yarr::Interpreter::allocParenthesesDisjunctionContext):
(JSC::Yarr::Interpreter::InputStream::readChecked):
(JSC::Yarr::Interpreter::InputStream::uncheckInput):
(JSC::Yarr::Interpreter::InputStream::atEnd):
(JSC::Yarr::Interpreter::interpret):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140584 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[CSS Grid Layout] Add support for max-content
jchaffraix@webkit.org [Wed, 23 Jan 2013 21:36:53 +0000 (21:36 +0000)]
[CSS Grid Layout] Add support for max-content
https://bugs.webkit.org/show_bug.cgi?id=107604

Reviewed by Tony Chang.

Source/WebCore:

Tests: fast/css-grid-layout/minmax-max-content-resolution-columns.html
       fast/css-grid-layout/minmax-max-content-resolution-rows.html

This change implements max-content on top of the infrastructure introduced as part
of implementing min-content (bug 106474). No effort was made to share code, which
is what was done for min-content. The sharing will occur in follow-up refactoring(s)
to benefit from the extra testing but also the extra code to make the direction more
obvious.

* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::maxContentForChild):
Added this helper, similar to minContentForChild.

(WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
Patched the function to handle max-content per the specification's algorithm.

* rendering/RenderGrid.h:
Added maxContentForChild.

LayoutTests:

* fast/css-grid-layout/minmax-max-content-resolution-columns-expected.txt: Added.
* fast/css-grid-layout/minmax-max-content-resolution-columns.html: Added.
* fast/css-grid-layout/minmax-max-content-resolution-rows-expected.txt: Added.
* fast/css-grid-layout/minmax-max-content-resolution-rows.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140583 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago <rdar://problem/13064414> REGRESSION(r139514): didFailToSendSyncMessage is...
ap@apple.com [Wed, 23 Jan 2013 21:34:24 +0000 (21:34 +0000)]
    <rdar://problem/13064414> REGRESSION(r139514): didFailToSendSyncMessage is not called by Connection
        https://bugs.webkit.org/show_bug.cgi?id=107715

        Reviewed by Anders Carlsson.

        * Platform/CoreIPC/Connection.cpp:
        (CoreIPC::Connection::sendSyncMessage):
        (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
        Correcting a misapplied edit - didFailToSendSyncMessage should be kept in main
        thread message sending, not in secondary thread.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140582 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] Layout test rebaselines
arv@chromium.org [Wed, 23 Jan 2013 21:31:15 +0000 (21:31 +0000)]
[chromium] Layout test rebaselines

Unreviewed rebaseline

* platform/chromium-win-xp/media/media-can-play-ogg-expected.txt: Added.
* platform/chromium-win/media/media-can-play-ogg-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140581 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAssert that Supplementable objects is only used in their creator thread.
mark.lam@apple.com [Wed, 23 Jan 2013 21:26:11 +0000 (21:26 +0000)]
Assert that Supplementable objects is only used in their creator thread.
https://bugs.webkit.org/show_bug.cgi?id=107717.

Reviewed by Adam Barth.

No new tests.

* platform/Supplementable.h:
(WebCore):
(WebCore::Supplementable::provideSupplement):
(WebCore::Supplementable::removeSupplement):
(WebCore::Supplementable::requireSupplement):
(Supplementable):
(WebCore::Supplementable::Supplementable):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140580 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[CHROMIUM] Suppress c4267 build warnings in WTF for Win64 targets
jschuh@chromium.org [Wed, 23 Jan 2013 21:23:28 +0000 (21:23 +0000)]
[CHROMIUM] Suppress c4267 build warnings in WTF for Win64 targets
https://bugs.webkit.org/show_bug.cgi?id=107721

Reviewed by Abhishek Arya.

* WTF.gyp/WTF.gyp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140579 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Fix some #includes to headers in chromium/public/platform/ that have been...
pilgrim@chromium.org [Wed, 23 Jan 2013 21:20:06 +0000 (21:20 +0000)]
[Chromium] Fix some #includes to headers in chromium/public/platform/ that have been moved to the new Platform directory
https://bugs.webkit.org/show_bug.cgi?id=107722

Reviewed by Darin Fisher.

These headers just redirect to the new versions, so call the new
versions directly.

* src/linux/WebFontInfo.cpp:
* src/mac/WebSubstringUtil.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140578 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd RELEASE_ASSERT (and a few friends)
oliver@apple.com [Wed, 23 Jan 2013 21:15:29 +0000 (21:15 +0000)]
Add RELEASE_ASSERT (and a few friends)
https://bugs.webkit.org/show_bug.cgi?id=107725

Reviewed by Filip Pizlo.

Adding a few macros to make release mode assertions easier and more readable.
Also makes same assertions more useful in debug builds.

* wtf/Assertions.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140577 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoIncorrect scrollable height during simplified layout
tony@chromium.org [Wed, 23 Jan 2013 20:54:07 +0000 (20:54 +0000)]
Incorrect scrollable height during simplified layout
https://bugs.webkit.org/show_bug.cgi?id=107193

Reviewed by David Hyatt.

Source/WebCore:

When computing overflow we need the height of the block before
it was clamped (i.e., before updateLogicalHeight() has been called).

During simplified layout, we don't have this information and we were
using the clamped height by mistake. To fix this, we now store the
pre-clamped height on RenderOverflow so we can properly compute
overflow.

Test: fast/overflow/height-during-simplified-layout.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::computeOverflow): Save the height if we have overflow.
(WebCore::RenderBlock::simplifiedLayout): If we have overflow, use the height that we saved
in computeOverflow.
* rendering/RenderOverflow.h:
(WebCore::RenderOverflow::layoutClientAfterEdge):
(WebCore::RenderOverflow::setLayoutClientAfterEdge):
(RenderOverflow): Add a member variable to save the height.

LayoutTests:

* fast/overflow/height-during-simplified-layout-expected.txt: Added.
* fast/overflow/height-during-simplified-layout.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140576 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] harden ScriptWrappable::m_wrapper against tampering
tsepez@chromium.org [Wed, 23 Jan 2013 20:51:48 +0000 (20:51 +0000)]
[chromium] harden ScriptWrappable::m_wrapper against tampering
https://bugs.webkit.org/show_bug.cgi?id=107318

Reviewed by Adam Barth.

Patch is correct if existing tests past without crashing.

* bindings/v8/ScriptWrappable.h:
(WebCore::ScriptWrappable::ScriptWrappable):
(WebCore::ScriptWrappable::wrapper):
(WebCore::ScriptWrappable::setWrapper):
(WebCore::ScriptWrappable::clearWrapper):
(WebCore::ScriptWrappable::disposeWrapper):
(WebCore::ScriptWrappable::reportMemoryUsage):
(ScriptWrappable):
(WebCore::ScriptWrappable::maskOrUnmaskPointer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140575 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWebCore property sheets, modified build scripts, and project files for compiling...
roger_fong@apple.com [Wed, 23 Jan 2013 20:42:41 +0000 (20:42 +0000)]
WebCore property sheets, modified build scripts, and project files for compiling in VS2010.
https://bugs.webkit.org/show_bug.cgi?id=106988

Reviewed by Brent Fulgham.

* WebCore.vcproj/WebCore.sln:
* WebCore.vcxproj: Added.
* WebCore.vcxproj/MigrateScripts: Added.
* WebCore.vcxproj/QTMovieWin: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWin.vcxproj: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWin.vcxproj.filters: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWin.vcxproj.user: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWinCommon.props: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWinDebug.props: Added.
* WebCore.vcxproj/QTMovieWin/QTMovieWinRelease.props: Added.
* WebCore.vcxproj/WebCore.vcxproj: Added.
* WebCore.vcxproj/WebCore.vcxproj.filters: Added.
* WebCore.vcxproj/WebCore.vcxproj.user: Added.
* WebCore.vcxproj/WebCoreCFNetwork.props: Added.
* WebCore.vcxproj/WebCoreCG.props: Added.
* WebCore.vcxproj/WebCoreCommon.props: Added.
* WebCore.vcxproj/WebCoreDebug.props: Added.
* WebCore.vcxproj/WebCoreGenerated.make: Added.
* WebCore.vcxproj/WebCoreGenerated.vcxproj: Added.
* WebCore.vcxproj/WebCoreGenerated.vcxproj.filters: Added.
* WebCore.vcxproj/WebCoreGenerated.vcxproj.user: Added.
* WebCore.vcxproj/WebCoreGeneratedCommon.props: Added.
* WebCore.vcxproj/WebCoreGeneratedDebug.props: Added.
* WebCore.vcxproj/WebCoreGeneratedRelease.props: Added.
* WebCore.vcxproj/WebCoreMediaQT.props: Added.
* WebCore.vcxproj/WebCorePostBuild.cmd: Added.
* WebCore.vcxproj/WebCorePreBuild.cmd: Added.
* WebCore.vcxproj/WebCorePreLink.cmd: Added.
* WebCore.vcxproj/WebCorePthreads.props: Added.
* WebCore.vcxproj/WebCoreQuartzCore.props: Added.
* WebCore.vcxproj/WebCoreRelease.props: Added.
* WebCore.vcxproj/build-generated-files.sh: Added.
* WebCore.vcxproj/copyForwardingHeaders.cmd: Added.
* WebCore.vcxproj/copyWebCoreResourceFiles.cmd: Added.
* WebCore.vcxproj/migrate-scripts.sh: Added.
* WebCore.vcxproj/xcopy.excludes: Added.
* WebCorePrefix.h:
* config.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140574 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoHTMLCompactToken needs to include the forceQuirks bool from HTMLToken
eric@webkit.org [Wed, 23 Jan 2013 20:36:01 +0000 (20:36 +0000)]
HTMLCompactToken needs to include the forceQuirks bool from HTMLToken
https://bugs.webkit.org/show_bug.cgi?id=107713

Reviewed by Tony Gentilcore.

Before we were only getting "quirks mode" when the system/public identifiers
were known quirks identifiers.  Now we'll correctly get quirks mode for any
parse error during DOCTYPE parsing.
This passes a bunch more tests.

* html/parser/CompactHTMLToken.cpp:
(WebCore::CompactHTMLToken::CompactHTMLToken):
* html/parser/CompactHTMLToken.h:
(WebCore::CompactHTMLToken::doctypeForcesQuirks):
(CompactHTMLToken):
* html/parser/HTMLToken.h:
(WebCore::AtomicHTMLToken::AtomicHTMLToken):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140573 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoRecursion handling cancelled authentication challenges in NetworkProcess
beidson@apple.com [Wed, 23 Jan 2013 20:21:19 +0000 (20:21 +0000)]
Recursion handling cancelled authentication challenges in NetworkProcess
<rdar://problem/13024541> and https://bugs.webkit.org/show_bug.cgi?id=107702

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* WebCore.exp.in:

Source/WebKit2:

This turned in to both a bug fix with authentication and a minimal refactoring of NetworkResourceLoader.

- Rename ::stop to ::resourceHandleStopped
- Move all cleanup code to ::resourceHandleStopped
- Schedule a resourceHandleStopped call when an authentication cancellation occurs
- Tell the WebResourceLoader to cancel when an authentication cancellation occurs

* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::~NetworkResourceLoader):
(WebKit::NetworkResourceLoader::start):
(WebKit::NetworkResourceLoader::performStops):
(WebKit::NetworkResourceLoader::resourceHandleStopped):
(WebKit::NetworkResourceLoader::didFail):
(WebKit::NetworkResourceLoader::receivedAuthenticationCancellation):
* NetworkProcess/NetworkResourceLoader.h:

* WebProcess/Network/WebResourceLoader.cpp:
(WebKit::WebResourceLoader::cancelResourceLoader):
* WebProcess/Network/WebResourceLoader.h:
* WebProcess/Network/WebResourceLoader.messages.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140572 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=107628
bdakin@apple.com [Wed, 23 Jan 2013 20:17:01 +0000 (20:17 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=107628
Sometimes scroll position is jerky during rubber-band, affects nytimes.com
-and corresponding-
<rdar://problem/12679549>

Reviewed by Simon Fraser.

The basic problem here is that isRubberBandInProgress() was only implemented for
main thread scrolling. So when we were actually scrolling on the scrolling thread,
that function would always return false regardless.

New ScrollableArea virtual function isRubberBandInProgress() will allow us to ask
the ScrollingCoordinator when the scrolling thread is scrolling, or the
ScrollAnimator otherwise.
* page/FrameView.cpp:
(WebCore::FrameView::isRubberBandInProgress):
* page/FrameView.h:
(FrameView):
* platform/ScrollableArea.h:
(WebCore::ScrollableArea::isRubberBandInProgress):

New ScrollingCoordinator function isRubberBandInProgress() always returns false
for non-Mac ports, and is overridden in ScrollingCoordinatorMac to consult the
ScrollingTree.
* page/scrolling/ScrollingCoordinator.h:
(WebCore::ScrollingCoordinator::isRubberBandInProgress):
* page/scrolling/mac/ScrollingCoordinatorMac.h:
(ScrollingCoordinatorMac):
* page/scrolling/mac/ScrollingCoordinatorMac.mm:
(WebCore::ScrollingCoordinatorMac::isRubberBandInProgress):

New variable m_mainFrameIsRubberBanding keeps track of whether there is currently
a rubber-band happening on the scrolling thread.
* page/scrolling/ScrollingTree.cpp:
(WebCore::ScrollingTree::ScrollingTree):
(WebCore::ScrollingTree::isRubberBandInProgress):
(WebCore::ScrollingTree::setMainFrameIsRubberBanding):
* page/scrolling/ScrollingTree.h:
(ScrollingTree):
(WebCore::ScrollingTree::rootNode):

Call setMainFrameIsRubberBanding() whenever the stretchAmount is calculated and
whenever we stop the rubber-band timer.
* page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
(WebCore::ScrollingTreeScrollingNodeMac::stretchAmount):
(WebCore::ScrollingTreeScrollingNodeMac::stopSnapRubberbandTimer):

Consult FrameView for isRubberBandInProgress().
* platform/ScrollView.cpp:
(WebCore::ScrollView::updateScrollbars):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140571 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAbspos Inline block not positioned correctly in text-aligned container
robert@webkit.org [Wed, 23 Jan 2013 20:15:12 +0000 (20:15 +0000)]
Abspos Inline block not positioned correctly in text-aligned container
https://bugs.webkit.org/show_bug.cgi?id=105695

Reviewed by Ojan Vafai.

Source/WebCore:

Inline positioned elements should still obey the text-alignment of their container
even when we don't do a line layout.

Test: fast/text/container-align-with-inlines.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::adjustPositionedBlock):
(WebCore::RenderBlock::updateStaticInlinePositionForChild):
(WebCore):
* rendering/RenderBlock.h:
(RenderBlock):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::setStaticPositions):

LayoutTests:

* fast/text/container-align-with-inlines-expected.txt: Added.
* fast/text/container-align-with-inlines.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140570 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoRemove DocType support from MarkupTokenBase now that NEW_XML is gone
eric@webkit.org [Wed, 23 Jan 2013 20:13:00 +0000 (20:13 +0000)]
Remove DocType support from MarkupTokenBase now that NEW_XML is gone
https://bugs.webkit.org/show_bug.cgi?id=107709

Reviewed by Adam Barth.

Just moving code out of MarkupTokenBase and into HTMLToken.
The test for this change is if it compiles. :)  Which it does.

* html/parser/HTMLToken.h:
(DoctypeData):
(WebCore::DoctypeData::DoctypeData):
(WebCore):
(WebCore::HTMLToken::appendToName):
(WebCore::HTMLToken::name):
(HTMLToken):
(WebCore::HTMLToken::beginDOCTYPE):
(WebCore::HTMLToken::publicIdentifier):
(WebCore::HTMLToken::systemIdentifier):
(WebCore::HTMLToken::setPublicIdentifierToEmptyString):
(WebCore::HTMLToken::setSystemIdentifierToEmptyString):
(WebCore::HTMLToken::appendToPublicIdentifier):
(WebCore::HTMLToken::appendToSystemIdentifier):
(WebCore::HTMLToken::releaseDoctypeData):
(WebCore::AtomicHTMLToken::AtomicHTMLToken):
(AtomicHTMLToken):
* html/parser/HTMLTokenTypes.h:
* xml/parser/MarkupTokenBase.h:
(WebCore):
(MarkupTokenBase):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140569 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd the VS2010 WebKit solution folder and solution file.
roger_fong@apple.com [Wed, 23 Jan 2013 20:11:56 +0000 (20:11 +0000)]
Add the VS2010 WebKit solution folder and solution file.
The solution of course will not load until the dependent projects are all completed.
https://bugs.webkit.org/show_bug.cgi?id=106949.

Reviewed by Brent Fulgham.

* WebKit.vcxproj: Added.
* WebKit.vcxproj/WebKit.sln: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140568 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd WebKitLibraries property sheets for compiling WebKit in VS2010.
roger_fong@apple.com [Wed, 23 Jan 2013 19:59:32 +0000 (19:59 +0000)]
Add WebKitLibraries property sheets for compiling WebKit in VS2010.
https://bugs.webkit.org/show_bug.cgi?id=106949

Reviewed by Brent Fulgham.

* win/tools/vsprops/FeatureDefines.props: Added.
* win/tools/vsprops/common.props: Added.
* win/tools/vsprops/debug.props: Added.
* win/tools/vsprops/release.props: Added.
* win/tools/vsprops/releaseproduction.props: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140567 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Fix some #includes for WebSerializedScriptValue
pilgrim@chromium.org [Wed, 23 Jan 2013 19:56:36 +0000 (19:56 +0000)]
[Chromium] Fix some #includes for WebSerializedScriptValue
https://bugs.webkit.org/show_bug.cgi?id=107697

Reviewed by Adam Barth.

WebSerializedScriptValue has been moved to chromium/public/.

* public/WebDOMCustomEvent.h:
* public/WebDOMMessageEvent.h:
* public/WebIDBCursor.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140566 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Update some #includes in DumpRenderTree for headers in the new Platform...
pilgrim@chromium.org [Wed, 23 Jan 2013 19:55:35 +0000 (19:55 +0000)]
[Chromium] Update some #includes in DumpRenderTree for headers in the new Platform directory
https://bugs.webkit.org/show_bug.cgi?id=107145

Reviewed by Adam Barth.

Part of a larger refactoring series; see tracking bug 82948.

* DumpRenderTree/chromium/DRTDevToolsAgent.cpp:
* DumpRenderTree/chromium/DRTDevToolsAgent.h:
* DumpRenderTree/chromium/DRTDevToolsClient.h:
* DumpRenderTree/chromium/DRTTestRunner.cpp:
* DumpRenderTree/chromium/DRTTestRunner.h:
* DumpRenderTree/chromium/MockWebPrerenderingSupport.h:
* DumpRenderTree/chromium/MockWebSpeechInputController.cpp:
* DumpRenderTree/chromium/MockWebSpeechInputController.h:
* DumpRenderTree/chromium/NotificationPresenter.cpp:
* DumpRenderTree/chromium/TestNavigationController.h:
* DumpRenderTree/chromium/TestRunner/src/AccessibilityControllerChromium.cpp:
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.cpp:
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/EventSender.h:
* DumpRenderTree/chromium/TestRunner/src/GamepadController.h:
* DumpRenderTree/chromium/TestRunner/src/TestDelegate.h:
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
* DumpRenderTree/chromium/TestRunner/src/TextInputController.cpp:
* DumpRenderTree/chromium/TestRunner/src/WebPermissions.cpp:
* DumpRenderTree/chromium/TestRunner/src/WebTestPlugin.cpp:
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
* DumpRenderTree/chromium/TestShell.cpp:
* DumpRenderTree/chromium/WebThemeEngineDRTMac.h:
* DumpRenderTree/chromium/WebThemeEngineDRTMac.mm:
* DumpRenderTree/chromium/WebThemeEngineDRTWin.cpp:
* DumpRenderTree/chromium/WebThemeEngineDRTWin.h:
* DumpRenderTree/chromium/WebViewHost.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140565 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[BlackBerry] Take a better guess as to what text the user wants learned
nghanavatian@rim.com [Wed, 23 Jan 2013 19:49:52 +0000 (19:49 +0000)]
[BlackBerry] Take a better guess as to what text the user wants learned
https://bugs.webkit.org/show_bug.cgi?id=107706

Reviewed by Rob Buis.

If we still have a valid caret position, use it to give priority to a region
of text.  We now take the text before the caret, instead of the text at the end
of the field.  If the caret is not present, we start from the beginning of the field.
This helps learning in email where the region of interest is generally at the start,
not end of the field.

Internally reviewed by Mike Fenton

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::learnText):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140564 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed.
zandobersek@gmail.com [Wed, 23 Jan 2013 19:49:21 +0000 (19:49 +0000)]
Unreviewed.

Speculative build fix for the GTK port after 140539.

* Source/autotools/symbols.filter:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140563 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[BlackBerry] Optimize spellchecking by coalescing messages
nghanavatian@rim.com [Wed, 23 Jan 2013 19:48:17 +0000 (19:48 +0000)]
[BlackBerry] Optimize spellchecking by coalescing messages
https://bugs.webkit.org/show_bug.cgi?id=107707

Reviewed by Rob Buis.

PR233604
Instead of taking chunks one line at a time, coalesce them together
to fire off messages as close to our character limit as possible.
This should dramatically reduce the total number of messages in email
giving us a little performance bump.

Internally reviewed by Mike Fenton and Gen Mak.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::trimWhitespaceFromRange):
(DOMSupport):
* WebKitSupport/DOMSupport.h:
* WebKitSupport/InputHandler.cpp:
* WebKitSupport/InputHandler.h:
(InputHandler):
* WebKitSupport/SpellingHandler.cpp:
(BlackBerry::WebKit::SpellingHandler::spellCheckTextBlock):
(BlackBerry::WebKit::SpellingHandler::createSpellCheckRequest):
(BlackBerry::WebKit::SpellingHandler::parseBlockForSpellChecking):
(BlackBerry::WebKit::SpellingHandler::getRangeForSpellCheckWithFineGranularity):
* WebKitSupport/SpellingHandler.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140562 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] Use after free in plugins/geturlnotify-during-document-teardown.html
jochen@chromium.org [Wed, 23 Jan 2013 19:45:52 +0000 (19:45 +0000)]
[chromium] Use after free in plugins/geturlnotify-during-document-teardown.html
https://bugs.webkit.org/show_bug.cgi?id=107556

Reviewed by Tony Chang.

WebViewHost initiates a navigation to about:blank in its destructor.
However, since WebTestProxy inherits from WebViewHost, at this point
the WebViewClient and WebFrameClient interfaces are already partially
destructed resulting in the use after free.

This does not affect the chromium implementation since it doesn't
invoke WebKit API methods in its destructor.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::~TestShell):
(TestShell::closeWindow):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::WebViewHost):
(WebViewHost::~WebViewHost):
(WebViewHost::shutdown):
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140561 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agotransition-property accepts incorrect "all, none" as value
alexis@webkit.org [Wed, 23 Jan 2013 19:27:38 +0000 (19:27 +0000)]
transition-property accepts incorrect "all, none" as value
https://bugs.webkit.org/show_bug.cgi?id=105428

Reviewed by Dean Jackson.

Source/WebCore:

http://www.w3.org/TR/css3-transitions/#transition-property-property
disallows any value like none, all or all, none as it doesn't make
sense. This patch fixes the problem by rejecting the value if set by
the user.

Test: transitions/transitions-parsing.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseAnimationProperty):
* css/CSSParser.h:

LayoutTests:

Extend the existing tests to cover the bug.

* transitions/transitions-parsing-expected.txt:
* transitions/transitions-parsing.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140560 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoClarify some usage of shouldUseThreading vs m_haveBackgroundParser, fixing about...
eric@webkit.org [Wed, 23 Jan 2013 19:23:41 +0000 (19:23 +0000)]
Clarify some usage of shouldUseThreading vs m_haveBackgroundParser, fixing about:blank parsing
https://bugs.webkit.org/show_bug.cgi?id=107664

Reviewed by Adam Barth.

The HTMLDocumentParser can be "supposed" to use a background parser
but not end up ever doing so for blank documents.  It's important
that we spin the forground parser at least once, so we end up
actually creating the about:blank document.

shouldUseThreading() means that threading is enabled and we should use it if we can.
m_haveBackgroundParser means that we actually are already using threading.
When we add full document.write support this will get a bit trickier still as
we'll need to be using both the foreground and background parsers.

This fixes about 20 tests in fast/frames and many others outside of fast/frames. :)

* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::prepareToStopParsing):
(WebCore::HTMLDocumentParser::resumeParsingAfterYield):
(WebCore::HTMLDocumentParser::finish):
(WebCore::HTMLDocumentParser::lineNumber):
(WebCore::HTMLDocumentParser::textPosition):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140559 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Win] Remove dependence on Microsoft Embedded OpenType Font Engine (T2EMBED.DLL)...
roger_fong@apple.com [Wed, 23 Jan 2013 19:15:58 +0000 (19:15 +0000)]
[Win] Remove dependence on Microsoft Embedded OpenType Font Engine (T2EMBED.DLL)  from FontCustomPlatformData.cpp.
https://bugs.webkit.org/show_bug.cgi?id=107153

Reviewed by Dan Bernstein.

* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore):
(WebCore::FontCustomPlatformData::~FontCustomPlatformData):
(WebCore::FontCustomPlatformData::fontPlatformData):
(WebCore::createFontCustomPlatformData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140558 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[GTK] Avoid reset title for navigation within the page
commit-queue@webkit.org [Wed, 23 Jan 2013 19:13:50 +0000 (19:13 +0000)]
[GTK] Avoid reset title for navigation within the page
https://bugs.webkit.org/show_bug.cgi?id=106908

Patch by Manuel Rego Casasnovas <rego@igalia.com> on 2013-01-23
Reviewed by Martin Robinson.

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::dispatchDidNavigateWithinPage): Call
dispatchDidCommitLoad with true as param.
(WebKit::FrameLoaderClient::dispatchDidCommitLoad): The method has been
overloaded. The default implementation (without params) simply calls
dispatchDidCommitLoad with false. The new private method with
isNavigatingWithinPage as param will avoid to reset the title for
navigation within the page.
* WebCoreSupport/FrameLoaderClientGtk.h:
(FrameLoaderClient): Add new private method dispatchDidCommitLoad with a
boolean parameter to know if it is navigating withing the same page or
not.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140557 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: speedup highlight regex API in DefaultTextEditor
commit-queue@webkit.org [Wed, 23 Jan 2013 19:10:03 +0000 (19:10 +0000)]
Web Inspector: speedup highlight regex API in DefaultTextEditor
https://bugs.webkit.org/show_bug.cgi?id=107238

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-01-23
Reviewed by Pavel Feldman.

Source/WebCore:

Move overlay highlight measurement (highlight regex API) from DefaultTextEditor._paintLine
method to the DefaultTextEditor._paintLines method which allows to relayout dom only
once. This is a significant improvement to the current state of the
art which does relayout on each regex occurence.
In addition, use "left" css attribute instead of "margin-left": this
way it will be possible to avoid an unnecessary relayouting during
appending overlay highlight.

No new tests: no change in behaviour.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorMainPanel.prototype.markAndRevealRange):
(WebInspector.TextEditorMainPanel.prototype._paintLines):
(WebInspector.TextEditorMainPanel.prototype._measureRegexHighlight):
(WebInspector.TextEditorMainPanel.prototype._measureSpans):
(WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight):
(WebInspector.TextEditorMainPanel.prototype._paintLine):
(WebInspector.TextEditorMainPanel.ElementMetrics):
(WebInspector.TextEditorMainPanel.LineOverlayHighlight):
(WebInspector.TextEditorMainChunk.prototype.expand):

LayoutTests:

Corrected layout test expectations to correspond to refactoring.

* inspector/editor/text-editor-highlight-regexp-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140556 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAssert that computePreferredLogicalWidths never calls setNeedsLayout
ojan@chromium.org [Wed, 23 Jan 2013 18:54:56 +0000 (18:54 +0000)]
Assert that computePreferredLogicalWidths never calls setNeedsLayout
https://bugs.webkit.org/show_bug.cgi?id=107613

Reviewed by Eric Seidel.

computePreferredLogicalWidths should only set m_minPreferredLogicalWidth
and m_maxPreferredLogicalWidth. It shouldn't have other side-effects.
The mathml bits can be removed once https://bugs.webkit.org/show_bug.cgi?id=107353
is resolved.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::minPreferredLogicalWidth):
* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRow.cpp:
(WebCore::RenderMathMLRow::computePreferredLogicalWidths):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140554 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoFollow up to 140539, adding exports for Win build.
pfeldman@chromium.org [Wed, 23 Jan 2013 18:53:57 +0000 (18:53 +0000)]
Follow up to 140539, adding exports for Win build.

Not reviewed.

* WebKit.vcproj/WebKitExports.def.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140553 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[GTK][WK2] Unflag tests related to layoutTestController.setViewModeMediaFeature
commit-queue@webkit.org [Wed, 23 Jan 2013 18:48:33 +0000 (18:48 +0000)]
[GTK][WK2] Unflag tests related to layoutTestController.setViewModeMediaFeature
https://bugs.webkit.org/show_bug.cgi?id=107660

Patch by Manuel Rego Casasnovas <rego@igalia.com> on 2013-01-23
Reviewed by Philippe Normand.

* platform/gtk-wk2/TestExpectations: Remove tests related to
layoutTestController.setViewModeMediaFeature as they are passing now.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140550 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoREGRESSION(r140518): Broke Chromium Win build (gyp file not updated) (Requested by...
commit-queue@webkit.org [Wed, 23 Jan 2013 18:42:10 +0000 (18:42 +0000)]
REGRESSION(r140518): Broke Chromium Win build (gyp file not updated) (Requested by arv on #webkit).
https://bugs.webkit.org/show_bug.cgi?id=107691

Unreviewed build fix. Removed TextureMapperShaderManager.* from WebCore.gypi.

Patch by Noam Rosenthal <noam@webkit.org> on 2013-01-23

* WebCore.gypi:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140547 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed, rolling out r140307, r140411, and r140512.
commit-queue@webkit.org [Wed, 23 Jan 2013 18:25:06 +0000 (18:25 +0000)]
Unreviewed, rolling out r140307, r140411, and r140512.
http://trac.webkit.org/changeset/140307
http://trac.webkit.org/changeset/140411
http://trac.webkit.org/changeset/140512
https://bugs.webkit.org/show_bug.cgi?id=107689

Perf regression on DOMDivWalk (bug 106726) (Requested by
falken on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-01-23

Source/WebCore:

* dom/Element.cpp:
(WebCore::Element::removedFrom):
(WebCore):
(WebCore::Element::isInTopLayer):
(WebCore::Element::setIsInTopLayer):
* dom/Element.h:
* dom/ElementRareData.h:
(ElementRareData):
(WebCore::ElementRareData::isInTopLayer):
(WebCore::ElementRareData::setIsInTopLayer):
(WebCore::ElementRareData::ElementRareData):
* dom/Node.cpp:
* dom/Node.h:
(Node):
* dom/NodeRenderingContext.cpp:
(WebCore::isRendererReparented):
(WebCore::NodeRenderingContext::previousRenderer):
(WebCore::NodeRenderingContext::parentRenderer):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::isInTopLayer):
(WebCore::RenderLayer::rebuildZOrderLists):

LayoutTests:

* fast/dom/HTMLDialogElement/removed-element-is-removed-from-top-layer-expected.html: Removed.
* fast/dom/HTMLDialogElement/removed-element-is-removed-from-top-layer.html: Removed.
* fast/dom/HTMLDialogElement/top-layer-stacking-correct-order-remove-readd-expected.html: Removed.
* fast/dom/HTMLDialogElement/top-layer-stacking-correct-order-remove-readd.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140546 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoSource/WebCore: Web Inspector: allow user to resize inspector window by dragging...
commit-queue@webkit.org [Wed, 23 Jan 2013 18:22:37 +0000 (18:22 +0000)]
Source/WebCore: Web Inspector: allow user to resize inspector window by dragging the toolbar
https://bugs.webkit.org/show_bug.cgi?id=107648

Patch by Dmitry Gozman <dgozman@chromium.org> on 2013-01-23
Reviewed by Pavel Feldman.

This did not work before you click dock button once.
Also, last drag position was not respected.

No new tests, because of pure inspector UI change.

* inspector/front-end/DockController.js:
(WebInspector.DockController.prototype.isDockedToBottom):
* inspector/front-end/Toolbar.js:
(WebInspector.Toolbar.prototype._isDockedToBottom):
(WebInspector.Toolbar.prototype._toolbarDragStart):
(WebInspector.Toolbar.prototype._toolbarDragEnd):
(WebInspector.Toolbar.prototype._toolbarDrag):

Source/WebKit/chromium: Added changeAttachedWindowHeight method to inspector frontend API, which
allows to change inspector window height from inside.
https://bugs.webkit.org/show_bug.cgi?id=107648

Patch by Dmitry Gozman <dgozman@chromium.org> on 2013-01-23
Reviewed by Pavel Feldman.

* public/WebDevToolsFrontendClient.h:
(WebKit::WebDevToolsFrontendClient::changeAttachedWindowHeight):
* src/InspectorFrontendClientImpl.cpp:
(WebKit::InspectorFrontendClientImpl::changeAttachedWindowHeight):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140543 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[EFL][WK2] Use C API inside ewk_cookie_manager
christophe.dumez@intel.com [Wed, 23 Jan 2013 18:20:46 +0000 (18:20 +0000)]
[EFL][WK2] Use C API inside ewk_cookie_manager
https://bugs.webkit.org/show_bug.cgi?id=107661

Reviewed by Alexey Proskuryakov.

Use C API inside ewk_cookie_manager instead of
accessing C++ classes directly and violating
layering.

* PlatformEfl.cmake:
* UIProcess/API/C/soup/WKCookieManagerSoup.cpp: Added.
(toSoupCookiePersistentStorageType):
(WKCookieManagerSetCookiePersistentStorage): Add C API for setting
the persistent storage path and type when using libsoup.
* UIProcess/API/C/soup/WKCookieManagerSoup.h: Added.
* UIProcess/API/efl/ewk_context.cpp:
(EwkContext::cookieManager):
* UIProcess/API/efl/ewk_cookie_manager.cpp:
(EwkCookieManager::EwkCookieManager):
(EwkCookieManager::~EwkCookieManager):
(EwkCookieManager::setPersistentStorage):
(EwkCookieManager::setHTTPAcceptPolicy):
(EwkCookieManager::clearHostnameCookies):
(EwkCookieManager::clearAllCookies):
(EwkCookieManager::watchChanges):
(EwkCookieManager::getHostNamesWithCookies):
(EwkCookieManager::getHTTPAcceptPolicy):
(ewk_cookie_manager_persistent_storage_set):
(ewk_cookie_manager_hostname_cookies_clear):
* UIProcess/API/efl/ewk_cookie_manager_private.h:
(EwkCookieManager::create):
(EwkCookieManager):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140542 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoshadowAncestorNode() should be renamed to deprecatedShadowAncestorNode()
shinyak@chromium.org [Wed, 23 Jan 2013 18:04:07 +0000 (18:04 +0000)]
shadowAncestorNode() should be renamed to deprecatedShadowAncestorNode()
https://bugs.webkit.org/show_bug.cgi?id=107624

Reviewed by Dimitri Glazkov.

Since Node::shadowAncestorNode() is deprecated, we would like to rename it to prevent from further use.

Source/WebCore:

No new tests, simple refactoring.

* WebCore.order:
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::accessibilityHitTest):
* dom/Document.cpp:
(WebCore::Document::handleZeroPadding):
* dom/Node.cpp:
(WebCore::Node::deprecatedShadowAncestorNode):
* dom/Node.h:
(Node):
* editing/Editor.cpp:
(WebCore::Editor::rangeOfString):
(WebCore::Editor::countMatchesForText):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplacementFragment::ReplacementFragment):
* page/DragController.cpp:
(WebCore::elementUnderMouse):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleMouseReleaseEvent):
(WebCore::EventHandler::bestClickableNodeForTouchPoint):
* page/FocusController.cpp:
(WebCore::clearSelectionIfNeeded):
* platform/blackberry/RenderThemeBlackBerry.cpp:
(WebCore::RenderThemeBlackBerry::paintSearchFieldCancelButton):
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::setToNonShadowAncestor):
(WebCore::HitTestResult::addNodeToRectBasedTestResult):

Source/WebKit/blackberry:

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::webContext):
* WebKitSupport/FatFingers.h:
(BlackBerry::WebKit::FatFingersResult::node):
* WebKitSupport/InPageSearchManager.cpp:
(BlackBerry::WebKit::InPageSearchManager::scopeStringMatches):

Source/WebKit/chromium:

* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::scopeStringMatches):
(WebKit::WebFrameImpl::setFindEndstateFocusAndSelection):

Source/WebKit/qt:

* WebCoreSupport/QWebPageAdapter.cpp:
(QWebPageAdapter::inputMethodEvent):
(QWebPageAdapter::inputMethodQuery):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140541 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[CSS Regions] Create Regions watchlist
commit-queue@webkit.org [Wed, 23 Jan 2013 18:02:28 +0000 (18:02 +0000)]
[CSS Regions] Create Regions watchlist
https://bugs.webkit.org/show_bug.cgi?id=107281

Patch by Andrei Bucur <abucur@adobe.com> on 2013-01-23
Reviewed by Adam Barth.

This patch adds 4 new definitions:
- RegionsDevelopment - used to track the development progress for regions
- RegionsExpectationsMore and RegionsExpectationsLess - used to track expectations changes for the regions tests
- RegionsUsage - used to track changes that make use of regions in all the code base

For now, the Adobe internal tracker is the only email address listening for these patterns.

* Scripts/webkitpy/common/config/watchlist:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140540 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: only allow evaluateForTestInFrontend for front-ends under test.
pfeldman@chromium.org [Wed, 23 Jan 2013 17:57:26 +0000 (17:57 +0000)]
Web Inspector: only allow evaluateForTestInFrontend for front-ends under test.
https://bugs.webkit.org/show_bug.cgi?id=107523

Reviewed by Yury Semikhatsky.

Source/WebCore:

* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
(WebCore::InspectorController::isUnderTest):
(WebCore):
(WebCore::InspectorController::evaluateForTestInFrontend):
* inspector/InspectorController.h:
(InspectorController):
* inspector/InspectorFrontendClient.h:
(InspectorFrontendClient):
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorFrontendClientLocal::canAttachWindow):
(WebCore::InspectorFrontendClientLocal::isUnderTest):
(WebCore):
* inspector/InspectorFrontendClientLocal.h:
(InspectorFrontendClientLocal):
* inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::isUnderTest):
(WebCore):
* inspector/InspectorFrontendHost.h:
(InspectorFrontendHost):
* inspector/InspectorFrontendHost.idl:
* inspector/front-end/DOMExtension.js:
* inspector/front-end/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub.prototype.canInspectWorkers):
(.WebInspector.InspectorFrontendHostStub.prototype.isUnderTest):
* inspector/front-end/TestController.js:
(.invokeMethod):
(WebInspector.evaluateForTestInFrontend):
* inspector/front-end/externs.js:

Source/WebKit/chromium:

* public/WebDevToolsFrontendClient.h:
(WebKit::WebDevToolsFrontendClient::isUnderTest):
(WebDevToolsFrontendClient):
* src/InspectorFrontendClientImpl.cpp:
(WebKit::InspectorFrontendClientImpl::isUnderTest):
* src/InspectorFrontendClientImpl.h:
(InspectorFrontendClientImpl):

Tools:

* DumpRenderTree/chromium/DRTDevToolsClient.cpp:
(DRTDevToolsClient::isUnderTest):
(DRTDevToolsClient::call):
* DumpRenderTree/chromium/DRTDevToolsClient.h:
(DRTDevToolsClient):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140539 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: remove invisibleLineRow code from paintLines DTE method
commit-queue@webkit.org [Wed, 23 Jan 2013 17:45:36 +0000 (17:45 +0000)]
Web Inspector: remove invisibleLineRow code from paintLines DTE method
https://bugs.webkit.org/show_bug.cgi?id=107649

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-01-23
Reviewed by Pavel Feldman.

Remove invisibleLineRow logic from TextEditorMainPanel._paintLines method.

No new tests: no change in behaviour.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorMainPanel.prototype._paintLines):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140538 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoREGRESSION(r140101): caused debug asserts in fast/forms/associated-element-crash...
dominicc@chromium.org [Wed, 23 Jan 2013 15:22:15 +0000 (15:22 +0000)]
REGRESSION(r140101): caused debug asserts in fast/forms/associated-element-crash.html and html5lib/run-template.html
https://bugs.webkit.org/show_bug.cgi?id=107237

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2013-01-23
Reviewed by Adam Barth.

Source/WebCore:

No new tests needed.

When the parser foster-parent's a node out of a table context and the foster parent is a template element, set the Task.parent
to be the template element's content, rather than the element itself. This ensures the foster-parented node isn't errorenously
reparented.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::findFosterSite):

LayoutTests:

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140537 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] Layout test rebaselines
arv@chromium.org [Wed, 23 Jan 2013 15:13:24 +0000 (15:13 +0000)]
[chromium] Layout test rebaselines

Unreviewed rebaseline

* platform/chromium-linux-x86/media/media-can-play-ogg-expected.txt: Added.
* platform/chromium-linux/media/media-can-play-ogg-expected.txt: Added.
* platform/chromium-mac-lion/media/media-can-play-ogg-expected.txt: Added.
* platform/chromium-mac-snowleopard/media/media-can-play-ogg-expected.txt: Added.
* platform/chromium-mac/media/media-can-play-ogg-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140536 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: heap profiler shows nodes with distance 0
yurys@chromium.org [Wed, 23 Jan 2013 15:01:51 +0000 (15:01 +0000)]
Web Inspector: heap profiler shows nodes with distance 0
https://bugs.webkit.org/show_bug.cgi?id=107425

Reviewed by Pavel Feldman.

"Document DOM tree" entities now have distance 1. So if there is a DOM
wrapper that is not referenced from javascript it will anyways be shown
in the heap snapshot and will have distance 2. Also such DOM wrappers
are considered to be reachable from user roots (e.g. global Window objects)
otherwice they are not event shown in the heap snapshots.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype.distanceForUserRoot):
(WebInspector.HeapSnapshot.prototype._calculateDistances):
* inspector/front-end/JSHeapSnapshot.js:
(WebInspector.JSHeapSnapshot.prototype.distanceForUserRoot): distance for
"(Document DOM trees)" is set to 0 to make sure distance of "Ddocument DOM tree" is 1.
(WebInspector.JSHeapSnapshot.prototype._markPageOwnedNodes):
(WebInspector.JSHeapSnapshotNode.prototype.isDocumentDOMTreesRoot):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140535 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: some measurements are missing in PerformanceTests/inspector/heap-...
yurys@chromium.org [Wed, 23 Jan 2013 14:58:44 +0000 (14:58 +0000)]
Web Inspector: some measurements are missing in PerformanceTests/inspector/heap-*.html
https://bugs.webkit.org/show_bug.cgi?id=107687

Reviewed by Pavel Feldman.

* inspector/heap-snapshot-performance-test.js: override methods on JSHeapSnapshot instead
of HeapSnapshot, otherwise overrides from JSHeapSnapshot will rule.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140534 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Qt] Unreviewed gardening.
kadam@inf.u-szeged.hu [Wed, 23 Jan 2013 12:36:25 +0000 (12:36 +0000)]
[Qt] Unreviewed gardening.
Rebaselining after r140448, r140459 and r140493.

Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2013-01-23

* platform/qt-5.0/fast/js/global-constructors-expected.txt:
* platform/qt/fast/dom/constructed-objects-prototypes-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140533 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[GStreamer] Add Opus MIME type to the list of supported ones
philn@webkit.org [Wed, 23 Jan 2013 12:04:22 +0000 (12:04 +0000)]
[GStreamer] Add Opus MIME type to the list of supported ones
https://bugs.webkit.org/show_bug.cgi?id=98759

Patch by Adrian Perez de Castro <aperez@igalia.com> on 2013-01-23
Reviewed by Philippe Normand.

Source/WebCore:

GStreamer has support for the Opus codec (http://opus-codec.org) by
using a plugin present in the "gst-plugins-bad" repository. Opus
streams may be embedded in a Ogg container, or standalone. The case
of the Ogg container is already covered by the "*/ogg" MIME types
declared as supported by the GStreamer media playing code, but for
standalone streams to work, "audio/opus" has to be added.

With this, and the needed GStreamer plugin installed, the GTK+
launcher is able to correctly play the example streams from
http://opus-codec.org/examples

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

LayoutTests:

Opus (http://opus-codec.org) streams are typically embedded into
Ogg containers, so add a check for it in the test case.

* media/media-can-play-ogg-expected.txt:
* media/media-can-play-ogg.html:
* platform/chromium-android/media/media-can-play-ogg-expected.txt:
* platform/chromium/media/media-can-play-ogg-expected.txt: Copied from LayoutTests/media/media-can-play-ogg-expected.txt.
* platform/efl/media/media-can-play-ogg-expected.txt: Copied from LayoutTests/media/media-can-play-ogg-expected.txt.
* platform/gtk/media/media-can-play-ogg-expected.txt: Copied from LayoutTests/media/media-can-play-ogg-expected.txt.
* platform/qt-linux/media/media-can-play-ogg-expected.txt: Copied from LayoutTests/media/media-can-play-ogg-expected.txt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140532 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Refactoring] Remove elementParentStyle from SelectorCheckerContext
tasak@google.com [Wed, 23 Jan 2013 10:51:44 +0000 (10:51 +0000)]
[Refactoring] Remove elementParentStyle from SelectorCheckerContext
https://bugs.webkit.org/show_bug.cgi?id=107496

Reviewed by Darin Adler.

Since childrenAffectedBy bits were moved from RenderStyle to element,
now elementParentStyle is not used in SelectorChecker and
StyleResolver. We should remove the member varaiable from
SelectorCheckerContext.

No new tests, because just refactoring.

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::match):
* css/SelectorChecker.h:
(WebCore::SelectorChecker::SelectorCheckingContext::SelectorCheckingContext):
(SelectorCheckingContext):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::ruleMatches):
Removed elementParentStyle.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140531 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoPass CSSSelector pointers around as const after parsing stage.
akling@apple.com [Wed, 23 Jan 2013 10:26:04 +0000 (10:26 +0000)]
Pass CSSSelector pointers around as const after parsing stage.
<http://webkit.org/b/107645>

Reviewed by Antti Koivisto.

Have CSSSelectorList vend const CSSSelector* and make the style resolution code
operate on const pointers instead.

This gives us some compile-time confidence that nobody is changing the selectors
after we've parsed them.

* css/CSSSelector.cpp:
(WebCore::CSSSelector::operator==):
(WebCore::CSSSelector::selectorText):
(WebCore::CSSSelector::parseNth):
(WebCore::CSSSelector::matchNth):
* css/CSSSelector.h:
(CSSSelector):
(WebCore::CSSSelector::tagHistory):
(WebCore::CSSSelector::selectorList):
* css/CSSSelectorList.cpp:
(WebCore::CSSSelectorList::selectorsText):
(WebCore::forEachTagSelector):
(WebCore::forEachSelector):
(WebCore::SelectorNeedsNamespaceResolutionFunctor::operator()):
(WebCore::SelectorHasInvalidSelectorFunctor::operator()):
* css/CSSSelectorList.h:
(WebCore::CSSSelectorList::first):
(CSSSelectorList):
(WebCore::CSSSelectorList::selectorAt):
(WebCore::CSSSelectorList::indexOfNextSelectorAfter):
(WebCore::CSSSelectorList::next):
* css/CSSStyleRule.cpp:
(WebCore::CSSStyleRule::generateSelectorText):
* css/RuleSet.cpp:
(WebCore::selectorListContainsUncommonAttributeSelector):
(WebCore::collectFeaturesFromRuleData):
* css/RuleSet.h:
(WebCore::RuleData::selector):
(WebCore::RuleSet::RuleSetSelectorPair::RuleSetSelectorPair):
(RuleSetSelectorPair):
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matches):
(WebCore::SelectorChecker::match):
(WebCore::SelectorChecker::checkOne):
(WebCore::SelectorChecker::checkScrollbarPseudoClass):
(WebCore::SelectorChecker::determineLinkMatchType):
* css/SelectorChecker.h:
(WebCore::SelectorChecker::SelectorCheckingContext::SelectorCheckingContext):
(SelectorCheckingContext):
(SelectorChecker):
* css/StyleInvalidationAnalysis.cpp:
(WebCore::determineSelectorScopes):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::collectMatchingRulesForRegion):
(WebCore::StyleResolver::checkRegionSelector):
* css/StyleResolver.h:
(StyleResolver):
* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::initialize):
(WebCore::SelectorDataList::execute):
* dom/SelectorQuery.h:
(WebCore::SelectorDataList::SelectorData::SelectorData):
(SelectorData):
* html/shadow/ContentDistributor.cpp:
(WebCore::ContentDistributor::collectSelectFeatureSetFrom):
* html/shadow/ContentSelectorQuery.cpp:
(WebCore::ContentSelectorChecker::checkContentSelector):
(WebCore::ContentSelectorDataList::initialize):
* html/shadow/ContentSelectorQuery.h:
(ContentSelectorChecker):
(ContentSelectorDataList):
* html/shadow/HTMLContentElement.cpp:
(WebCore::validateSubSelector):
(WebCore::validateSelector):
(WebCore::HTMLContentElement::validateSelect):
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::buildObjectForSelectorList):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140530 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[GTK] Unreviewed build fix after r140518.
sergio@webkit.org [Wed, 23 Jan 2013 10:22:03 +0000 (10:22 +0000)]
[GTK] Unreviewed build fix after r140518.

* GNUmakefile.list.am: rename TextureMapperShaderManager to
TextureMapperShaderProgram.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140529 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoRemoving command line shortening as it makes it difficult to see the command during...
commit-queue@webkit.org [Wed, 23 Jan 2013 10:06:57 +0000 (10:06 +0000)]
Removing command line shortening as it makes it difficult to see the command during errors.
https://bugs.webkit.org/show_bug.cgi?id=107643

Patch by Tim 'mithro' Ansell <mithro@mithis.com> on 2013-01-23
Reviewed by Eric Seidel.

* Scripts/webkitpy/common/system/executive.py:
(ScriptError):
(ScriptError.__init__):
* Scripts/webkitpy/common/system/executive_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140528 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdding myself as contributor in committers.py (as requested by eseidel).
commit-queue@webkit.org [Wed, 23 Jan 2013 09:56:19 +0000 (09:56 +0000)]
Adding myself as contributor in committers.py (as requested by eseidel).
https://bugs.webkit.org/show_bug.cgi?id=107647

Patch by Tim 'mithro' Ansell <mithro@mithis.com> on 2013-01-23
Reviewed by Eric Seidel.

* Scripts/webkitpy/common/config/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140526 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoREGRESSION(r139044): Pan icon remains on screen on Chromium-WinXP
yosin@chromium.org [Wed, 23 Jan 2013 09:42:37 +0000 (09:42 +0000)]
REGRESSION(r139044): Pan icon remains on screen on Chromium-WinXP
https://bugs.webkit.org/show_bug.cgi?id=107623

Reviewed by Hajime Morita.

Source/WebCore:

The issue is caused by AutoscrollController::stopAutoscrollTimer()
doesn't call View::removePanScrollIcon() because m_autoscrollType
is reset before checking it.

This patch changes to reset m_autoscrollType after all references.

Test: platform/chromium-win/fast/events/panScroll-panIcon.html

* page/AutoscrollController.cpp:
(WebCore::AutoscrollController::stopAutoscrollTimer):

LayoutTests:

This test checks no pan icon after pan scroll.

* platform/chromium-win/fast/events/panScroll-panIcon-expected.png: Added.
* platform/chromium-win/fast/events/panScroll-panIcon-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-panIcon.html: Added.
* platform/chromium/TestExpectations: Changed to skip entry for panScroll-panIcon.html for Android, Linux and Mac.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140525 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoREGRESSION(r140338): WebKitGtk+ trying to allocate a buffer too big
sergio@webkit.org [Wed, 23 Jan 2013 09:21:19 +0000 (09:21 +0000)]
REGRESSION(r140338): WebKitGtk+ trying to allocate a buffer too big
https://bugs.webkit.org/show_bug.cgi?id=107646

Reviewed by Carlos Garcia Campos.

g_input_stream_skip_async() was replaced in r140338 by
g_input_stream_read_async() to workaround a glib buffer. The former
was using G_MAXSSIZE to skip the whole redirect message but we
cannot use it for the latter because it will try to
allocate a buffer of that size. Replaced it by READ_BUFFER_SIZE. No
new tests required, functionality already covered by network tests..

* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::redirectSkipCallback):
(WebCore::sendRequestCallback):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140524 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWeb Inspector: use inspectedWindow.document instead of document in InjectedScript
aandrey@chromium.org [Wed, 23 Jan 2013 09:18:48 +0000 (09:18 +0000)]
Web Inspector: use inspectedWindow.document instead of document in InjectedScript
https://bugs.webkit.org/show_bug.cgi?id=107642

Reviewed by Pavel Feldman.

* inspector/InjectedScriptSource.js:
(.):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140523 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoxml-stylesheet XSL is not requested with JavaScript disabled
vivek.vg@samsung.com [Wed, 23 Jan 2013 09:02:01 +0000 (09:02 +0000)]
xml-stylesheet XSL is not requested with JavaScript disabled
https://bugs.webkit.org/show_bug.cgi?id=103902

Reviewed by Adam Barth.

Source/WebCore:

Currently CachedResourceLoader::canRequest() calls allowScriptFromSource() on
ContentSecurityPolicy and FrameLoaderClient for the given XSLStyleSheet. This
should be restricted to only calling allowScriptFromSource() for the
ContentSecurityPolicy.

Test: http/tests/xsl/xslt-transform-with-javascript-disabled.html

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::canRequest):

LayoutTests:

Add a test to perform XSL transformation when the Javascript is disabled.

* http/tests/xsl/resources/xslt-transform-with-javascript-disabled.xml:
* http/tests/xsl/resources/xslt-transform-with-javascript-disabled.xsl:
* http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt:
* http/tests/xsl/xslt-transform-with-javascript-disabled.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140522 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[V8] Remove if(isolate) checks from v8String() and v8Integer()
haraken@chromium.org [Wed, 23 Jan 2013 08:45:31 +0000 (08:45 +0000)]
[V8] Remove if(isolate) checks from v8String() and v8Integer()
https://bugs.webkit.org/show_bug.cgi?id=107540

Reviewed by Adam Barth.

Now there is no optional Isolate parameter in the code base
(except for throwError()). We can safely remove if(isolate) checks
from v8String() and v8Integer().

div.id:       17.8 ns => 17.8 ns (no performance change)
div.nodeType:  9.7 ns =>  8.9 ns (+8.9% performance improvement)

No tests. No change in behavior.

* bindings/v8/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::handleV8DebugEvent):
* bindings/v8/V8Binding.h:
(WebCore::v8String):
(WebCore::v8Integer):
* bindings/v8/V8WindowErrorHandler.cpp:
(WebCore::V8WindowErrorHandler::callListenerFunction):
* bindings/v8/V8WorkerContextErrorHandler.cpp:
(WebCore::V8WorkerContextErrorHandler::callListenerFunction):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140521 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoInvalidated SVG shadow tree should be always detached.
morrita@google.com [Wed, 23 Jan 2013 08:37:56 +0000 (08:37 +0000)]
Invalidated SVG shadow tree should be always detached.
https://bugs.webkit.org/show_bug.cgi?id=107634

Reviewed by Ryosuke Niwa.

Source/WebCore:

SVGUseElement::clearResourceReferences() uses removeAllChildren() for
clearing its shadow DOM, but this is wrong.
removeAllChildren() is designed for removing children of an out-of-document Node.
For efficiency, it skips a series of cleanup sequences like detach().

For removing SVG shadow tree which is in Document, removeChildren() should be used.
It does proper cleanup for the chilren.

Test: svg/custom/use-invalidate-click-crash.xhtml

* svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::clearResourceReferences):

LayoutTests:

* svg/custom/use-invalidate-click-crash-expected.txt: Added.
* svg/custom/use-invalidate-click-crash.xhtml: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140520 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[TexMap] Don't call GraphicsLayer::setNeedsDisplay() from TextureMapperLayer.
commit-queue@webkit.org [Wed, 23 Jan 2013 08:34:16 +0000 (08:34 +0000)]
[TexMap] Don't call GraphicsLayer::setNeedsDisplay() from TextureMapperLayer.
https://bugs.webkit.org/show_bug.cgi?id=107629

Patch by Huang Dongsung <luxtella@company100.net> on 2013-01-23
Reviewed by Noam Rosenthal.

We are removing the dependency on GraphicsLayer from TextureMapperLayer.

This is in preparation for refactoring TextureMapper to work in an actor
model (http://webkit.org/b/103854).

No new tests, refactoring only.

* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setDrawsContent):
* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::flushCompositingStateForThisLayerOnly):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140519 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Texmap] Rename TextureMapperShaderManager.* TextureMapperShaderProgram.*
commit-queue@webkit.org [Wed, 23 Jan 2013 08:32:08 +0000 (08:32 +0000)]
[Texmap] Rename TextureMapperShaderManager.* TextureMapperShaderProgram.*
https://bugs.webkit.org/show_bug.cgi?id=105847

TextureMapperShaderManager contains very little "manager" code.
Moved the map of shaders to TextureMapperGL, and renamed the files containing
the shader implementation TextureMapperShaderProgram.cpp|h.

Patch by No'am Rosenthal <noam@webkit.org> on 2013-01-23
Reviewed by Kenneth Rohde Christiansen.

No new tests - renames/refactors only.

* GNUmakefile.list.am:
* PlatformEfl.cmake:
* Target.pri:
* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGLData::SharedGLData::getShaderProgram):
        This function is copied from TextureMapperShaderManager.
(SharedGLData):
(WebCore::TextureMapperGLData::SharedGLData::SharedGLData):
(WebCore::TextureMapperGL::drawBorder):
(WebCore::TextureMapperGL::drawTexture):
(WebCore::TextureMapperGL::drawSolidColor):
(WebCore::optionsForFilterType):
(WebCore::TextureMapperGL::drawFiltered):
(WebCore::TextureMapperGL::beginClip):
* platform/graphics/texmap/TextureMapperShaderProgram.cpp: Renamed from Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp.
(WebCore):
(WebCore::compositingLogEnabled):
(WebCore::TextureMapperShaderProgram::TextureMapperShaderProgram):
(WebCore::TextureMapperShaderProgram::setMatrix):
(WebCore::TextureMapperShaderProgram::getLocation):
(WebCore::TextureMapperShaderProgram::~TextureMapperShaderProgram):
(WebCore::TextureMapperShaderProgram::create):
* platform/graphics/texmap/TextureMapperShaderProgram.h: Renamed from Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.h.
(WebCore):
(TextureMapperShaderProgram):
(WebCore::TextureMapperShaderProgram::programID):
(WebCore::TextureMapperShaderProgram::context):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140518 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[EFL] Gardening for some inspector tests
commit-queue@webkit.org [Wed, 23 Jan 2013 08:29:38 +0000 (08:29 +0000)]
[EFL] Gardening for some inspector tests
https://bugs.webkit.org/show_bug.cgi?id=107516

Unreviewed gardening.

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-01-23

* platform/efl/TestExpectations: Add bug numbers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140517 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[V8] Make an Isolate parameter mandatory in throwError()
haraken@chromium.org [Wed, 23 Jan 2013 08:28:13 +0000 (08:28 +0000)]
[V8] Make an Isolate parameter mandatory in throwError()
https://bugs.webkit.org/show_bug.cgi?id=107636

Reviewed by Adam Barth.

No tests. No change in behavior.

* bindings/v8/NPV8Object.cpp:
(_NPN_SetException):
* bindings/v8/V8Binding.cpp:
(WebCore::handleMaxRecursionDepthExceeded):
* bindings/v8/V8Binding.h:
(WebCore):
* bindings/v8/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::evaluate):
(WebCore::WorkerScriptController::setException):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140516 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Wed, 23 Jan 2013 08:00:07 +0000 (08:00 +0000)]
Unreviewed GTK gardening.

Rebaselining after r140448, r140459 and r140493.

* platform/gtk/fast/dom/constructed-objects-prototypes-expected.txt: Added.
* platform/gtk/fast/js/global-constructors-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140515 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[V8] Make an Isolate parameter mandatory in throwTypeError()
haraken@chromium.org [Wed, 23 Jan 2013 07:37:06 +0000 (07:37 +0000)]
[V8] Make an Isolate parameter mandatory in throwTypeError()
https://bugs.webkit.org/show_bug.cgi?id=107632

Reviewed by Adam Barth.

No tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateParametersCheck):
(GenerateConstructorHeader):
(JSValueToNative):
* bindings/scripts/test/V8/V8TestEventConstructor.cpp:
(WebCore::V8TestEventConstructor::constructorCallback):
* bindings/scripts/test/V8/V8TestInterface.cpp:
(WebCore::V8TestInterface::constructorCallback):
* bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
(WebCore::V8TestNamedConstructorConstructorCallback):
* bindings/scripts/test/V8/V8TestNode.cpp:
(WebCore::V8TestNode::constructorCallback):
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjV8Internal::methodWithSequenceArgCallback):
(WebCore::V8TestObj::constructorCallback):
* bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
(WebCore::V8TestOverloadedConstructors::constructorCallback):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
(WebCore::TestSerializedScriptValueInterfaceV8Internal::acceptTransferListCallback):
(WebCore::TestSerializedScriptValueInterfaceV8Internal::multiTransferListCallback):
(WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
* bindings/v8/V8Binding.h:
(WebCore):
(WebCore::toRefPtrNativeArray):
(WebCore::toV8Sequence):
* bindings/v8/V8NodeFilterCondition.cpp:
(WebCore::V8NodeFilterCondition::acceptNode):
* bindings/v8/V8Utilities.cpp:
(WebCore::extractTransferables):
(WebCore::getMessagePortArray):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140514 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd monitoring of patches and queues to the QueueStatusServer
commit-queue@webkit.org [Wed, 23 Jan 2013 07:36:10 +0000 (07:36 +0000)]
Add monitoring of patches and queues to the QueueStatusServer
https://bugs.webkit.org/show_bug.cgi?id=107612

Patch by Alan Cutter <alancutter@chromium.org> on 2013-01-22
Reviewed by Adam Barth.

Created classes for recording events into the datastore and integrated them into the existing handlers.
Code for presenting the recorded data will come in a separate patch.

* QueueStatusServer/app.yaml:
* QueueStatusServer/config/__init__.py: Added.
* QueueStatusServer/config/logging.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
* QueueStatusServer/config/messages.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
* QueueStatusServer/handlers/nextpatch.py:
(NextPatch.get):
(NextPatch._assign_patch):
* QueueStatusServer/handlers/releasepatch.py:
(ReleasePatch.post):
* QueueStatusServer/handlers/updatestatus.py:
(UpdateStatus.post):
* QueueStatusServer/handlers/updateworkitems.py:
(UpdateWorkItems._parse_work_items_string):
(UpdateWorkItems):
(UpdateWorkItems._update_work_items_from_request):
(UpdateWorkItems._queue_from_request):
(UpdateWorkItems.post):
* QueueStatusServer/loggers/__init__.py: Added.
* QueueStatusServer/loggers/recordbotevent.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
(RecordBotEvent):
(RecordBotEvent.activity):
* QueueStatusServer/loggers/recordpatchevent.py: Added.
(RecordPatchEvent):
(RecordPatchEvent.added):
(RecordPatchEvent.retrying):
(RecordPatchEvent.started):
(RecordPatchEvent.stopped):
(RecordPatchEvent.updated):
(RecordPatchEvent._get_patches_waiting):
* QueueStatusServer/model/patchlog.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
(PatchLog):
(PatchLog.lookup):
(PatchLog.calculate_wait_duration):
(PatchLog.calculate_process_duration):
* QueueStatusServer/model/queuelog.py: Copied from Tools/QueueStatusServer/handlers/nextpatch.py.
(QueueLog):
(QueueLog.get_current):
(QueueLog.create_key):
* QueueStatusServer/model/queuestatus.py:
(QueueStatus.is_retry_request):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140513 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago20% regression on dom_perf/DomDivWalk
falken@chromium.org [Wed, 23 Jan 2013 07:31:30 +0000 (07:31 +0000)]
20% regression on dom_perf/DomDivWalk
https://bugs.webkit.org/show_bug.cgi?id=106726

Reviewed by Hajime Morita.

This patch moves the checks in Element::removedFrom for Fullscreen and top layer flags
into a slow path. The idea is for the two checks for Fullscreen and top layer
to be replaced by one faster check in the fast path.

The plan is to migrate the Fullscreen implementation to use top layer, so this is just a
short-term fix for the perf regression.

No new tests: no functionality change

* dom/Element.cpp:
(WebCore::Element::removedFrom): Create a slow path to move the Fullscreen and top layer checks into.
* dom/Node.cpp:
(WebCore::Node::setIsInTopLayer): To allow for cleaner code in Element::removedFrom, define
setIsInTopLayer and isInTopLayer even when the feature flag is off.
* dom/Node.h:
(WebCore::Node::isInTopLayer): Ditto.
(Node):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140512 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoprepare-Changelog should support updating the list of changed files
commit-queue@webkit.org [Wed, 23 Jan 2013 07:22:31 +0000 (07:22 +0000)]
prepare-Changelog should support updating the list of changed files
https://bugs.webkit.org/show_bug.cgi?id=74358

Patch by Timothy Loh <timloh@chromium.com> on 2013-01-22
Reviewed by Eric Seidel.

Needing to re-make ChangeLog entries when the list of files/functions
changes is a bit annoying, it'd be nice to have this more automated.
This patch makes `webkit-patch update' update the date line and bug
description if needed, and if the list of changed files/functions has
changed, either updates the list (if there are no annotations), or
otherwise appends the new list below.

* Scripts/webkitpy/tool/steps/preparechangelog.py:
(PrepareChangeLog._resolve_existing_entry):
(PrepareChangeLog):
(PrepareChangeLog._merge_entries):
(PrepareChangeLog.run):
* Scripts/webkitpy/tool/steps/preparechangelog_unittest.py:
(PrepareChangeLogTest.test_resolve_existing_entry):
(make_entry):
(test_ensure_bug_url):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140511 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUse Python 2.7 unittest syntax in our unittests
commit-queue@webkit.org [Wed, 23 Jan 2013 07:12:44 +0000 (07:12 +0000)]
Use Python 2.7 unittest syntax in our unittests
https://bugs.webkit.org/show_bug.cgi?id=105607

Patch by Tim 'mithro' Ansell <mithro@mithis.com> on 2013-01-22
Reviewed by Eric Seidel.

* Scripts/webkitpy/**/*_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140510 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoChange the Supplementable class to not use AtomicString.
mark.lam@apple.com [Wed, 23 Jan 2013 06:49:45 +0000 (06:49 +0000)]
Change the Supplementable class to not use AtomicString.
https://bugs.webkit.org/show_bug.cgi?id=107535.

Reviewed by Adam Barth.

Replaced the use of AtomicString keys with literal const char* keys.
This simplifies the SupplementMap and makes it slightly leaner and faster.

Source/WebCore:

No new tests.

* Modules/battery/BatteryController.cpp:
(WebCore::BatteryController::supplementName):
* Modules/battery/BatteryController.h:
(BatteryController):
* Modules/battery/NavigatorBattery.cpp:
(WebCore::NavigatorBattery::supplementName):
(WebCore):
(WebCore::NavigatorBattery::from):
* Modules/battery/NavigatorBattery.h:
(NavigatorBattery):
* Modules/filesystem/chromium/DraggedIsolatedFileSystem.cpp:
(WebCore::DraggedIsolatedFileSystem::supplementName):
* Modules/filesystem/chromium/DraggedIsolatedFileSystem.h:
(DraggedIsolatedFileSystem):
* Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::supplementName):
(WebCore):
(WebCore::NavigatorGamepad::from):
* Modules/gamepad/NavigatorGamepad.h:
(NavigatorGamepad):
* Modules/geolocation/GeolocationController.cpp:
(WebCore::GeolocationController::supplementName):
* Modules/geolocation/GeolocationController.h:
(GeolocationController):
* Modules/geolocation/NavigatorGeolocation.cpp:
(WebCore::NavigatorGeolocation::supplementName):
(WebCore):
(WebCore::NavigatorGeolocation::from):
* Modules/geolocation/NavigatorGeolocation.h:
(NavigatorGeolocation):
* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
(WebCore::DOMWindowIndexedDatabase::supplementName):
(WebCore):
(WebCore::DOMWindowIndexedDatabase::from):
* Modules/indexeddb/DOMWindowIndexedDatabase.h:
(DOMWindowIndexedDatabase):
* Modules/indexeddb/PageGroupIndexedDatabase.cpp:
(WebCore::PageGroupIndexedDatabase::supplementName):
(WebCore):
(WebCore::PageGroupIndexedDatabase::from):
* Modules/indexeddb/PageGroupIndexedDatabase.h:
(PageGroupIndexedDatabase):
* Modules/indexeddb/WorkerContextIndexedDatabase.cpp:
(WebCore::WorkerContextIndexedDatabase::supplementName):
(WebCore):
(WebCore::WorkerContextIndexedDatabase::from):
* Modules/indexeddb/WorkerContextIndexedDatabase.h:
(WorkerContextIndexedDatabase):
* Modules/intents/DOMWindowIntents.cpp:
(WebCore::DOMWindowIntents::supplementName):
(WebCore):
(WebCore::DOMWindowIntents::from):
* Modules/intents/DOMWindowIntents.h:
(DOMWindowIntents):
* Modules/mediastream/UserMediaController.cpp:
(WebCore::UserMediaController::supplementName):
* Modules/mediastream/UserMediaController.h:
(UserMediaController):
* Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
(WebCore::NavigatorContentUtils::supplementName):
* Modules/navigatorcontentutils/NavigatorContentUtils.h:
(NavigatorContentUtils):
* Modules/networkinfo/NavigatorNetworkInfoConnection.cpp:
(WebCore::NavigatorNetworkInfoConnection::supplementName):
(WebCore):
(WebCore::NavigatorNetworkInfoConnection::from):
* Modules/networkinfo/NavigatorNetworkInfoConnection.h:
(NavigatorNetworkInfoConnection):
* Modules/networkinfo/NetworkInfoController.cpp:
(WebCore::NetworkInfoController::supplementName):
* Modules/networkinfo/NetworkInfoController.h:
(NetworkInfoController):
* Modules/notifications/DOMWindowNotifications.cpp:
(WebCore::DOMWindowNotifications::supplementName):
(WebCore):
(WebCore::DOMWindowNotifications::from):
* Modules/notifications/DOMWindowNotifications.h:
(DOMWindowNotifications):
* Modules/notifications/NotificationController.cpp:
(WebCore::NotificationController::supplementName):
* Modules/notifications/NotificationController.h:
(NotificationController):
* Modules/notifications/WorkerContextNotifications.cpp:
(WebCore::WorkerContextNotifications::supplementName):
(WebCore):
(WebCore::WorkerContextNotifications::from):
* Modules/notifications/WorkerContextNotifications.h:
(WorkerContextNotifications):
* Modules/quota/DOMWindowQuota.cpp:
(WebCore::DOMWindowQuota::supplementName):
(WebCore):
(WebCore::DOMWindowQuota::from):
* Modules/quota/DOMWindowQuota.h:
(DOMWindowQuota):
* Modules/speech/DOMWindowSpeechSynthesis.cpp:
(WebCore::DOMWindowSpeechSynthesis::supplementName):
(WebCore):
(WebCore::DOMWindowSpeechSynthesis::from):
* Modules/speech/DOMWindowSpeechSynthesis.h:
(DOMWindowSpeechSynthesis):
* Modules/speech/SpeechRecognitionController.cpp:
(WebCore::SpeechRecognitionController::supplementName):
* Modules/speech/SpeechRecognitionController.h:
(SpeechRecognitionController):
* Modules/vibration/Vibration.cpp:
(WebCore::Vibration::supplementName):
* Modules/vibration/Vibration.h:
(Vibration):
* Modules/webdatabase/DatabaseContext.cpp:
(WebCore::DatabaseContext::supplementName):
(WebCore):
(WebCore::DatabaseContext::existingDatabaseContextFrom):
(WebCore::DatabaseContext::from):
* Modules/webdatabase/DatabaseContext.h:
(DatabaseContext):
* dom/ContextFeatures.cpp:
(WebCore::ContextFeatures::supplementName):
* dom/ContextFeatures.h:
* dom/DeviceMotionController.cpp:
(WebCore::DeviceMotionController::supplementName):
* dom/DeviceMotionController.h:
(DeviceMotionController):
* dom/DeviceOrientationController.cpp:
(WebCore::DeviceOrientationController::supplementName):
* dom/DeviceOrientationController.h:
(DeviceOrientationController):
* loader/PrerendererClient.cpp:
(WebCore::PrerendererClient::supplementName):
* loader/PrerendererClient.h:
(PrerendererClient):
* page/DOMWindowPagePopup.cpp:
(WebCore::DOMWindowPagePopup::supplementName):
* page/DOMWindowPagePopup.h:
(DOMWindowPagePopup):
* page/SpeechInput.cpp:
(WebCore::SpeechInput::supplementName):
* page/SpeechInput.h:
(SpeechInput):
* platform/RefCountedSupplement.h:
(WebCore::RefCountedSupplement::provideTo):
(WebCore::RefCountedSupplement::from):
* platform/Supplementable.h:
(WebCore):
(WebCore::Supplement::provideTo):
(WebCore::Supplement::from):
(WebCore::Supplementable::provideSupplement):
(WebCore::Supplementable::removeSupplement):
(WebCore::Supplementable::requireSupplement):
(Supplementable):
* testing/InternalSettings.cpp:
(WebCore::InternalSettings::supplementName):
(WebCore):
(WebCore::InternalSettings::from):
* testing/InternalSettings.h:
(InternalSettings):

Source/WebKit/chromium:

* src/ContextFeaturesClientImpl.cpp:
(ContextFeaturesCache):
(WebKit::ContextFeaturesCache::supplementName):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140509 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoConvert disable-msg to disable for new pylint.
commit-queue@webkit.org [Wed, 23 Jan 2013 06:28:59 +0000 (06:28 +0000)]
Convert disable-msg to disable for new pylint.
https://bugs.webkit.org/show_bug.cgi?id=107627

Patch by Tim 'mithro' Ansell <mithro@mithis.com> on 2013-01-22
Reviewed by Eric Seidel.

* Scripts/webkitpy/common/checkout/scm/svn.py:
(SVNRepository.has_authorization_for_realm):
* Scripts/webkitpy/common/net/buildbot/buildbot.py:
(Builder.force_build):
* Scripts/webkitpy/common/system/executive_mock.py:
(MockExecutive2.run_command):
* Scripts/webkitpy/layout_tests/port/base.py:
(Port.reference_files):
* Scripts/webkitpy/layout_tests/port/chromium_port_testcase.py:
(ChromiumPortTestCase.test_default_configuration):
* Scripts/webkitpy/layout_tests/port/port_testcase.py:
(PortTestCase.test_expectations_ordering):
* Scripts/webkitpy/layout_tests/servers/http_server_base.py:
(HttpServerBase._check_that_all_ports_are_available):
* Scripts/webkitpy/tool/commands/abstractlocalservercommand.py:
(AbstractLocalServerCommand.execute):
* Scripts/webkitpy/tool/commands/download.py:
(AbstractPatchProcessingCommand):
* Scripts/webkitpy/tool/commands/rebaseline.py:
(AbstractRebaseliningCommand):
(AbstractParallelRebaselineCommand):
* Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
(_BaseTestCase.setUp):
(TestAnalyzeBaselines.setUp):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140508 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2013-01-22 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jan 2013 05:53:10 +0000 (05:53 +0000)]
2013-01-22  Kent Tamura  <tkent@chromium.org>

        [Chromium] Fix svn:mime-type of PNG files in platform/chromium*/

        * platform/chromium-linux/fast/borders/border-radius-with-box-shadow-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-color-stop-units-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-linear-angle-gradients-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-linear-right-angle-gradients-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-radial-gradients-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-radial-gradients2-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-repeating-linear-gradient-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/gradients/unprefixed-repeating-radial-gradients-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/fast/sub-pixel/transformed-iframe-copy-on-scroll-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/platform/chromium-linux/compositing/gestures/gesture-tapHighlight-simple-nested-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/platform/chromium/compositing/rounded-corners-expected.png: Added property svn:mime-type.
        * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/video/video-controls-layer-creation-expected.png: Added property svn:mime-type.
        * platform/chromium-mac-lion/fast/inline/justify-emphasis-inline-box-expected.png: Added property svn:mime-type.
        * platform/chromium-mac/fast/forms/datetimelocal/datetimelocal-appearance-l10n-expected.png: Added property svn:mime-type.
        * platform/chromium-mac/fast/inline/justify-emphasis-inline-box-expected.png: Added property svn:mime-type.
        * platform/chromium-mac/platform/chromium/fast/forms/suggestion-picker/datetime-suggestion-picker-appearance-locale-hebrew-expected.png: Added property svn:mime-type.
        * platform/chromium-mac/platform/chromium/fast/forms/suggestion-picker/datetimelocal-suggestion-picker-appearance-locale-hebrew-expected.png: Added property svn:mime-type.
        * platform/chromium-mac/platform/chromium/fast/forms/suggestion-picker/time-suggestion-picker-appearance-locale-hebrew-expected.png: Added property svn:mime-type.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140507 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agonon-ENABLE(DETAILS_ELEMENT) build fails.
morrita@google.com [Wed, 23 Jan 2013 05:52:06 +0000 (05:52 +0000)]
non-ENABLE(DETAILS_ELEMENT) build fails.
https://bugs.webkit.org/show_bug.cgi?id=107626

Reviewed by Kent Tamura.

No new tests, build configuration change.

* rendering/RenderObject.h:
(RenderObject): Added a missing condition.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140506 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWhitelist should also work for the WebVTT ::cue element without an argument
commit-queue@webkit.org [Wed, 23 Jan 2013 05:50:15 +0000 (05:50 +0000)]
Whitelist should also work for the WebVTT ::cue element without an argument
https://bugs.webkit.org/show_bug.cgi?id=107488

Source/WebCore:

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-01-22
Reviewed by Andreas Kling.

Apply filtering if the cue shadow pseudoId is set on the selector.

Existing tests were modified to cover this case.

* css/RuleSet.cpp:
(WebCore::determinePropertyWhitelistType):
* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlTextTrackContainerElement::createSubtrees):
* html/track/TextTrackCue.h:
(WebCore::TextTrackCue::cueShadowPseudoId):

LayoutTests:

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-01-22
Reviewed by Andreas Kling.

* media/track/track-css-property-whitelist-expected.txt:
* media/track/track-css-property-whitelist.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140505 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoConvert CSE phase to not rely too much on NodeIndex
fpizlo@apple.com [Wed, 23 Jan 2013 05:35:23 +0000 (05:35 +0000)]
Convert CSE phase to not rely too much on NodeIndex
https://bugs.webkit.org/show_bug.cgi?id=107616

Reviewed by Geoffrey Garen.

- Instead of looping over the graph (which assumes that you can simply loop over all
  nodes without considering blocks first) to reset node.replacement, do that in the
  loop that sets up relevantToOSR, just before running CSE on the block.

- Instead of having a relevantToOSR bitvector indexed by NodeIndex, made
  NodeRelevantToOSR be a NodeFlag. We had exactly one bit left in NodeFlags, so I did
  some reshuffling to fit it in.

* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::CSEPhase):
(JSC::DFG::CSEPhase::eliminateIrrelevantPhantomChildren):
(JSC::DFG::CSEPhase::performNodeCSE):
(JSC::DFG::CSEPhase::performBlockCSE):
(CSEPhase):
* dfg/DFGNodeFlags.h:
(DFG):
* dfg/DFGNodeType.h:
(DFG):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140504 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoMake MediaQueryEvaluator(bool) constructor explicit.
hayato@chromium.org [Wed, 23 Jan 2013 05:14:42 +0000 (05:14 +0000)]
Make MediaQueryEvaluator(bool) constructor explicit.
https://bugs.webkit.org/show_bug.cgi?id=107620

Reviewed by Hajime Morita.

No new tests: no change in behavior.

* css/MediaQueryEvaluator.h:
(MediaQueryEvaluator):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140503 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Layout test calendar-picker-mouse-operations.html is flaky
tkent@chromium.org [Wed, 23 Jan 2013 04:34:55 +0000 (04:34 +0000)]
[Chromium] Layout test calendar-picker-mouse-operations.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=107423

* platform/chromium/TestExpectations:
Update the bug URL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140502 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Fix calendar-picker-key-operations.html
tkent@chromium.org [Wed, 23 Jan 2013 04:21:04 +0000 (04:21 +0000)]
[Chromium] Fix calendar-picker-key-operations.html
https://bugs.webkit.org/show_bug.cgi?id=101408

Reviewed by Kentaro Hara.

* platform/chromium/TestExpectations:
* platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html:
We need to apply the waitUntilClosing idiom because picker closing
operation is asynchronous.
* platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt:
Fix a failure.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140501 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed. Remove a wrong entry from platfrom/chromium/TestExpectations
yosin@chromium.org [Wed, 23 Jan 2013 04:04:25 +0000 (04:04 +0000)]
Unreviewed. Remove a wrong entry from platfrom/chromium/TestExpectations

* platform/chromium/TestExpectations: Remove an entry for fast/forms/associated-element-crash.html

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140500 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] Add WebDiscardableMemory to platform
nduca@chromium.org [Wed, 23 Jan 2013 03:37:04 +0000 (03:37 +0000)]
[chromium] Add WebDiscardableMemory to platform
https://bugs.webkit.org/show_bug.cgi?id=107183

Reviewed by James Robinson.

WebDiscardable provides a wrapper around memory that can be
relcaimed by the underlying kernel when it is under heavy memory
pressure. This will be used in a followup patch in the Chromium
image decoding store for decoded/resized images.

* Platform.gypi:
* chromium/public/Platform.h:
(WebKit):
(Platform):
(WebKit::Platform::allocateDiscardableMemory):
* chromium/public/WebDiscardableMemory.h: Added.
(WebKit):
(WebDiscardableMemory):
(WebKit::WebDiscardableMemory::~WebDiscardableMemory):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140499 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoSource/WebCore: Use a platform strategy for local storage
andersca@apple.com [Wed, 23 Jan 2013 03:07:08 +0000 (03:07 +0000)]
Source/WebCore: Use a platform strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.exp.in:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
Add new files.

* platform/PlatformStrategies.h:
Add a way to create/get the storage strategy.

* storage/StorageNamespace.cpp:
(WebCore::StorageNamespace::localStorageNamespace):
(WebCore::StorageNamespace::sessionStorageNamespace):
Call the storage strategy.

* storage/StorageNamespace.h:
* storage/StorageStrategy.cpp: Added.
(WebCore::StorageStrategy::localStorageNamespace):
(WebCore::StorageStrategy::sessionStorageNamespace):
Call through to StorageNamespaceImpl.

* storage/StorageStrategy.h: Added.

Source/WebKit/efl: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/PlatformStrategiesEfl.cpp:
(PlatformStrategiesEfl::createStorageStrategy):
* WebCoreSupport/PlatformStrategiesEfl.h:
(PlatformStrategiesEfl):

Source/WebKit/gtk: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/PlatformStrategiesGtk.cpp:
(PlatformStrategiesGtk::createStorageStrategy):
* WebCoreSupport/PlatformStrategiesGtk.h:
(PlatformStrategiesGtk):

Source/WebKit/mac: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/WebPlatformStrategies.h:
(WebPlatformStrategies):
* WebCoreSupport/WebPlatformStrategies.mm:
(WebPlatformStrategies::createStorageStrategy):

Source/WebKit/qt: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/PlatformStrategiesQt.cpp:
(PlatformStrategiesQt::createStorageStrategy):
* WebCoreSupport/PlatformStrategiesQt.h:
(PlatformStrategiesQt):

Source/WebKit/win: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/WebPlatformStrategies.cpp:
(WebPlatformStrategies::createStorageStrategy):
* WebCoreSupport/WebPlatformStrategies.h:
(WebPlatformStrategies):

Source/WebKit/wince: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebCoreSupport/PlatformStrategiesWinCE.cpp:
(PlatformStrategiesWinCE::createStorageStrategy):
* WebCoreSupport/PlatformStrategiesWinCE.h:
(PlatformStrategiesWinCE):

Source/WebKit2: Use a platforom strategy for local storage
https://bugs.webkit.org/show_bug.cgi?id=107600

Reviewed by Andreas Kling.

Update for new storage strategy.

* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::createStorageStrategy):
(WebKit):
* WebProcess/WebCoreSupport/WebPlatformStrategies.h:
(WebPlatformStrategies):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140498 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoOptimize the texture packing for texImage2D() and texSubImage2D() in WebGL
commit-queue@webkit.org [Wed, 23 Jan 2013 02:58:32 +0000 (02:58 +0000)]
Optimize the texture packing for texImage2D() and texSubImage2D() in WebGL
https://bugs.webkit.org/show_bug.cgi?id=105821

Patch by Jun Jiang <jun.a.jiang@intel.com> on 2013-01-22
Reviewed by Kenneth Russell.

The original texture packing code uses function pointers to denote each unpack and pack operations for different combination of Source formats,
Destination formats and Alpha Operations. It could be made cleaner and simpler. In this patch, template functions are used and try best to avoid
generating useless code for unreachable path to avoid code bloat. Moreover, the flipY operation is moved into the pack operation instead of
operating in a standalone method to improve performance.

Already covered by current test.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore):
(WebCore::WebGLRenderingContext::texImage2DImpl):
(WebCore::WebGLRenderingContext::texSubImage2DImpl):
* platform/graphics/GraphicsContext3D.cpp:
(WebCore::GraphicsContext3D::packImageData):
(WebCore::GraphicsContext3D::extractImageData):
(WebCore::GraphicsContext3D::extractTextureData):
(WebCore):
(WebCore::GraphicsContext3D::packPixels):
* platform/graphics/GraphicsContext3D.h:
(WebCore::GraphicsContext3D::srcFormatComeFromDOMElementOrImageData):
(GraphicsContext3D):
(WebCore::GraphicsContext3D::ImageExtractor::imageSourceFormat):
(ImageExtractor):
* platform/graphics/cairo/GraphicsContext3DCairo.cpp:
(WebCore::GraphicsContext3D::ImageExtractor::extractImage):
* platform/graphics/cg/GraphicsContext3DCG.cpp:
(WebCore::getSourceDataFormat):
(WebCore::GraphicsContext3D::ImageExtractor::extractImage):
* platform/graphics/efl/GraphicsContext3DEfl.cpp:
(WebCore::GraphicsContext3D::ImageExtractor::extractImage):
* platform/graphics/qt/GraphicsContext3DQt.cpp:
(WebCore::GraphicsContext3D::ImageExtractor::extractImage):
* platform/graphics/skia/GraphicsContext3DSkia.cpp:
(WebCore::GraphicsContext3D::ImageExtractor::extractImage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140497 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoFlakiness dashboard: update builders.jsonp
commit-queue@webkit.org [Wed, 23 Jan 2013 02:58:12 +0000 (02:58 +0000)]
Flakiness dashboard: update builders.jsonp
https://bugs.webkit.org/show_bug.cgi?id=107610

Patch by Frank Farzan <frankf@chromium.org> on 2013-01-22
Reviewed by Ojan Vafai.

* TestResultServer/static-dashboards/builders.jsonp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140496 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
leandrogracia@chromium.org [Wed, 23 Jan 2013 02:25:05 +0000 (02:25 +0000)]
[Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
https://bugs.webkit.org/show_bug.cgi?id=107325

Reviewed by James Robinson.

Add a notification on WebWidgetClient called when the compositor commits a frame.

* public/WebWidgetClient.h:
(WebWidgetClient):
(WebKit::WebWidgetClient::didCommitCompositorFrame):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::didCommit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140495 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd Android instrumentation tests from ChromiumLinux waterfall
commit-queue@webkit.org [Wed, 23 Jan 2013 02:02:27 +0000 (02:02 +0000)]
Add Android instrumentation tests from ChromiumLinux waterfall
https://bugs.webkit.org/show_bug.cgi?id=107597

Patch by Frank Farzan <frankf@chromium.org> on 2013-01-22
Reviewed by Ojan Vafai.

* TestResultServer/static-dashboards/builders.js:
(loadBuildersList):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140494 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoImplement UIEvent constructor
haraken@chromium.org [Wed, 23 Jan 2013 01:50:02 +0000 (01:50 +0000)]
Implement UIEvent constructor
https://bugs.webkit.org/show_bug.cgi?id=107430

Reviewed by Adam Barth.

Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm

UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
which is enabled on Safari and Chromium for now.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

Test: fast/events/constructors/ui-event-constructor.html

* Configurations/FeatureDefines.xcconfig:
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateHeader):
* bindings/scripts/test/V8/V8TestInterface.h:
(V8TestInterface):
* dom/UIEvent.cpp:
(WebCore::UIEventInit::UIEventInit):
(WebCore):
(WebCore::UIEvent::UIEvent):
* dom/UIEvent.h:
(WebCore):
(UIEventInit):
(UIEvent):
(WebCore::UIEvent::create):
(WebCore::UIEvent::view):
(WebCore::UIEvent::detail):
(FocusInEventDispatchMediator):
(FocusOutEventDispatchMediator):
* dom/UIEvent.idl:

Source/WebKit/chromium:

* features.gypi:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Tools:

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

* fast/events/constructors/ui-event-constructor-expected.txt: Added.
* fast/events/constructors/ui-event-constructor.html: Added.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140493 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[EFL][WebGL] Enable WebGL LayoutTests.
commit-queue@webkit.org [Wed, 23 Jan 2013 01:43:18 +0000 (01:43 +0000)]
[EFL][WebGL] Enable WebGL LayoutTests.
https://bugs.webkit.org/show_bug.cgi?id=107485

Patch by Kondapally Kalyan <kalyan.kondapally@intel.com> on 2013-01-22
Reviewed by Laszlo Gombos.

This patch enables WebGL LayoutTests for Efl Port.

* platform/efl/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140492 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd functions to ChangeLog - parse bug desc/changed functions, delete/prepend entries
commit-queue@webkit.org [Wed, 23 Jan 2013 01:36:37 +0000 (01:36 +0000)]
Add functions to ChangeLog - parse bug desc/changed functions, delete/prepend entries
https://bugs.webkit.org/show_bug.cgi?id=107478

Patch by Timothy Loh <timloh@chromium.com> on 2013-01-22
Reviewed by Eric Seidel.

On the road to resolving Bug 74358, we need a few more functions in
changelog.py.
To make things easier to mock, change @staticmethods to @classmethods.

* Scripts/webkitpy/common/checkout/changelog.py:
(ChangeLogEntry):
(ChangeLogEntry._parse_reviewer_text):
(ChangeLogEntry._split_contributor_names):
(ChangeLogEntry._parse_author_name_and_email):
(ChangeLogEntry._parse_author_text):
(ChangeLogEntry._parse_touched_functions):
(ChangeLogEntry._parse_bug_description):
(ChangeLogEntry._parse_entry):
(ChangeLogEntry.date_line):
(ChangeLogEntry.bug_description):
(ChangeLogEntry.touched_functions):
(ChangeLogEntry.touched_files_text):
(ChangeLogEntry.is_touched_files_text_clean):
(ChangeLog):
(ChangeLog.parse_latest_entry_from_file):
(ChangeLog._separate_revision_and_line):
(ChangeLog.parse_entries_from_file):
(ChangeLog.set_short_description_and_bug_url):
(ChangeLog.delete_entries):
(ChangeLog.prepend_text):
* Scripts/webkitpy/common/checkout/changelog_unittest.py:
(test_parse_log_entries_from_changelog):
(test_latest_entry_parse):
(test_set_short_description_and_bug_url):
(test_delete_entries):
(test_prepend_text):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140491 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[chromium] webaudio/realtimeanalyser-fft-sizing.html is failing on Win7
noel.gordon@gmail.com [Wed, 23 Jan 2013 01:35:26 +0000 (01:35 +0000)]
[chromium] webaudio/realtimeanalyser-fft-sizing.html is failing on Win7
https://bugs.webkit.org/show_bug.cgi?id=107581

Unreviewed gardening.

Results on all win platforms match the generic expected result (so use that).

* platform/chromium-linux/webaudio/realtimeanalyser-fft-sizing-expected.txt: Removed.
* platform/chromium-win-xp/webaudio/realtimeanalyser-fft-sizing-expected.txt: Removed.
* platform/chromium-win/webaudio/realtimeanalyser-fft-sizing-expected.txt: Removed.
* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140490 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoIndexedDB: Remove IDBKey from WebKitIDL
jsbell@chromium.org [Wed, 23 Jan 2013 01:15:13 +0000 (01:15 +0000)]
IndexedDB: Remove IDBKey from WebKitIDL
https://bugs.webkit.org/show_bug.cgi?id=97375

Reviewed by Kentaro Hara.

Now that references to the artificial IDBKey type have been removed from all IDLs, remove
the support code, and move the conversion code into the IDBBindingUtilities. Removes
references to the autogenerated {V8,JS}IDBKey{Custom,}.{cpp,h} from the project files.

No new tests - just code moves/removing unused code. Updated binding reference test results.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Modules/indexeddb/IDBKey.idl: Removed.
* Target.pri:
* UseJSC.cmake:
* UseV8.cmake:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/IDBBindingUtilities.cpp:
(WebCore::toJS): Moved here from JSIDBKeyCustom.cpp
(WebCore):
* bindings/js/JSIDBKeyCustom.cpp: Removed.
* bindings/scripts/CodeGeneratorJS.pm:
(JSValueToNative):
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateFunctionCallString):
(GetNativeType):
(JSValueToNative):
* bindings/scripts/test/CPP/WebDOMTestObj.cpp:
* bindings/scripts/test/CPP/WebDOMTestObj.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/JS/JSTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
* bindings/scripts/test/TestObj.idl: Removed IDBKey-specific test.
* bindings/scripts/test/V8/V8TestObj.cpp:
* bindings/v8/IDBBindingUtilities.cpp:
(WebCore::toV8): Moved here from V8IDBKeyCustom.cpp
(WebCore):
* bindings/v8/custom/V8IDBKeyCustom.cpp: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140488 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed VS2010 build fix following r140259.
roger_fong@apple.com [Wed, 23 Jan 2013 01:06:01 +0000 (01:06 +0000)]
Unreviewed VS2010 build fix following r140259.

* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140487 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Move sandbox initialization to ChildProcess
ap@apple.com [Wed, 23 Jan 2013 00:35:53 +0000 (00:35 +0000)]
    Move sandbox initialization to ChildProcess
        https://bugs.webkit.org/show_bug.cgi?id=107486

        Reviewed by Sam Weinig.

        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeSandbox): Removed. We no longer need this function
        to be implemented in each process type.

        * NetworkProcess/mac/NetworkProcessMac.mm:
        (WebKit::initializeSandbox): Removed a custom (and incomplete) implementation.
        (WebKit::NetworkProcess::processUpdateSandboxInitializationParameters): Clear
        sandbox profile path in parameters, telling ChildProcess to not enter a sandbox.

        * PluginProcess/PluginProcess.h:
        * PluginProcess/mac/PluginProcessMac.mm:
        Added FIXMEs, saying that we should switch to ChildProcess implementation.

        * Shared/ChildProcess.cpp: Dummy implementations for other platforms.

        * Shared/ChildProcess.h: Added processUpdateSandboxInitializationParameters, which
        child processes will override to change sandbox initialization parameters.

        * Shared/SandboxInitializationParameters.h: Added.
        * Shared/mac/SandboxInitialiationParametersMac.mm: Added.
        Abstracts out sandbox parameter vector for coding safety. Encapsulates other
        things that subclasses will want to do differently.

        * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
        Added a shared implementation, based largely on WebProcess version.

        * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm: Removed custom sandboxing code.

        * WebKit2.xcodeproj/project.pbxproj: Added SandboxInitializationParameters files.

        * WebProcess/WebProcess.cpp:
        * WebProcess/WebProcess.h:
        Updated dummy implementations to match ChildProcess.

        * WebProcess/mac/WebProcessMac.mm:
        (WebKit): Moved sandboxing code to ChildProcess.
        (WebKit::WebProcess::processUpdateSandboxInitializationParameters): Override
        profile path, because default one doesn't work for WebProcessService.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140486 268f45cc-cd09-0410-ab3c-d52691b4dbfc