2014-01-13 László Langó Comment should be consructable. https://bugs.webkit.org/show_bug.cgi?id=115642 Reviewed by Andreas Kling. http://dom.spec.whatwg.org/#comment This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`. Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21 Test: fast/dom/Comment/comment-constructor.html * dom/Comment.cpp: (WebCore::Comment::create): * dom/Comment.h: * dom/Comment.idl: 2014-01-13 Commit Queue Unreviewed, rolling out r161808. http://trac.webkit.org/changeset/161808 https://bugs.webkit.org/show_bug.cgi?id=126874 This patch make several files to be always regenerated on every make (Requested by KaL on #webkit). * GNUmakefile.am: * bindings/gobject/GNUmakefile.am: 2014-01-12 Commit Queue Unreviewed, rolling out r161843. http://trac.webkit.org/changeset/161843 https://bugs.webkit.org/show_bug.cgi?id=126871 Caused CSS custom filter tests to assert (Requested by smfr on #webkit). * platform/graphics/ANGLEWebKitBridge.cpp: (WebCore::getSymbolInfo): (WebCore::ANGLEWebKitBridge::compileShaderSource): * platform/graphics/GraphicsContext3D.h: * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::compileShader): (WebCore::GraphicsContext3D::getProgramInfoLog): (WebCore::GraphicsContext3D::getShaderInfoLog): 2014-01-12 Commit Queue Unreviewed, rolling out r161840. http://trac.webkit.org/changeset/161840 https://bugs.webkit.org/show_bug.cgi?id=126870 Caused jsscore and layout test failures (Requested by smfr on #webkit). * bindings/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]): * editing/CompositeEditCommand.cpp: (WebCore::containsOnlyWhitespace): * editing/TypingCommand.cpp: (WebCore::TypingCommand::insertText): * editing/VisibleUnits.cpp: (WebCore::startOfParagraph): (WebCore::endOfParagraph): * html/parser/HTMLParserIdioms.cpp: (WebCore::stripLeadingAndTrailingHTMLSpaces): (WebCore::parseHTMLNonNegativeInteger): * inspector/ContentSearchUtils.cpp: (WebCore::ContentSearchUtils::createSearchRegexSource): * inspector/InspectorStyleSheet.cpp: (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): * inspector/InspectorStyleTextEditor.cpp: (WebCore::InspectorStyleTextEditor::insertProperty): (WebCore::InspectorStyleTextEditor::internalReplaceProperty): * platform/Length.cpp: (WebCore::newCoordsArray): * platform/LinkHash.cpp: (WebCore::visitedLinkHash): * platform/graphics/Color.cpp: (WebCore::Color::parseHexColor): (WebCore::Color::Color): * platform/graphics/TextRun.h: (WebCore::TextRun::TextRun): * platform/text/TextEncodingRegistry.cpp: (WebCore::atomicCanonicalTextEncodingName): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::constructTextRun): * rendering/RenderCombineText.cpp: (WebCore::RenderCombineText::width): * svg/SVGFontElement.cpp: (WebCore::SVGFontElement::registerLigaturesInGlyphCache): * xml/XPathFunctions.cpp: (WebCore::XPath::FunId::evaluate): * xml/XPathNodeSet.h: 2014-01-12 Jinwoo Song Fix build warnings by unused parameter https://bugs.webkit.org/show_bug.cgi?id=126867 Reviewed by Gyuyoung Kim. * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp: (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'. 2014-01-12 Brent Fulgham Unreviewed build fix for WinCairo. * WebCore.vcxproj/WebCoreCairo.props: Add missing include path to locate SelectorCompiler.h. 2014-01-12 Maciej Stachowiak Fix iOS build breakage from http://trac.webkit.org/changeset/161844 https://bugs.webkit.org/show_bug.cgi?id=126866 Reviewed by Simon Fraser. * platform/text/TextBreakIteratorICU.cpp: (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator, which does not exist. 2014-01-12 Darin Adler Add PLATFORM(COCOA) and USE(FOUNDATION) https://bugs.webkit.org/show_bug.cgi?id=126859 Reviewed by Anders Carlsson. * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS) to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be a change in behavior that might be incorrect. Removed bogus comments in the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA), which exactly duplicates code that already exists in Platform.h. 2014-01-12 Darin Adler Add deprecatedCharacters as a synonym for characters and convert most call sites https://bugs.webkit.org/show_bug.cgi?id=126858 Reviewed by Anders Carlsson. * Modules/indexeddb/IDBKeyPath.cpp: (WebCore::IDBKeyPathLexer::IDBKeyPathLexer): * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp: (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol): (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::hasMisspelling): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]): * bindings/js/SerializedScriptValue.cpp: (WebCore::CloneSerializer::serialize): (WebCore::CloneSerializer::write): * dom/CharacterData.cpp: (WebCore::CharacterData::parserAppendData): * dom/Document.cpp: (WebCore::Document::parseQualifiedName): * editing/Editor.cpp: (WebCore::Editor::misspelledWordAtCaretOrRange): (WebCore::Editor::misspelledSelectionString): (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): * editing/TextCheckingHelper.cpp: (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar): (WebCore::TextCheckingHelper::findFirstBadGrammar): (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange): * editing/TextCheckingHelper.h: (WebCore::TextCheckingParagraph::textDeprecatedCharacters): * editing/TextIterator.cpp: (WebCore::collapsedSpaceLength): (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): (WebCore::containsKanaLetters): (WebCore::SearchBuffer::SearchBuffer): * editing/TextIterator.h: (WebCore::TextIterator::characters): * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::characterAfter): * editing/VisibleUnits.cpp: (WebCore::wordBreakIteratorForMinOffsetBoundary): (WebCore::wordBreakIteratorForMaxOffsetBoundary): (WebCore::visualWordPosition): (WebCore::previousBoundary): (WebCore::nextBoundary): * fileapi/WebKitBlobBuilder.cpp: (WebCore::BlobBuilder::append): * html/FormDataList.cpp: (WebCore::FormDataList::appendString): * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::normalizeSpaces): * html/parser/HTMLParserIdioms.cpp: (WebCore::parseImagesWithScaleFromSrcsetAttribute): * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer): * loader/appcache/ManifestParser.cpp: (WebCore::parseManifest): * page/ContentSecurityPolicy.cpp: (WebCore::isSourceListNone): (WebCore::CSPSourceList::parse): (WebCore::NonceDirective::parse): (WebCore::MediaListDirective::parse): (WebCore::CSPDirectiveList::parse): (WebCore::CSPDirectiveList::parseReportURI): (WebCore::CSPDirectiveList::parseReflectedXSS): (WebCore::ContentSecurityPolicy::didReceiveHeader): * page/PageSerializer.cpp: (WebCore::PageSerializer::serializeFrame): (WebCore::PageSerializer::serializeCSSStyleSheet): * platform/Length.cpp: (WebCore::newCoordsArray): (WebCore::newLengthArray): * platform/LinkHash.cpp: (WebCore::visitedURL): (WebCore::visitedLinkHash): * platform/SharedBuffer.cpp: (WebCore::utf8Buffer): * platform/URL.cpp: (WebCore::URL::port): (WebCore::encodeHostnames): * platform/graphics/StringTruncator.cpp: (WebCore::centerTruncateToBuffer): (WebCore::rightTruncateToBuffer): (WebCore::rightClipToCharacterBuffer): (WebCore::rightClipToWordBuffer): (WebCore::leftTruncateToBuffer): (WebCore::truncateString): (WebCore::StringTruncator::width): * platform/graphics/TextRun.h: (WebCore::TextRun::TextRun): * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource): * platform/network/FormDataBuilder.cpp: (WebCore::FormDataBuilder::addFilenameToMultiPartHeader): * platform/sql/SQLiteStatement.cpp: (WebCore::SQLiteStatement::bindBlob): (WebCore::SQLiteStatement::bindText): * platform/text/DecodeEscapeSequences.h: (WebCore::decodeEscapeSequences): * platform/text/TextBreakIterator.cpp: (WebCore::numGraphemeClusters): (WebCore::numCharactersInGraphemeClusters): * platform/text/TextBreakIteratorICU.cpp: (WebCore::setUpIteratorWithRules): * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::encode): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::constructTextRun): * rendering/RenderListMarker.cpp: (WebCore::RenderListMarker::paint): * rendering/RenderText.cpp: (WebCore::maxWordFragmentWidth): (WebCore::RenderText::computePreferredLogicalWidths): (WebCore::RenderText::computeCanUseSimpleFontCodePath): * rendering/RenderText.h: (WebCore::RenderText::characters): (WebCore::RenderText::deprecatedCharacters): * rendering/line/BreakingContextInlineHeaders.h: (WebCore::tryHyphenating): * rendering/svg/SVGInlineTextBox.cpp: (WebCore::SVGInlineTextBox::constructTextRun): * rendering/svg/SVGTextLayoutAttributesBuilder.cpp: (WebCore::processRenderSVGInlineText): * rendering/svg/SVGTextLayoutEngine.cpp: (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath): * rendering/svg/SVGTextMetrics.cpp: (WebCore::SVGTextMetrics::measureCharacterRange): (WebCore::SVGTextMetrics::SVGTextMetrics): * rendering/svg/SVGTextMetricsBuilder.cpp: (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer): * svg/SVGAngle.cpp: (WebCore::SVGAngle::setValueAsString): * svg/SVGAnimateMotionElement.cpp: (WebCore::parsePoint): * svg/SVGAnimationElement.cpp: (WebCore::parseKeySplines): * svg/SVGFitToViewBox.cpp: (WebCore::SVGFitToViewBox::parseViewBox): * svg/SVGFontData.cpp: (WebCore::SVGFontData::applySVGGlyphSelection): * svg/SVGGlyphMap.h: (WebCore::SVGGlyphMap::addGlyph): (WebCore::SVGGlyphMap::collectGlyphsForString): * svg/SVGGlyphRefElement.cpp: (WebCore::SVGGlyphRefElement::parseAttribute): * svg/SVGLength.cpp: (WebCore::SVGLength::setValueAsString): * svg/SVGLengthList.cpp: (WebCore::SVGLengthList::parse): * svg/SVGNumberList.cpp: (WebCore::SVGNumberList::parse): * svg/SVGParserUtilities.cpp: (WebCore::parseNumberFromString): (WebCore::parseNumberOptionalNumber): (WebCore::parseRect): (WebCore::pointsListFromSVGData): (WebCore::parseGlyphName): (WebCore::parseKerningUnicodeString): (WebCore::parseDelimitedString): * svg/SVGPreserveAspectRatio.cpp: (WebCore::SVGPreserveAspectRatio::parse): * svg/SVGStringList.cpp: (WebCore::SVGStringList::parse): * svg/SVGTransformList.cpp: (WebCore::SVGTransformList::parse): * svg/SVGTransformable.cpp: (WebCore::SVGTransformable::parseTransformType): * svg/SVGViewSpec.cpp: (WebCore::SVGViewSpec::parseViewSpec): * svg/SVGZoomAndPan.h: (WebCore::SVGZoomAndPan::parseAttribute): * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::send): * xml/XSLStyleSheetLibxslt.cpp: (WebCore::XSLStyleSheet::parseString): * xml/XSLTUnicodeSort.cpp: (WebCore::xsltUnicodeSortFunction): * xml/parser/XMLDocumentParserLibxml2.cpp: (WebCore::XMLDocumentParser::doWrite): (WebCore::parseAttributes): Use deprecatedCharacters instead of characters. 2014-01-12 Darin Adler Add type checking to isEqual methods https://bugs.webkit.org/show_bug.cgi?id=126862 Reviewed by Anders Carlsson. * page/ios/WebEventRegion.mm: (-[WebEventRegion isEqual:]): Add type checking on the argument. Add a FIXME about the lack of a hash method override. Formatted to match the usual WebKit coding style. 2014-01-12 Anders Carlsson Try to fix the 32-bit build. * platform/text/icu/UTextProviderLatin1.cpp: (WebCore::uTextLatin1Clone): (WebCore::uTextLatin1Extract): (WebCore::uTextLatin1MapNativeIndexToUTF16): 2014-01-12 Anders Carlsson Remove all uses of AtomicallyInitializedStatic from WebCore https://bugs.webkit.org/show_bug.cgi?id=126861 Reviewed by Darin Adler. * Modules/indexeddb/IDBPendingTransactionMonitor.cpp: (WebCore::transactions): * fileapi/ThreadableBlobRegistry.cpp: (WebCore::originMap): * platform/text/TextEncodingRegistry.cpp: (WebCore::encodingRegistryMutex): (WebCore::newTextCodec): (WebCore::atomicCanonicalTextEncodingName): (WebCore::dumpTextEncodingNameMap): * workers/DefaultSharedWorkerRepository.cpp: (WebCore::DefaultSharedWorkerRepository::instance): 2014-01-12 Anders Carlsson Use an std::atomic when computing IDBDatabase transaction IDs https://bugs.webkit.org/show_bug.cgi?id=126853 Reviewed by Sam Weinig. * Modules/indexeddb/IDBDatabase.cpp: (WebCore::IDBDatabase::nextTransactionId): 2014-01-12 Sam Weinig TextBreakIterator's should support Latin-1 for all iterator types (Part 1) https://bugs.webkit.org/show_bug.cgi?id=126856 Reviewed by Darin Adler. - Do some initial cleanup before adding complete Latin-1 support. * platform/text/TextBreakIterator.cpp: Remove non-ICU acquireLineBreakIterator() implementation. * platform/text/TextBreakIterator.h: - Changes acquireLineBreakIterator() to take a StringView. * platform/text/TextBreakIteratorICU.cpp: - Refactor iterator initialization and setting of text on the iterator. - Add support for using a Latin-1 provider (this is not currently used). * platform/text/icu/UTextProviderLatin1.cpp: * platform/text/icu/UTextProviderLatin1.h: - Add back non-context aware Latin-1 provider (from r129662). - Rename context aware provider. * platform/text/icu/UTextProviderUTF16.cpp: * platform/text/icu/UTextProviderUTF16.h: - Rename context aware provider. 2014-01-12 Brent Fulgham [WebGL] Error messages should use source code labels, not internal mangled symbols. https://bugs.webkit.org/show_bug.cgi?id=126832 Reviewed by Dean Jackson. Revised fast/canvas/webgl/glsl-conformance.html. * platform/graphics/ANGLEWebKitBridge.cpp: (WebCore::getSymbolInfo): Correct missing 'break'. (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo' for SH_VARYINGS. * platform/graphics/GraphicsContext3D.h: Add new declarations. * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::compileShader): Demangle log output. (WebCore::GraphicsContext3D::mappedSymbolName): Added. (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added. (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output. (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output. 2014-01-12 Dan Bernstein Try to fix the Windows build after r161839. * WebCore.vcxproj/WebCoreCommon.props: 2014-01-12 Darin Adler Reduce use of String::characters https://bugs.webkit.org/show_bug.cgi?id=126854 Reviewed by Sam Weinig. * bindings/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]): Get rid of unneeded code to turn a WTF::String into an NSString, since that's built into the WTF::String class. * editing/CompositeEditCommand.cpp: (WebCore::containsOnlyWhitespace): Use WTF::String's [] operator instead of an explicit call to the characters function. Small performance cost. * editing/TypingCommand.cpp: (WebCore::TypingCommand::insertText): Ditto. * editing/VisibleUnits.cpp: (WebCore::startOfParagraph): Use reverseFind instead of writing our own loop. (WebCore::endOfParagraph): Use find instead of writing our own loop. * html/parser/HTMLParserIdioms.cpp: (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 instead of characters since we have already checked is8Bit. (WebCore::parseHTMLNonNegativeInteger): Ditto. Replace the length check with a check of isNull since a zero length string could be 8 bit, but it's not safe to call is8Bit on a null WTF::String. (That should probably be fixed.) * inspector/ContentSearchUtils.cpp: (WebCore::ContentSearchUtils::createSearchRegexSource): Use StringBuilder instead of String in code that builds up a string one character at a time. The old way was ridiculously slow because it allocated a new string for every character; the new way still isn't all that efficient, but it's better. Also changed to use strchr instead of WTF::String::find for special characters. * inspector/InspectorStyleSheet.cpp: (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Use WTF::String's [] operator instead of an explicit call to the characters function. * inspector/InspectorStyleTextEditor.cpp: (WebCore::InspectorStyleTextEditor::insertProperty): Ditto. (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto. * platform/Length.cpp: (WebCore::newCoordsArray): Ditto. * platform/LinkHash.cpp: (WebCore::visitedLinkHash): Use characters16 instead of characters since we have already checked is8Bit. Replace the length check with a check of isNull (as above in parseHTMLNonNegativeInteger). * platform/graphics/Color.cpp: (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit. (WebCore::Color::Color): Ditto. * platform/graphics/TextRun.h: (WebCore::TextRun::TextRun): Use characters16 instead of characters since we have already checked is8Bit. Replace the length check with a check of isNull (as above in parseHTMLNonNegativeInteger). * platform/text/TextEncodingRegistry.cpp: (WebCore::atomicCanonicalTextEncodingName): Use characters16 instead of characters since we already checked is8Bit. Also use isEmpty instead of !length. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::constructTextRun): Use characters16 instead of characters since we have already checked is8Bit. Replace the length check with a check of isNull (as above in parseHTMLNonNegativeInteger). * rendering/RenderCombineText.cpp: (WebCore::RenderCombineText::width): Check for zero length instead of checking for null characters. * svg/SVGFontElement.cpp: (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Rewrite ligatures for loop and give local variables a better name. Construct the substring with the substring function. Still a really inefficient approach -- allocating a new string for every character is absurdly expensive. * xml/XPathFunctions.cpp: (WebCore::XPath::FunId::evaluate): Use String instead of StringBuilder. Still not all that efficient, but better than before. Use substring to construct the substring. * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for loop with this class. 2014-01-12 Benjamin Poulain Use the Selector Code Generator for matching in SelectorQuery https://bugs.webkit.org/show_bug.cgi?id=126185 Reviewed by Ryosuke Niwa. Compile selectors on demand and use the generated binary to perform element matching in SelectorQuery. Tests: fast/selectors/querySelector-long-adjacent-backtracking.html fast/selectors/querySelector-long-child-backtracking.html fast/selectors/querySelector-mixed-child-adjacent-backtracking.html fast/selectors/querySelector-multiple-simple-child-backtracking.html fast/selectors/querySelector-simple-adjacent-backtracking.html fast/selectors/querySelector-simple-child-backtracking.html * dom/SelectorQuery.cpp: (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker): (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext): (WebCore::SelectorDataList::execute): * dom/SelectorQuery.h: 2014-01-12 Anders Carlsson Simplify creation of XMLHttpRequestStaticData https://bugs.webkit.org/show_bug.cgi?id=126852 Reviewed by Sam Weinig. Add a staticData() getter that does the initialization and get rid of the explicit calls to initializeXMLHttpRequestStaticData(). * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData): (WebCore::staticData): (WebCore::XMLHttpRequest::XMLHttpRequest): (WebCore::XMLHttpRequest::isAllowedHTTPHeader): 2014-01-12 Simon Fraser Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm. * platform/ios/WebCoreSystemInterfaceIOS.mm: 2014-01-12 Anders Carlsson Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase https://bugs.webkit.org/show_bug.cgi?id=126851 Reviewed by Sam Weinig. * Modules/webdatabase/DatabaseBackendBase.cpp: (WebCore::guidMutex): (WebCore::guidToVersionMap): (WebCore::updateGuidVersionMap): (WebCore::guidToDatabaseMap): (WebCore::guidForOriginAndName): (WebCore::DatabaseBackendBase::DatabaseBackendBase): (WebCore::DatabaseBackendBase::closeDatabase): (WebCore::DatabaseBackendBase::performOpenAndVerify): (WebCore::DatabaseBackendBase::getCachedVersion): (WebCore::DatabaseBackendBase::setCachedVersion): 2014-01-12 Dan Bernstein Try to fix the Windows build after r161830. * platform/network/NetworkStateNotifier.h: 2014-01-12 Simon Fraser Don't build JSTouch* and JSGesture* files on Mac. * Configurations/WebCore.xcconfig: 2014-01-12 Anders Carlsson Clean up NetworkStateNotifier class https://bugs.webkit.org/show_bug.cgi?id=126850 Reviewed by Andreas Kling. Use std::call_once instead of AtomicallyInitializedStatic and a std::function instead of a custom function pointer typedef. * platform/network/NetworkStateNotifier.cpp: (WebCore::networkStateNotifier): (WebCore::NetworkStateNotifier::addNetworkStateChangeListener): (WebCore::NetworkStateNotifier::notifyNetworkStateChange): * platform/network/NetworkStateNotifier.h: 2014-01-12 Simon Fraser Add implementations of Frame::viewportArguments() and Frame::setViewportArguments(). * page/ios/FrameIOS.mm: (WebCore::Frame::viewportArguments): (WebCore::Frame::setViewportArguments): 2014-01-12 Simon Fraser Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project. * WebCore.xcodeproj/project.pbxproj: 2014-01-12 Simon Fraser Stub out some DragImage functions for iOS. * WebCore.xcodeproj/project.pbxproj: * platform/ios/DragImageIOS.mm: Added. (WebCore::dragImageSize): (WebCore::scaleDragImage): (WebCore::createDragImageFromImage): 2014-01-12 Simon Fraser We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is not defined, because these are actually generic snapshotting functions. * platform/DragImage.cpp: 2014-01-12 Simon Fraser Fix linker errors: add DateTimeFormat.cpp to the project, and make DateInputType::DateInputType not inline. * WebCore.xcodeproj/project.pbxproj: * html/DateInputType.cpp: (WebCore::DateInputType::DateInputType): * platform/DragImage.cpp: 2014-01-12 Simon Fraser Fix a bunch of linker errors related to exported functions. I removed some iOS symbols from the .exp.in file; we may have to add some back. * WebCore.exp.in: 2014-01-12 Simon Fraser Add generated JSTouch* and JSGestureEvent.* files to the project. * WebCore.xcodeproj/project.pbxproj: 2014-01-12 David Kilzer Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK) Reviewed by Simon Fraser. * platform/network/cf/AuthenticationCF.cpp: (WebCore::AuthenticationChallenge::setAuthenticationClient): Move implementation to here... * platform/network/cf/AuthenticationChallenge.h: ...from here. Remove duplicate header definitions inside USE(CFNETWORK). 2014-01-12 Sam Weinig Fix windows. * WebCore.vcxproj/WebCore.vcxproj: 2014-01-12 Anders Carlsson Replace more uses of AtomicallyInitializedStatic with std::call_once https://bugs.webkit.org/show_bug.cgi?id=126847 Reviewed by Sam Weinig. * crypto/CryptoAlgorithmRegistry.cpp: (WebCore::CryptoAlgorithmRegistry::shared): (WebCore::registryMutex): (WebCore::CryptoAlgorithmRegistry::getIdentifierForName): (WebCore::CryptoAlgorithmRegistry::nameForIdentifier): (WebCore::CryptoAlgorithmRegistry::create): (WebCore::CryptoAlgorithmRegistry::registerAlgorithm): * crypto/CryptoAlgorithmRegistry.h: * inspector/WorkerDebuggerAgent.cpp: (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent): (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent): (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands): * workers/WorkerThread.cpp: (WebCore::threadSetMutex): (WebCore::workerThreads): (WebCore::WorkerThread::workerThreadCount): (WebCore::WorkerThread::WorkerThread): (WebCore::WorkerThread::~WorkerThread): (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads): 2014-01-11 Sam Weinig Split ICU UText providers out into their own files https://bugs.webkit.org/show_bug.cgi?id=126834 Reviewed by Anders Carlsson. Moves the implementation of our custom UText providers out into their own files. - UTextProviderLatin1.h/cpp contains the Latin-1 provider. - UTextProviderUTF16.h/cpp contains the UTF-16 provider. - UTextProvider.h/cpp contains code common to all the providers. * CMakeLists.txt: * GNUmakefile.list.am: * PlatformGTK.cmake: * WebCore.vcxproj/WebCoreCommon.props: * WebCore.vcxproj/copyForwardingHeaders.cmd: * WebCore.xcodeproj/project.pbxproj: * platform/text/TextAllInOne.cpp: * platform/text/TextBreakIteratorICU.cpp: (WebCore::setUpIterator): (WebCore::wordBreakIterator): (WebCore::acquireLineBreakIterator): (WebCore::sentenceBreakIterator): (WebCore::setUpIteratorWithRules): * platform/text/icu: Added. * platform/text/icu/UTextProvider.cpp: Added. (WebCore::fixPointer): (WebCore::uTextCloneImpl): * platform/text/icu/UTextProvider.h: Added. (WebCore::uTextProviderContext): (WebCore::uTextInitialize): (WebCore::uTextAccessPinIndex): (WebCore::uTextAccessInChunkOrOutOfRange): * platform/text/icu/UTextProviderLatin1.cpp: Added. * platform/text/icu/UTextProviderLatin1.h: Added. * platform/text/icu/UTextProviderUTF16.cpp: Added. * platform/text/icu/UTextProviderUTF16.h: Added. 2014-01-12 Carlos Garcia Campos Unreviewed. Fix make distcheck. * GNUmakefile.list.am: Add missing files. 2014-01-12 Simon Fraser Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo symbols. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 2014-01-12 Andreas Kling REGRESSION(r160806): line-height is not applied when only present in :link style. Reviewed by Antti Koivisto. Test: fast/css/line-height-link-style.html * css/StyleResolver.cpp: (WebCore::StyleResolver::CascadedProperties::Property::apply): Use the CSSValue for SelectorChecker::MatchLink when applying style inside a link. 2014-01-12 David Kilzer [iOS] Fix link errors for iOS: Part 3 * WebCore.exp.in: - Move some Mac-only symbols to Mac-only section. * WebCore.xcodeproj/project.pbxproj: - Add missing references to AuthenticationCF.cpp and CookieJarCFNet.cpp. 2014-01-11 Anders Carlsson Remove unsafe uses of AtomicallyInitializedStatic https://bugs.webkit.org/show_bug.cgi?id=126838 Reviewed by Andreas Kling. AtomicStrings are per thread so any static initialization of them is potentially dangerous unless it's certain that they're only ever used from the same thread. This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed. (This is highly unlikely to have any real negative performance impact since these two functions aren't called very frequently). * loader/CrossOriginAccessControl.cpp: (WebCore::passesAccessControlCheck): * page/PerformanceResourceTiming.cpp: (WebCore::passesTimingAllowCheck): 2014-01-12 David Kilzer [iOS] Fix link errors for iOS: Part 2 * WebCore.exp.in: - Move some Mac-only symbols to Mac-only section. 2014-01-12 David Kilzer [iOS] First of many iOS fixes to WebCore.exp.in * WebCore.exp.in: - Move some Mac-only symbols to Mac-only section. - Upstream some changes to iOS-only section. 2014-01-12 David Kilzer [iOS] Don't link to Mac-only frameworks when building iOS * Configurations/WebCore.xcconfig: (OTHER_LDFLAGS_iphonesimulator): Remove common frameworks that are already in the Xcode project. (OTHER_LDFLAGS_macosx): Add Mac-only frameworks removed from the Xcode project. * Configurations/WebCoreTestShim.xcconfig: (OTHER_LDFLAGS[sdk=macosx*]): Link to Carbon.framework for Mac since it was removed from the Xcode project. * WebCore.xcodeproj/project.pbxproj: Remove Mac-only frameworks. 2014-01-12 Tobias Mueller --disable-dependency-tracking causes build failure due to missing directories https://bugs.webkit.org/show_bug.cgi?id=94488 Reviewed by Gustavo Noronha Silva. Ensure output directory existing before generating DerivedSources. This allows for --disable-dependency-tracking to be run. * GNUmakefile.am: Added new target DerivedSources/ANGLE which is a directory to be created * bindings/gobject/GNUmakefile.am: Added new target DerivedSources/webkitdom which is a directory to be created 2014-01-12 David Kilzer [iOS] WebFontCache is Mac-only * WebCore.exp.in: Move export to Mac-only section. 2014-01-12 David Kilzer [iOS] Upstream WebEventRegion.{h|mm} to fix the build * WebCore.xcodeproj/project.pbxproj: Add to project. * page/ios/WebEventRegion.h: Added. * page/ios/WebEventRegion.mm: Added. (-[WebEventRegion initWithPoints::::]): (-[WebEventRegion copyWithZone:]): (-[WebEventRegion description]): (-[WebEventRegion hitTest:]): (-[WebEventRegion isEqual:]): (-[WebEventRegion quad]): 2014-01-11 Anders Carlsson Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set https://bugs.webkit.org/show_bug.cgi?id=126837 Reviewed by Sam Weinig. Use std::call_once when constructing the HTTPHeaderSet. * loader/CrossOriginAccessControl.cpp: (WebCore::isOnAccessControlResponseHeaderWhitelist): 2014-01-11 David Kilzer [iOS] Do not link to ApplicationServices.framework for iOS Reviewed by Dan Bernstein. * Configurations/WebCore.xcconfig: (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices. * WebCore.xcodeproj/project.pbxproj: Remove reference to ApplicationServices.framework. 2014-01-11 David Kilzer [iOS] Build fix for StyleResolver.cpp * rendering/style/RenderStyle.h: (WebCore::RenderStyle::setCompositionFillColor): Added. 2014-01-11 David Kilzer [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers() * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers): Fix use of std::make_unique<>() and add an adoptPtr() call. 2014-01-11 Alexey Proskuryakov [Mac] [Windows] Stop scheduling network requests in WebCore https://bugs.webkit.org/show_bug.cgi?id=126789 Reviewed by Sam Weinig. We'll just send all requests to CFNetwork now, along with associated priorities. * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities for more than just pipelining. * loader/ResourceLoadScheduler.cpp: (WebCore::ResourceLoadScheduler::scheduleLoad): * platform/ios/WebCoreSystemInterfaceIOS.mm: * platform/mac/WebCoreSystemInterface.h: * platform/mac/WebCoreSystemInterface.mm: * platform/network/ResourceHandle.h: For syncronous requests, make it so that they don't count against HTTP connection limit, to avoid the possibility of hanging the process. * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::createCFURLConnection): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::platformLoadResourceSynchronously): * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest): (WebCore::initializeMaximumHTTPConnectionCountPerHost): (WebCore::initializeHTTPConnectionSettingsOnStartup): * platform/network/cf/ResourceRequestCFNet.h: (WebCore::toPlatformRequestPriority): * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::createNSURLConnection): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::platformLoadResourceSynchronously): * platform/network/mac/ResourceRequestMac.mm: (WebCore::ResourceRequest::doUpdateResourceRequest): (WebCore::ResourceRequest::doUpdatePlatformRequest): 2014-01-11 David Kilzer [iOS] Fix build failure in WebCore::findEndWordBoundary() Filed Bug 126830 for the proper fix: * editing/VisibleUnits.cpp: (WebCore::endWordBoundary): Switch back to using WebCore::findWordBoundary() on iOS. * platform/text/mac/TextBoundaries.mm: (WebCore::findEndWordBoundary): Add FIXME for iOS implementation that doesn't use NSAttributedString. 2014-01-11 Andy Estes [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow https://bugs.webkit.org/show_bug.cgi?id=126829 Reviewed by Sam Weinig. Some newly-upstreamed iOS text autosizing code needs to move to RenderBlockFlow in order to build. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::RenderBlock): * rendering/RenderBlock.h: * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::RenderBlockFlow): (WebCore::isVisibleRenderText): (WebCore::resizeTextPermitted): (WebCore::RenderBlockFlow::immediateLineCount): (WebCore::isNonBlocksOrNonFixedHeightListItems): (WebCore::oneLineTextMultiplier): (WebCore::textMultiplier): (WebCore::RenderBlockFlow::adjustComputedFontSizes): * rendering/RenderBlockFlow.h: (WebCore::RenderBlockFlow::resetComputedFontSize): * rendering/RenderObject.cpp: (WebCore::RenderObject::adjustComputedFontSizesOnBlocks): (WebCore::RenderObject::resetTextAutosizing): 2014-01-11 Daniel Bates [iOS] Fix the build Only call CGContextFlush() when building for OS X < 10.9. * platform/graphics/cg/ImageBufferBackingStoreCache.cpp: (WebCore::ImageBufferBackingStoreCache::deallocate): 2014-01-11 Anders Carlsson InspectorAgentRegistry should use std::unique_ptr https://bugs.webkit.org/show_bug.cgi?id=126826 Reviewed by Sam Weinig. * inspector/InspectorApplicationCacheAgent.h: * inspector/InspectorCSSAgent.h: * inspector/InspectorCanvasAgent.h: * inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController): * inspector/InspectorDOMAgent.h: * inspector/InspectorDOMDebuggerAgent.cpp: * inspector/InspectorDOMDebuggerAgent.h: * inspector/InspectorDOMStorageAgent.h: * inspector/InspectorDatabaseAgent.h: * inspector/InspectorHeapProfilerAgent.cpp: * inspector/InspectorHeapProfilerAgent.h: * inspector/InspectorIndexedDBAgent.h: * inspector/InspectorInputAgent.h: * inspector/InspectorLayerTreeAgent.h: * inspector/InspectorMemoryAgent.cpp: * inspector/InspectorMemoryAgent.h: * inspector/InspectorPageAgent.cpp: * inspector/InspectorPageAgent.h: * inspector/InspectorProfilerAgent.cpp: (WebCore::InspectorProfilerAgent::create): * inspector/InspectorProfilerAgent.h: * inspector/InspectorResourceAgent.h: * inspector/InspectorTimelineAgent.h: * inspector/InspectorWorkerAgent.cpp: * inspector/InspectorWorkerAgent.h: * inspector/PageConsoleAgent.h: * inspector/PageDebuggerAgent.cpp: * inspector/PageDebuggerAgent.h: * inspector/PageRuntimeAgent.h: * inspector/WorkerConsoleAgent.h: * inspector/WorkerDebuggerAgent.cpp: * inspector/WorkerDebuggerAgent.h: * inspector/WorkerInspectorController.cpp: (WebCore::WorkerInspectorController::WorkerInspectorController): * inspector/WorkerRuntimeAgent.h: 2014-01-11 Sam Weinig Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file https://bugs.webkit.org/show_bug.cgi?id=126820 Reviewed by Anders Carlsson. * CMakeLists.txt: * GNUmakefile.list.am: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp. (WebCore::convertFloatToHalfFloat): (WebCore::FormatConverter::convert): * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp. (WebCore::FormatConverter::FormatConverter): (WebCore::FormatConverter::success): * platform/graphics/GraphicsContext3D.cpp: (WebCore::GraphicsContext3D::computeFormatAndTypeParameters): (WebCore::GraphicsContext3D::computeImageSizeInBytes): (WebCore::GraphicsContext3D::packImageData): (WebCore::GraphicsContext3D::extractImageData): (WebCore::GraphicsContext3D::extractTextureData): (WebCore::GraphicsContext3D::packPixels): * platform/graphics/GraphicsContext3D.h: (WebCore::GraphicsContext3D::hasAlpha): (WebCore::GraphicsContext3D::hasColor): 2014-01-11 Simon Fraser Fix updateScrollingLayerWithClient() for iOS. * rendering/RenderLayerCompositor.cpp: (WebCore::updateScrollingLayerWithClient): 2014-01-11 Simon Fraser Unfork GraphicsContext::drawNativeImage for iOS https://bugs.webkit.org/show_bug.cgi?id=126824 Reviewed by Dean Jackson. GraphicsContext::drawNativeImage had a different signature for iOS, which required #ifdefs at all the call sites. Unfork by passing the "scale" parameter everywhere (it's only used on iOS). * WebCore.exp.in: * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawImage): * platform/graphics/GraphicsContext.h: * platform/graphics/cg/BitmapImageCG.cpp: (WebCore::BitmapImage::draw): * platform/graphics/cg/GraphicsContext3DCG.cpp: (WebCore::GraphicsContext3D::paintToCanvas): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::platformInit): * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::draw): * platform/graphics/ios/IconIOS.mm: (WebCore::Icon::paint): 2014-01-11 Simon Fraser Work around USE(CFNETWORK) build failure on iOS. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge): 2014-01-11 Simon Fraser Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString' * loader/archive/cf/LegacyWebArchive.cpp: 2014-01-11 David Kilzer [iOS] Fix the easy half of the build errors in RenderBlock.cpp * rendering/RenderBlock.cpp: (WebCore::isNonBlocksOrNonFixedHeightListItems): (WebCore::oneLineTextMultiplier): (WebCore::textMultiplier): (WebCore::RenderBlock::adjustComputedFontSizes): 2014-01-11 Simon Fraser Change touch-related headers to include WebKitAdditions headers, which have been renamed to have IOS suffixes. * WebCore.xcodeproj/project.pbxproj: * bindings/js/ios/TouchConstructors.cpp: * dom/Touch.h: * dom/TouchEvent.h: * dom/TouchList.h: * dom/ios/TouchEvents.cpp: 2014-01-11 Anders Carlsson ScriptDebugServer should use a separate member function for its timer handler https://bugs.webkit.org/show_bug.cgi?id=126819 Reviewed by Sam Weinig. It's weird to have subclasses override a timer handler and sometimes invoke the timer handler directly so make it a separate member function instead. * bindings/js/PageScriptDebugServer.cpp: (WebCore::PageScriptDebugServer::recompileAllJSFunctions): * bindings/js/PageScriptDebugServer.h: * bindings/js/ScriptDebugServer.cpp: (WebCore::ScriptDebugServer::ScriptDebugServer): (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired): * bindings/js/ScriptDebugServer.h: * bindings/js/WorkerScriptDebugServer.cpp: (WebCore::WorkerScriptDebugServer::addListener): (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions): * bindings/js/WorkerScriptDebugServer.h: * inspector/InspectorProfilerAgent.cpp: (WebCore::InspectorProfilerAgent::start): 2014-01-11 Anders Carlsson Simplify Timer and DeferrableOneShotTimer using std::function https://bugs.webkit.org/show_bug.cgi?id=126816 Reviewed by Sam Weinig. * platform/Timer.h: (WebCore::Timer::Timer): 2014-01-11 Anders Carlsson CTTE Timer and DeferrableOneShotTimer https://bugs.webkit.org/show_bug.cgi?id=126814 Reviewed by Antti Koivisto. Add new Timer and DeferrableOneShotTimer constructors whose member function pointers take a reference instead of a pointer. Also, convert a bunch of classes over to using these new constructors. * Modules/encryptedmedia/MediaKeySession.cpp: (WebCore::MediaKeySession::keyRequestTimerFired): (WebCore::MediaKeySession::addKeyTimerFired): * Modules/encryptedmedia/MediaKeySession.h: * Modules/geolocation/Geolocation.cpp: (WebCore::Geolocation::GeoNotifier::timerFired): (WebCore::Geolocation::resumeTimerFired): * Modules/geolocation/Geolocation.h: * Modules/indexeddb/IDBTransactionBackend.cpp: (WebCore::IDBTransactionBackend::taskTimerFired): * Modules/indexeddb/IDBTransactionBackend.h: * Modules/mediasource/SourceBuffer.cpp: (WebCore::SourceBuffer::appendBufferTimerFired): * Modules/mediasource/SourceBuffer.h: * Modules/notifications/Notification.cpp: (WebCore::Notification::taskTimerFired): * Modules/notifications/Notification.h: * Modules/notifications/NotificationCenter.cpp: (WebCore::NotificationCenter::NotificationRequestCallback::timerFired): * Modules/notifications/NotificationCenter.h: * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::notificationPostTimerFired): * accessibility/AXObjectCache.h: * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::beginLoadTimerFired): * css/CSSFontSelector.h: * css/CSSImageGeneratorValue.cpp: (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired): * css/CSSImageGeneratorValue.h: * dom/Document.cpp: (WebCore::Document::visualUpdatesSuppressionTimerFired): (WebCore::Document::styleRecalcTimerFired): (WebCore::Document::optimizedStyleSheetUpdateTimerFired): (WebCore::Document::sharedObjectPoolClearTimerFired): (WebCore::Document::styleResolverThrowawayTimerFired): (WebCore::Document::updateFocusAppearanceTimerFired): (WebCore::Document::resetHiddenFocusElementTimer): (WebCore::Document::pendingTasksTimerFired): (WebCore::Document::fullScreenChangeDelayTimerFired): (WebCore::Document::loadEventDelayTimerFired): (WebCore::Document::didAssociateFormControlsTimerFired): * dom/Document.h: * dom/EventSender.h: (WebCore::EventSender::timerFired): * dom/GenericEventQueue.cpp: (WebCore::GenericEventQueue::timerFired): * dom/GenericEventQueue.h: * dom/ScriptRunner.cpp: (WebCore::ScriptRunner::timerFired): * dom/ScriptRunner.h: * dom/ScriptedAnimationController.cpp: (WebCore::ScriptedAnimationController::animationTimerFired): * dom/ScriptedAnimationController.h: * editing/AlternativeTextController.cpp: (WebCore::AlternativeTextController::timerFired): * editing/AlternativeTextController.h: * editing/FrameSelection.cpp: (WebCore::FrameSelection::caretBlinkTimerFired): * editing/FrameSelection.h: * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::parseAttribute): * html/HTMLMediaElement.h: * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::swapRendererTimerFired): * html/HTMLPlugInElement.h: * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired): (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired): * html/HTMLPlugInImageElement.h: * html/HTMLSourceElement.cpp: (WebCore::HTMLSourceElement::errorEventTimerFired): * html/HTMLSourceElement.h: * html/HTMLTrackElement.cpp: (WebCore::HTMLTrackElement::loadTimerFired): * html/HTMLTrackElement.h: * html/MediaController.cpp: (MediaController::asyncEventTimerFired): (MediaController::clearPositionTimerFired): (MediaController::timeupdateTimerFired): * html/MediaController.h: * html/MediaDocument.cpp: (WebCore::MediaDocument::replaceMediaElementTimerFired): * html/MediaDocument.h: * html/parser/HTMLParserScheduler.cpp: (WebCore::HTMLParserScheduler::continueNextChunkTimerFired): * html/parser/HTMLParserScheduler.h: * html/shadow/MediaControlElementTypes.cpp: (WebCore::MediaControlSeekButtonElement::seekTimerFired): * html/shadow/MediaControlElementTypes.h: * html/shadow/MediaControlElements.cpp: (WebCore::MediaControlPanelElement::transitionTimerFired): (WebCore::MediaControlTextTrackContainerElement::updateTimerFired): * html/shadow/MediaControlElements.h: * html/shadow/MediaControls.cpp: (WebCore::MediaControls::hideFullscreenControlsTimerFired): * html/shadow/MediaControls.h: * html/track/LoadableTextTrack.cpp: (WebCore::LoadableTextTrack::loadTimerFired): * html/track/LoadableTextTrack.h: * inspector/InspectorCSSAgent.cpp: (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask): (WebCore::UpdateRegionLayoutTask::timerFired): (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask): (WebCore::ChangeRegionOversetTask::timerFired): * inspector/InspectorDOMAgent.cpp: (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask): (WebCore::RevalidateStyleAttributeTask::timerFired): * inspector/InspectorFrontendClientLocal.cpp: (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask): (WebCore::InspectorBackendDispatchTask::timerFired): * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired): * loader/DocumentLoader.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::checkTimerFired): * loader/FrameLoader.h: * loader/ImageLoader.cpp: (WebCore::ImageLoader::timerFired): * loader/ImageLoader.h: * loader/LinkLoader.cpp: (WebCore::LinkLoader::linkLoadTimerFired): (WebCore::LinkLoader::linkLoadingErrorTimerFired): * loader/LinkLoader.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::timerFired): * loader/NavigationScheduler.h: * loader/PingLoader.cpp: (WebCore::PingLoader::PingLoader): * loader/PingLoader.h: (WebCore::PingLoader::timeoutTimerFired): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressHeartbeatTimerFired): * loader/ProgressTracker.h: * loader/ResourceLoadScheduler.cpp: (WebCore::ResourceLoadScheduler::requestTimerFired): * loader/ResourceLoadScheduler.h: * loader/cache/CachedResource.cpp: (WebCore::CachedResource::decodedDataDeletionTimerFired): (WebCore::CachedResource::CachedResourceCallback::timerFired): * loader/cache/CachedResource.h: * loader/cache/CachedResourceLoader.cpp: (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired): * loader/cache/CachedResourceLoader.h: * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::syncTimerFired): * loader/icon/IconDatabase.h: * page/AutoscrollController.cpp: (WebCore::AutoscrollController::autoscrollTimerFired): * page/AutoscrollController.h: * page/CaptionUserPreferences.cpp: (WebCore::CaptionUserPreferences::timerFired): * page/CaptionUserPreferences.h: * page/DeviceController.cpp: (WebCore::DeviceController::fireDeviceEvent): * page/DeviceController.h: * page/EventHandler.cpp: (WebCore::EventHandler::cursorUpdateTimerFired): (WebCore::EventHandler::autoHideCursorTimerFired): (WebCore::EventHandler::fakeMouseMoveEventTimerFired): (WebCore::EventHandler::hoverTimerFired): * page/EventHandler.h: * page/EventSource.cpp: (WebCore::EventSource::connectTimerFired): * page/EventSource.h: * page/FrameView.cpp: (WebCore::FrameView::deferredRepaintTimerFired): (WebCore::FrameView::layoutTimerFired): (WebCore::FrameView::postLayoutTimerFired): * page/FrameView.h: * page/PageThrottler.cpp: (WebCore::PageThrottler::throttleHysteresisTimerFired): * page/PageThrottler.h: * page/animation/AnimationController.cpp: (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired): (WebCore::AnimationControllerPrivate::animationTimerFired): * page/animation/AnimationControllerPrivate.h: * platform/Scrollbar.cpp: (WebCore::Scrollbar::autoscrollTimerFired): * platform/Scrollbar.h: * platform/Timer.h: (WebCore::Timer::Timer): (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer): * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::advanceAnimation): * platform/graphics/BitmapImage.h: * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::reloadTimerFired): * platform/graphics/MediaPlayer.h: * platform/graphics/ca/mac/LayerPool.h: * platform/graphics/ca/mac/LayerPool.mm: (WebCore::LayerPool::pruneTimerFired): * platform/graphics/cg/ImageBufferBackingStoreCache.cpp: (WebCore::ImageBufferBackingStoreCache::timerFired): * platform/graphics/cg/ImageBufferBackingStoreCache.h: * platform/graphics/cg/SubimageCacheWithTimer.cpp: (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired): * platform/graphics/cg/SubimageCacheWithTimer.h: * platform/graphics/mac/MediaPlayerPrivateQTKit.h: * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivateQTKit::seekTimerFired): * platform/mac/ScrollAnimatorMac.h: * platform/mac/ScrollAnimatorMac.mm: (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired): (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired): (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired): * platform/mock/DeviceOrientationClientMock.cpp: (WebCore::DeviceOrientationClientMock::timerFired): * platform/mock/DeviceOrientationClientMock.h: * platform/network/NetworkStateNotifier.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::failureTimerFired): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleInternal.h: (WebCore::ResourceHandleInternal::ResourceHandleInternal): * platform/network/mac/NetworkStateNotifierMac.cpp: (WebCore::NetworkStateNotifier::networkStateChangeTimerFired): * rendering/ImageQualityController.cpp: (WebCore::ImageQualityController::highQualityRepaintTimerFired): * rendering/ImageQualityController.h: * rendering/RenderButton.cpp: (WebCore::RenderButton::timerFired): * rendering/RenderButton.h: * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired): (WebCore::RenderLayerCompositor::layerFlushTimerFired): (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired): * rendering/RenderLayerCompositor.h: * rendering/RenderMarquee.cpp: (WebCore::RenderMarquee::timerFired): * rendering/RenderMarquee.h: * rendering/RenderNamedFlowThread.cpp: (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired): (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired): * rendering/RenderNamedFlowThread.h: * rendering/RenderProgress.cpp: (WebCore::RenderProgress::animationTimerFired): * rendering/RenderProgress.h: 2014-01-11 Simon Fraser #ifdef out the contents of Touch* files for iOS. * dom/Touch.h: * dom/TouchEvent.h: * dom/TouchList.h: 2014-01-11 Simon Fraser No need to include in the header. Can use in the .cpp file. * platform/graphics/cg/ImageBufferBackingStoreCache.cpp: * platform/graphics/cg/ImageBufferBackingStoreCache.h: 2014-01-11 Simon Fraser Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE and a drive-by cleanup of DOMUIKitExtensions.mm #includes. * bindings/objc/DOMPrivate.h: * bindings/objc/DOMUIKitExtensions.h: * bindings/objc/DOMUIKitExtensions.mm: 2014-01-11 Simon Fraser Fix use of GL_HALF_FLOAT_ARB on iOS. * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::texSubImage2D): 2014-01-11 Simon Fraser Fix build of SourceBufferPrivateAVFObjC.mm on iOS. * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm: 2014-01-11 Simon Fraser Fix use of nonexistent kCGColorSpaceSRGB on iOS. * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::sRGBColorSpaceRef): 2014-01-11 Joseph Pecoraro Web Inspector: Some ScriptDebugServer Cleanup https://bugs.webkit.org/show_bug.cgi?id=126793 Reviewed by Timothy Hatcher. * bindings/js/PageScriptDebugServer.cpp: (WebCore::PageScriptDebugServer::didContinue): (WebCore::PageScriptDebugServer::runEventLoopWhilePaused): Move the special iOS WebThread EventLoop nesting handling here. * bindings/js/ScriptDebugServer.cpp: (WebCore::ScriptDebugServer::ScriptDebugServer): (WebCore::ScriptDebugServer::handlePause): * bindings/js/ScriptDebugServer.h: * inspector/InspectorDebuggerAgent.cpp: * inspector/InspectorDebuggerAgent.h: Remove unused headers and functions. 2014-01-11 David Kilzer [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height' variables are only used by code protected by USE(IOSURFACE_CANVAS_BACKING_STORE). 2014-01-11 David Kilzer [iOS] Multisampling is not available on iOS * platform/graphics/mac/GraphicsContext3DMac.mm: (WebCore::GraphicsContext3D::GraphicsContext3D): 2014-01-10 David Kilzer [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents() * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::willRespondToMouseClickEvents): 2014-01-10 Anders Carlsson Fix test crashes. * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::~ProgressTracker): Comment out the call to progressTrackerDestroyed for now. 2014-01-10 David Kilzer [iOS] Fix build for RenderEmbeddedObject::canHaveChildren() * rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::canHaveChildren): 2014-01-10 Anders Carlsson Tweak ProgressTrackerClient functions https://bugs.webkit.org/show_bug.cgi?id=126808 Reviewed by Sam Weinig. Rename the three progress state related member functions since it's up to the various WebKit implementations to decide what to do - not everyone wants to post a notification. Also add an originating progress frame parameter since WebKit2 doesn't report progress for subframe navigation and we need to be able to keep track of that. Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup. * loader/EmptyClients.h: * loader/ProgressTracker.cpp: (WebCore::ProgressItem::ProgressItem): (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): (WebCore::ProgressTracker::incrementProgress): (WebCore::ProgressTracker::completeProgress): * loader/ProgressTrackerClient.h: 2014-01-10 David Kilzer [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData * rendering/style/StyleRareInheritedData.cpp: 2014-01-10 David Kilzer [iOS] Fix build of SubframeLoader.cpp * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin): (WebCore::SubframeLoader::loadPlugin): * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm: 2014-01-10 Joseph Pecoraro Fix Mac after r161747. One part of that is iOS specific. Unreviewed build fix. * bindings/js/GCController.cpp: (WebCore::GCController::releaseExecutableMemory): 2014-01-10 Joseph Pecoraro [iOS] Fix GCController::releaseExecutableMemory https://bugs.webkit.org/show_bug.cgi?id=126805 Reviewed by Sam Weinig and Mark Lam. VM::dynamicGlobalObject has since been replaced by VMEntryScope. Update to check entryScope instead of the dynamicGlobalObject. Also, make this non-iOS only. * bindings/js/GCController.h: * bindings/js/GCController.cpp: (WebCore::GCController::releaseExecutableMemory): 2014-01-10 Joseph Pecoraro Fix HTMLMediaElement.o for iOS. Unreviewed build fix. There is now local variable mediaElement. Just call the functions since they are methods on this class. Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::parseAttribute): 2014-01-10 Anders Carlsson Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient https://bugs.webkit.org/show_bug.cgi?id=126801 Reviewed by Sam Weinig. * GNUmakefile.list.am: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * loader/EmptyClients.cpp: (WebCore::fillWithEmptyClients): * loader/EmptyClients.h: * loader/FrameLoaderClient.h: * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::ProgressTracker): (WebCore::ProgressTracker::~ProgressTracker): (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::progressCompleted): (WebCore::ProgressTracker::finalProgressComplete): (WebCore::ProgressTracker::incrementProgress): * loader/ProgressTracker.h: * loader/ProgressTrackerClient.h: Added. (WebCore::ProgressTrackerClient::~ProgressTrackerClient): (WebCore::ProgressTrackerClient::progressTrackerDestroyed): (WebCore::ProgressTrackerClient::willChangeEstimatedProgress): (WebCore::ProgressTrackerClient::didChangeEstimatedProgress): * page/Page.cpp: (WebCore::Page::Page): (WebCore::Page::PageClients::PageClients): * page/Page.h: 2014-01-10 Joseph Pecoraro Fix RenderObject.o for iOS. Unreviewed build fix. r156285 renamed firstChild() to firstChildSlow(), so update occurances in IOS_TEXT_AUTOSIZING code. Also account for a RenderObject::style reference / pointer change. * rendering/RenderObject.cpp: (WebCore::RenderObject::traverseNext): (WebCore::includeNonFixedHeight): 2014-01-10 Joseph Pecoraro Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix. Import CALayer, which Mac must have been getting some other way. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 2014-01-10 Joseph Pecoraro Fix TileGrid.o for iOS. Unreviewed build fix. Explicitly use namespace std in std::pair. * platform/ios/TileGrid.mm: (WebCore::isFartherAway): (WebCore::TileGrid::dropDistantTiles): 2014-01-10 Joseph Pecoraro Fix RenderImage.o for iOS. Unreviewed build fix. inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but without including InlineElementBox.h, iOS didn't know what an InlineElementBox was! * rendering/RenderImage.cpp: 2014-01-10 David Kilzer [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread() Fixes the following build error: WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef] #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING) ^ * platform/Scrollbar.cpp: (WebCore::Scrollbar::supportsUpdateOnSecondaryThread): 2014-01-10 Joseph Pecoraro Fix RenderFileUploadControl.o for iOS. Unreviewed build fix. WebCore::theme() returns a reference now, not a pointer. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject): 2014-01-10 Joseph Pecoraro Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix. Forgot to upstream YouTubeEmbedShadowElement.*. Do so and add the files to the Xcode project so they build. * WebCore.xcodeproj/project.pbxproj: * html/shadow/YouTubeEmbedShadowElement.cpp: Added. (WebCore::YouTubeEmbedShadowElement::create): (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement): (WebCore::YouTubeEmbedShadowElement::pluginElement): (WebCore::YouTubeEmbedShadowElement::shadowPseudoId): * html/shadow/YouTubeEmbedShadowElement.h: Added. 2014-01-10 David Kilzer [iOS] Update EditorIOS.mm to switch from pointers to references * editing/ios/EditorIOS.mm: (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection): (WebCore::Editor::insertParagraphSeparatorInQuotedContent): (WebCore::styleForSelectionStart): (WebCore::Editor::selectionInWebArchiveFormat): (WebCore::Editor::writeImageToPasteboard): (WebCore::Editor::WebContentReader::readWebArchive): (WebCore::Editor::WebContentReader::readRTFD): (WebCore::Editor::WebContentReader::readRTF): (WebCore::uniqueURLWithRelativePart): (WebCore::Editor::WebContentReader::readPlainText): (WebCore::Editor::webContentFromPasteboard): (WebCore::Editor::createFragmentAndAddResources): (WebCore::Editor::createFragmentForImageResourceAndAddResource): 2014-01-10 Joseph Pecoraro Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController https://bugs.webkit.org/show_bug.cgi?id=126763 Reviewed by Timothy Hatcher. No new tests, no observable change in functionality. * CMakeLists.txt: * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added. * GNUmakefile.list.am: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * inspector/InspectorAllInOne.cpp: InspectorAgent moved to JavaScriptCore. Include forwarding header. * inspector/PageConsoleAgent.cpp: (WebCore::PageConsoleAgent::PageConsoleAgent): (WebCore::PageConsoleAgent::~PageConsoleAgent): * inspector/PageConsoleAgent.h: (WebCore::PageConsoleAgent::create): * inspector/InspectorApplicationCacheAgent.cpp: * inspector/InspectorApplicationCacheAgent.h: InspectorAgent was not used by these files, remove it. * inspector/CommandLineAPIHost.cpp: * inspector/CommandLineAPIHost.h: (WebCore::CommandLineAPIHost::init): * inspector/InspectorInstrumentation.cpp: * inspector/InstrumentingAgents.h: (WebCore::InstrumentingAgents::inspectorAgent): (WebCore::InstrumentingAgents::setInspectorAgent): Switch to Inspector::InspectorAgent where applicable. * inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController): * inspector/InspectorController.h: Manually add InspectorAgent to the InstrumentingAgents. It is one of the agents that is always available in InstrumentingAgents. 2014-01-10 Simon Fraser Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation. * WebCore.xcodeproj/project.pbxproj: * dom/Document.cpp: (WebCore::Document::Document): * rendering/TextAutoSizing.cpp: Added. (WebCore::cloneRenderStyleWithState): (WebCore::TextAutoSizingKey::TextAutoSizingKey): (WebCore::TextAutoSizingKey::~TextAutoSizingKey): (WebCore::TextAutoSizingKey::operator=): (WebCore::TextAutoSizingKey::ref): (WebCore::TextAutoSizingKey::deref): (WebCore::TextAutoSizingValue::numNodes): (WebCore::TextAutoSizingValue::addNode): (WebCore::TextAutoSizingValue::adjustNodeSizes): (WebCore::TextAutoSizingValue::reset): * rendering/TextAutoSizing.h: Added. (WebCore::TextAutoSizingKey::doc): (WebCore::TextAutoSizingKey::style): (WebCore::TextAutoSizingKey::isValidDoc): (WebCore::TextAutoSizingKey::isValidStyle): (WebCore::TextAutoSizingKey::deletedKeyDoc): (WebCore::TextAutoSizingKey::deletedKeyStyle): (WebCore::operator==): (WebCore::TextAutoSizingHash::hash): (WebCore::TextAutoSizingHash::equal): (WebCore::TextAutoSizingValue::create): (WebCore::TextAutoSizingValue::TextAutoSizingValue): 2014-01-10 Joseph Pecoraro Fix GraphicsLayerCA.o for iOS. Unreviewed build fix. Use of systemMemoryLevel was missing include of SystemMemory.h. * platform/graphics/ca/GraphicsLayerCA.cpp: 2014-01-10 Simon Fraser Fix iOS build. * bindings/objc/DOM.mm: (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]): * bindings/objc/DOMExtensions.h: * platform/DragImage.h: 2014-01-10 Simon Fraser Fix iOS build. Generated DOMTouch* and DOMGesture* files need to be in the project. Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx. Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h * Configurations/WebCore.xcconfig: * WebCore.xcodeproj/project.pbxproj: * bindings/objc/DOMPrivate.h: 2014-01-10 Joseph Pecoraro Fix RenderThemeIOS.o for iOS. Unreviewed build fix. Typo referring to generated name. Should be "iOS" not "IOS". * rendering/RenderThemeIOS.mm: (WebCore::RenderThemeIOS::mediaControlsScript): 2014-01-10 Joseph Pecoraro Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix. The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g. it was using GSFonts. Just upstream a newer version of the file. Also explicitly namespace qualify std::pair. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (AXAttributeStringSetStyle): 2014-01-10 Jinwoo Song Remove willRespondToTouchEvents() which was used by chromium port https://bugs.webkit.org/show_bug.cgi?id=126739 Reviewed by Alexey Proskuryakov. willRespondToTouchEvents() was added to check if a node listens to touch events in r126945. However, it is not used anywhere after chromium port is removed. * dom/Node.cpp: * dom/Node.h: 2014-01-10 Joseph Pecoraro Fix SystemVersionMac.o for iOS. Unreviewed build fix. Add missing expected function. Maybe we can avoid including this file entirely on iOS, there was already a FIXME. * platform/mac/SystemVersionMac.mm: (WebCore::systemMarketingVersion): 2014-01-10 Joseph Pecoraro Fix JSDOMWindowBase.o for iOS. Unreviewed build fix. Add missing iOS method declarations. * bindings/js/JSDOMWindowBase.h: 2014-01-10 Joseph Pecoraro Fix InputType.o for iOS. Unreviewed build fix. The RuntimeEnabledFeatures function pointer type should have a const qualifier, because the implementations are all const. * html/InputType.cpp: 2014-01-10 Joseph Pecoraro Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix. Add missing MediaPlayerProxy Objective C methods and forward declarations. * platform/graphics/mac/MediaPlayerProxy.h: 2014-01-10 Joseph Pecoraro Fix FrameSelection.o for iOS. Unreviewed build fix. r160966 renamed rendererIsEditable to hasEditableStyle. * editing/FrameSelection.cpp: (WebCore::FrameSelection::setSelectionFromNone): 2014-01-10 Joseph Pecoraro Fix DragData.o for iOS. Unreviewed build fix. String m_pasteboardName is unused on iOS, so ifdef it out. * platform/DragData.h: 2014-01-10 Joseph Pecoraro Fix FrameIOS.o for iOS. Unreviewed build fix. Remove stale include to file that no longer exists. It was not needed. * page/ios/FrameIOS.mm: 2014-01-10 Joseph Pecoraro Fix MonthInputType.o for iOS. Unreviewed build fix. When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the wrong class name lingered. Fix it to be the base class. * html/TimeInputType.cpp: (WebCore::TimeInputType::TimeInputType): 2014-01-10 Andy Estes [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing * DerivedSources.make: * bindings/scripts/preprocessor.pm: (applyPreprocessor): 2014-01-10 Simon Fraser Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC for a non-iOS function. * bindings/objc/DOMExtensions.h: 2014-01-10 David Kilzer Clean up architectures in xcconfig files Reviewed by Andy Estes. * Configurations/Base.xcconfig: * Configurations/WebCore.xcconfig: Remove armv6. * DerivedSources.make: Remove armv6, armv7f. Sort. - Add new arch. 2014-01-10 Simon Fraser Fix iOS build * Configurations/WebCore.xcconfig: * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue): 2014-01-10 Simon Fraser Fix iOS build. * html/DateTimeLocalInputType.h: (WebCore::DateTimeLocalInputType::DateTimeLocalInputType): * loader/ios/DiskImageCacheIOS.h: 2014-01-10 Simon Fraser iOS build fix: add StyleRareInheritedData::compositionFillColor * rendering/style/RenderStyle.h: * rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): (WebCore::StyleRareInheritedData::operator==): * rendering/style/StyleRareInheritedData.h: 2014-01-10 Joseph Pecoraro Fix MonthInputType.o for iOS. Unreviewed build fix. When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the BaseMonthInputType typedef was removed. However a use of it lingered. Changing to match the base class name. * html/MonthInputType.h: (WebCore::MonthInputType::MonthInputType): 2014-01-10 Joseph Pecoraro Fix RenderButton.o for iOS. Unreviewed build fix. Missing prototype in header for override of the layout method. * rendering/RenderButton.h: 2014-01-10 Simon Fraser A couple of iOS build fixes. * accessibility/ios/AXObjectCacheIOS.mm: (WebCore::AXObjectCache::handleFocusedUIElementChanged): * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawImage): 2014-01-10 Joseph Pecoraro Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix. PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419, so remove the stale implementations on iOS. Also, add a notImplemented version of screenColorProfile, which matches Mac and is unused in WebCore for this port. * platform/ios/PlatformScreenIOS.mm: (WebCore::screenColorProfile): 2014-01-10 Anders Carlsson CTTE FrameTree https://bugs.webkit.org/show_bug.cgi?id=126795 Reviewed by Tim Horton. * page/Frame.cpp: (WebCore::Frame::Frame): * page/FrameTree.cpp: (WebCore::FrameTree::transferChild): (WebCore::FrameTree::appendChild): (WebCore::FrameTree::actuallyAppendChild): (WebCore::FrameTree::uniqueChildName): (WebCore::FrameTree::scopedChild): (WebCore::FrameTree::scopedChildCount): (WebCore::FrameTree::child): (WebCore::FrameTree::find): (WebCore::FrameTree::isDescendantOf): (WebCore::FrameTree::traverseNext): (WebCore::FrameTree::traverseNextWithWrap): (WebCore::FrameTree::traversePreviousWithWrap): (WebCore::FrameTree::deepLastChild): (WebCore::FrameTree::top): * page/FrameTree.h: (WebCore::FrameTree::FrameTree): 2014-01-10 Simon Fraser Fix iOS build. * loader/ResourceLoader.h: 2014-01-10 Simon Fraser Fix iOS build. * platform/graphics/ImageSource.h: (WebCore::ImageSource::acceleratedImageDecodingEnabled): (WebCore::ImageSource::setAcceleratedImageDecodingEnabled): 2014-01-10 Joseph Pecoraro Unreviewed EFL build fix after r161678. static_cast a size_t to unsigned long for %lu format string. * page/Console.cpp: (WebCore::internalAddMessage): 2014-01-10 Benjamin Poulain Remove the BlackBerry port from trunk https://bugs.webkit.org/show_bug.cgi?id=126715 Reviewed by Anders Carlsson. * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::readPixels): * platform/graphics/ImageBuffer.cpp: * platform/graphics/ImageBufferData.h: * platform/graphics/IntPoint.h: * platform/graphics/IntRect.h: * platform/graphics/IntSize.h: * platform/graphics/MediaPlayer.cpp: * platform/graphics/NativeImagePtr.h: * platform/graphics/OpenGLESShims.h: * platform/graphics/Path.cpp: (WebCore::Path::addPathForRoundedRect): * platform/graphics/Path.h: * platform/graphics/PlatformLayer.h: * platform/graphics/filters/CustomFilterValidatedProgram.cpp: * platform/graphics/filters/CustomFilterValidatedProgram.h: * platform/graphics/filters/FilterOperation.h: * platform/graphics/gpu/DrawingBuffer.cpp: * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: * platform/graphics/opengl/Extensions3DOpenGLES.cpp: (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB): * platform/graphics/opengl/Extensions3DOpenGLES.h: * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): (WebCore::GraphicsContext3D::prepareTexture): (WebCore::GraphicsContext3D::bindFramebuffer): (WebCore::GraphicsContext3D::compileShader): (WebCore::GraphicsContext3D::copyTexImage2D): (WebCore::GraphicsContext3D::copyTexSubImage2D): * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp: (WebCore::GraphicsContext3D::readPixels): (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary): (WebCore::GraphicsContext3D::reshapeFBOs): * platform/network/NetworkStateNotifier.h: * platform/network/ResourceHandle.h: * platform/network/ResourceHandleInternal.h: * platform/network/ResourceRequestBase.cpp: 2014-01-10 Simon Fraser Fix CharsetData.cpp build for iOS https://bugs.webkit.org/show_bug.cgi?id=126792 Reviewed by Mark Rowe. CharsetData.cpp should have an empty CharsetTable list for iOS. Achieve this with an iOS-specific encodings.txt file. * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * platform/text/mac/ios-encodings.txt: Added. 2014-01-10 Anders Carlsson CTTE in NavigationScheduler https://bugs.webkit.org/show_bug.cgi?id=126788 Reviewed by Tim Horton. * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * loader/NavigationScheduler.cpp: (WebCore::ScheduledNavigation::shouldStartTimer): (WebCore::ScheduledNavigation::didStartTimer): (WebCore::ScheduledNavigation::didStopTimer): (WebCore::NavigationScheduler::NavigationScheduler): (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::shouldScheduleNavigation): (WebCore::NavigationScheduler::scheduleRedirect): (WebCore::NavigationScheduler::mustLockBackForwardList): (WebCore::NavigationScheduler::scheduleLocationChange): (WebCore::NavigationScheduler::scheduleFormSubmission): (WebCore::NavigationScheduler::scheduleRefresh): (WebCore::NavigationScheduler::scheduleHistoryNavigation): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::schedule): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/NavigationScheduler.h: * page/Frame.cpp: (WebCore::Frame::Frame): 2014-01-10 Myles C. Maxfield CSS word-spacing property does not obey percentages https://bugs.webkit.org/show_bug.cgi?id=126674 Reviewed by Simon Fraser. One change between CSS2.1 and CSS3 is that the word-spacing CSS property can take percentages (of the width of the space character) in CSS3. In order to implement this, the datatype must be changed from a float to a Length, which can hold percentage values. Then, during layout, we can query the width of the space character and update the Font's word-spacing value appropriately. However, the RenderStyle still holds on to the Length (as a rare inherited value). Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead of style's Length value. * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are parsed the same way. * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given CSSValue and set the style's word spacing with it. (WebCore::ApplyPropertyWordSpacing::createHandler): (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing. * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * rendering/RenderBlockLineLayout.cpp: (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead of style's Length value. * rendering/RenderText.cpp: (WebCore::RenderText::computePreferredLogicalWidths): Ditto. * rendering/SimpleLineLayout.cpp: (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout if either the percentage or the length is nonzero. * rendering/line/BreakingContextInlineHeaders.h: (WebCore::BreakingContext::handleText): Use Font's computed value instead of style's Length value. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::wordSpacing): (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute percentage values, but hold on to the original Length. * rendering/style/RenderStyle.h: * rendering/style/StyleRareInheritedData.cpp: * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length 2014-01-10 Simon Fraser Fix the iOS build. * platform/audio/mac/MediaSessionManagerMac.cpp: 2014-01-10 Simon Fraser iOS doesn't have ; fix iOS build. * platform/graphics/opengl/TemporaryOpenGLSetting.cpp: 2014-01-10 Andy Estes [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h * bindings/scripts/CodeGeneratorObjC.pm: (ReadPublicInterfaces): 2014-01-10 Joseph Pecoraro Web Inspector: Remove unimplemented or static ScriptDebugServer features https://bugs.webkit.org/show_bug.cgi?id=126784 Reviewed by Timothy Hatcher. These features are unimplemented in the backend, and unused by the current frontend. Most deal with features that were supported by v8 and are as yet unimplemented by JSC. If we decide to add such features we can reimplement without conforming to an old implementation. * bindings/js/ScriptDebugServer.cpp: * bindings/js/ScriptDebugServer.h: * bindings/js/ScriptProfiler.h: * inspector/InspectorDebuggerAgent.cpp: (WebCore::InspectorDebuggerAgent::disable): * inspector/InspectorDebuggerAgent.h: * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::reload): (WebCore::InspectorPageAgent::frameNavigated): * inspector/InspectorPageAgent.h: * inspector/InspectorProfilerAgent.cpp: * inspector/InspectorProfilerAgent.h: * inspector/PageDebuggerAgent.cpp: (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject): * inspector/protocol/Page.json: * inspector/protocol/Profiler.json: 2014-01-10 David Kilzer [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects() Fixes the following build error: WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable] TileMap::iterator end = m_tiles.end(); ^ * platform/ios/TileGrid.mm: (WebCore::TileGrid::dropTilesBetweenRects): Remove unused variable now that the for loop uses an auto iterator. 2014-01-10 Dean Jackson Implement OES texture half float linear https://bugs.webkit.org/show_bug.cgi?id=125060 Reviewed by Brent Fulgham. Test: fast/canvas/webgl/oes-texture-half-float-linear.html * CMakeLists.txt: Add new files. * DerivedSources.cpp: Ditto. * DerivedSources.make: Generate new file from IDL. * GNUmakefile.list.am: Add new files. * WebCore.vcxproj/WebCore.vcxproj: Ditto. * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto. * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear. * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): Map from extension name to native object. * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate. * html/canvas/OESTextureHalfFloatLinear.h: Added. * html/canvas/OESTextureHalfFloatLinear.idl: Added. * html/canvas/WebGLExtension.h: Add new enum for the new extension. * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the context is asked for one. (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the list of supported extensions. Actually remember to do it this time :) (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float extension as well, and update the log message. * html/canvas/WebGLRenderingContext.h: New extension object. * html/canvas/WebGLTexture.cpp: (WebCore::WebGLTexture::WebGLTexture): (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type. (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary. * html/canvas/WebGLTexture.h: * platform/graphics/Extensions3D.h: Add a comment about the new extension. * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available when GL_ARB_texture_float is supported, so add the name to the translation. 2014-01-10 Brent Fulgham [WebGL] Correct uniform input validation for texture sampler uniform https://bugs.webkit.org/show_bug.cgi?id=126775 Reviewed by Dean Jackson. Added fast/canvas/webgl/uniform-samplers-test.html * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly. 2014-01-10 Manuel Rego Casasnovas [GTK] Unreviewed build fix after r161644. * Modules/webaudio/MediaStreamAudioSourceNode.cpp: (WebCore::MediaStreamAudioSourceNode::setFormat): 2014-01-10 Anders Carlsson Remove an unused FrameLoader function https://bugs.webkit.org/show_bug.cgi?id=126785 Reviewed by Beth Dakin. * WebCore.exp.in: * loader/FrameLoader.cpp: (WebCore::FrameLoader::setState): * loader/FrameLoader.h: 2014-01-10 Benjamin Poulain Remove the BlackBerry port from trunk https://bugs.webkit.org/show_bug.cgi?id=126715 Reviewed by Anders Carlsson. * platform/MIMETypeRegistry.cpp: (WebCore::initializeSupportedImageMIMETypesForEncoding): * platform/PlatformKeyboardEvent.h: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): * platform/PlatformMouseEvent.h: * platform/PlatformTouchEvent.h: (WebCore::PlatformTouchEvent::PlatformTouchEvent): * platform/PlatformTouchPoint.h: * platform/ScrollAnimatorNone.cpp: (WebCore::ScrollAnimator::create): * platform/URL.cpp: (WebCore::URL::parse): (WebCore::portAllowed): * platform/Widget.h: * platform/graphics/ANGLEWebKitBridge.h: * platform/graphics/DisplayRefreshMonitor.cpp: (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor): * platform/graphics/DisplayRefreshMonitor.h: * platform/graphics/FloatPoint.h: * platform/graphics/FloatRect.h: * platform/graphics/FloatSize.h: * platform/graphics/FontCache.h: * platform/graphics/FontPlatformData.h: * platform/graphics/GlyphBuffer.h: * platform/graphics/Gradient.cpp: * platform/graphics/Gradient.h: * platform/graphics/GraphicsContext.h: * platform/graphics/GraphicsContext3D.h: 2014-01-10 Timothy Hatcher Clean up and fix some issues with stdout formatting of console messages. * Fix URLs not printing line numbers unless column number is > 0. * Change "CONSOLEAPI" to "CONSOLE" for the source. * Clean up how console.trace outputs and print URL, line and column for each frame. * Print "(unknown)" for anonymous and native code call frames. https://bugs.webkit.org/show_bug.cgi?id=126767 Reviewed by Joseph Pecoraro. * page/Console.cpp: (WebCore::internalAddMessage): * page/PageConsole.cpp: (WebCore::PageConsole::printSourceURLAndPosition): (WebCore::PageConsole::printMessageSourceAndLevelPrefix): * page/PageConsole.h: 2014-01-10 Joseph Pecoraro [iOS] Fill in missing WebCoreThread function pointers https://bugs.webkit.org/show_bug.cgi?id=126776 Reviewed by Timothy Hatcher. * platform/ios/wak/WebCoreThreadSystemInterface.cpp: (InitWebCoreThreadSystemInterface): 2014-01-10 Yongjun Zhang Clear unparented tiled layers on memory pressure. https://bugs.webkit.org/show_bug.cgi?id=126737 Reviewed by Simon Fraser. TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented tiles immediately if we are under memory pressure. The patch does 3 things to improve the behavior: 1) When the system free memory is low (<35%), reduce the tiling threshold. This could reduce the peak memory usage when system is under low memory since we will convert more web layers into tiled backing. 2) Under memory pressure, immediately clear all unparented tiles. 3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's. * WebCore.exp.in: * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler. * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::requiresTiledLayer): Use a smaller tiling threshold if the system free memory is low. * platform/graphics/ca/mac/TileController.h: (WebCore::TileController::numberOfUnparentedTiles): * platform/graphics/ca/mac/TileController.mm: (WebCore::TileController::startedNewCohort): (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles. * platform/ios/MemoryPressureHandlerIOS.mm: * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added. (WebCore::TileControllerMemoryHandler::removeTileController): (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers): (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles): (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until it reaches the target. (WebCore::tileControllerMemoryHandler): * platform/ios/TileControllerMemoryHandlerIOS.h: Added. (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler): 2014-01-10 Joseph Pecoraro [CSS Blending] Log blending as a layer creation reason in the WI https://bugs.webkit.org/show_bug.cgi?id=126159 Reviewed by Timothy Hatcher. * inspector/InspectorLayerTreeAgent.cpp: (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer): * inspector/protocol/LayerTree.json: 2014-01-10 Andy Estes Fix some iOS build errors during bindings generation. * bindings/objc/PublicDOMInterfaces.h: Included WebKitAdditions/PublicDOMInterfacesIOS.h and change -[DOMRGBColor color] to return a CGColorRef on iOS. 2014-01-10 Timothy Hatcher Prevent some resources from showing up in Web Inspector as years in duration. No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium. https://bugs.webkit.org/show_bug.cgi?id=126760 Reviewed by Joseph Pecoraro. * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::didFinishLoadingImpl): Revert part of r102961 to use finishTime as-is and not expect a monotonic time. 2014-01-10 Dirk Schulze Make clipping path from basic-shapes relative to value https://bugs.webkit.org/show_bug.cgi?id=126206 Reviewed by Simon Fraser. Tests: css3/masking/clip-path-circle-border-box.html css3/masking/clip-path-circle-bounding-box.html css3/masking/clip-path-circle-content-box.html css3/masking/clip-path-circle-margin-box.html css3/masking/clip-path-circle-padding-box.html * rendering/RenderLayer.cpp: (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes and use different reference boxes to size the clipping path. 2014-01-10 Youenn Fablet Correctly set XHR loadend attributes (loaded and total). https://bugs.webkit.org/show_bug.cgi?id=120828 Reviewed by Alexey Proskuryakov. Added correct initialization of lengthComputable, loaded and total attributes to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout). XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge of m_loaded and m_total values with this patch. Code refactoring to handle event dispatching in case of error in a single manner. XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&) Fixed assertion issues over bug 120828 patch Tests: http/tests/xmlhttprequest/loadstart-event-init.html http/tests/xmlhttprequest/onabort-progressevent-attributes.html http/tests/xmlhttprequest/onload-progressevent-attributes.html http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec (WebCore::XMLHttpRequest::createRequest): (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way (WebCore::XMLHttpRequest::didSendData): (WebCore::XMLHttpRequest::didReceiveData): (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way * xml/XMLHttpRequest.h: * xml/XMLHttpRequestProgressEventThrottle.cpp: before the patch, the fact that a progress event is being throttled is stored indirectly (m_loaded or m_total not equal to zero). With the patch, this information is stored in m_hasThrottledProgressEvent. The m_loaded and m_total values are no longer set back to zero after a progress event is dispatched. This allows using these values to correctly initialize other ProgressEvent events (in particular loadend, abort, timeout...) (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle): (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent): always update the new m_loaded and m_total values. If progress event is not sent as part of the function call, store the fact that a progress event is being throttled through m_hasThrottledProgressEvent. (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch): (WebCore::XMLHttpRequestProgressEventThrottle::suspend): * xml/XMLHttpRequestProgressEventThrottle.h: introduced m_hasThrottledProgressEvent which stores whether a progress event is being throttled and m_computableLength which is used to initialize ProgressEvent computableLength * xml/XMLHttpRequestUpload.cpp: (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload): (WebCore::XMLHttpRequestUpload::dispatchProgressEvent): * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle 2014-01-10 Bear Travis [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue https://bugs.webkit.org/show_bug.cgi?id=126713 Reviewed by Dirk Schulze. Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue by having parseBasicShape return a CSSPrimitiveValue reference. Refactoring, no new tests. * css/CSSParser.cpp: (WebCore::CSSParser::parseShapeProperty): (WebCore::CSSParser::parseClipPath): (WebCore::CSSParser::parseBasicShape): * css/CSSParser.h: 2014-01-10 Piotr Grad Possible crash in ApplicationCache::removeResource. https://bugs.webkit.org/show_bug.cgi?id=126695 Reviewed by Alexey Proskuryakov. No new tests. Iterator variable was used after it was removed. * loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::removeResource): 2014-01-10 Daniel Bates Another build fix for the Production Mac build following (https://bugs.webkit.org/show_bug.cgi?id=126698) Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS so that we generate the DOM and JS bindings for these IDLs. * DerivedSources.make: 2014-01-10 Anders Carlsson Remove supportMultipleWindows setting https://bugs.webkit.org/show_bug.cgi?id=126772 Reviewed by Beth Dakin. This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port and is unused by everyone else so get rid of it. * loader/FrameLoader.cpp: (WebCore::createWindow): * page/ContextMenuController.cpp: (WebCore::openNewWindow): * page/Settings.in: 2014-01-10 Benjamin Poulain Remove the BlackBerry port from trunk https://bugs.webkit.org/show_bug.cgi?id=126715 Reviewed by Anders Carlsson. * dom/TouchEvent.cpp: (WebCore::TouchEvent::TouchEvent): (WebCore::TouchEvent::initTouchEvent): * dom/TouchEvent.h: * dom/ViewportArguments.cpp: * dom/ViewportArguments.h: * history/HistoryItem.h: * loader/PingLoader.cpp: (WebCore::PingLoader::loadImage): (WebCore::PingLoader::sendPing): (WebCore::PingLoader::sendViolationReport): * loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::createResourceHandle): * loader/cache/CachedResource.cpp: (WebCore::CachedResource::load): * loader/icon/IconLoader.cpp: (WebCore::IconLoader::startLoading): * page/NavigatorBase.cpp: * page/Settings.cpp: * page/scrolling/ScrollingCoordinator.cpp: (WebCore::ScrollingCoordinator::create): * platform/Cursor.cpp: * platform/Cursor.h: (WebCore::Cursor::Cursor): * platform/DragData.h: * platform/DragImage.h: * plugins/PluginDatabase.cpp: (WebCore::PluginDatabase::defaultPluginDirectories): (WebCore::PluginDatabase::isPreferredPluginDirectory): * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::paintsIntoWindow): * rendering/RenderObject.cpp: (WebCore::RenderObject::shouldRespectImageOrientation): * testing/Internals.cpp: (WebCore::Internals::getCurrentCursorInfo): * workers/DefaultSharedWorkerRepository.cpp: (WebCore::SharedWorkerScriptLoader::load): * workers/Worker.cpp: (WebCore::Worker::create): * workers/WorkerGlobalScope.cpp: (WebCore::WorkerGlobalScope::importScripts): * workers/WorkerScriptLoader.cpp: (WebCore::WorkerScriptLoader::createResourceRequest): * workers/WorkerScriptLoader.h: * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::createRequest): 2014-01-10 Benjamin Poulain Remove the BlackBerry port from trunk https://bugs.webkit.org/show_bug.cgi?id=126715 Reviewed by Anders Carlsson. * Modules/navigatorcontentutils/NavigatorContentUtils.cpp: (WebCore::initProtocolHandlerWhitelist): * UseJSC.cmake: * bindings/generic/RuntimeEnabledFeatures.cpp: (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures): * bindings/js/GCController.cpp: (WebCore::GCController::GCController): (WebCore::GCController::garbageCollectSoon): * bindings/js/GCController.h: 2014-01-10 Daniel Bates Fix the WebCore, WebKit build targets following (https://bugs.webkit.org/show_bug.cgi?id=126698) Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X. * Configurations/Base.xcconfig: 2014-01-09 Andy Estes [iOS] Upstream iOS changes to MigrateHeaders.make https://bugs.webkit.org/show_bug.cgi?id=126731 Reviewed by David Kilzer. * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at Private that will later be migrated by WebKit. 2014-01-10 Daniel Bates Fix the Production Mac build following (https://bugs.webkit.org/show_bug.cgi?id=126698) Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_. * Configurations/WebCore.xcconfig: 2014-01-10 Anders Carlsson Add a missing include. * Modules/webdatabase/DatabaseManager.h: 2014-01-10 Anders Carlsson Use STL threading primitives in DatabaseDetails and DatabaseManager https://bugs.webkit.org/show_bug.cgi?id=126759 Reviewed by Geoffrey Garen. * Modules/webdatabase/DatabaseDetails.h: (WebCore::DatabaseDetails::DatabaseDetails): (WebCore::DatabaseDetails::threadID): * Modules/webdatabase/DatabaseManager.cpp: (WebCore::DatabaseManager::existingDatabaseContextFor): (WebCore::DatabaseManager::registerDatabaseContext): (WebCore::DatabaseManager::unregisterDatabaseContext): (WebCore::DatabaseManager::didConstructDatabaseContext): (WebCore::DatabaseManager::didDestructDatabaseContext): (WebCore::DatabaseManager::addProposedDatabase): (WebCore::DatabaseManager::removeProposedDatabase): (WebCore::DatabaseManager::fullPathForDatabase): (WebCore::DatabaseManager::detailsForNameAndOrigin): * Modules/webdatabase/DatabaseManager.h: 2014-01-10 Commit Queue Unreviewed, rolling out r161629. http://trac.webkit.org/changeset/161629 https://bugs.webkit.org/show_bug.cgi?id=126762 Fails svg/custom/conditional-processing-2.html (Requested by ap on #webkit). * svg/SVGSwitchElement.cpp: (WebCore::SVGSwitchElement::childShouldCreateRenderer): * svg/SVGTests.cpp: (WebCore::SVGTests::hasExtension): (WebCore::SVGTests::isValid): 2014-01-10 ChangSeok Oh Unreviewed build fix since r161589. The changeset causes a compile failure with --no-svg. * platform/graphics/FontFastPath.cpp: (WebCore::Font::drawGlyphBuffer): 2014-01-10 Przemyslaw Szymanski [WebGL] Removing unnecessary pointer checks https://bugs.webkit.org/show_bug.cgi?id=124046 Reviewed by Brent Fulgham. We do not need to check for a null array three times in the same call. Let's just do it once! No new tests. Covered by existing ones. * html/canvas/WebGLBuffer.cpp: (WebCore::WebGLBuffer::associateBufferData): 2014-01-10 Daniel Bates Speculative build fix for Windows following (https://bugs.webkit.org/show_bug.cgi?id=126698) Reviewed by David Kilzer. * bindings/scripts/preprocessor.pm: (applyPreprocessor): 2014-01-10 Przemyslaw Szymanski [WebGL] Wrong condition order in the if statement https://bugs.webkit.org/show_bug.cgi?id=125000 Reviewed by Brent Fulgham. We should only pay the cost of string comparison once. The current logic requires a string comparison every time we pass through the function. Instead, by reordering the statements we can short-circuit through the boolean test after the initial setup is complete. No new tests. No behaviour changes. * platform/graphics/opengl/Extensions3DOpenGLES.cpp: (WebCore::Extensions3DOpenGLES::supportsExtension): 2014-01-10 Anders Carlsson CTTE in AudioContext::AutoLocker https://bugs.webkit.org/show_bug.cgi?id=126758 Reviewed by Antti Koivisto. * Modules/webaudio/AudioBasicInspectorNode.cpp: (WebCore::AudioBasicInspectorNode::connect): (WebCore::AudioBasicInspectorNode::disconnect): * Modules/webaudio/AudioBufferSourceNode.cpp: (WebCore::AudioBufferSourceNode::setBuffer): * Modules/webaudio/AudioContext.cpp: (WebCore::AudioContext::refNode): (WebCore::AudioContext::deleteMarkedNodes): (WebCore::AudioContext::removeMarkedSummingJunction): * Modules/webaudio/AudioContext.h: (WebCore::AudioContext::AutoLocker::AutoLocker): (WebCore::AudioContext::AutoLocker::~AutoLocker): * Modules/webaudio/AudioNode.cpp: (WebCore::AudioNode::connect): (WebCore::AudioNode::disconnect): (WebCore::AudioNode::setChannelCount): (WebCore::AudioNode::setChannelCountMode): (WebCore::AudioNode::setChannelInterpretation): (WebCore::AudioNode::enableOutputsIfNecessary): * Modules/webaudio/MediaElementAudioSourceNode.cpp: (WebCore::MediaElementAudioSourceNode::setFormat): * Modules/webaudio/WaveShaperNode.cpp: (WebCore::WaveShaperNode::setOversample): 2014-01-10 Antti Koivisto Use element iterators more https://bugs.webkit.org/show_bug.cgi?id=126756 Reviewed by Anders Carlsson. * dom/VisitedLinkState.cpp: (WebCore::VisitedLinkState::invalidateStyleForAllLinks): (WebCore::VisitedLinkState::invalidateStyleForLink): * html/HTMLMeterElement.cpp: (WebCore::HTMLMeterElement::renderMeter): * html/HTMLProgressElement.cpp: (WebCore::HTMLProgressElement::renderProgress): * html/shadow/ContentDistributor.cpp: (WebCore::ContentDistributor::ensureInsertionPointList): * style/StyleResolveTree.cpp: 2014-01-10 Daniel Bates Attempt to fix the iOS build after (https://bugs.webkit.org/show_bug.cgi?id=126654) * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr(). 2014-01-10 Daniel Bates Attempt to fix the build after (https://bugs.webkit.org/show_bug.cgi?id=126698) Substitute tab characters for space characters. * DerivedSources.make: 2014-01-10 Anders Carlsson DOMWindow::showModalDialog should use std::function https://bugs.webkit.org/show_bug.cgi?id=126753 Reviewed by Antti Koivisto. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::DialogHandler::dialogCreated): (WebCore::JSDOMWindow::showModalDialog): * page/DOMWindow.cpp: (WebCore::DOMWindow::createWindow): (WebCore::DOMWindow::showModalDialog): * page/DOMWindow.h: 2014-01-10 Daniel Bates [iOS] Upstream WebCore and Tools miscellaneous changes https://bugs.webkit.org/show_bug.cgi?id=126698 Reviewed by David Kilzer. * Configurations/Base.xcconfig: * Configurations/WebCore.xcconfig: * Configurations/WebCoreTestSupport.xcconfig: * Configurations/iOS.xcconfig: Added. * DerivedSources.make: * English.lproj/Localizable.strings: * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: Copied from Source/WebCore/editing/TextAffinity.h. (WebCore::stringForPlaybackTargetAvailability): (WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent): * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: Added. (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit): (WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent): (WebCore::WebKitPlaybackTargetAvailabilityEvent::create): (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability): * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl: Copied from Source/WebCore/editing/DeleteButton.h. * Modules/geolocation/Geolocation.cpp: (WebCore::Geolocation::Geolocation): (WebCore::Geolocation::canSuspend): (WebCore::Geolocation::suspend): (WebCore::Geolocation::resume): (WebCore::Geolocation::resumeTimerFired): (WebCore::Geolocation::resetAllGeolocationPermission): (WebCore::Geolocation::stop): (WebCore::Geolocation::setIsAllowed): (WebCore::Geolocation::positionChanged): (WebCore::Geolocation::setError): * Modules/geolocation/Geolocation.h: * Modules/geolocation/NavigatorGeolocation.cpp: (WebCore::NavigatorGeolocation::resetAllGeolocationPermission): * Modules/geolocation/NavigatorGeolocation.h: * Modules/speech/SpeechSynthesis.cpp: (WebCore::SpeechSynthesis::SpeechSynthesis): (WebCore::SpeechSynthesis::speak): * Modules/speech/SpeechSynthesis.h: (WebCore::SpeechSynthesis::userGestureRequiredForSpeechStart): (WebCore::SpeechSynthesis::removeBehaviorRestriction): * Modules/webaudio/AudioContext.cpp: * Modules/webaudio/AudioContext.h: * Modules/webaudio/AudioScheduledSourceNode.cpp: * Modules/webdatabase/Database.cpp: * Modules/webdatabase/DatabaseBackendBase.cpp: (WebCore::DatabaseBackendBase::performOpenAndVerify): (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded): * Modules/webdatabase/DatabaseContext.cpp: (WebCore::DatabaseContext::DatabaseContext): (WebCore::DatabaseContext::databaseThread): (WebCore::DatabaseContext::setPaused): * Modules/webdatabase/DatabaseContext.h: * Modules/webdatabase/DatabaseManagerClient.h: * Modules/webdatabase/DatabaseTask.cpp: (WebCore::DatabaseTask::performTask): (WebCore::Database::DatabaseTransactionTask::shouldPerformWhilePaused): * Modules/webdatabase/DatabaseTask.h: * Modules/webdatabase/DatabaseThread.cpp: (WebCore::DatabaseThread::DatabaseThread): (WebCore::DatabaseThread::requestTermination): (WebCore::DatabaseUnpauseTask::create): (WebCore::DatabaseUnpauseTask::shouldPerformWhilePaused): (WebCore::DatabaseUnpauseTask::DatabaseUnpauseTask): (WebCore::DatabaseUnpauseTask::doPerformTask): (WebCore::DatabaseUnpauseTask::debugTaskName): (WebCore::DatabaseThread::setPaused): (WebCore::DatabaseThread::handlePausedQueue): (WebCore::DatabaseThread::databaseThread): * Modules/webdatabase/DatabaseThread.h: * Modules/webdatabase/DatabaseTracker.cpp: (WebCore::DatabaseTracker::setQuota): (WebCore::DatabaseTracker::deleteOrigin): (WebCore::DatabaseTracker::deleteDatabase): (WebCore::DatabaseTracker::deleteDatabaseFile): (WebCore::DatabaseTracker::removeDeletedOpenedDatabases): (WebCore::isZeroByteFile): (WebCore::DatabaseTracker::deleteDatabaseFileIfEmpty): (WebCore::DatabaseTracker::openDatabaseMutex): (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskWillBeScheduled): (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskDidFinish): (WebCore::DatabaseTracker::setDatabasesPaused): * Modules/webdatabase/DatabaseTracker.h: * Modules/webdatabase/SQLTransactionBackend.cpp: (WebCore::SQLTransactionBackend::shouldPerformWhilePaused): * Modules/webdatabase/SQLTransactionBackend.h: * Resources/DictationPhraseWithAlternativesDot.png: Added. * Resources/DictationPhraseWithAlternativesDot@2x.png: Added. * Resources/SpellingDot.png: Added. * Resources/SpellingDot@2x.png: Added. * Resources/decrementArrow.tiff: Added. * Resources/hScrollControl_left.png: Added. * Resources/hScrollControl_middle.png: Added. * Resources/hScrollControl_right.png: Added. * Resources/incrementArrow.tiff: Added. * Resources/markedLeft.png: Added. * Resources/markedMiddle.png: Added. * Resources/markedRight.png: Added. * Resources/vScrollControl_bottom.png: Added. * Resources/vScrollControl_middle.png: Added. * Resources/vScrollControl_top.png: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: (WebCore::GCController::garbageCollectNow): (WebCore::GCController::releaseExecutableMemory): * bindings/js/GCController.h: * bindings/js/JSCallbackData.h: (WebCore::JSCallbackData::~JSCallbackData): * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::supportsProfiling): (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout): (WebCore::JSDOMWindowBase::commonVM): (WebCore::JSDOMWindowBase::commonVMExists): (WebCore::JSDOMWindowBase::commonVMInternal): * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::touch): (WebCore::JSDOMWindow::touchList): * bindings/js/JSDeviceOrientationEventCustom.cpp: (WebCore::JSDeviceOrientationEvent::webkitCompassHeading): (WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy): (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent): * bindings/js/JSMainThreadExecState.h: * bindings/js/JSTouchCustom.cpp: * bindings/js/JSTouchListCustom.cpp: * bindings/js/PageScriptDebugServer.cpp: (WebCore::PageScriptDebugServer::didContinue): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::initializeThreading): * bindings/js/ScriptDebugServer.cpp: (WebCore::ScriptDebugServer::handlePause): * bindings/js/ios/TouchConstructors.cpp: Added. * bindings/objc/DOM.mm: (WebCore::wkQuadFromFloatQuad): (WebCore::kit): (WebCore::min4): (WebCore::max4): (WebCore::emptyQuad): (-[WKQuadObject initWithQuad:]): (-[WKQuadObject quad]): (-[WKQuadObject boundingBox]): (-[DOMNode boundingBox]): (-[DOMNode absoluteQuad]): (-[DOMNode absoluteQuadAndInsideFixedPosition:]): (-[DOMNode boundingBoxUsingTransforms]): (-[DOMNode lineBoxQuads]): (-[DOMNode _linkElement]): (-[DOMNode hrefURL]): (-[DOMNode hrefTarget]): (-[DOMNode hrefFrame]): (-[DOMNode hrefLabel]): (-[DOMNode hrefTitle]): (-[DOMNode boundingFrame]): (-[DOMNode innerFrameQuad]): (-[DOMNode computedFontSize]): (-[DOMNode nextFocusNode]): (-[DOMNode previousFocusNode]): (-[DOMRange boundingBox]): (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]): (-[DOMElement _font]): (-[DOMHTMLLinkElement _mediaQueryMatchesForOrientation:]): (-[DOMHTMLLinkElement _mediaQueryMatches]): * bindings/objc/DOMEvents.h: * bindings/objc/DOMEvents.mm: (kitClass): * bindings/objc/DOMExtensions.h: * bindings/objc/DOMHTML.mm: (-[DOMHTMLElement scrollYOffset]): (-[DOMHTMLElement setScrollXOffset:scrollYOffset:]): (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]): (-[DOMHTMLElement absolutePosition::::]): (-[DOMHTMLInputElement _autocapitalizeType]): (-[DOMHTMLTextAreaElement _autocapitalizeType]): (-[DOMHTMLInputElement setValueWithChangeEvent:]): (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]): * bindings/objc/DOMInternal.h: * bindings/objc/DOMInternal.mm: (wrapperCacheLock): (getDOMWrapper): (addDOMWrapper): (removeDOMWrapper): * bindings/objc/DOMPrivate.h: * bindings/objc/DOMUIKitExtensions.h: Added. * bindings/objc/DOMUIKitExtensions.mm: Added. * bindings/objc/PublicDOMInterfaces.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateHeaderContentHeader): (GenerateImplementationContentHeader): (GenerateHeader): (GenerateImplementation): (GenerateCallbackImplementation): * bindings/scripts/CodeGeneratorObjC.pm: (ReadPublicInterfaces): (GetClassName): (IsCoreFoundationType): (GetObjCType): (AddIncludesForType): (GenerateHeader): (GenerateImplementation): (WriteData): * bindings/scripts/IDLAttributes.txt: * bindings/scripts/preprocessor.pm: (applyPreprocessor): * bridge/objc/objc_class.mm: (JSC::Bindings::ObjcClass::fieldNamed): * bridge/objc/objc_instance.mm: * config.h: * dom/Document.cpp: (WebCore::Document::addAutoSizingNode): * dom/Document.h: * dom/Document.idl: * dom/ios/TouchEvents.cpp: Added. * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyBlockStyle): * editing/CompositeEditCommand.cpp: (WebCore::EditCommandComposition::unapply): (WebCore::CompositeEditCommand::apply): (WebCore::CompositeEditCommand::inputText): (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers): (WebCore::CompositeEditCommand::moveParagraphs): * editing/CompositeEditCommand.h: * editing/DeleteButton.h: * editing/DeleteButtonController.cpp: (WebCore::DeleteButtonController::enable): (WebCore::DeleteButtonController::disable): * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::doApply): * editing/DeleteSelectionCommand.h: * editing/EditAction.h: * editing/EditCommand.h: (WebCore::EditCommand::isInsertTextCommand): * editing/EditingStyle.cpp: * editing/Editor.cpp: (WebCore::ClearTextCommand::ClearTextCommand): (WebCore::ClearTextCommand::editingAction): (WebCore::ClearTextCommand::CreateAndApply): (WebCore::Editor::handleTextEvent): (WebCore::Editor::clearText): (WebCore::Editor::insertDictationPhrases): (WebCore::Editor::setDictationPhrasesAsChildOfElement): (WebCore::Editor::confirmMarkedText): (WebCore::Editor::setTextAsChildOfElement): (WebCore::Editor::notifyComponentsOnChangedSelection): (WebCore::Editor::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping): (WebCore::Editor::copy): (WebCore::Editor::setBaseWritingDirection): (WebCore::Editor::setComposition): (WebCore::Editor::showSpellingGuessPanel): (WebCore::Editor::markMisspellingsAfterTypingToWord): (WebCore::Editor::markMisspellingsOrBadGrammar): (WebCore::Editor::changeBackToReplacedString): (WebCore::Editor::updateMarkersForWordsAffectedByEditing): (WebCore::Editor::setIgnoreCompositionSelectionChange): (WebCore::Editor::changeSelectionAfterCommand): (WebCore::Editor::shouldChangeSelection): (WebCore::Editor::respondToChangedSelection): (WebCore::Editor::resolveTextCheckingTypeMask): * editing/Editor.h: * editing/EditorCommand.cpp: (WebCore::executeClearText): (WebCore::enabledCopy): (WebCore::enabledCut): (WebCore::enabledClearText): (WebCore::createCommandMap): * editing/FrameSelection.cpp: (WebCore::FrameSelection::FrameSelection): (WebCore::FrameSelection::setSelection): (WebCore::FrameSelection::modifyExtendingRight): (WebCore::FrameSelection::modifyExtendingForward): (WebCore::FrameSelection::modifyMovingRight): (WebCore::FrameSelection::modifyMovingForward): (WebCore::FrameSelection::modifyExtendingLeft): (WebCore::FrameSelection::modifyExtendingBackward): (WebCore::FrameSelection::modifyMovingLeft): (WebCore::FrameSelection::modifyMovingBackward): (WebCore::FrameSelection::setSelectedRange): (WebCore::FrameSelection::focusedOrActiveStateChanged): (WebCore::FrameSelection::updateAppearance): (WebCore::FrameSelection::shouldDeleteSelection): (WebCore::FrameSelection::revealSelection): (WebCore::FrameSelection::setSelectionFromNone): (WebCore::FrameSelection::shouldChangeSelection): (WebCore::FrameSelection::expandSelectionToElementContainingCaretSelection): (WebCore::FrameSelection::elementRangeContainingCaretSelection): (WebCore::FrameSelection::expandSelectionToWordContainingCaretSelection): (WebCore::FrameSelection::wordRangeContainingCaretSelection): (WebCore::FrameSelection::expandSelectionToStartOfWordContainingCaretSelection): (WebCore::FrameSelection::characterInRelationToCaretSelection): (WebCore::FrameSelection::characterBeforeCaretSelection): (WebCore::FrameSelection::characterAfterCaretSelection): (WebCore::FrameSelection::wordOffsetInRange): (WebCore::FrameSelection::spaceFollowsWordInRange): (WebCore::FrameSelection::selectionAtDocumentStart): (WebCore::FrameSelection::selectionAtSentenceStart): (WebCore::FrameSelection::selectionAtWordStart): (WebCore::FrameSelection::rangeByMovingCurrentSelection): (WebCore::FrameSelection::rangeByExtendingCurrentSelection): (WebCore::FrameSelection::selectRangeOnElement): (WebCore::FrameSelection::wordSelectionContainingCaretSelection): (WebCore::FrameSelection::actualSelectionAtSentenceStart): (WebCore::FrameSelection::rangeByAlteringCurrentSelection): (WebCore::FrameSelection::clearCurrentSelection): (WebCore::FrameSelection::setCaretBlinks): (WebCore::FrameSelection::setCaretColor): * editing/FrameSelection.h: (WebCore::FrameSelection::suppressCloseTyping): (WebCore::FrameSelection::restoreCloseTyping): (WebCore::FrameSelection::setUpdateAppearanceEnabled): (WebCore::FrameSelection::suppressScrolling): (WebCore::FrameSelection::restoreScrolling): * editing/InsertIntoTextNodeCommand.cpp: (WebCore::InsertIntoTextNodeCommand::doReapply): * editing/InsertIntoTextNodeCommand.h: * editing/InsertTextCommand.h: * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): * editing/TextAffinity.h: * editing/TextCheckingHelper.cpp: * editing/TextGranularity.h: * editing/TextIterator.cpp: (WebCore::isRendererReplacedElement): * editing/TypingCommand.cpp: (WebCore::TypingCommand::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping): (WebCore::TypingCommand::markMisspellingsAfterTyping): (WebCore::TypingCommand::deleteKeyPressed): (WebCore::TypingCommand::forwardDeleteKeyPressed): (WebCore::FriendlyEditCommand::setEndingSelection): (WebCore::TypingCommand::setEndingSelectionOnLastInsertCommand): * editing/TypingCommand.h: * editing/VisiblePosition.h: (WebCore::operator<): (WebCore::operator>): (WebCore::operator<=): (WebCore::operator>=): * editing/VisibleSelection.cpp: (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity): (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries): * editing/VisibleUnits.cpp: (WebCore::previousBoundary): (WebCore::nextBoundary): (WebCore::startOfDocument): (WebCore::endOfDocument): (WebCore::directionIsDownstream): (WebCore::atBoundaryOfGranularity): (WebCore::withinTextUnitOfGranularity): (WebCore::nextCharacterBoundaryInDirection): (WebCore::nextWordBoundaryInDirection): (WebCore::nextSentenceBoundaryInDirection): (WebCore::nextLineBoundaryInDirection): (WebCore::nextParagraphBoundaryInDirection): (WebCore::nextDocumentBoundaryInDirection): (WebCore::positionOfNextBoundaryOfGranularity): (WebCore::enclosingTextUnitOfGranularity): (WebCore::distanceBetweenPositions): (WebCore::wordRangeFromPosition): (WebCore::closestWordBoundaryForPosition): * editing/VisibleUnits.h: * editing/ios/DictationCommandIOS.cpp: Added. * editing/ios/DictationCommandIOS.h: Added. (WebCore::DictationCommandIOS::create): (WebCore::DictationCommandIOS::editingAction): * editing/mac/FrameSelectionMac.mm: (WebCore::FrameSelection::notifyAccessibilityForSelectionChange): * fileapi/AsyncFileStream.cpp: * generate-export-file: Added. * inspector/InspectorCounters.h: * inspector/InspectorFrontendHost.h: * make-export-file-generator: * plugins/PluginPackage.h: * plugins/PluginViewBase.h: (WebCore::PluginViewBase::willProvidePluginLayer): (WebCore::PluginViewBase::attachPluginLayer): (WebCore::PluginViewBase::detachPluginLayer): * style/StyleResolveForDocument.cpp: (WebCore::Style::resolveForDocument): * style/StyleResolveTree.cpp: (WebCore::Style::elementImplicitVisibility): * testing/Internals.cpp: (WebCore::Internals::getCurrentCursorInfo): (WebCore::Internals::isSelectPopupVisible): * workers/WorkerThread.cpp: (WebCore::WorkerThread::workerThread): 2014-01-10 Daniel Bates Fix the iOS build after (https://bugs.webkit.org/show_bug.cgi?id=126654) * platform/graphics/ios/MediaPlayerPrivateIOS.h: (WebCore::MediaPlayerPrivateIOS::engineDescription): Adding missing return keyword. 2014-01-10 Andrei Bucur [CSS Regions] Remove unused CSSParser::parseFlowThread https://bugs.webkit.org/show_bug.cgi?id=126749 Reviewed by Antti Koivisto. There are two versions of CSSParser::parseFlowThread. Remove the unused one: bool parseFlowThread(const String& flowName); Tests: No tests, code cleanup. * css/CSSParser.cpp: * css/CSSParser.h: 2014-01-10 Alex Christensen [WinCairo] Build fix after r161589. https://bugs.webkit.org/show_bug.cgi?id=126747 Reviewed by Anders Carlsson. * platform/network/ResourceHandle.cpp: Include NotImplemented.h for all platforms. 2014-01-10 Anders Carlsson Convert some for loops over to range-based for https://bugs.webkit.org/show_bug.cgi?id=126752 Reviewed by Antti Koivisto. * inspector/InspectorApplicationCacheAgent.cpp: (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources): * loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::clearStorageID): * loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): (WebCore::ApplicationCacheGroup::clearStorageID): * loader/appcache/ApplicationCacheHost.cpp: (WebCore::ApplicationCacheHost::fillResourceList): * loader/appcache/ApplicationCacheResource.cpp: (WebCore::ApplicationCacheResource::estimatedSizeInStorage): * loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::cacheGroupForURL): * loader/archive/ArchiveFactory.cpp: (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes): * page/animation/AnimationController.cpp: (WebCore::AnimationControllerPrivate::styleAvailable): (WebCore::AnimationControllerPrivate::startTimeResponse): 2014-01-10 Anders Carlsson Tighten up two functions in the inspector code https://bugs.webkit.org/show_bug.cgi?id=126751 Reviewed by Antti Koivisto. * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): * inspector/InspectorInstrumentation.h: (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore::InspectorInstrumentation::frameStoppedLoading): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore::InspectorPageAgent::frameStoppedLoading): * inspector/InspectorPageAgent.h: 2014-01-10 Antti Koivisto Crash when mutating SVG text with transform https://bugs.webkit.org/show_bug.cgi?id=126744 Reviewed by Dirk Schulze. Test: svg/custom/mutation-text-transform-crash.html Text-transform property triggers subtreeTextDidChange when an SVG text renderer is being added to the render tree. The function assumes the child is already fully in the tree but in this case we are still in middle of adding it. * rendering/svg/RenderSVGText.cpp: (WebCore::RenderSVGText::subtreeTextDidChange): Bail out if the changed RenderSVGInlineText can't be found from m_layoutAttributes. This means that subtreeChildWasAdded hasn't been invoked yet for it and there is nothing to update. The required updates will happen in subtreeChildWasAdded. 2014-01-10 Frédéric Wang [SVG] Accept HTML and MathML namespaces as valid requiredExtensions https://bugs.webkit.org/show_bug.cgi?id=88188 Reviewed by Dirk Schulze. When HTML and MathML are used as foreign objects of an SVG image, it is important for Web authors to be able to specify a fallback content for SVG-only readers or browsers without MathML support. We rely on the requiredExtensions for that purpose and we use the XHTML/MathML namespaces as suggested in SVG Tiny 1.2 and implemented in Gecko. Tests: svg/custom/conditional-processing-1.svg svg/custom/conditional-processing-2.html svg/dom/SVGTests.html * svg/SVGSwitchElement.cpp: Remove an incorrect FIXME comment and replace it with a reference to bug 74749. (WebCore::SVGSwitchElement::childShouldCreateRenderer): * svg/SVGTests.cpp: Check if the list of required extensions contains only the XHTML/MathML namespaces. (WebCore::SVGTests::hasExtension): (WebCore::SVGTests::isValid): 2014-01-10 Mihai Tica Add support for blendmode to Core Animation layer. Patch by Rik Cabanier, Dean Jackson and Mihai Tica. https://bugs.webkit.org/show_bug.cgi?id=99200 Reviewed by Dirk Schulze. Tests: css3/compositing/blend-mode-layers.html css3/compositing/blend-mode-overflow.html css3/compositing/blend-mode-reflection.html css3/compositing/blend-mode-should-not-have-compositing-layer.html css3/compositing/blend-mode-simple.html * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h * platform/graphics/GraphicsLayer.cpp: add blendMode member (WebCore::GraphicsLayer::GraphicsLayer): * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::blendMode): (WebCore::GraphicsLayer::setBlendMode): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setBlendMode): (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode() (WebCore::GraphicsLayerCA::updateBlendMode): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/PlatformCAFilters.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added. * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer * platform/graphics/ca/mac/PlatformCALayerMac.mm: (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): (WebCore::RenderLayerBacking::updateBlendMode): (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): (WebCore::RenderLayerBacking::setBlendMode): * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending (WebCore::RenderLayerCompositor::reasonsForCompositing): (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason * rendering/RenderLayerCompositor.h: 2014-01-10 Andrei Bucur [CSS Regions] Implement visual overflow computation for inline elements https://bugs.webkit.org/show_bug.cgi?id=125291 Reviewed by David Hyatt. The patch implements visual overflow computation for inline elements per region. The algorithm uses the container region of each root line box to determine the lines in a region generated by a RenderInline. The overflow of a RenderInline inside a region is the smallest rectangle that fits all the line boxes belonging to that region. The patch also correctly flips for writing mode the overflow of a renderer before clipping with it. Tests: fast/regions/overflow-in-variable-width-regions-inline-bt.html fast/regions/overflow-in-variable-width-regions-inline-continuation.html fast/regions/overflow-in-variable-width-regions-inline-lr.html fast/regions/overflow-in-variable-width-regions-inline-rl.html fast/regions/overflow-in-variable-width-regions-inline.html * rendering/RenderFlowThread.cpp: (WebCore::RenderFlowThread::objectShouldPaintInFlowRegion): * rendering/RenderInline.cpp: (WebCore::RenderInline::updateAlwaysCreateLineBoxes): Always create line boxes for RenderInline (WebCore::RenderInline::linesVisualOverflowBoundingBoxInRegion): * rendering/RenderInline.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::calculateClipRects): * rendering/RenderRegion.cpp: (WebCore::RenderRegion::visualOverflowRectForBox): (WebCore::RenderRegion::visualOverflowRectForBoxForPropagation): * rendering/RenderRegion.h: 2014-01-09 Jer Noble [Mac] .mp3 media document controls missing their background https://bugs.webkit.org/show_bug.cgi?id=126683 Reviewed by Eric Carlson. Test: media/media-document-audio-controls-visible.html