1. 13 Oct, 2013 2 commits
  2. 12 Oct, 2013 1 commit
    • akling@apple.com's avatar
      Replace bounds checking ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION · 2207aeb7
      akling@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120893
      
      Patch by Jessica Pease <jessica_n_pease@apple.com> on 2013-09-06
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      * Modules/indexeddb/IDBKeyPath.cpp:
      (WebCore::IDBKeyPathLexer::lex):
      * Modules/indexeddb/IDBLevelDBCoding.cpp:
      (WebCore::IDBLevelDBCoding::compareEncodedIDBKeys):
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::cssPropertyIDForJSCSSPropertyName):
      * css/CSSFontSelector.cpp:
      (WebCore::compareFontFaces):
      * css/CSSParser.cpp:
      (WebCore::CSSParser::rewriteSpecifiers):
      * html/HTMLCollection.cpp:
      (WebCore::traverseMatchingElementsForwardToOffset):
      (WebCore::LiveNodeListBase::traverseChildNodeListForwardToOffset):
      (WebCore::HTMLCollection::traverseForwardToOffset):
      * html/HTMLFontElement.cpp:
      (WebCore::parseFontSize):
      * html/parser/HTMLParserIdioms.cpp:
      (WebCore::parseHTMLIntegerInternal):
      (WebCore::parseHTMLNonNegativeIntegerInternal):
      * inspector/InspectorStyleSheet.h:
      (WebCore::InspectorStyleProperty::setRawTextFromStyleDeclaration):
      * platform/graphics/StringTruncator.cpp:
      (WebCore::centerTruncateToBuffer):
      (WebCore::rightTruncateToBuffer):
      (WebCore::truncateString):
      * platform/graphics/TextRun.h:
      (WebCore::TextRun::subRun):
      * platform/text/BidiRunList.h:
      (WebCore::::reverseRuns):
      * rendering/svg/SVGInlineTextBox.cpp:
      (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
      (WebCore::SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates):
      * rendering/svg/SVGTextChunkBuilder.cpp:
      (WebCore::SVGTextChunkBuilder::buildTextChunks):
      * rendering/svg/SVGTextLayoutEngine.cpp:
      (WebCore::SVGTextLayoutEngine::currentLogicalCharacterMetrics):
      * rendering/svg/SVGTextQuery.cpp:
      (WebCore::SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates):
      * svg/SVGAnimationElement.cpp:
      (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
      * svg/SVGPathByteStreamSource.h:
      (WebCore::SVGPathByteStreamSource::readType):
      
      Source/WebKit2:
      
      * Shared/Plugins/PluginQuirks.h:
      (WebKit::PluginQuirks::add):
      
      Source/WTF:
      
      * wtf/BumpPointerAllocator.h:
      (WTF::BumpPointerPool::ensureCapacity):
      (WTF::BumpPointerPool::alloc):
      (WTF::BumpPointerPool::ensureCapacityCrossPool):
      * wtf/FastMalloc.cpp:
      (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
      * wtf/StringPrintStream.cpp:
      (WTF::StringPrintStream::increaseSize):
      * wtf/dtoa/utils.h:
      (WTF::double_conversion::BufferReference::SubBufferReference):
      * wtf/text/WTFString.cpp:
      (WTF::String::fromUTF8):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2207aeb7
  3. 11 Oct, 2013 2 commits
    • darin@apple.com's avatar
      Change most call sites to call ICU directly instead of through WTF::Unicode · 2eb5f4de
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122635
      
      Reviewed by Alexey Proskuryakov.
      
      Source/JavaScriptCore:
      
      * parser/Lexer.cpp:
      (JSC::isNonLatin1IdentStart): Take a UChar since that's what the only caller wants to pass.
      Use U_GET_GC_MASK instead of WTF::Unicode::category.
      (JSC::isNonLatin1IdentPart): Ditto.
      
      * parser/Lexer.h:
      (JSC::Lexer::isWhiteSpace): Use u_charType instead of WTF::Unicode::isSeparatorSpace.
      
      * runtime/JSFunction.cpp: Removed "using namespace" for WTF::Unicode, this will no longer
      compile since this doesn't include anything that defines that namespace.
      
      * runtime/JSGlobalObjectFunctions.cpp:
      (JSC::isStrWhiteSpace): Use u_charType instead of WTF::Unicode::isSeparatorSpace.
      
      * yarr/YarrInterpreter.cpp:
      (JSC::Yarr::ByteCompiler::atomPatternCharacter): Use u_tolower and u_toupper instead of
      Unicode::toLower and Unicode::toUpper. Also added some assertions since this code assumes
      it can convert any UChar to lowercase or uppercase in another UChar, with no risk of needing
      a UChar32 for the result. I guess that's probably true, but it would be good to know in a
      debug build if not.
      
      Source/WebCore:
      
      * Modules/indexeddb/IDBKeyPath.cpp:
      (isIdentifierStartCharacter): Use U_GET_GC_MASK instead of WTF::Unicode::category.
      (isIdentifierCharacter): Ditto.
      
      * css/CSSParser.cpp:
      (WebCore::makeLower): Use u_tolower instead of WTF::Unicode::toLower.
      Also assert the character fits in a UChar.
      
      * dom/Document.cpp:
      (WebCore::isValidNameStart): Use U_GET_GC_MASK instead of WTF::Unicode::category,
      and u_getIntPropertyValue instead of WTF::Unicode::decompositionType.
      (WebCore::isValidNamePart): Ditto.
      (WebCore::canonicalizedTitle): Ditto.
      
      * editing/Editor.cpp:
      (WebCore::Editor::insertTextWithoutSendingTextEvent): Use u_isPunct instead of
      WTF::Unicode::isPunct.
      
      * editing/TextIterator.cpp:
      (WebCore::SearchBuffer::append): Use u_strFoldCase instead of WTF::Unicode::foldCase.
      
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::directionality): Use UCharDirection instead of
      WTF::Unicode::Direction.
      
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::defaultEventHandler): Use u_isprint instead of
      WTF::Unicode::isPrintableChar.
      
      * html/TypeAhead.cpp:
      (WebCore::stripLeadingWhiteSpace): Use u_charDirection instead of
      WTF::Unicode::direction.
      
      * html/track/TextTrackCue.cpp:
      (WebCore::isCueParagraphSeparator): Use u_charType instead of
      WTF::Unicode::category.
      (WebCore::TextTrackCue::determineTextDirection): Use u_charDirection instead of
      WTF::Unicode::direction.
      
      * page/ContextMenuController.cpp:
      (WebCore::selectionContainsPossibleWord): Use U_GET_GC_MASK instead of
      WTF::Unicode::category.
      * platform/graphics/Font.cpp:
      (WebCore::Font::canReceiveTextEmphasis): Ditto.
      
      * platform/graphics/FontGlyphs.cpp:
      (WebCore::FontGlyphs::glyphDataAndPageForCharacter): Use u_toupper instead of
      WTF::Unicode::toUpper. Use u_charMirror instead of WTF::Unicode::mirroredChar.
      
      * platform/graphics/GraphicsContext.cpp:
      (WebCore::TextRunIterator::direction): Use u_charDirection instead of
      WTF::Unicode::direction.
      
      * platform/graphics/SVGGlyph.cpp:
      (WebCore::charactersWithArabicForm): Use ublock_getCode instead of
      WTF::Unicode::isArabicChar.
      
      * platform/graphics/SurrogatePairAwareTextIterator.cpp:
      (WebCore::SurrogatePairAwareTextIterator::normalizeVoicingMarks): Use
      u_getCombiningClass instead of WTF::Unicode::combiningClass.
      
      * platform/graphics/WidthIterator.cpp:
      (WebCore::WidthIterator::advanceInternal): Use u_toupper instead of
      WTF::Unicode::toUpper.
      
      * platform/graphics/mac/ComplexTextController.cpp:
      (WebCore::ComplexTextController::collectComplexTextRuns): Added some
      assertions about the user of u_toupper and tweaked coding style a bit.
      
      * platform/text/BidiContext.cpp:
      (WebCore::BidiContext::createUncached): Use UCharDirection instead of
      WTF::Unicode::Direction.
      (WebCore::BidiContext::create): Ditto.
      (WebCore::copyContextAndRebaselineLevel): Ditto.
      * platform/text/BidiContext.h:
      (WebCore::BidiContext::dir): Ditto.
      (WebCore::BidiContext::BidiContext): Ditto.
      * platform/text/BidiResolver.h:
      (WebCore::BidiStatus::BidiStatus): Ditto.
      (WebCore::BidiEmbedding::BidiEmbedding): Ditto.
      (WebCore::BidiEmbedding::direction): Ditto.
      (WebCore::BidiCharacterRun::BidiCharacterRun): Ditto.
      (WebCore::BidiResolver::BidiResolver): Ditto.
      (WebCore::BidiResolver::setLastDir): Ditto.
      (WebCore::BidiResolver::setLastStrongDir): Ditto.
      (WebCore::BidiResolver::setEorDir): Ditto.
      (WebCore::BidiResolver::dir): Ditto.
      (WebCore::BidiResolver::setDir): Ditto.
      (WebCore::BidiResolver::appendRun): Ditto.
      (WebCore::BidiResolver::embed): Ditto.
      (WebCore::BidiResolver::checkDirectionInLowerRaiseEmbeddingLevel): Ditto.
      (WebCore::BidiResolver::lowerExplicitEmbeddingLevel): Ditto.
      (WebCore::BidiResolver::raiseExplicitEmbeddingLevel): Ditto.
      (WebCore::BidiResolver::commitExplicitEmbedding): Ditto.
      (WebCore::BidiResolver::updateStatusLastFromCurrentDirection): Ditto.
      (WebCore::BidiResolver::createBidiRunsForLine): Ditto.
      
      * platform/text/SegmentedString.h:
      (WebCore::SegmentedString::advanceAndASSERTIgnoringCase): Use u_foldCase
      instead of WTF::Unicode::foldCase.
      
      * platform/text/TextBoundaries.cpp:
      (WebCore::findNextWordFromIndex): Use u_isalnum instead of
      WTF::Unicode::isAlphanumeric.
      
      * platform/text/TextBoundaries.h:
      (WebCore::requiresContextForWordBoundary): Use u_getIntPropertyValue directly
      instead of WTF::Unicode::requiresComplexContextForWordBreaking.
      
      * platform/text/mac/TextBoundaries.mm: Removed explicit use of WTF::Unicode,
      which was unneeded and also will no longer compile.
      
      * rendering/BidiRun.h:
      (WebCore::BidiRun::BidiRun): Use UCharDirection instead of WTF::Unicode::Direction.
      * rendering/InlineFlowBox.h: Ditto.
      * rendering/InlineIterator.h:
      (WebCore::embedCharFromDirection): Ditto.
      (WebCore::notifyObserverWillExitObject): Ditto.
      (WebCore::InlineIterator::direction): Ditto.
      (WebCore::IsolateTracker::embed): Ditto.
      (WebCore::InlineBidiResolver::appendRun): Ditto.
      
      * rendering/RenderBlock.cpp:
      (WebCore::isPunctuationForFirstLetter): Use U_GET_GC_MASK instead of
      WTF::Unicode::category.
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::determineDirectionality): Use u_charDirection instead of
      WTF::Unicode::direction.
      (WebCore::RenderBlockFlow::handleTrailingSpaces): Ditto.
      (WebCore::statusWithDirection): Ditto.
      (WebCore::LineBreaker::nextSegmentBreak): Use U_GET_GC_MASK instead of
      WTF::Unicode::category.
      
      * rendering/RenderListMarker.cpp:
      (WebCore::RenderListMarker::paint): Use u_charDirection instead of
      WTF::Unicode::direction.
      
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::adjustInnerStyle): Use UCharDirection instead of
      WTF::Unicode::Direction.
      
      * rendering/RenderText.cpp:
      (WebCore::makeCapitalized): Use u_totile instead of WTF::Unicode::toTitleCase.
      Also added a comment about the fact that we need to use u_strToTitle instead.
      
      * rendering/RootInlineBox.cpp:
      (WebCore::RootInlineBox::lineBreakBidiStatus): Use UCharDirection instead of
      WTF::Unicode::Direction.
      
      * svg/SVGFontData.cpp:
      (WebCore::SVGFontData::createStringWithMirroredCharacters): Use u_charMirror
      instead of WTF::Unicode::mirroredChar.
      
      * xml/XPathParser.cpp:
      (WebCore::XPath::charCat): Use U_GET_GC_MASK instead of WTF::Unicode::category.
      
      * platform/graphics/win/UniscribeController.cpp:
      (WebCore::UniscribeController::advance):
      * platform/win/PopupMenuWin.cpp:
      (WebCore::PopupMenuWin::paint):
      * platform/win/WebCoreTextRenderer.cpp:
      (WebCore::isOneLeftToRightRun):
      More of the same for Windows.
      
      Source/WTF:
      
      * wtf/text/StringHash.h:
      (WTF::CaseFoldingHash::foldCase): Use u_foldCase instead of WTF::Unicode::foldCase.
      (WTF::CaseFoldingHash::hash): Added an overload for a StringImpl& because why not.
      
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::lower): Use u_tolower rather than WTF::Unicode::toLower. Also added
      an assertion to check that the lowercase version is also part of Latin-1. If this
      is not guaranteed it would be good to know in a debug build at least. Use u_strToLower
      rather than WTF::Unicode::toLower. Also removed #if USE(ICU_UNICODE) around the
      locale-specific version.
      (WTF::StringImpl::upper): Use u_toupper and u_strToUpper, as above.
      (WTF::StringImpl::foldCase): Use u_tolower and u_strFoldCase, as above.
      (WTF::equalIgnoringCase): Use u_foldCase instead of WTF::Unicode::foldCase.
      (WTF::StringImpl::defaultWritingDirection): Use u_charDirection and UCharDirection
      instead of WTF::Unicode::direction and WTF::Unicode::Direction.
      
      * wtf/text/StringImpl.h:
      (WTF::equalIgnoringCase): Use u_memcasecmp instead of WTF::Unicode::umemcasecmp.
      (WTF::isSpaceOrNewline): Use u_charDirection instead of WTF::Unicode::direction.
      
      * wtf/text/WTFString.h:
      (WTF::String::defaultWritingDirection): Use UCharDirection instead of WTF::Unicode::Direction.
      
      * wtf/unicode/icu/UnicodeIcu.h: Removed almost everything.
      
      * wtf/unicode/wchar/UnicodeWchar.cpp: Tried to do the right thing in this file, but
      I did not actually compile it. Also, the implementations here aren't really sufficient
      to make WebKit work broadly. There are many things that just aren't working with this
      implementation, such as parsing that uses u_charType to figure out which characters are valid.
      (unorm_normalize): Added.
      (u_charDirection): Added.
      (u_charMirror): Added.
      (u_charType): Added.
      (u_getCombiningClass): Added.
      (u_getIntPropertyValue): Added.
      (u_memcasecmp): Added.
      (convertWithFunction): Changed to work with ICU-style status code instead of error bool.
      (u_strFoldCase): Added.
      (u_strToLower): Added.
      (u_strToUpper): Added.
      * wtf/unicode/wchar/UnicodeWchar.h: Ditto. Later this file should just be named like the
      real ICU headers so the code can include it the same way it would ICU. But that will be
      in a future patch.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2eb5f4de
    • andersca@apple.com's avatar
      Remove gesture event support from WebCore · 0d0256bc
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122650
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/GestureEvent.cpp: Removed.
      * dom/GestureEvent.h: Removed.
      * dom/Node.cpp:
      * dom/Node.h:
      * page/EventHandler.cpp:
      (WebCore::EventHandler::EventHandler):
      (WebCore::EventHandler::clear):
      (WebCore::EventHandler::sendContextMenuEventForKey):
      * page/EventHandler.h:
      * platform/PlatformGestureEvent.h: Removed.
      * platform/Scrollbar.cpp:
      * platform/Scrollbar.h:
      * platform/mac/PlatformEventFactoryMac.h:
      * platform/mac/PlatformEventFactoryMac.mm:
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      * wtf/nix/FeatureDefinesNix.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d0256bc
  4. 10 Oct, 2013 3 commits
    • fpizlo@apple.com's avatar
      FTL: Soft-link LLVM as a workaround for LLVM's static initializers and exit-time destructors · ef8dbf84
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122566
      
      Source/JavaScriptCore: 
      
      Reviewed by Mark Rowe.
              
      The JSC project now builds a libllvmForJSC.dylib. If FTL is enabled, this
      gets copied into JavaScriptCore.framework/Versions/A/Libraries. JSC will
      load the dylib by finding it using NSBundle APIs and then doing dlopen().
      That will only happen lazily, when something happens that requires LLVM.
              
      This mostly takes care of LLVM static initialization overhead by deferring
      it until it's really needed.
              
      This takes care of LLVM's exit-time destructors because inside
      libllvmForJSC.dylib, we override __cxa_atexit.
              
      * Configurations/JavaScriptCore.xcconfig:
      * Configurations/LLVMForJSC.xcconfig: Added.
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * dfg/DFGPlan.cpp:
      (JSC::DFG::Plan::compileInThreadImpl):
      * disassembler/LLVMDisassembler.cpp:
      (JSC::tryToDisassembleWithLLVM):
      * ftl/FTLAbbreviatedTypes.h:
      * ftl/FTLAbbreviations.h:
      (JSC::FTL::voidType):
      (JSC::FTL::int1Type):
      (JSC::FTL::int8Type):
      (JSC::FTL::int16Type):
      (JSC::FTL::int32Type):
      (JSC::FTL::int64Type):
      (JSC::FTL::intPtrType):
      (JSC::FTL::floatType):
      (JSC::FTL::doubleType):
      (JSC::FTL::pointerType):
      (JSC::FTL::structType):
      (JSC::FTL::functionType):
      (JSC::FTL::typeOf):
      (JSC::FTL::mdKindID):
      (JSC::FTL::mdString):
      (JSC::FTL::mdNode):
      (JSC::FTL::setMetadata):
      (JSC::FTL::addFunction):
      (JSC::FTL::setLinkage):
      (JSC::FTL::setFunctionCallingConv):
      (JSC::FTL::getParam):
      (JSC::FTL::constInt):
      (JSC::FTL::constReal):
      (JSC::FTL::constIntToPtr):
      (JSC::FTL::constBitCast):
      (JSC::FTL::appendBasicBlock):
      (JSC::FTL::insertBasicBlock):
      (JSC::FTL::buildPhi):
      (JSC::FTL::addIncoming):
      (JSC::FTL::buildAlloca):
      (JSC::FTL::buildAdd):
      (JSC::FTL::buildSub):
      (JSC::FTL::buildMul):
      (JSC::FTL::buildDiv):
      (JSC::FTL::buildRem):
      (JSC::FTL::buildNeg):
      (JSC::FTL::buildFAdd):
      (JSC::FTL::buildFSub):
      (JSC::FTL::buildFMul):
      (JSC::FTL::buildFDiv):
      (JSC::FTL::buildFRem):
      (JSC::FTL::buildFNeg):
      (JSC::FTL::buildAnd):
      (JSC::FTL::buildOr):
      (JSC::FTL::buildXor):
      (JSC::FTL::buildShl):
      (JSC::FTL::buildAShr):
      (JSC::FTL::buildLShr):
      (JSC::FTL::buildNot):
      (JSC::FTL::buildLoad):
      (JSC::FTL::buildStore):
      (JSC::FTL::buildSExt):
      (JSC::FTL::buildZExt):
      (JSC::FTL::buildFPToSI):
      (JSC::FTL::buildFPToUI):
      (JSC::FTL::buildSIToFP):
      (JSC::FTL::buildUIToFP):
      (JSC::FTL::buildIntCast):
      (JSC::FTL::buildFPCast):
      (JSC::FTL::buildIntToPtr):
      (JSC::FTL::buildPtrToInt):
      (JSC::FTL::buildBitCast):
      (JSC::FTL::buildICmp):
      (JSC::FTL::buildFCmp):
      (JSC::FTL::buildCall):
      (JSC::FTL::setTailCall):
      (JSC::FTL::buildExtractValue):
      (JSC::FTL::buildSelect):
      (JSC::FTL::buildBr):
      (JSC::FTL::buildCondBr):
      (JSC::FTL::buildSwitch):
      (JSC::FTL::addCase):
      (JSC::FTL::buildRet):
      (JSC::FTL::buildUnreachable):
      (JSC::FTL::dumpModule):
      (JSC::FTL::verifyModule):
      * ftl/FTLCompile.cpp:
      (JSC::FTL::compile):
      * ftl/FTLFail.cpp:
      (JSC::FTL::fail):
      * ftl/FTLJITCode.h:
      * ftl/FTLJITFinalizer.h:
      * ftl/FTLLink.cpp:
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::lower):
      * ftl/FTLOutput.cpp:
      (JSC::FTL::Output::Output):
      (JSC::FTL::Output::~Output):
      * ftl/FTLOutput.h:
      (JSC::FTL::Output::appendTo):
      * ftl/FTLState.cpp:
      (JSC::FTL::State::State):
      (JSC::FTL::State::~State):
      * ftl/WebKitLLVMLibraryAnchor.cpp: Removed.
      * jsc.cpp:
      (jscmain):
      * llvm: Added.
      * llvm/InitializeLLVM.cpp: Added.
      (JSC::initializeLLVM):
      * llvm/InitializeLLVM.h: Added.
      * llvm/InitializeLLVMMac.mm: Added.
      (JSC::initializeLLVMImpl):
      * llvm/InitializeLLVMPOSIX.cpp: Added.
      (JSC::initializeLLVMPOSIX):
      * llvm/InitializeLLVMPOSIX.h: Added.
      * llvm/LLVMAPI.cpp: Added.
      * llvm/LLVMAPI.h: Added.
      * llvm/LLVMAPIFunctions.h: Added.
      * llvm/LLVMHeaders.h: Added.
      * llvm/library: Added.
      * llvm/library/LLVMAnchor.cpp: Added.
      * llvm/library/LLVMExports.cpp: Added.
      (initializeAndGetJSCLLVMAPI):
      * llvm/library/LLVMOverrides.cpp: Added.
      (__cxa_atexit):
      * llvm/library/config_llvm.h: Added.
      * runtime/InitializeThreading.cpp:
      (JSC::initializeThreadingOnce):
      * runtime/Options.h:
      
      Source/WTF: 
      
      Reviewed by Mark Rowe.
              
      Remove all LLVM stuff from WTF since to get LLVM you need to soft-link and it's
      entirely the responsibility of JSC to do that.
              
      Also fixed an export goof that I found after fixing the weak thingy script in JSC.
      
      * WTF.xcodeproj/project.pbxproj:
      * wtf/LLVMHeaders.h: Removed.
      * wtf/text/CString.h:
      (WTF::CStringHash::hash):
      
      Tools: 
      
      Reviewed by Mark Rowe.
      
      * Scripts/configure-llvm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef8dbf84
    • mrowe@apple.com's avatar
      <rdar://problem/13341666> WebKit should always build against an SDK. · 1b50c5d9
      mrowe@apple.com authored
      Have all projects default to building against the OS X Internal SDK for the Production
      configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
      to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
      
      Reviewed by Dan Bernstein.
      
      Source/JavaScriptCore:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/ThirdParty:
      
      * gtest/xcode/Config/General.xcconfig:
      * gtest/xcode/Config/ProductionProject.xcconfig:
      
      Source/ThirdParty/ANGLE:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/WebCore:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/WebInspectorUI:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/WebKit/mac:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Source/WTF:
      
      * Configurations/Base.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Tools:
      
      * DumpRenderTree/mac/Configurations/Base.xcconfig:
      * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
      * MiniBrowser/Configurations/Base.xcconfig:
      * MiniBrowser/Configurations/DebugRelease.xcconfig:
      * TestWebKitAPI/Configurations/Base.xcconfig:
      * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
      * WebKitTestRunner/Configurations/Base.xcconfig:
      * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b50c5d9
    • hmuller@adobe.com's avatar
      [CSS Shapes] clampToUnsigned() should return unsigned, not int · f0df16e5
      hmuller@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122601
      
      Source/WebCore:
      
      Reviewed by Andreas Kling.
      
      Corrected the return type for clampToUnsigned() in MathExtras.h. It's now unsigned.
      No new tests since this is just an internal refactoring of existing code.
      
      * rendering/shapes/RasterShape.cpp:
      (WebCore::RasterShape::marginIntervals): Use the redefined clampToUnsigned method.
      
      Source/WTF:
      
      Corrected the return type for clampToUnsigned() in MathExtras.h. It's now unsigned.
      
      Reviewed by Andreas Kling.
      
      * wtf/MathExtras.h:
      (clampToUnsigned):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0df16e5
  5. 09 Oct, 2013 2 commits
  6. 08 Oct, 2013 1 commit
  7. 07 Oct, 2013 6 commits
    • darin@apple.com's avatar
      Improve HashMap::add comment and other similar comments · 22fed055
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122432
      
      Reviewed by Andreas Kling.
      
      * wtf/HashCountedSet.h:
      * wtf/HashMap.h:
      * wtf/HashSet.h:
      Updated comment wording. They were a bit old and out of date.
      They also featured the word "interator".
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22fed055
    • darin@apple.com's avatar
      Make Vector::insert work for move-only types · 05f1cc5d
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122429
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::padDailyCountsForNewVisit): Call insertVector.
      Also added some inline capacity, which should make this faster.
      
      Source/WTF:
      
      * wtf/Vector.h:
      (WTF::Vector::insert): Take an rvalue reference instead of a const reference.
      (WTF::Vector::insertVector): Renamed to avoid overloading troubles, analogous
      to what we did for appendVector.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05f1cc5d
    • andersca@apple.com's avatar
      Fix Windows build. · 83cb2489
      andersca@apple.com authored
      * wtf/StdLibExtras.h:
      (std::make_unique):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83cb2489
    • roger_fong@apple.com's avatar
      Modify WTF and JavaScriptCore makefiles for x64 build. · 5e188220
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122467.
      <rdar://problem/15169174>.
      
      Reviewed by Brent Fulgham.
      
      * WTF.vcxproj/WTF.make:
      * JavaScriptCore.vcxproj/JavaScriptCore.make:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e188220
    • andersca@apple.com's avatar
      Remove passIn and passOut from HashTraits · 47ece5f9
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122452
      
      Reviewed by Sam Weinig.
      
      Change RefPtrHashMap to not use passOut (just like the regular HashMap) and get rid of the
      passIn and passOut functions and related typedefs.
      
      * wtf/HashTraits.h:
      * wtf/RefPtrHashMap.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47ece5f9
    • andersca@apple.com's avatar
      Add OVERRIDE and virtual where appropriate · 70c60588
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122439
      
      Reviewed by Antti Koivisto.
      
      Source/JavaScriptCore:
      
      * API/JSAPIWrapperObject.mm:
      * API/JSCallbackObject.h:
      (JSC::JSCallbackObjectData::~JSCallbackObjectData):
      * API/JSManagedValue.mm:
      * API/JSScriptRef.cpp:
      (OpaqueJSScript::~OpaqueJSScript):
      * bytecode/CodeBlock.h:
      * bytecode/StructureStubClearingWatchpoint.h:
      * dfg/DFGArrayifySlowPathGenerator.h:
      * dfg/DFGCallArrayAllocatorSlowPathGenerator.h:
      * dfg/DFGFailedFinalizer.h:
      * dfg/DFGJITCode.h:
      * dfg/DFGJITFinalizer.h:
      * dfg/DFGSaneStringGetByValSlowPathGenerator.h:
      * dfg/DFGSlowPathGenerator.h:
      * dfg/DFGSpeculativeJIT64.cpp:
      * heap/Heap.h:
      * heap/IncrementalSweeper.h:
      * heap/SuperRegion.h:
      * jit/ClosureCallStubRoutine.h:
      * jit/ExecutableAllocatorFixedVMPool.cpp:
      * jit/GCAwareJITStubRoutine.h:
      * jit/JITCode.h:
      * jit/JITStubs.cpp:
      * jit/JITToDFGDeferredCompilationCallback.h:
      * jit/JumpReplacementWatchpoint.h:
      * parser/Nodes.h:
      * runtime/DataView.h:
      * runtime/GCActivityCallback.h:
      * runtime/GenericTypedArrayView.h:
      * runtime/RegExpCache.h:
      * runtime/SimpleTypedArrayController.h:
      * runtime/WeakMapData.h:
      
      Source/WebCore:
      
      * Modules/encryptedmedia/MediaKeys.h:
      * Modules/webaudio/AnalyserNode.h:
      * Modules/webaudio/AudioBasicInspectorNode.h:
      * Modules/webaudio/AudioBasicProcessorNode.h:
      * Modules/webaudio/AudioBufferSourceNode.h:
      * Modules/webaudio/AudioContext.h:
      * Modules/webaudio/AudioDestinationNode.h:
      * Modules/webaudio/AudioProcessingEvent.h:
      * Modules/webaudio/BiquadDSPKernel.h:
      * Modules/webaudio/BiquadProcessor.h:
      * Modules/webaudio/ChannelMergerNode.h:
      * Modules/webaudio/ChannelSplitterNode.h:
      * Modules/webaudio/ConvolverNode.h:
      * Modules/webaudio/DelayDSPKernel.h:
      * Modules/webaudio/DelayProcessor.h:
      * Modules/webaudio/DynamicsCompressorNode.h:
      * Modules/webaudio/GainNode.h:
      * Modules/webaudio/MediaElementAudioSourceNode.h:
      * Modules/webaudio/OfflineAudioCompletionEvent.h:
      * Modules/webaudio/OfflineAudioDestinationNode.h:
      * Modules/webaudio/OscillatorNode.h:
      * Modules/webaudio/PannerNode.h:
      * Modules/webaudio/ScriptProcessorNode.h:
      * Modules/webaudio/WaveShaperProcessor.h:
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityARIAGridCell.h:
      * accessibility/AccessibilityARIAGridRow.h:
      * accessibility/AccessibilityImageMapLink.h:
      * accessibility/AccessibilityList.h:
      * accessibility/AccessibilityListBox.h:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityMediaControls.h:
      * accessibility/AccessibilityMenuList.h:
      * accessibility/AccessibilityMenuListOption.h:
      * accessibility/AccessibilityMenuListPopup.h:
      * accessibility/AccessibilityMockObject.h:
      * accessibility/AccessibilityNodeObject.h:
      * accessibility/AccessibilityProgressIndicator.h:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilitySVGRoot.h:
      * accessibility/AccessibilityScrollView.h:
      * accessibility/AccessibilityScrollbar.h:
      * accessibility/AccessibilitySlider.h:
      * accessibility/AccessibilitySpinButton.h:
      * accessibility/AccessibilityTable.h:
      * accessibility/AccessibilityTableCell.h:
      * accessibility/AccessibilityTableColumn.h:
      * accessibility/AccessibilityTableHeaderContainer.h:
      * accessibility/AccessibilityTableRow.h:
      * bindings/js/JSEventListener.h:
      * bindings/js/WebCoreTypedArrayController.h:
      * bridge/c/c_class.h:
      * bridge/c/c_instance.h:
      * bridge/c/c_runtime.h:
      * bridge/runtime_root.h:
      * css/CSSBasicShapes.h:
      * css/CSSComputedStyleDeclaration.h:
      * css/CSSStyleSheet.h:
      * dom/Attr.h:
      * dom/BeforeTextInsertedEvent.h:
      * dom/CDATASection.h:
      * dom/ChildNodeList.h:
      * dom/DatasetDOMStringMap.h:
      * dom/Document.h:
      * dom/DocumentEventQueue.h:
      * dom/DocumentFragment.h:
      * dom/Element.h:
      * dom/ErrorEvent.h:
      * dom/KeyboardEvent.h:
      * dom/Node.h:
      * dom/PageTransitionEvent.h:
      * dom/ProgressEvent.h:
      * dom/PseudoElement.h:
      * dom/ScriptExecutionContext.h:
      * dom/ShadowRoot.h:
      * dom/StyledElement.h:
      * dom/TagNodeList.h:
      * dom/Text.h:
      * dom/TextEvent.h:
      * dom/TransitionEvent.h:
      * dom/UIEvent.h:
      * dom/WebKitAnimationEvent.h:
      * dom/WebKitTransitionEvent.h:
      * editing/ApplyBlockElementCommand.h:
      * editing/ApplyStyleCommand.h:
      * editing/BreakBlockquoteCommand.h:
      * editing/CompositeEditCommand.h:
      * editing/SpellingCorrectionCommand.h:
      * fileapi/File.h:
      * fileapi/FileThreadTask.h:
      * history/BackForwardList.h:
      * html/BaseCheckableInputType.h:
      * html/HTMLAnchorElement.h:
      * html/HTMLAreaElement.h:
      * html/HTMLCanvasElement.h:
      * html/HTMLCollection.h:
      * html/HTMLElement.h:
      * html/HTMLFieldSetElement.h:
      * html/HTMLFormControlElement.h:
      * html/HTMLFormControlElementWithState.h:
      * html/HTMLFormElement.h:
      * html/HTMLFrameElementBase.h:
      * html/HTMLImageElement.h:
      * html/HTMLImageLoader.h:
      * html/HTMLInputElement.h:
      * html/HTMLLabelElement.h:
      * html/HTMLLegendElement.h:
      * html/HTMLMediaElement.h:
      * html/HTMLMeterElement.h:
      * html/HTMLOptGroupElement.h:
      * html/HTMLOptionElement.h:
      * html/HTMLPlugInElement.h:
      * html/HTMLPlugInImageElement.h:
      * html/HTMLProgressElement.h:
      * html/HTMLSelectElement.h:
      * html/HTMLTableElement.h:
      * html/HTMLTextAreaElement.h:
      * html/HTMLTextFormControlElement.h:
      * html/HTMLVideoElement.h:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * html/shadow/MediaControlElementTypes.h:
      * html/shadow/MediaControlElements.h:
      * html/shadow/SpinButtonElement.h:
      * html/shadow/TextControlInnerElements.h:
      * html/track/AudioTrackList.h:
      * html/track/TextTrackList.h:
      * html/track/TrackListBase.h:
      * inspector/InspectorValues.h:
      * loader/EmptyClients.h:
      * loader/ImageLoader.h:
      * loader/ResourceLoader.h:
      * loader/SubresourceLoader.h:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/appcache/ApplicationCacheGroup.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/archive/cf/LegacyWebArchive.h:
      * loader/cache/CachedCSSStyleSheet.h:
      * loader/cache/CachedFont.h:
      * loader/cache/CachedFontClient.h:
      * loader/cache/CachedImageClient.h:
      * loader/cache/CachedSVGDocumentClient.h:
      * loader/cache/CachedStyleSheetClient.h:
      * loader/cache/CachedXSLStyleSheet.h:
      * page/Chrome.h:
      * page/DOMWindow.h:
      * page/FrameView.h:
      * page/animation/ImplicitAnimation.h:
      * platform/PODIntervalTree.h:
      * platform/PODRedBlackTree.h:
      * platform/ScrollView.h:
      * platform/Scrollbar.h:
      * platform/Timer.h:
      * platform/animation/TimingFunction.h:
      (WebCore::LinearTimingFunction::~LinearTimingFunction):
      (WebCore::CubicBezierTimingFunction::~CubicBezierTimingFunction):
      (WebCore::StepsTimingFunction::~StepsTimingFunction):
      * platform/audio/AudioDSPKernelProcessor.h:
      * platform/audio/HRTFPanner.h:
      * platform/audio/mac/AudioDestinationMac.h:
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/filters/FilterOperation.h:
      * platform/network/ResourceHandle.h:
      * rendering/AutoTableLayout.h:
      * rendering/ClipPathOperation.h:
      * rendering/InlineFlowBox.h:
      * rendering/RenderBlock.h:
      * rendering/RenderBox.h:
      * rendering/RenderBoxModelObject.h:
      * rendering/RenderButton.h:
      * rendering/RenderFieldset.h:
      * rendering/RenderFileUploadControl.h:
      * rendering/RenderFlexibleBox.h:
      * rendering/RenderFlowThread.h:
      * rendering/RenderFullScreen.h:
      * rendering/RenderImage.h:
      * rendering/RenderLayer.h:
      * rendering/RenderLineBreak.h:
      * rendering/RenderListBox.h:
      * rendering/RenderListItem.h:
      * rendering/RenderListMarker.h:
      * rendering/RenderMenuList.h:
      * rendering/RenderMeter.h:
      * rendering/RenderObject.h:
      * rendering/RenderReplaced.h:
      * rendering/RenderSlider.h:
      * rendering/RenderTable.h:
      * rendering/RenderTableCell.h:
      * rendering/RenderText.h:
      * rendering/RenderTextControl.h:
      * rendering/RenderTextControlSingleLine.h:
      * rendering/RenderTextFragment.h:
      * rendering/RenderView.h:
      * rendering/RootInlineBox.h:
      * rendering/mathml/RenderMathMLBlock.h:
      * rendering/mathml/RenderMathMLFraction.h:
      * rendering/mathml/RenderMathMLOperator.h:
      * rendering/style/BasicShapes.h:
      * rendering/svg/RenderSVGModelObject.h:
      * rendering/svg/RenderSVGShape.h:
      * svg/SVGAnimatedBoolean.h:
      * svg/SVGAnimatedString.h:
      * svg/SVGAnimatedTransformList.h:
      * svg/SVGDocument.h:
      * svg/SVGElement.h:
      * svg/SVGElementInstance.h:
      * svg/SVGFontElement.h:
      * svg/SVGGElement.h:
      * svg/SVGGraphicsElement.h:
      * svg/SVGTransformable.h:
      * svg/properties/SVGAnimatedListPropertyTearOff.h:
      * svg/properties/SVGAnimatedPropertyMacros.h:
      * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
      * svg/properties/SVGListPropertyTearOff.h:
      * svg/properties/SVGPropertyTearOff.h:
      * workers/WorkerGlobalScope.h:
      
      Source/WTF:
      
      * wtf/Compiler.h:
      * wtf/FilePrintStream.h:
      * wtf/StringPrintStream.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70c60588
  8. 06 Oct, 2013 1 commit
  9. 05 Oct, 2013 8 commits
    • andersca@apple.com's avatar
      Clean up MessageQueue.h · d965d13e
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122392
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Update for changes to MessageQueue, mostly changing create functions to return std::unique_ptr.
      I intentionally avoided using std::make_unique in a couple of places because I didn't want to make nested classes
      public, and I believe that we can change some of this code to use std::function.
      
      * Modules/webaudio/AsyncAudioDecoder.cpp:
      (WebCore::AsyncAudioDecoder::decodeAsync):
      (WebCore::AsyncAudioDecoder::runLoop):
      (WebCore::AsyncAudioDecoder::DecodingTask::create):
      * Modules/webaudio/AsyncAudioDecoder.h:
      * Modules/webdatabase/Database.cpp:
      (WebCore::Database::markAsDeletedAndClose):
      (WebCore::Database::tableNames):
      * Modules/webdatabase/DatabaseBackend.cpp:
      (WebCore::DatabaseBackend::openAndVerifyVersion):
      (WebCore::DatabaseBackend::scheduleTransaction):
      (WebCore::DatabaseBackend::scheduleTransactionStep):
      * Modules/webdatabase/DatabaseTask.h:
      (WebCore::DatabaseBackend::DatabaseOpenTask::create):
      (WebCore::DatabaseBackend::DatabaseCloseTask::create):
      (WebCore::DatabaseBackend::DatabaseTransactionTask::create):
      (WebCore::DatabaseBackend::DatabaseTableNamesTask::create):
      * Modules/webdatabase/DatabaseThread.cpp:
      (WebCore::DatabaseThread::databaseThread):
      (WebCore::DatabaseThread::scheduleTask):
      (WebCore::DatabaseThread::scheduleImmediateTask):
      (WebCore::SameDatabasePredicate::operator()):
      * Modules/webdatabase/DatabaseThread.h:
      * dom/default/PlatformMessagePortChannel.cpp:
      (WebCore::PlatformMessagePortChannel::EventData::create):
      (WebCore::MessagePortChannel::tryGetMessageFromRemote):
      * dom/default/PlatformMessagePortChannel.h:
      (WebCore::PlatformMessagePortChannel::MessagePortQueue::tryGetMessage):
      (WebCore::PlatformMessagePortChannel::MessagePortQueue::appendAndCheckEmpty):
      * fileapi/FileThread.cpp:
      (WebCore::FileThread::postTask):
      (WebCore::SameInstancePredicate::operator()):
      (WebCore::FileThread::runLoop):
      * fileapi/FileThread.h:
      * fileapi/FileThreadTask.h:
      (WebCore::createFileThreadTask):
      * storage/StorageThread.cpp:
      (WebCore::StorageThread::threadEntryPoint):
      (WebCore::StorageThread::dispatch):
      (WebCore::StorageThread::terminate):
      * workers/WorkerRunLoop.cpp:
      (WebCore::ModePredicate::operator()):
      (WebCore::WorkerRunLoop::runInMode):
      (WebCore::WorkerRunLoop::runCleanupTasks):
      (WebCore::WorkerRunLoop::Task::create):
      * workers/WorkerRunLoop.h:
      
      Source/WTF:
      
      Make MessageQueue use std::unique_ptr and change findIf and removeIf to take const references.
      
      * wtf/Deque.h:
      Change findIf to take an rvalue reference.
      
      * wtf/MessageQueue.h:
      (WTF::::append):
      (WTF::::appendAndKill):
      (WTF::::appendAndCheckEmpty):
      (WTF::::prepend):
      (WTF::::removeIf):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d965d13e
    • andersca@apple.com's avatar
      Try to #define final to sealed when building with MSVC · a19db793
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122386
      
      Reviewed by Darin Adler.
      
      * wtf/Compiler.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a19db793
    • andersca@apple.com's avatar
      Remove createOwned · 8359a7b0
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122388
      
      Reviewed by Darin Adler.
      
      Source/JavaScriptCore:
      
      * profiler/ProfilerDatabase.cpp:
      (JSC::Profiler::Database::save):
      
      Source/WebCore:
      
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::~Document):
      (WebCore::Document::createRenderTree):
      (WebCore::Document::destroyRenderTree):
      * dom/Document.h:
      * page/Frame.cpp:
      (WebCore::Frame::Frame):
      * page/Frame.h:
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationController::AnimationController):
      * page/animation/AnimationController.h:
      * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.h:
      * platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.h:
      * platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
      (WebCore::AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC):
      (WebCore::AudioTrackPrivateAVFObjC::setPlayerItemTrack):
      * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp:
      (WebCore::VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC):
      (WebCore::VideoTrackPrivateAVFObjC::setPlayerItemTrack):
      * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h:
      * rendering/svg/RenderSVGResourceClipper.cpp:
      (WebCore::RenderSVGResourceClipper::applyClippingToContext):
      * rendering/svg/RenderSVGResourceClipper.h:
      * rendering/svg/RenderSVGResourceFilter.cpp:
      (WebCore::RenderSVGResourceFilter::applyResource):
      * rendering/svg/RenderSVGResourceFilter.h:
      * rendering/svg/RenderSVGResourceMasker.cpp:
      (WebCore::RenderSVGResourceMasker::applyResource):
      * rendering/svg/RenderSVGResourceMasker.h:
      
      Source/WebKit2:
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _setFindIndicator:fadeOut:animate:]):
      * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
      (WKBundlePageOverlayCreate):
      
      Source/WTF:
      
      Since we're going with std::unique_ptr instead of OwnPtr, there's no need for makeOwned to exist.
      Get rid of it and replace it with calls to std::make_unique.
      
      * wtf/FilePrintStream.cpp:
      (WTF::FilePrintStream::open):
      * wtf/FilePrintStream.h:
      * wtf/HashTable.h:
      (WTF::::HashTable):
      * wtf/ListHashSet.h:
      (WTF::::ListHashSet):
      * wtf/OwnPtr.h:
      * wtf/Threading.cpp:
      (WTF::compatEntryPoint):
      (WTF::createThread):
      * wtf/ThreadingPthreads.cpp:
      (WTF::wtfThreadEntryPoint):
      (WTF::createThreadInternal):
      * wtf/unicode/Collator.h:
      * wtf/unicode/CollatorDefault.cpp:
      (WTF::Collator::userDefault):
      * wtf/unicode/icu/CollatorICU.cpp:
      (WTF::Collator::userDefault):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8359a7b0
    • darin@apple.com's avatar
      Remove COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) since it's required now · 42483386
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122387
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * html/canvas/CanvasStyle.h: Take out conditionals.
      
      Source/WebKit2:
      
      * UIProcess/API/cpp/WKRetainPtr.h: Take out conditionals.
      
      Source/WTF:
      
      * wtf/RefPtr.h:
      * wtf/RetainPtr.h:
      * wtf/Vector.h:
      * wtf/text/AtomicString.h:
      * wtf/text/WTFString.h:
      Take out conditionals.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42483386
    • darin@apple.com's avatar
      Add AtomicString::number and use it · 73f3fc00
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122384
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * css/CSSGrammar.y.in: Use AtomicString::number instead of String::number since
      we are creating an AtomicString. This can save a memory allocation if the string
      happens to already be in the atomic string table.
      * dom/Element.cpp:
      (WebCore::Element::setIntegralAttribute): Ditto.
      (WebCore::Element::setUnsignedIntegralAttribute): Ditto.
      * editing/BreakBlockquoteCommand.cpp:
      (WebCore::BreakBlockquoteCommand::doApply): Ditto.
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::insertedInto): Use setIntegralAttribute instead of
      a local homegrown equivalent.
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::setHeight): Ditto.
      (WebCore::HTMLCanvasElement::setWidth): Ditto.
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::setTabIndex): Ditto.
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::setHeight): Ditto.
      (WebCore::HTMLImageElement::setWidth): Ditto.
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::setMaxLength): Ditto.
      (WebCore::HTMLInputElement::setSize): Same, but setUnsignedIntegralAttribute.
      (WebCore::HTMLInputElement::setHeight): Ditto.
      (WebCore::HTMLInputElement::setWidth): Ditto.
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::mediaPlayerSetSize): Ditto.
      * html/HTMLMeterElement.cpp:
      (WebCore::HTMLMeterElement::setMin): More of the same.
      (WebCore::HTMLMeterElement::setMax): Ditto.
      (WebCore::HTMLMeterElement::setValue): Ditto.
      (WebCore::HTMLMeterElement::setLow): Ditto.
      (WebCore::HTMLMeterElement::setHigh): Ditto.
      (WebCore::HTMLMeterElement::setOptimum): Ditto.
      * html/HTMLOListElement.cpp:
      (WebCore::HTMLOListElement::setStart): Ditto.
      * html/HTMLProgressElement.cpp:
      (WebCore::HTMLProgressElement::setValue): Ditto.
      (WebCore::HTMLProgressElement::setMax): Ditto.
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::parseAttribute): Ditto.
      (WebCore::HTMLSelectElement::setSize): Ditto.
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::setColSpan): Ditto.
      (WebCore::HTMLTableCellElement::setRowSpan): Ditto.
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::setSpan): Ditto.
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::setMaxLength): Ditto.
      (WebCore::HTMLTextAreaElement::setCols): Ditto.
      (WebCore::HTMLTextAreaElement::setRows): Ditto.
      * html/shadow/MediaControlElements.cpp:
      (WebCore::MediaControlTimelineElement::setDuration): Ditto.
      
      Source/WTF:
      
      * wtf/text/AtomicString.cpp:
      (WTF::AtomicString::number): Added.
      * wtf/text/AtomicString.h: Ditto.
      
      * wtf/text/IntegerToStringConversion.h: Simplify includes, renamed ConversionTrait to
      IntegerToStringConversionTrait. Changed String version to use String since we no longer
      need to use PassRefPtr to efficiently handle return values. Replaced UnsignedIntegerTrait
      with std::make_unsigned. Added AtomicString support. Use nullptr instead of 0.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73f3fc00
    • darin@apple.com's avatar
      Cut down on use of String::number · 7324427d
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122382
      
      Reviewed by Anders Carlsson.
      
      Source/JavaScriptCore:
      
      * API/JSCallbackObjectFunctions.h:
      (JSC::JSCallbackObject::putByIndex): Use Identifier::from instead of calling
      String::number and creating an identifier from that. Can save creating and then
      destroying a string if an identifier already exists.
      * runtime/Arguments.cpp:
      (JSC::Arguments::getOwnPropertySlotByIndex): Ditto.
      (JSC::Arguments::getOwnPropertyNames): Ditto.
      (JSC::Arguments::putByIndex): Ditto.
      * runtime/JSGenericTypedArrayViewInlines.h:
      (JSC::::getOwnPropertyNames): Ditto.
      * runtime/StringObject.cpp:
      (JSC::StringObject::getOwnPropertyNames): Ditto.
      
      Source/WebCore:
      
      * css/CSSGradientValue.cpp:
      (WebCore::CSSLinearGradientValue::customCSSText): Use StringBuilder::appendNumber,
      instead of creating a string and then appending it.
      (WebCore::CSSRadialGradientValue::customCSSText): Ditto.
      * css/CSSParser.cpp:
      (WebCore::CSSParser::createKeyframe): Ditto.
      * editing/DeleteButtonController.cpp:
      (WebCore::DeleteButtonController::createDeletionUI): Use ASCII literals instead of
      converting numeric constants to strings at runtime with String::number.
      (WebCore::DeleteButtonController::show): Ditto.
      * svg/SVGNumberList.cpp:
      (WebCore::SVGNumberList::valueAsString): Use StringBuilder::appendNumber.
      * svg/SVGPointList.cpp:
      (WebCore::SVGPointList::valueAsString): Ditto.
      * svg/SVGRect.h: Ditto.
      
      Source/WebKit2:
      
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::dumpChangedLayers): Use StringBuilder::appendNumber.
      
      Source/WTF:
      
      * wtf/DateMath.cpp:
      (WTF::appendTwoDigitNumber): Added. Replaces twoDigitStringFromNumber, which returned a
      String and also allocated a temporary string for any number 10 or higher.
      (WTF::makeRFC2822DateString): Updated to use the new function.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7324427d
    • andersca@apple.com's avatar
      Test the waters and begin using lambdas · 2a375b4e
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121809
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Use lambdas instead of static functions and function objects.
      
      * css/MediaQuery.cpp:
      (WebCore::MediaQuery::MediaQuery):
      * dom/MutationObserver.cpp:
      (WebCore::MutationObserver::deliverAllMutations):
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::sortedTrackListForMenu):
      
      Source/WTF:
      
      * wtf/ListDump.h:
      (WTF::sortedListDump):
      Use std::less instead of a custom lessThan function.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a375b4e
    • darin@apple.com's avatar
      text-transform: lowercase is not lang-dependent (Turkish languages : tr,az) · ab049848
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=21312
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Test: fast/text/text-transform-turkish-and-azeri.html
      
      This patch covers text-transform: uppercase and text-transform: lowercase.
      More changes will be needed to cover text-transform: capitalize.
      
      * inspector/DOMPatchSupport.cpp:
      (WebCore::DOMPatchSupport::patchNode): Use String::upper instead of String::makeUpper.
      * page/EventHandler.cpp:
      (WebCore::findDropZone): Use String::lower instead of String::makeLower.
      * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
      (WebCore::HarfBuzzShaper::shapeHarfBuzzRuns): Use String::upper instead of String::makeUpper.
      * platform/network/blackberry/rss/RSS10Parser.cpp: [Seriously, how is an RSS parser
      part of WebKit's networking layer? Where are the tests that cover this? Seems wrong
      to have this code in the project.]
      (WebCore::RSS10Parser::parseXmlDoc): Use lower instead of makeLower.
      (WebCore::RSS10Parser::parseItem): Ditto.
      (WebCore::RSS10Parser::parseFeed): Ditto.
      * platform/network/blackberry/rss/RSS20Parser.cpp:
      (WebCore::RSS20Parser::parseXmlDoc): Ditto.
      (WebCore::RSS20Parser::parseItem): Ditto.
      (WebCore::RSS20Parser::parseFeed): Ditto.
      (WebCore::RSS20Parser::parseEnclosure): Ditto.
      * platform/network/blackberry/rss/RSSAtomParser.cpp:
      (WebCore::RSSAtomParser::parseXmlDoc): Ditto.
      (WebCore::RSSAtomParser::parseItem): Ditto.
      (WebCore::RSSAtomParser::parseFeed): Ditto.
      (WebCore::RSSAtomParser::parseLink): Ditto.
      (WebCore::RSSAtomParser::parseContent): Ditto.
      (WebCore::RSSAtomParser::parseAuthor): Ditto.
      (WebCore::RSSAtomParser::parseCategory): Ditto.
      * platform/text/win/LocaleWin.cpp:
      (WebCore::convertLocaleNameToLCID): Use String::lower instead of String::makeLower.
      * rendering/RenderText.cpp:
      (WebCore::applyTextTransform): Use String::upper and String::lower instead of
      String::makeUpper and String::makeLower, and also pass in the locale to each.
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::uppercaseKnownHTTPMethod): Changed this so it doesn't call
      upper just to return an already known string constant.
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::doCommand): Use StringImpl::upper instead of
      StringImpl::makeUpper.
      
      Source/WTF:
      
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::upper): Removed an extra call that would unnecessarily reallocate
      a StringImpl in the general non-ASCII case. Added an overload that takes a locale identifier.
      (WTF::StringImpl::lower): Ditto.
      * wtf/text/StringImpl.h: Ditto.
      * wtf/text/WTFString.cpp:
      (WTF::String::lower): Ditto.
      (WTF::String::upper): Ditto.
      * wtf/text/WTFString.h: Ditto. Also deleted the makeLower and makeUpper functions since they
      offer no advantages over the lower and upper functions. Also added a constructor that takes
      a RefPtr<StringImpl> with move construction to help.
      
      LayoutTests:
      
      * fast/text/text-transform-turkish-and-azeri-expected.html: Added.
      * fast/text/text-transform-turkish-and-azeri.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab049848
  10. 04 Oct, 2013 4 commits
    • bfulgham@apple.com's avatar
      Remove Qt definitions from Platform.h · ae4ee20c
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122349
      
      Reviewed by Anders Carlsson.
      
      * wtf/Platform.h: Remove unused PLATFORM(QT) stanzas from file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae4ee20c
    • bfulgham@apple.com's avatar
      [Win] Turn off FastMalloc on Windows · 8f09625b
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122352
      
      Reviewed by Darin Adler.
      
      * wtf/Platform.h: Enable USE_SYSTEM_MALLOC when building on
      Windows to stick to the MSVCRT allocator/deallocator.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f09625b
    • mikhail.pozdnyakov@intel.com's avatar
      Remove WTF smart pointers 'const_pointer_cast' · f9d0842b
      mikhail.pozdnyakov@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122325
      
      Reviewed by Darin Adler.
      
      Removed WTF smart pointers 'const_pointer_cast' functions as:
      - they were not used
      - their implementation was wrong as they tried to cast to a different pointer type
      
      * wtf/PassOwnPtr.h:
      * wtf/PassRefPtr.h:
      * wtf/RefPtr.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9d0842b
    • oliver@apple.com's avatar
      Support for-of syntax · 20a9bf08
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122339
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      Add support for for-of syntax to JSC.  As part of doing this I had to make
      us support unique empty strings as identifiers.  In a follow on patch i'm
      going to remove the distinction entirely as it's purely a complicating
      separation.
      
      Otherwise the logic here is fairly self-explanatory.
      
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::addConstant):
      (JSC::BytecodeGenerator::emitCall):
      * bytecompiler/BytecodeGenerator.h:
      * bytecompiler/NodesCodegen.cpp:
      (JSC::CallArguments::CallArguments):
      (JSC::ForOfNode::emitBytecode):
      * jit/JITOperations.cpp:
      * parser/ASTBuilder.h:
      (JSC::ASTBuilder::createForOfLoop):
      * parser/NodeConstructors.h:
      (JSC::EnumerationNode::EnumerationNode):
      (JSC::ForInNode::ForInNode):
      (JSC::ForOfNode::ForOfNode):
      * parser/Nodes.h:
      * parser/Parser.cpp:
      (JSC::::parseVarDeclarationList):
      (JSC::::parseForStatement):
      * parser/Parser.h:
      (JSC::Parser::isofToken):
      * parser/SyntaxChecker.h:
      (JSC::SyntaxChecker::createForOfLoop):
      * runtime/ArrayIteratorPrototype.cpp:
      (JSC::ArrayIteratorPrototype::finishCreation):
      (JSC::arrayIteratorPrototypeIterate):
      * runtime/ArrayPrototype.cpp:
      (JSC::ArrayPrototype::create):
      (JSC::ArrayPrototype::finishCreation):
      * runtime/ArrayPrototype.h:
      * runtime/CommonIdentifiers.cpp:
      (JSC::CommonIdentifiers::CommonIdentifiers):
      * runtime/CommonIdentifiers.h:
      * runtime/Identifier.h:
      (JSC::Identifier::from):
      * runtime/JSCJSValue.cpp:
      (JSC::JSValue::dumpInContext):
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::reset):
      * runtime/JSObject.cpp:
      (JSC::JSObject::putDirectNativeFunction):
      * runtime/PrivateName.h:
      (JSC::PrivateName::PrivateName):
      * runtime/PropertyName.h:
      (JSC::PropertyName::PropertyName):
      
      Source/WTF:
      
      Update assertions and add a helper function to StringImpl
      to save repeated unique or identifier calls.
      
      * wtf/text/StringImpl.h:
      (WTF::StringImpl::isIdentifierOrUnique):
      (WTF::StringImpl::setIsIdentifier):
      (WTF::StringImpl::setIsAtomic):
      
      LayoutTests:
      
      Add test cases for the one type that supports for-of so far
      
      * js/basic-for-of-expected.txt: Added.
      * js/basic-for-of.html: Added.
      * js/regress/for-of-iterate-array-entries.html: Added.
      * js/regress/for-of-iterate-array-keys.html: Added.
      * js/regress/for-of-iterate-array-values.html: Added.
      * js/regress/script-tests/for-of-iterate-array-entries.js: Added.
      (foo):
      * js/regress/script-tests/for-of-iterate-array-keys.js: Added.
      (foo):
      * js/regress/script-tests/for-of-iterate-array-values.js: Added.
      (foo):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20a9bf08
  11. 03 Oct, 2013 1 commit
  12. 02 Oct, 2013 2 commits
  13. 30 Sep, 2013 2 commits
    • weinig@apple.com's avatar
      Remove support for DOMFileSystem · 7df82b33
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122137
      
      Reviewed by Anders Carlsson.
      
      .: 
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/OptionsBlackBerry.cmake:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      * Files elided *
      
      Source/WebKit/blackberry: 
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::init):
      (BlackBerry::WebKit::WebPage::clearWebFileSystem):
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/efl: 
      
      * ewk/ewk_settings.cpp:
      (ewk_settings_file_system_path_set):
      
      Source/WebKit/mac: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF: 
      
      * wtf/FeatureDefines.h:
      
      Tools: 
      
      * Scripts/webkitperl/FeatureList.pm:
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_spacing):
      * Scripts/webkitpy/style/checkers/cpp_unittest.py:
      (CppStyleTest.test_spacing_for_binary_ops):
      * qmake/mkspecs/features/features.pri:
      
      LayoutTests: 
      
      * fast/dom/MutationObserver/filesystem-callback-delivery-expected.txt: Removed.
      * fast/dom/MutationObserver/filesystem-callback-delivery.html: Removed.
      * fast/filesystem: Removed.
      * fast/filesystem/async-operations-expected.txt: Removed.
      * fast/filesystem/async-operations.html: Removed.
      * fast/filesystem/cross-filesystem-op-expected.txt: Removed.
      * fast/filesystem/cross-filesystem-op.html: Removed.
      * fast/filesystem/directory-entry-to-uri-expected.txt: Removed.
      * fast/filesystem/directory-entry-to-uri.html: Removed.
      * fast/filesystem/entry-points-missing-arguments-expected.txt: Removed.
      * fast/filesystem/entry-points-missing-arguments.html: Removed.
      * fast/filesystem/file-after-reload-crash-expected.txt: Removed.
      * fast/filesystem/file-after-reload-crash.html: Removed.
      * fast/filesystem/file-entry-to-uri-expected.txt: Removed.
      * fast/filesystem/file-entry-to-uri.html: Removed.
      * fast/filesystem/file-from-file-entry-expected.txt: Removed.
      * fast/filesystem/file-from-file-entry.html: Removed.
      * fast/filesystem/file-metadata-after-write-expected.txt: Removed.
      * fast/filesystem/file-metadata-after-write.html: Removed.
      * fast/filesystem/file-writer-abort-continue-expected.txt: Removed.
      * fast/filesystem/file-writer-abort-continue.html: Removed.
      * fast/filesystem/file-writer-abort-depth-expected.txt: Removed.
      * fast/filesystem/file-writer-abort-depth.html: Removed.
      * fast/filesystem/file-writer-abort-expected.txt: Removed.
      * fast/filesystem/file-writer-abort.html: Removed.
      * fast/filesystem/file-writer-empty-blob-expected.txt: Removed.
      * fast/filesystem/file-writer-empty-blob.html: Removed.
      * fast/filesystem/file-writer-events-expected.txt: Removed.
      * fast/filesystem/file-writer-events.html: Removed.
      * fast/filesystem/file-writer-gc-blob-expected.txt: Removed.
      * fast/filesystem/file-writer-gc-blob.html: Removed.
      * fast/filesystem/file-writer-truncate-extend-expected.txt: Removed.
      * fast/filesystem/file-writer-truncate-extend.html: Removed.
      * fast/filesystem/file-writer-write-overlapped-expected.txt: Removed.
      * fast/filesystem/file-writer-write-overlapped.html: Removed.
      * fast/filesystem/filesystem-missing-arguments-expected.txt: Removed.
      * fast/filesystem/filesystem-missing-arguments.html: Removed.
      * fast/filesystem/filesystem-no-callback-null-ptr-crash-expected.txt: Removed.
      * fast/filesystem/filesystem-no-callback-null-ptr-crash.html: Removed.
      * fast/filesystem/filesystem-reference-expected.txt: Removed.
      * fast/filesystem/filesystem-reference.html: Removed.
      * fast/filesystem/filesystem-unserializable-expected.txt: Removed.
      * fast/filesystem/filesystem-unserializable.html: Removed.
      * fast/filesystem/filesystem-uri-origin-expected.txt: Removed.
      * fast/filesystem/filesystem-uri-origin.html: Removed.
      * fast/filesystem/flags-passing-expected.txt: Removed.
      * fast/filesystem/flags-passing.html: Removed.
      * fast/filesystem/input-access-entries-expected.txt: Removed.
      * fast/filesystem/input-access-entries.html: Removed.
      * fast/filesystem/not-enough-arguments-expected.txt: Removed.
      * fast/filesystem/not-enough-arguments.html: Removed.
      * fast/filesystem/op-copy-expected.txt: Removed.
      * fast/filesystem/op-copy.html: Removed.
      * fast/filesystem/op-get-entry-expected.txt: Removed.
      * fast/filesystem/op-get-entry.html: Removed.
      * fast/filesystem/op-get-metadata-expected.txt: Removed.
      * fast/filesystem/op-get-metadata.html: Removed.
      * fast/filesystem/op-get-parent-expected.txt: Removed.
      * fast/filesystem/op-get-parent.html: Removed.
      * fast/filesystem/op-move-expected.txt: Removed.
      * fast/filesystem/op-move.html: Removed.
      * fast/filesystem/op-read-directory-expected.txt: Removed.
      * fast/filesystem/op-read-directory.html: Removed.
      * fast/filesystem/op-remove-expected.txt: Removed.
      * fast/filesystem/op-remove.html: Removed.
      * fast/filesystem/op-restricted-chars-expected.txt: Removed.
      * fast/filesystem/op-restricted-chars.html: Removed.
      * fast/filesystem/op-restricted-names-expected.txt: Removed.
      * fast/filesystem/op-restricted-names.html: Removed.
      * fast/filesystem/op-restricted-unicode-expected.txt: Removed.
      * fast/filesystem/op-restricted-unicode.html: Removed.
      * fast/filesystem/read-directory-expected.txt: Removed.
      * fast/filesystem/read-directory.html: Removed.
      * fast/filesystem/resources: Removed.
      * fast/filesystem/resources/async-operations.js: Removed.
      * fast/filesystem/resources/directory-entry-to-uri.js: Removed.
      * fast/filesystem/resources/file-entry-to-uri-sync.js: Removed.
      * fast/filesystem/resources/file-entry-to-uri.js: Removed.
      * fast/filesystem/resources/file-from-file-entry-sync.js: Removed.
      * fast/filesystem/resources/file-from-file-entry.js: Removed.
      * fast/filesystem/resources/file-writer-abort-continue.js: Removed.
      * fast/filesystem/resources/file-writer-abort-depth.js: Removed.
      * fast/filesystem/resources/file-writer-abort.js: Removed.
      * fast/filesystem/resources/file-writer-empty-blob.js: Removed.
      * fast/filesystem/resources/file-writer-events.js: Removed.
      * fast/filesystem/resources/file-writer-gc-blob.js: Removed.
      * fast/filesystem/resources/file-writer-sync-truncate-extend.js: Removed.
      * fast/filesystem/resources/file-writer-sync-write-overlapped.js: Removed.
      * fast/filesystem/resources/file-writer-truncate-extend.js: Removed.
      * fast/filesystem/resources/file-writer-utils.js: Removed.
      * fast/filesystem/resources/file-writer-write-overlapped.js: Removed.
      * fast/filesystem/resources/fs-test-util.js: Removed.
      * fast/filesystem/resources/fs-worker-common.js: Removed.
      * fast/filesystem/resources/op-copy.js: Removed.
      * fast/filesystem/resources/op-get-entry.js: Removed.
      * fast/filesystem/resources/op-get-metadata.js: Removed.
      * fast/filesystem/resources/op-get-parent.js: Removed.
      * fast/filesystem/resources/op-move.js: Removed.
      * fast/filesystem/resources/op-read-directory.js: Removed.
      * fast/filesystem/resources/op-remove.js: Removed.
      * fast/filesystem/resources/op-restricted-chars.js: Removed.
      * fast/filesystem/resources/op-restricted-names.js: Removed.
      * fast/filesystem/resources/op-restricted-unicode.js: Removed.
      * fast/filesystem/resources/op-tests-helper.js: Removed.
      * fast/filesystem/resources/shared-worker-stub.js: Removed.
      * fast/filesystem/resources/simple-persistent-sync.js: Removed.
      * fast/filesystem/resources/simple-persistent.js: Removed.
      * fast/filesystem/resources/simple-readonly.js: Removed.
      * fast/filesystem/resources/simple-required-arguments-getdirectory.js: Removed.
      * fast/filesystem/resources/simple-required-arguments-getfile.js: Removed.
      * fast/filesystem/resources/simple-required-arguments-getmetadata.js: Removed.
      * fast/filesystem/resources/simple-required-arguments-remove.js: Removed.
      * fast/filesystem/resources/simple-temporary-sync.js: Removed.
      * fast/filesystem/resources/simple-temporary.js: Removed.
      * fast/filesystem/resources/sync-operations.js: Removed.
      * fast/filesystem/script-tests: Removed.
      * fast/filesystem/script-tests/TEMPLATE.html: Removed.
      * fast/filesystem/script-tests/filesystem-reference.js: Removed.
      * fast/filesystem/script-tests/filesystem-unserializable.js: Removed.
      * fast/filesystem/script-tests/flags-passing.js: Removed.
      * fast/filesystem/script-tests/read-directory.js: Removed.
      * fast/filesystem/simple-persistent-expected.txt: Removed.
      * fast/filesystem/simple-persistent.html: Removed.
      * fast/filesystem/simple-readonly-expected.txt: Removed.
      * fast/filesystem/simple-readonly-file-object-expected.txt: Removed.
      * fast/filesystem/simple-readonly-file-object.html: Removed.
      * fast/filesystem/simple-readonly.html: Removed.
      * fast/filesystem/simple-required-arguments-getdirectory-expected.txt: Removed.
      * fast/filesystem/simple-required-arguments-getdirectory.html: Removed.
      * fast/filesystem/simple-required-arguments-getfile-expected.txt: Removed.
      * fast/filesystem/simple-required-arguments-getfile.html: Removed.
      * fast/filesystem/simple-required-arguments-getmetadata-expected.txt: Removed.
      * fast/filesystem/simple-required-arguments-getmetadata.html: Removed.
      * fast/filesystem/simple-required-arguments-remove-expected.txt: Removed.
      * fast/filesystem/simple-required-arguments-remove.html: Removed.
      * fast/filesystem/simple-temporary-expected.txt: Removed.
      * fast/filesystem/simple-temporary.html: Removed.
      * fast/filesystem/workers: Removed.
      * fast/filesystem/workers/async-operations-expected.txt: Removed.
      * fast/filesystem/workers/async-operations.html: Removed.
      * fast/filesystem/workers/detached-frame-crash-expected.txt: Removed.
      * fast/filesystem/workers/detached-frame-crash.html: Removed.
      * fast/filesystem/workers/file-entry-to-uri-sync-expected.txt: Removed.
      * fast/filesystem/workers/file-entry-to-uri-sync.html: Removed.
      * fast/filesystem/workers/file-from-file-entry-expected.txt: Removed.
      * fast/filesystem/workers/file-from-file-entry-sync-expected.txt: Removed.
      * fast/filesystem/workers/file-from-file-entry-sync.html: Removed.
      * fast/filesystem/workers/file-from-file-entry.html: Removed.
      * fast/filesystem/workers/file-writer-empty-blob-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-empty-blob.html: Removed.
      * fast/filesystem/workers/file-writer-events-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-events-shared-worker-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-events-shared-worker.html: Removed.
      * fast/filesystem/workers/file-writer-events.html: Removed.
      * fast/filesystem/workers/file-writer-gc-blob-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-gc-blob.html: Removed.
      * fast/filesystem/workers/file-writer-sync-truncate-extend-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-sync-truncate-extend.html: Removed.
      * fast/filesystem/workers/file-writer-sync-write-overlapped-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-sync-write-overlapped.html: Removed.
      * fast/filesystem/workers/file-writer-truncate-extend-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-truncate-extend.html: Removed.
      * fast/filesystem/workers/file-writer-write-overlapped-expected.txt: Removed.
      * fast/filesystem/workers/file-writer-write-overlapped.html: Removed.
      * fast/filesystem/workers/resources: Removed.
      * fast/filesystem/workers/resources/detached-frame-crash-frame.html: Removed.
      * fast/filesystem/workers/resources/detached-frame-crash-worker.js: Removed.
      * fast/filesystem/workers/simple-persistent-expected.txt: Removed.
      * fast/filesystem/workers/simple-persistent-sync-expected.txt: Removed.
      * fast/filesystem/workers/simple-persistent-sync.html: Removed.
      * fast/filesystem/workers/simple-persistent.html: Removed.
      * fast/filesystem/workers/simple-temporary-expected.txt: Removed.
      * fast/filesystem/workers/simple-temporary-sync-expected.txt: Removed.
      * fast/filesystem/workers/simple-temporary-sync.html: Removed.
      * fast/filesystem/workers/simple-temporary.html: Removed.
      * fast/filesystem/workers/sync-operations-expected.txt: Removed.
      * fast/filesystem/workers/sync-operations.html: Removed.
      * fast/forms/file/input-file-entries-expected.txt: Removed.
      * fast/forms/file/input-file-entries.html: Removed.
      * http/tests/filesystem: Removed.
      * http/tests/filesystem/no-cache-filesystem-url-expected.txt: Removed.
      * http/tests/filesystem/no-cache-filesystem-url.html: Removed.
      * http/tests/filesystem/resolve-uri-expected.txt: Removed.
      * http/tests/filesystem/resolve-uri.html: Removed.
      * http/tests/filesystem/resources: Removed.
      * http/tests/filesystem/resources/fs-test-util.js: Removed.
      * http/tests/filesystem/resources/fs-worker-common.js: Removed.
      * http/tests/filesystem/resources/fs-worker-test-util.js: Removed.
      * http/tests/filesystem/script-tests: Removed.
      * http/tests/filesystem/script-tests/TEMPLATE.html: Removed.
      * http/tests/filesystem/script-tests/resolve-uri.js: Removed.
      * http/tests/filesystem/workers: Removed.
      * http/tests/filesystem/workers/resolve-url-expected.txt: Removed.
      * http/tests/filesystem/workers/resolve-url-sync-expected.txt: Removed.
      * http/tests/filesystem/workers/resolve-url-sync.html: Removed.
      * http/tests/filesystem/workers/resolve-url.html: Removed.
      * http/tests/filesystem/workers/script-tests: Removed.
      * http/tests/filesystem/workers/script-tests/TEMPLATE.html: Removed.
      * http/tests/filesystem/workers/script-tests/resolve-url-sync.js: Removed.
      * http/tests/inspector/filesystem: Removed.
      * http/tests/inspector/filesystem/delete-entry-expected.txt: Removed.
      * http/tests/inspector/filesystem/delete-entry.html: Removed.
      * http/tests/inspector/filesystem/directory-tree-expected.txt: Removed.
      * http/tests/inspector/filesystem/directory-tree.html: Removed.
      * http/tests/inspector/filesystem/filesystem-test.js: Removed.
      * http/tests/inspector/filesystem/request-directory-content-expected.txt: Removed.
      * http/tests/inspector/filesystem/request-directory-content.html: Removed.
      * http/tests/inspector/filesystem/request-file-content-expected.txt: Removed.
      * http/tests/inspector/filesystem/request-file-content.html: Removed.
      * http/tests/inspector/filesystem/request-filesystem-root-expected.txt: Removed.
      * http/tests/inspector/filesystem/request-filesystem-root.html: Removed.
      * http/tests/inspector/filesystem/request-metadata-expected.txt: Removed.
      * http/tests/inspector/filesystem/request-metadata.html: Removed.
      * http/tests/security/contentSecurityPolicy/filesystem-urls-match-self-expected.txt: Removed.
      * http/tests/security/contentSecurityPolicy/filesystem-urls-match-self.html: Removed.
      * http/tests/security/filesystem-iframe-from-remote-expected.txt: Removed.
      * http/tests/security/filesystem-iframe-from-remote.html: Removed.
      * http/tests/security/mixedContent/filesystem-url-in-iframe-expected.txt: Removed.
      * http/tests/security/mixedContent/filesystem-url-in-iframe.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob.html: Removed.
      * http/tests/workers/resources/sync-operations.js:
      (onmessage):
      * http/tests/workers/terminate-during-sync-operation-expected.txt: Removed.
      * http/tests/workers/terminate-during-sync-operation.html: Removed.
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/mac/TestExpectations:
      * platform/qt/TestExpectations:
      * platform/win/TestExpectations:
      * platform/wincairo/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7df82b33
    • benjamin@webkit.org's avatar
      Remove the code guarded by STYLE_SCOPED · 32bbc4c1
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122123
      
      Reviewed by Anders Carlsson.
      
      .: 
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/OptionsBlackBerry.cmake:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      Start cleaning the code related to <style scoped>. This patch
      only removes the code with #ifdef guards.
      
      * Configurations/FeatureDefines.xcconfig:
      * WebCore.exp.in:
      * bindings/generic/RuntimeEnabledFeatures.cpp:
      (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
      * bindings/generic/RuntimeEnabledFeatures.h:
      * css/DocumentRuleSets.cpp:
      (WebCore::DocumentRuleSets::appendAuthorStyleSheets):
      * css/ElementRuleCollector.cpp:
      (WebCore::ElementRuleCollector::matchScopedAuthorRules):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::locateCousinList):
      (WebCore::StyleResolver::canShareStyleWithElement):
      (WebCore::StyleResolver::locateSharedStyle):
      * css/StyleResolver.h:
      (WebCore::StyleResolver::ensureScopeResolver):
      * css/StyleScopeResolver.cpp:
      * css/StyleScopeResolver.h:
      * dom/Node.cpp:
      * dom/Node.h:
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::ShadowRoot):
      * dom/ShadowRoot.h:
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::HTMLStyleElement):
      (WebCore::HTMLStyleElement::parseAttribute):
      (WebCore::HTMLStyleElement::insertedInto):
      (WebCore::HTMLStyleElement::removedFrom):
      * html/HTMLStyleElement.h:
      * html/HTMLStyleElement.idl:
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::Backup::Backup):
      (WebCore::InternalSettings::Backup::restoreTo):
      * testing/InternalSettings.h:
      * testing/InternalSettings.idl:
      * testing/Internals.cpp:
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit: 
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      * WebCoreSupport/DumpRenderTreeSupportGtk.h:
      
      Source/WebKit/mac: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF: 
      
      * wtf/FeatureDefines.h:
      
      Tools: 
      
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (resetDefaultsToConsistentValues):
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32bbc4c1
  14. 28 Sep, 2013 2 commits
    • mrowe@apple.com's avatar
      Take Xcode's advice and enable some extra warnings. · c11deac3
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      Source/JavaScriptCore:
      
      * Configurations/Base.xcconfig:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      
      Source/WebCore:
      
      * Configurations/Base.xcconfig:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/NamedNodeMap.cpp:
      (WebCore::NamedNodeMap::removeNamedItemNS): Use the correct constant.
      
      Source/WebKit:
      
      * WebKit.xcodeproj/project.pbxproj:
      
      Source/WebKit/mac:
      
      * Configurations/Base.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/Base.xcconfig:
      * WebKit2.xcodeproj/project.pbxproj:
      
      Source/WTF:
      
      * Configurations/Base.xcconfig:
      * WTF.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c11deac3
    • mrowe@apple.com's avatar
      <rdar://problem/15079224> WTF fails to build with newer versions of clang. · 1524ed50
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      * wtf/DateMath.cpp: Remove some unused constants.
      * wtf/FastMalloc.cpp: #if some constants and functions that are unused in some configurations.
      Remove a function that's unused on all platforms.
      * wtf/TCSystemAlloc.cpp: Remove some unused constants.
      (TCMalloc_SystemRelease): Remove an if whose body is never executed.
      * wtf/dtoa.cpp: #if things such that storeInc is only defined when USE_LONG_LONG is undefined.
      Remove an unused constant.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1524ed50
  15. 27 Sep, 2013 3 commits
    • commit-queue@webkit.org's avatar
      [Nix] Updating Nix trunk files · b4b8227d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121752
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-09-27
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      No new tests needed.
      
      * page/nix/EventHandlerNix.cpp:
      (WebCore::EventHandler::focusDocumentView):
      (WebCore::EventHandler::passWheelEventToWidget):
      (WebCore::EventHandler::passMousePressEventToSubframe):
      (WebCore::EventHandler::passMouseMoveEventToSubframe):
      (WebCore::EventHandler::passMouseReleaseEventToSubframe):
      * platform/DragImage.h:
      * platform/graphics/GraphicsContext3D.h:
      * platform/nix/DragImageNix.cpp:
      (WebCore::createDragImageFromImage):
      * platform/nix/GamepadsNix.cpp:
      (WebCore::sampleGamepads):
      * platform/nix/LanguageNix.cpp:
      (WebCore::platformLanguage):
      * platform/nix/LocalizedStringsNix.cpp:
      (WebCore::unacceptableTLSCertificate):
      * platform/nix/PasteboardNix.cpp:
      (WebCore::Pasteboard::types):
      * platform/nix/RenderThemeNix.cpp:
      (WebCore::toColor):
      (WebCore::themeEngine):
      (WebCore::webCanvas):
      (WebCore::getWebThemeState):
      (WebCore::RenderThemeNix::paintButton):
      (WebCore::RenderThemeNix::paintTextField):
      (WebCore::RenderThemeNix::paintCheckbox):
      (WebCore::RenderThemeNix::paintRadio):
      (WebCore::RenderThemeNix::paintMenuList):
      (WebCore::RenderThemeNix::paintProgressBar):
      (WebCore::RenderThemeNix::paintInnerSpinButton):
      (WebCore::RenderThemeNix::paintMeter):
      
      Source/WTF:
      
      * wtf/nix/FeatureDefinesNix.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4b8227d
    • jer.noble@apple.com's avatar
      [Mac] Implement the media controls in JavaScript. · b8744b36
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120895
      
      Reviewed by Dean Jackson.
      
      Source/JavaScriptCore:
      
      Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Re-implement the existing MediaControls constellation of classes in JavaScript
      and CSS. This will allow different ports to configure their controls without
      dependencies on the layout requirements of any other port's controls.
      
      Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT:
      * Configurations/FeatureDefines.xcconfig:
      
      Add new source files to the project:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      
      Add a new class MediaControlsHost which the script controls can use to
      communicate with the HTMLMediaElement without exposing private interfaces
      to web facing scripts:
      * Modules/mediacontrols/MediaControlsHost.cpp: Added.
      (WebCore::MediaControlsHost::automaticKeyword): Static method.
      (WebCore::MediaControlsHost::forcedOnlyKeyword): Ditto.
      (WebCore::MediaControlsHost::alwaysOnKeyword): Ditto.
      (WebCore::MediaControlsHost::create): Simple factory.
      (WebCore::MediaControlsHost::MediaControlsHost): Simple constructor.
      (WebCore::MediaControlsHost::~MediaControlsHost): Simple destructor.
      (WebCore::MediaControlsHost::sortedTrackListForMenu): Pass through to CaptionUserPreferences.
      (WebCore::MediaControlsHost::displayNameForTrack): Ditto.
      (WebCore::MediaControlsHost::captionMenuOffItem): Pass through to TextTrack.
      (WebCore::MediaControlsHost::captionMenuAutomaticItem): Ditto.
      (WebCore::MediaControlsHost::captionDisplayMode): Pass through to CaptionUserPreferences.
      (WebCore::MediaControlsHost::setSelectedTextTrack): Pass through to HTMLMediaElement.
      (WebCore::MediaControlsHost::textTrackContainer): Lazily create a MediaControlTextTrackContainerElement.
      (WebCore::MediaControlsHost::updateTextTrackContainer): Pass through to MediaControlTextTrackContainerElement.
      * Modules/mediacontrols/MediaControlsHost.h: Added.
      * Modules/mediacontrols/MediaControlsHost.idl: Added.
      * Modules/mediacontrols/mediaControlsApple.css: Added.
      
      Add convenience methods for adding a MediaControlsHost to a VM.
      * bindings/js/ScriptObject.cpp:
      (WebCore::ScriptGlobalObject::set):
      * bindings/js/ScriptObject.h:
      
      Add the new controller .js implementation:
      * Modules/mediacontrols/mediaControlsApple.js: Added.
      (createControls): Global method to create a new Controller object.
      (Controller): Constructor. Create and configure the default set of controls.
      (Controller.prototype.addListeners): Adds event listeners to the this.video object.
      (Controller.prototype.removeListeners): Removes listeners from same.
      (Controller.prototype.handleEvent): Makes Controller an EventHandler, making registration and
              deregistration simpler.
      (Controller.prototype.createBase): Creates the base controls object and the text track container.
      (Controller.prototype.createControls): Creates the controls panel object and controller UI.
      (Controller.prototype.setControlsType): Switches between Full Screen and Inline style of controller.
      (Controller.prototype.disconnectControls): Disconnects all UI elements from the DOM.
      (Controller.prototype.configureInlineControls): Configures existing controls for Inline mode.
      (Controller.prototype.configureFullScreenControls): Ditto, for Full Screen Mode.
      
      Add listeners for HTMLMediaElement events:
      (Controller.prototype.onloadstart): Update the status display.
      (Controller.prototype.onerror): Ditto.
      (Controller.prototype.onabort): Ditto.
      (Controller.prototype.onsuspend): Ditto.
      (Controller.prototype.onprogress): Ditto.
      (Controller.prototype.onstalled): Ditto.
      (Controller.prototype.onwaiting): Ditto.
      (Controller.prototype.onreadystatechange): Ditto.
      (Controller.prototype.ontimeupdate): Update the timeline and time displays.
      (Controller.prototype.ondurationchange): Ditto.
      (Controller.prototype.onplaying): Update the play button.
      (Controller.prototype.onplay): Ditto.
      (Controller.prototype.onpause): Ditto.
      (Controller.prototype.onratechange): Ditto.
      (Controller.prototype.onvolumechange): Update the volume and mute UI.
      (Controller.prototype.ontexttrackchange): Update the text track container and captions button.
      (Controller.prototype.ontexttrackadd): Ditto.
      (Controller.prototype.ontexttrackremove): Ditto.
      (Controller.prototype.ontexttrackcuechange): Ditto.
      (Controller.prototype.onfullscreenchange): Reconfigure the controls.
      
      Add listeners for UI element events:
      (Controller.prototype.onwrappermousemove): Show the controls and start the hide timer.
      (Controller.prototype.onwrappermouseout): Hide the controls and stop the hide timer.
      (Controller.prototype.onrewindbuttonclicked): Rewind.
      (Controller.prototype.onplaybuttonclicked): Toggle pause.
      (Controller.prototype.ontimelinechange): Update the currentTime.
      (Controller.prototype.ontimelinedown):
      (Controller.prototype.ontimelineup):
      (Controller.prototype.ontimelinemouseover): Show the thumbnail view if available.
      (Controller.prototype.ontimelinemouseout): Hide same.
      (Controller.prototype.ontimelinemousemove): Move the thumbnail view.
      (Controller.prototype.onmutebuttonclicked): Mute audio.
      (Controller.prototype.onminbuttonclicked): Increase volume to max.
      (Controller.prototype.onmaxbuttonclicked): Decrease volume to min.
      (Controller.prototype.onvolumesliderchange): Update the current volume.
      (Controller.prototype.oncaptionbuttonclicked): Show or hide the track menu.
      (Controller.prototype.onfullscreenbuttonclicked): Enter or exit fullscreen.
      (Controller.prototype.oncontrolschange): Show or hide the controls panel.
      (Controller.prototype.onseekbackmousedown): Start seeking and enable the seek timer.
      (Controller.prototype.onseekbackmouseup): Stop seeking and disable the seek timer.
      (Controller.prototype.onseekforwardmousedown): Start seekind and enable the seek timer.
      (Controller.prototype.onseekforwardmouseup): Stop seekind and disable the seek timer.
      
      Add action methods (which are mostly self explanatory):
      (Controller.prototype.updateDuration):
      (Controller.prototype.updatePlaying):
      (Controller.prototype.showControls):
      (Controller.prototype.hideControls):
      (Controller.prototype.removeControls):
      (Controller.prototype.addControls):
      (Controller.prototype.updateTime):
      (Controller.prototype.updateReadyState):
      (Controller.prototype.setStatusHidden):
      (Controller.prototype.updateThumbnailTrack):
      (Controller.prototype.updateCaptionButton):
      (Controller.prototype.updateCaptionContainer):
      (Controller.prototype.buildCaptionMenu):
      (Controller.prototype.captionItemSelected):
      (Controller.prototype.destroyCaptionMenu):
      (Controller.prototype.updateVolume):
      
      Add utility methods:
      (Controller.prototype.isFullScreen):
      (Controller.prototype.canPlay):
      (Controller.prototype.nextRate):
      (Controller.prototype.seekBackFaster):
      (Controller.prototype.seekForwardFaster):
      (Controller.prototype.formatTime):
      (Controller.prototype.trackHasThumbnails):
      
      Add the stylesheet for the javascript controls (which are mostly) copied from
      the (deleted) mediaControlsQuickTime.css and fullscreenQuickTime.css files:
      * Modules/mediacontrols/mediaControlsApple.css: Added.
      * css/fullscreenQuickTime.css: Removed.
      * css/mediaControlsQuickTime.css: Removed.
      
      Inject new stylesheets into UA sheets:
      * css/CSSDefaultStyleSheets.cpp:
      (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
      
      Use the new javascript controls rather than MediaControls:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::childShouldCreateRenderer): Use the javascript controls if available.
      (WebCore::HTMLMediaElement::updateTextTrackDisplay): Ditto.
      (WebCore::HTMLMediaElement::mediaControls): Ditto.
      (WebCore::HTMLMediaElement::hasMediaControls): Ditto.
      (WebCore::HTMLMediaElement::createMediaControls): Ditto.
      (WebCore::HTMLMediaElement::configureMediaControls): Ditto.
      (WebCore::HTMLMediaElement::configureTextTrackDisplay): Ditto.
      (WebCore::HTMLMediaElement::ensureIsolatedWorld): Create a new VM for the controls script.
      (WebCore::HTMLMediaElement::ensureMediaControlsInjectedScript): Inject the media controls script into the VM.
      (WebCore::HTMLMediaElement::didAddUserAgentShadowRoot): Inject the MediaControlsHost into the VM and call
              the scripts global factory function.
      * html/HTMLMediaElement.h:
      
      Remove most of the drawing code from RenderThemeMac and RenderThemeWin and
      add accessors for the new .js and .css file data:
      * rendering/RenderTheme.h:
      (WebCore::RenderTheme::mediaControlsStyleSheet): Empty virtual method.
      (WebCore::RenderTheme::mediaControlsScript): Ditto.
      * rendering/RenderThemeMac.h:
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::mediaControlsStyleSheet): Add accessor for mediaControlsApple.css.
      (WebCore::RenderThemeMac::mediaControlsScript): Add accessor for mediaControlsApple.js.
      (WebCore::RenderThemeMac::adjustSliderThumbSize): Remove the call to adjustMediaSliderThumbSize.
      * rendering/RenderThemeWin.cpp:
      (WebCore::RenderThemeWin::mediaControlsStyleSheet):
      (WebCore::RenderThemeWin::mediaControlsScript):
      * rendering/RenderThemeWin.h:
      
      Source/WebKit/mac:
      
      Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
      
      * wtf/FeatureDefines.h:
      
      LayoutTests:
      
      Rebaseline changed tests and add new (failing) tests to
      TestExpectations.
      
      * media/audio-delete-while-slider-thumb-clicked.html:
      * platform/mac/TestExpectations:
      * platform/mac/fast/hidpi/video-controls-in-hidpi-expected.png:
      * platform/mac/fast/hidpi/video-controls-in-hidpi-expected.txt:
      * platform/mac/fast/layers/video-layer-expected.png:
      * platform/mac/fast/layers/video-layer-expected.txt:
      * platform/mac/fullscreen/video-controls-override-expected.txt: Added.
      * platform/mac/media/audio-controls-rendering-expected.png:
      * platform/mac/media/audio-controls-rendering-expected.txt:
      * platform/mac/media/controls-after-reload-expected.png:
      * platform/mac/media/controls-after-reload-expected.txt:
      * platform/mac/media/controls-strict-expected.png:
      * platform/mac/media/controls-strict-expected.txt:
      * platform/mac/media/controls-styling-strict-expected.png:
      * platform/mac/media/controls-styling-strict-expected.txt:
      * platform/mac/media/controls-without-preload-expected.png:
      * platform/mac/media/controls-without-preload-expected.txt:
      * platform/mac/media/media-controls-clone-expected.png:
      * platform/mac/media/media-controls-clone-expected.txt:
      * webarchive/loading/video-in-webarchive-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8744b36
    • ryuan.choi@samsung.com's avatar
      [GCC] Fix build with gcc < 4.8.1, which does not have is_trivially_destructible · 6e0c02ce
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121999
      
      Patch by Gustavo Noronha Silva <gns@gnome.org> on 2013-09-27
      Reviewed by Benjamin Poulain.
      
      * wtf/StdLibExtras.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e0c02ce