CTTE: Autoscroll renderer is always a RenderBox.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-13  Andreas Kling  <akling@apple.com>
2
3         CTTE: Autoscroll renderer is always a RenderBox.
4         <https://webkit.org/b/126884>
5
6         Reviewed by Antti Koivisto.
7
8         * page/EventHandler.h:
9         * page/EventHandler.cpp:
10         (WebCore::EventHandler::autoscrollRenderer):
11
12             Make autoscrollRenderer() return a RenderBox*.
13
14         * rendering/RenderObject.cpp:
15         (WebCore::RenderObject::willBeDestroyed):
16         * rendering/RenderBox.cpp:
17         (WebCore::RenderBox::willBeDestroyed):
18
19             Only check if the autoscroll renderer is being torn down
20             in RenderBox::willBeDestroyed() since it's not relevant for
21             other renderer types.
22
23 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
24
25         Text should be constructable.
26         https://bugs.webkit.org/show_bug.cgi?id=115640
27
28         Reviewed by Csaba Osztrogonác.
29
30         http://dom.spec.whatwg.org/#interface-text
31         Make Text constructable so that one can do "new Text('abc')"
32         instead of "document.createTexte('abc')".
33
34         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
35
36         Test: fast/dom/Text/text-constructor.html
37
38         * dom/Text.cpp:
39         (WebCore::Text::create):
40         * dom/Text.h:
41         * dom/Text.idl:
42
43 2014-01-13  Zan Dobersek  <zdobersek@igalia.com>
44
45         Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
46         https://bugs.webkit.org/show_bug.cgi?id=126876
47
48         Reviewed by Andreas Kling.
49
50         AccessibilityObject::children() returns a reference to the Vector of that AccessibilityObject's children.
51         The majority of callsites stores the return value in a temporary value instead of a reference, causing
52         a copy each time. A reference to the return value should be used instead.
53
54         * accessibility/AXObjectCache.cpp:
55         (WebCore::AXObjectCache::focusedImageMapUIElement):
56         * accessibility/AccessibilityARIAGrid.cpp:
57         (WebCore::AccessibilityARIAGrid::addRowDescendant):
58         * accessibility/AccessibilityARIAGridCell.cpp:
59         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
60         (WebCore::AccessibilityARIAGridCell::columnIndexRange):
61         * accessibility/AccessibilityARIAGridRow.cpp:
62         (WebCore::AccessibilityARIAGridRow::headerObject):
63         * accessibility/AccessibilityListBox.cpp:
64         (WebCore::AccessibilityListBox::setSelectedChildren):
65         * accessibility/AccessibilityListBox.h:
66         * accessibility/AccessibilityNodeObject.cpp:
67         (WebCore::AccessibilityNodeObject::insertChild):
68         (WebCore::AccessibilityNodeObject::selectedRadioButton):
69         (WebCore::AccessibilityNodeObject::selectedTabItem):
70         * accessibility/AccessibilityObject.cpp:
71         (WebCore::appendChildrenToArray):
72         (WebCore::AccessibilityObject::ariaTreeRows):
73         (WebCore::AccessibilityObject::ariaTreeItemContent):
74         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
75         * accessibility/AccessibilityRenderObject.cpp:
76         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
77         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
78         (WebCore::AccessibilityRenderObject::addHiddenChildren):
79         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
80         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
81         (WebCore::AccessibilityRenderObject::tabChildren):
82         (WebCore::AccessibilityRenderObject::mathRadicandObject):
83         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
84         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
85         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
86         (WebCore::AccessibilityRenderObject::mathUnderObject):
87         (WebCore::AccessibilityRenderObject::mathOverObject):
88         (WebCore::AccessibilityRenderObject::mathBaseObject):
89         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
90         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
91         * accessibility/AccessibilityTable.cpp:
92         (WebCore::AccessibilityTable::cellForColumnAndRow):
93         * accessibility/AccessibilityTableColumn.cpp:
94         (WebCore::AccessibilityTableColumn::headerObject):
95         * accessibility/AccessibilityTableRow.cpp:
96         (WebCore::AccessibilityTableRow::headerObject):
97         * accessibility/atk/AXObjectCacheAtk.cpp:
98         (WebCore::getListObject):
99         (WebCore::notifyChildrenSelectionChange):
100         * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
101         (webkitAccessibleHypertextGetLink):
102         (webkitAccessibleHypertextGetNLinks):
103         * accessibility/atk/WebKitAccessibleInterfaceSelection.cpp:
104         (listObjectForSelection):
105         (optionFromList):
106         (webkitAccessibleSelectionSelectAllSelection):
107         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
108         (getNChildrenForTable):
109         (getChildForTable):
110         (webkitAccessibleRefChild):
111         (getIndexInParentForCellInRow):
112         (getInterfaceMaskFromObject):
113         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
114         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
115         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
116         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
117         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
118         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
119
120 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
121
122         Comment should be consructable.
123         https://bugs.webkit.org/show_bug.cgi?id=115642
124
125         Reviewed by Andreas Kling.
126
127         http://dom.spec.whatwg.org/#comment
128         This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
129
130         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
131
132         Test: fast/dom/Comment/comment-constructor.html
133
134         * dom/Comment.cpp:
135         (WebCore::Comment::create):
136         * dom/Comment.h:
137         * dom/Comment.idl:
138
139 2014-01-13  Commit Queue  <commit-queue@webkit.org>
140
141         Unreviewed, rolling out r161808.
142         http://trac.webkit.org/changeset/161808
143         https://bugs.webkit.org/show_bug.cgi?id=126874
144
145         This patch make several files to be always regenerated on
146         every make (Requested by KaL on #webkit).
147
148         * GNUmakefile.am:
149         * bindings/gobject/GNUmakefile.am:
150
151 2014-01-12  Commit Queue  <commit-queue@webkit.org>
152
153         Unreviewed, rolling out r161843.
154         http://trac.webkit.org/changeset/161843
155         https://bugs.webkit.org/show_bug.cgi?id=126871
156
157         Caused CSS custom filter tests to assert (Requested by smfr on
158         #webkit).
159
160         * platform/graphics/ANGLEWebKitBridge.cpp:
161         (WebCore::getSymbolInfo):
162         (WebCore::ANGLEWebKitBridge::compileShaderSource):
163         * platform/graphics/GraphicsContext3D.h:
164         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
165         (WebCore::GraphicsContext3D::compileShader):
166         (WebCore::GraphicsContext3D::getProgramInfoLog):
167         (WebCore::GraphicsContext3D::getShaderInfoLog):
168
169 2014-01-12  Commit Queue  <commit-queue@webkit.org>
170
171         Unreviewed, rolling out r161840.
172         http://trac.webkit.org/changeset/161840
173         https://bugs.webkit.org/show_bug.cgi?id=126870
174
175         Caused jsscore and layout test failures (Requested by smfr on
176         #webkit).
177
178         * bindings/objc/WebScriptObject.mm:
179         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
180         * editing/CompositeEditCommand.cpp:
181         (WebCore::containsOnlyWhitespace):
182         * editing/TypingCommand.cpp:
183         (WebCore::TypingCommand::insertText):
184         * editing/VisibleUnits.cpp:
185         (WebCore::startOfParagraph):
186         (WebCore::endOfParagraph):
187         * html/parser/HTMLParserIdioms.cpp:
188         (WebCore::stripLeadingAndTrailingHTMLSpaces):
189         (WebCore::parseHTMLNonNegativeInteger):
190         * inspector/ContentSearchUtils.cpp:
191         (WebCore::ContentSearchUtils::createSearchRegexSource):
192         * inspector/InspectorStyleSheet.cpp:
193         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
194         * inspector/InspectorStyleTextEditor.cpp:
195         (WebCore::InspectorStyleTextEditor::insertProperty):
196         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
197         * platform/Length.cpp:
198         (WebCore::newCoordsArray):
199         * platform/LinkHash.cpp:
200         (WebCore::visitedLinkHash):
201         * platform/graphics/Color.cpp:
202         (WebCore::Color::parseHexColor):
203         (WebCore::Color::Color):
204         * platform/graphics/TextRun.h:
205         (WebCore::TextRun::TextRun):
206         * platform/text/TextEncodingRegistry.cpp:
207         (WebCore::atomicCanonicalTextEncodingName):
208         * rendering/RenderBlock.cpp:
209         (WebCore::RenderBlock::constructTextRun):
210         * rendering/RenderCombineText.cpp:
211         (WebCore::RenderCombineText::width):
212         * svg/SVGFontElement.cpp:
213         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
214         * xml/XPathFunctions.cpp:
215         (WebCore::XPath::FunId::evaluate):
216         * xml/XPathNodeSet.h:
217
218 2014-01-12  Jinwoo Song  <jinwoo7.song@samsung.com>
219
220         Fix build warnings by unused parameter
221         https://bugs.webkit.org/show_bug.cgi?id=126867
222
223         Reviewed by Gyuyoung Kim.
224
225         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp: 
226         (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
227
228 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
229
230         Unreviewed build fix for WinCairo.
231
232         * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
233         to locate SelectorCompiler.h.
234
235 2014-01-12  Maciej Stachowiak  <mjs@apple.com>
236
237         Fix iOS build breakage from http://trac.webkit.org/changeset/161844
238         https://bugs.webkit.org/show_bug.cgi?id=126866
239
240         Reviewed by Simon Fraser.
241
242         * platform/text/TextBreakIteratorICU.cpp:
243         (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
244         which does not exist.
245
246 2014-01-12  Darin Adler  <darin@apple.com>
247
248         Add PLATFORM(COCOA) and USE(FOUNDATION)
249         https://bugs.webkit.org/show_bug.cgi?id=126859
250
251         Reviewed by Anders Carlsson.
252
253         * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS)
254         to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be
255         a change in behavior that might be incorrect. Removed bogus comments in
256         the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA),
257         which exactly duplicates code that already exists in Platform.h.
258
259 2014-01-12  Darin Adler  <darin@apple.com>
260
261         Add deprecatedCharacters as a synonym for characters and convert most call sites
262         https://bugs.webkit.org/show_bug.cgi?id=126858
263
264         Reviewed by Anders Carlsson.
265
266         * Modules/indexeddb/IDBKeyPath.cpp:
267         (WebCore::IDBKeyPathLexer::IDBKeyPathLexer):
268         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
269         (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
270         (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions):
271         * accessibility/AccessibilityObject.cpp:
272         (WebCore::AccessibilityObject::hasMisspelling):
273         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
274         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
275         * bindings/js/SerializedScriptValue.cpp:
276         (WebCore::CloneSerializer::serialize):
277         (WebCore::CloneSerializer::write):
278         * dom/CharacterData.cpp:
279         (WebCore::CharacterData::parserAppendData):
280         * dom/Document.cpp:
281         (WebCore::Document::parseQualifiedName):
282         * editing/Editor.cpp:
283         (WebCore::Editor::misspelledWordAtCaretOrRange):
284         (WebCore::Editor::misspelledSelectionString):
285         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
286         * editing/TextCheckingHelper.cpp:
287         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar):
288         (WebCore::TextCheckingHelper::findFirstBadGrammar):
289         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange):
290         * editing/TextCheckingHelper.h:
291         (WebCore::TextCheckingParagraph::textDeprecatedCharacters):
292         * editing/TextIterator.cpp:
293         (WebCore::collapsedSpaceLength):
294         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
295         (WebCore::containsKanaLetters):
296         (WebCore::SearchBuffer::SearchBuffer):
297         * editing/TextIterator.h:
298         (WebCore::TextIterator::characters):
299         * editing/VisiblePosition.cpp:
300         (WebCore::VisiblePosition::characterAfter):
301         * editing/VisibleUnits.cpp:
302         (WebCore::wordBreakIteratorForMinOffsetBoundary):
303         (WebCore::wordBreakIteratorForMaxOffsetBoundary):
304         (WebCore::visualWordPosition):
305         (WebCore::previousBoundary):
306         (WebCore::nextBoundary):
307         * fileapi/WebKitBlobBuilder.cpp:
308         (WebCore::BlobBuilder::append):
309         * html/FormDataList.cpp:
310         (WebCore::FormDataList::appendString):
311         * html/canvas/CanvasRenderingContext2D.cpp:
312         (WebCore::normalizeSpaces):
313         * html/parser/HTMLParserIdioms.cpp:
314         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
315         * html/parser/HTMLTreeBuilder.cpp:
316         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
317         * loader/appcache/ManifestParser.cpp:
318         (WebCore::parseManifest):
319         * page/ContentSecurityPolicy.cpp:
320         (WebCore::isSourceListNone):
321         (WebCore::CSPSourceList::parse):
322         (WebCore::NonceDirective::parse):
323         (WebCore::MediaListDirective::parse):
324         (WebCore::CSPDirectiveList::parse):
325         (WebCore::CSPDirectiveList::parseReportURI):
326         (WebCore::CSPDirectiveList::parseReflectedXSS):
327         (WebCore::ContentSecurityPolicy::didReceiveHeader):
328         * page/PageSerializer.cpp:
329         (WebCore::PageSerializer::serializeFrame):
330         (WebCore::PageSerializer::serializeCSSStyleSheet):
331         * platform/Length.cpp:
332         (WebCore::newCoordsArray):
333         (WebCore::newLengthArray):
334         * platform/LinkHash.cpp:
335         (WebCore::visitedURL):
336         (WebCore::visitedLinkHash):
337         * platform/SharedBuffer.cpp:
338         (WebCore::utf8Buffer):
339         * platform/URL.cpp:
340         (WebCore::URL::port):
341         (WebCore::encodeHostnames):
342         * platform/graphics/StringTruncator.cpp:
343         (WebCore::centerTruncateToBuffer):
344         (WebCore::rightTruncateToBuffer):
345         (WebCore::rightClipToCharacterBuffer):
346         (WebCore::rightClipToWordBuffer):
347         (WebCore::leftTruncateToBuffer):
348         (WebCore::truncateString):
349         (WebCore::StringTruncator::width):
350         * platform/graphics/TextRun.h:
351         (WebCore::TextRun::TextRun):
352         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
353         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
354         * platform/network/FormDataBuilder.cpp:
355         (WebCore::FormDataBuilder::addFilenameToMultiPartHeader):
356         * platform/sql/SQLiteStatement.cpp:
357         (WebCore::SQLiteStatement::bindBlob):
358         (WebCore::SQLiteStatement::bindText):
359         * platform/text/DecodeEscapeSequences.h:
360         (WebCore::decodeEscapeSequences):
361         * platform/text/TextBreakIterator.cpp:
362         (WebCore::numGraphemeClusters):
363         (WebCore::numCharactersInGraphemeClusters):
364         * platform/text/TextBreakIteratorICU.cpp:
365         (WebCore::setUpIteratorWithRules):
366         * platform/text/TextCodecICU.cpp:
367         (WebCore::TextCodecICU::encode):
368         * rendering/RenderBlock.cpp:
369         (WebCore::RenderBlock::constructTextRun):
370         * rendering/RenderListMarker.cpp:
371         (WebCore::RenderListMarker::paint):
372         * rendering/RenderText.cpp:
373         (WebCore::maxWordFragmentWidth):
374         (WebCore::RenderText::computePreferredLogicalWidths):
375         (WebCore::RenderText::computeCanUseSimpleFontCodePath):
376         * rendering/RenderText.h:
377         (WebCore::RenderText::characters):
378         (WebCore::RenderText::deprecatedCharacters):
379         * rendering/line/BreakingContextInlineHeaders.h:
380         (WebCore::tryHyphenating):
381         * rendering/svg/SVGInlineTextBox.cpp:
382         (WebCore::SVGInlineTextBox::constructTextRun):
383         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
384         (WebCore::processRenderSVGInlineText):
385         * rendering/svg/SVGTextLayoutEngine.cpp:
386         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
387         * rendering/svg/SVGTextMetrics.cpp:
388         (WebCore::SVGTextMetrics::measureCharacterRange):
389         (WebCore::SVGTextMetrics::SVGTextMetrics):
390         * rendering/svg/SVGTextMetricsBuilder.cpp:
391         (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
392         * svg/SVGAngle.cpp:
393         (WebCore::SVGAngle::setValueAsString):
394         * svg/SVGAnimateMotionElement.cpp:
395         (WebCore::parsePoint):
396         * svg/SVGAnimationElement.cpp:
397         (WebCore::parseKeySplines):
398         * svg/SVGFitToViewBox.cpp:
399         (WebCore::SVGFitToViewBox::parseViewBox):
400         * svg/SVGFontData.cpp:
401         (WebCore::SVGFontData::applySVGGlyphSelection):
402         * svg/SVGGlyphMap.h:
403         (WebCore::SVGGlyphMap::addGlyph):
404         (WebCore::SVGGlyphMap::collectGlyphsForString):
405         * svg/SVGGlyphRefElement.cpp:
406         (WebCore::SVGGlyphRefElement::parseAttribute):
407         * svg/SVGLength.cpp:
408         (WebCore::SVGLength::setValueAsString):
409         * svg/SVGLengthList.cpp:
410         (WebCore::SVGLengthList::parse):
411         * svg/SVGNumberList.cpp:
412         (WebCore::SVGNumberList::parse):
413         * svg/SVGParserUtilities.cpp:
414         (WebCore::parseNumberFromString):
415         (WebCore::parseNumberOptionalNumber):
416         (WebCore::parseRect):
417         (WebCore::pointsListFromSVGData):
418         (WebCore::parseGlyphName):
419         (WebCore::parseKerningUnicodeString):
420         (WebCore::parseDelimitedString):
421         * svg/SVGPreserveAspectRatio.cpp:
422         (WebCore::SVGPreserveAspectRatio::parse):
423         * svg/SVGStringList.cpp:
424         (WebCore::SVGStringList::parse):
425         * svg/SVGTransformList.cpp:
426         (WebCore::SVGTransformList::parse):
427         * svg/SVGTransformable.cpp:
428         (WebCore::SVGTransformable::parseTransformType):
429         * svg/SVGViewSpec.cpp:
430         (WebCore::SVGViewSpec::parseViewSpec):
431         * svg/SVGZoomAndPan.h:
432         (WebCore::SVGZoomAndPan::parseAttribute):
433         * xml/XMLHttpRequest.cpp:
434         (WebCore::XMLHttpRequest::send):
435         * xml/XSLStyleSheetLibxslt.cpp:
436         (WebCore::XSLStyleSheet::parseString):
437         * xml/XSLTUnicodeSort.cpp:
438         (WebCore::xsltUnicodeSortFunction):
439         * xml/parser/XMLDocumentParserLibxml2.cpp:
440         (WebCore::XMLDocumentParser::doWrite):
441         (WebCore::parseAttributes):
442         Use deprecatedCharacters instead of characters.
443
444 2014-01-12  Darin Adler  <darin@apple.com>
445
446         Add type checking to isEqual methods
447         https://bugs.webkit.org/show_bug.cgi?id=126862
448
449         Reviewed by Anders Carlsson.
450
451         * page/ios/WebEventRegion.mm:
452         (-[WebEventRegion isEqual:]): Add type checking on the argument.
453         Add a FIXME about the lack of a hash method override. Formatted to match
454         the usual WebKit coding style.
455
456 2014-01-12  Anders Carlsson  <andersca@apple.com>
457
458         Try to fix the 32-bit build.
459
460         * platform/text/icu/UTextProviderLatin1.cpp:
461         (WebCore::uTextLatin1Clone):
462         (WebCore::uTextLatin1Extract):
463         (WebCore::uTextLatin1MapNativeIndexToUTF16):
464
465 2014-01-12  Anders Carlsson  <andersca@apple.com>
466
467         Remove all uses of AtomicallyInitializedStatic from WebCore
468         https://bugs.webkit.org/show_bug.cgi?id=126861
469
470         Reviewed by Darin Adler.
471
472         * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
473         (WebCore::transactions):
474         * fileapi/ThreadableBlobRegistry.cpp:
475         (WebCore::originMap):
476         * platform/text/TextEncodingRegistry.cpp:
477         (WebCore::encodingRegistryMutex):
478         (WebCore::newTextCodec):
479         (WebCore::atomicCanonicalTextEncodingName):
480         (WebCore::dumpTextEncodingNameMap):
481         * workers/DefaultSharedWorkerRepository.cpp:
482         (WebCore::DefaultSharedWorkerRepository::instance):
483
484 2014-01-12  Anders Carlsson  <andersca@apple.com>
485
486         Use an std::atomic<uint32_t> when computing IDBDatabase transaction IDs
487         https://bugs.webkit.org/show_bug.cgi?id=126853
488
489         Reviewed by Sam Weinig.
490
491         * Modules/indexeddb/IDBDatabase.cpp:
492         (WebCore::IDBDatabase::nextTransactionId):
493
494 2014-01-12  Sam Weinig  <sam@webkit.org>
495
496         TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
497         https://bugs.webkit.org/show_bug.cgi?id=126856
498
499         Reviewed by Darin Adler.
500
501         - Do some initial cleanup before adding complete Latin-1 support.
502
503         * platform/text/TextBreakIterator.cpp:
504         Remove non-ICU acquireLineBreakIterator() implementation.
505
506         * platform/text/TextBreakIterator.h:
507         - Changes acquireLineBreakIterator() to take a StringView.
508
509         * platform/text/TextBreakIteratorICU.cpp:
510         - Refactor iterator initialization and setting of text on the iterator.
511         - Add support for using a Latin-1 provider (this is not currently used).
512
513         * platform/text/icu/UTextProviderLatin1.cpp:
514         * platform/text/icu/UTextProviderLatin1.h:
515         - Add back non-context aware Latin-1 provider (from r129662).
516         - Rename context aware provider.
517
518         * platform/text/icu/UTextProviderUTF16.cpp:
519         * platform/text/icu/UTextProviderUTF16.h:
520         - Rename context aware provider.
521
522 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
523
524         [WebGL] Error messages should use source code labels, not internal mangled symbols.
525         https://bugs.webkit.org/show_bug.cgi?id=126832
526
527         Reviewed by Dean Jackson.
528
529         Revised fast/canvas/webgl/glsl-conformance.html.
530
531         * platform/graphics/ANGLEWebKitBridge.cpp:
532         (WebCore::getSymbolInfo): Correct missing 'break'.
533         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
534         for SH_VARYINGS.
535         * platform/graphics/GraphicsContext3D.h: Add new declarations.
536         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
537         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
538         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
539         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
540         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
541         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
542
543 2014-01-12  Dan Bernstein  <mitz@apple.com>
544
545         Try to fix the Windows build after r161839.
546
547         * WebCore.vcxproj/WebCoreCommon.props:
548
549 2014-01-12  Darin Adler  <darin@apple.com>
550
551         Reduce use of String::characters
552         https://bugs.webkit.org/show_bug.cgi?id=126854
553
554         Reviewed by Sam Weinig.
555
556         * bindings/objc/WebScriptObject.mm:
557         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
558         Get rid of unneeded code to turn a WTF::String into an NSString, since that's
559         built into the WTF::String class.
560
561         * editing/CompositeEditCommand.cpp:
562         (WebCore::containsOnlyWhitespace): Use WTF::String's [] operator instead of
563         an explicit call to the characters function. Small performance cost.
564         * editing/TypingCommand.cpp:
565         (WebCore::TypingCommand::insertText): Ditto.
566
567         * editing/VisibleUnits.cpp:
568         (WebCore::startOfParagraph): Use reverseFind instead of writing our own loop.
569         (WebCore::endOfParagraph): Use find instead of writing our own loop.
570
571         * html/parser/HTMLParserIdioms.cpp:
572         (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 instead of
573         characters since we have already checked is8Bit.
574         (WebCore::parseHTMLNonNegativeInteger): Ditto. Replace the length check with
575         a check of isNull since a zero length string could be 8 bit, but it's not
576         safe to call is8Bit on a null WTF::String. (That should probably be fixed.)
577
578         * inspector/ContentSearchUtils.cpp:
579         (WebCore::ContentSearchUtils::createSearchRegexSource): Use StringBuilder
580         instead of String in code that builds up a string one character at a time.
581         The old way was ridiculously slow because it allocated a new string for every
582         character; the new way still isn't all that efficient, but it's better. Also
583         changed to use strchr instead of WTF::String::find for special characters.
584
585         * inspector/InspectorStyleSheet.cpp:
586         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Use WTF::String's
587         [] operator instead of an explicit call to the characters function.
588         * inspector/InspectorStyleTextEditor.cpp:
589         (WebCore::InspectorStyleTextEditor::insertProperty): Ditto.
590         (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto.
591         * platform/Length.cpp:
592         (WebCore::newCoordsArray): Ditto.
593
594         * platform/LinkHash.cpp:
595         (WebCore::visitedLinkHash): Use characters16 instead of characters since
596         we have already checked is8Bit. Replace the length check with a check of
597         isNull (as above in parseHTMLNonNegativeInteger).
598
599         * platform/graphics/Color.cpp:
600         (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit.
601         (WebCore::Color::Color): Ditto.
602
603         * platform/graphics/TextRun.h:
604         (WebCore::TextRun::TextRun): Use characters16 instead of characters since
605         we have already checked is8Bit. Replace the length check with a check of
606         isNull (as above in parseHTMLNonNegativeInteger).
607
608         * platform/text/TextEncodingRegistry.cpp:
609         (WebCore::atomicCanonicalTextEncodingName): Use characters16 instead of
610         characters since we already checked is8Bit. Also use isEmpty instead of !length.
611
612         * rendering/RenderBlock.cpp:
613         (WebCore::RenderBlock::constructTextRun): Use characters16 instead of characters
614         since we have already checked is8Bit. Replace the length check with a check of
615         isNull (as above in parseHTMLNonNegativeInteger).
616
617         * rendering/RenderCombineText.cpp:
618         (WebCore::RenderCombineText::width): Check for zero length instead of checking
619         for null characters.
620
621         * svg/SVGFontElement.cpp:
622         (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Rewrite ligatures
623         for loop and give local variables a better name. Construct the substring with
624         the substring function. Still a really inefficient approach -- allocating a new
625         string for every character is absurdly expensive.
626
627         * xml/XPathFunctions.cpp:
628         (WebCore::XPath::FunId::evaluate): Use String instead of StringBuilder. Still
629         not all that efficient, but better than before. Use substring to construct the
630         substring.
631
632         * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for
633         loop with this class.
634
635 2014-01-12  Benjamin Poulain  <benjamin@webkit.org>
636
637         Use the Selector Code Generator for matching in SelectorQuery
638         https://bugs.webkit.org/show_bug.cgi?id=126185
639
640         Reviewed by Ryosuke Niwa.
641
642         Compile selectors on demand and use the generated binary to perform
643         element matching in SelectorQuery.
644
645         Tests: fast/selectors/querySelector-long-adjacent-backtracking.html
646                fast/selectors/querySelector-long-child-backtracking.html
647                fast/selectors/querySelector-mixed-child-adjacent-backtracking.html
648                fast/selectors/querySelector-multiple-simple-child-backtracking.html
649                fast/selectors/querySelector-simple-adjacent-backtracking.html
650                fast/selectors/querySelector-simple-child-backtracking.html
651
652         * dom/SelectorQuery.cpp:
653         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
654         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
655         (WebCore::SelectorDataList::execute):
656         * dom/SelectorQuery.h:
657
658 2014-01-12  Anders Carlsson  <andersca@apple.com>
659
660         Simplify creation of XMLHttpRequestStaticData
661         https://bugs.webkit.org/show_bug.cgi?id=126852
662
663         Reviewed by Sam Weinig.
664
665         Add a staticData() getter that does the initialization and get rid of the explicit
666         calls to initializeXMLHttpRequestStaticData().
667
668         * xml/XMLHttpRequest.cpp:
669         (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
670         (WebCore::staticData):
671         (WebCore::XMLHttpRequest::XMLHttpRequest):
672         (WebCore::XMLHttpRequest::isAllowedHTTPHeader):
673
674 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
675
676         Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.
677
678         * platform/ios/WebCoreSystemInterfaceIOS.mm:
679
680 2014-01-12  Anders Carlsson  <andersca@apple.com>
681
682         Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
683         https://bugs.webkit.org/show_bug.cgi?id=126851
684
685         Reviewed by Sam Weinig.
686
687         * Modules/webdatabase/DatabaseBackendBase.cpp:
688         (WebCore::guidMutex):
689         (WebCore::guidToVersionMap):
690         (WebCore::updateGuidVersionMap):
691         (WebCore::guidToDatabaseMap):
692         (WebCore::guidForOriginAndName):
693         (WebCore::DatabaseBackendBase::DatabaseBackendBase):
694         (WebCore::DatabaseBackendBase::closeDatabase):
695         (WebCore::DatabaseBackendBase::performOpenAndVerify):
696         (WebCore::DatabaseBackendBase::getCachedVersion):
697         (WebCore::DatabaseBackendBase::setCachedVersion):
698
699 2014-01-12  Dan Bernstein  <mitz@apple.com>
700
701         Try to fix the Windows build after r161830.
702
703         * platform/network/NetworkStateNotifier.h:
704
705 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
706
707         Don't build JSTouch* and JSGesture* files on Mac.
708
709         * Configurations/WebCore.xcconfig:
710
711 2014-01-12  Anders Carlsson  <andersca@apple.com>
712
713         Clean up NetworkStateNotifier class
714         https://bugs.webkit.org/show_bug.cgi?id=126850
715
716         Reviewed by Andreas Kling.
717
718         Use std::call_once instead of AtomicallyInitializedStatic and a std::function
719         instead of a custom function pointer typedef.
720
721         * platform/network/NetworkStateNotifier.cpp:
722         (WebCore::networkStateNotifier):
723         (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
724         (WebCore::NetworkStateNotifier::notifyNetworkStateChange):
725         * platform/network/NetworkStateNotifier.h:
726
727 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
728
729         Add implementations of Frame::viewportArguments() and
730         Frame::setViewportArguments().
731
732         * page/ios/FrameIOS.mm:
733         (WebCore::Frame::viewportArguments):
734         (WebCore::Frame::setViewportArguments):
735
736 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
737
738         Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.
739
740         * WebCore.xcodeproj/project.pbxproj:
741
742 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
743
744         Stub out some DragImage functions for iOS.
745         
746         * WebCore.xcodeproj/project.pbxproj:
747         * platform/ios/DragImageIOS.mm: Added.
748         (WebCore::dragImageSize):
749         (WebCore::scaleDragImage):
750         (WebCore::createDragImageFromImage):
751
752 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
753
754         We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
755         not defined, because these are actually generic snapshotting
756         functions.
757
758         * platform/DragImage.cpp:
759
760 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
761
762         Fix linker errors: add DateTimeFormat.cpp to the project,
763         and make DateInputType::DateInputType not inline.
764
765         * WebCore.xcodeproj/project.pbxproj:
766         * html/DateInputType.cpp:
767         (WebCore::DateInputType::DateInputType):
768         * platform/DragImage.cpp:
769
770 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
771
772         Fix a bunch of linker errors related to exported functions.
773         I removed some iOS symbols from the .exp.in file; we may have
774         to add some back.
775
776         * WebCore.exp.in:
777
778 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
779
780         Add generated JSTouch* and JSGestureEvent.* files to the project.
781
782         * WebCore.xcodeproj/project.pbxproj:
783
784 2014-01-12  David Kilzer  <ddkilzer@apple.com>
785
786         Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
787         <http://webkit.org/b/126848>
788
789         Reviewed by Simon Fraser.
790
791         * platform/network/cf/AuthenticationCF.cpp:
792         (WebCore::AuthenticationChallenge::setAuthenticationClient):
793         Move implementation to here...
794         * platform/network/cf/AuthenticationChallenge.h: ...from here.
795         Remove duplicate header definitions inside USE(CFNETWORK).
796
797 2014-01-12  Sam Weinig  <sam@webkit.org>
798
799         Fix windows.
800
801         * WebCore.vcxproj/WebCore.vcxproj:
802
803 2014-01-12  Anders Carlsson  <andersca@apple.com>
804
805         Replace more uses of AtomicallyInitializedStatic with std::call_once
806         https://bugs.webkit.org/show_bug.cgi?id=126847
807
808         Reviewed by Sam Weinig.
809
810         * crypto/CryptoAlgorithmRegistry.cpp:
811         (WebCore::CryptoAlgorithmRegistry::shared):
812         (WebCore::registryMutex):
813         (WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
814         (WebCore::CryptoAlgorithmRegistry::nameForIdentifier):
815         (WebCore::CryptoAlgorithmRegistry::create):
816         (WebCore::CryptoAlgorithmRegistry::registerAlgorithm):
817         * crypto/CryptoAlgorithmRegistry.h:
818         * inspector/WorkerDebuggerAgent.cpp:
819         (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
820         (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
821         (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
822         * workers/WorkerThread.cpp:
823         (WebCore::threadSetMutex):
824         (WebCore::workerThreads):
825         (WebCore::WorkerThread::workerThreadCount):
826         (WebCore::WorkerThread::WorkerThread):
827         (WebCore::WorkerThread::~WorkerThread):
828         (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
829
830 2014-01-11  Sam Weinig  <sam@webkit.org>
831
832         Split ICU UText providers out into their own files
833         https://bugs.webkit.org/show_bug.cgi?id=126834
834
835         Reviewed by Anders Carlsson.
836
837         Moves the implementation of our custom UText providers out into
838         their own files.
839         - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
840         - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
841         - UTextProvider.h/cpp contains code common to all the providers.
842
843         * CMakeLists.txt:
844         * GNUmakefile.list.am:
845         * PlatformGTK.cmake:
846         * WebCore.vcxproj/WebCoreCommon.props:
847         * WebCore.vcxproj/copyForwardingHeaders.cmd:
848         * WebCore.xcodeproj/project.pbxproj:
849         * platform/text/TextAllInOne.cpp:
850         * platform/text/TextBreakIteratorICU.cpp:
851         (WebCore::setUpIterator):
852         (WebCore::wordBreakIterator):
853         (WebCore::acquireLineBreakIterator):
854         (WebCore::sentenceBreakIterator):
855         (WebCore::setUpIteratorWithRules):
856         * platform/text/icu: Added.
857         * platform/text/icu/UTextProvider.cpp: Added.
858         (WebCore::fixPointer):
859         (WebCore::uTextCloneImpl):
860         * platform/text/icu/UTextProvider.h: Added.
861         (WebCore::uTextProviderContext):
862         (WebCore::uTextInitialize):
863         (WebCore::uTextAccessPinIndex):
864         (WebCore::uTextAccessInChunkOrOutOfRange):
865         * platform/text/icu/UTextProviderLatin1.cpp: Added.
866         * platform/text/icu/UTextProviderLatin1.h: Added.
867         * platform/text/icu/UTextProviderUTF16.cpp: Added.
868         * platform/text/icu/UTextProviderUTF16.h: Added.
869
870 2014-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>
871
872         Unreviewed. Fix make distcheck.
873
874         * GNUmakefile.list.am: Add missing files.
875
876 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
877
878         Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
879         symbols.
880
881         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
882
883 2014-01-12  Andreas Kling  <akling@apple.com>
884
885         REGRESSION(r160806): line-height is not applied when only present in :link style.
886         <http://webkit.org/b/126839>
887         <rdar://problem/15799899>
888
889         Reviewed by Antti Koivisto.
890
891         Test: fast/css/line-height-link-style.html
892
893         * css/StyleResolver.cpp:
894         (WebCore::StyleResolver::CascadedProperties::Property::apply):
895
896             Use the CSSValue for SelectorChecker::MatchLink when applying
897             style inside a link.
898
899 2014-01-12  David Kilzer  <ddkilzer@apple.com>
900
901         [iOS] Fix link errors for iOS: Part 3
902
903         * WebCore.exp.in:
904         - Move some Mac-only symbols to Mac-only section.
905         * WebCore.xcodeproj/project.pbxproj:
906         - Add missing references to AuthenticationCF.cpp and
907           CookieJarCFNet.cpp.
908
909 2014-01-11  Anders Carlsson  <andersca@apple.com>
910
911         Remove unsafe uses of AtomicallyInitializedStatic
912         https://bugs.webkit.org/show_bug.cgi?id=126838
913
914         Reviewed by Andreas Kling.
915
916         AtomicStrings are per thread so any static initialization of them is potentially dangerous
917         unless it's certain that they're only ever used from the same thread.
918         
919         This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
920         (This is highly unlikely to have any real negative performance impact since these two functions
921         aren't called very frequently).
922
923         * loader/CrossOriginAccessControl.cpp:
924         (WebCore::passesAccessControlCheck):
925         * page/PerformanceResourceTiming.cpp:
926         (WebCore::passesTimingAllowCheck):
927
928 2014-01-12  David Kilzer  <ddkilzer@apple.com>
929
930         [iOS] Fix link errors for iOS: Part 2
931
932         * WebCore.exp.in:
933         - Move some Mac-only symbols to Mac-only section.
934
935 2014-01-12  David Kilzer  <ddkilzer@apple.com>
936
937         [iOS] First of many iOS fixes to WebCore.exp.in
938
939         * WebCore.exp.in:
940         - Move some Mac-only symbols to Mac-only section.
941         - Upstream some changes to iOS-only section.
942
943 2014-01-12  David Kilzer  <ddkilzer@apple.com>
944
945         [iOS] Don't link to Mac-only frameworks when building iOS
946         <http://webkit.org/b/126841>
947
948         * Configurations/WebCore.xcconfig:
949         (OTHER_LDFLAGS_iphonesimulator): Remove common frameworks that
950         are already in the Xcode project.
951         (OTHER_LDFLAGS_macosx): Add Mac-only frameworks removed from the
952         Xcode project.
953         * Configurations/WebCoreTestShim.xcconfig:
954         (OTHER_LDFLAGS[sdk=macosx*]): Link to Carbon.framework for Mac
955         since it was removed from the Xcode project.
956         * WebCore.xcodeproj/project.pbxproj: Remove Mac-only frameworks.
957
958 2014-01-12  Tobias Mueller  <tobiasmue@gnome.org>
959
960         --disable-dependency-tracking causes build failure due to missing directories
961         https://bugs.webkit.org/show_bug.cgi?id=94488
962         
963         Reviewed by Gustavo Noronha Silva.
964
965         Ensure output directory existing
966         before generating DerivedSources. This allows for
967         --disable-dependency-tracking to be run.
968
969         * GNUmakefile.am: Added new target DerivedSources/ANGLE which is a directory to be created
970         * bindings/gobject/GNUmakefile.am: Added new target DerivedSources/webkitdom which is a directory to be created
971
972 2014-01-12  David Kilzer  <ddkilzer@apple.com>
973
974         [iOS] WebFontCache is Mac-only
975
976         * WebCore.exp.in: Move export to Mac-only section.
977
978 2014-01-12  David Kilzer  <ddkilzer@apple.com>
979
980         [iOS] Upstream WebEventRegion.{h|mm} to fix the build
981
982         * WebCore.xcodeproj/project.pbxproj: Add to project.
983         * page/ios/WebEventRegion.h: Added.
984         * page/ios/WebEventRegion.mm: Added.
985         (-[WebEventRegion initWithPoints::::]):
986         (-[WebEventRegion copyWithZone:]):
987         (-[WebEventRegion description]):
988         (-[WebEventRegion hitTest:]):
989         (-[WebEventRegion isEqual:]):
990         (-[WebEventRegion quad]):
991
992 2014-01-11  Anders Carlsson  <andersca@apple.com>
993
994         Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
995         https://bugs.webkit.org/show_bug.cgi?id=126837
996
997         Reviewed by Sam Weinig.
998
999         Use std::call_once when constructing the HTTPHeaderSet.
1000
1001         * loader/CrossOriginAccessControl.cpp:
1002         (WebCore::isOnAccessControlResponseHeaderWhitelist):
1003
1004 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1005
1006         [iOS] Do not link to ApplicationServices.framework for iOS
1007         <http://webkit.org/b/126835>
1008
1009         Reviewed by Dan Bernstein.
1010
1011         * Configurations/WebCore.xcconfig:
1012         (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
1013         * WebCore.xcodeproj/project.pbxproj: Remove reference to
1014         ApplicationServices.framework.
1015
1016 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1017
1018         [iOS] Build fix for StyleResolver.cpp
1019
1020         * rendering/style/RenderStyle.h:
1021         (WebCore::RenderStyle::setCompositionFillColor): Added.
1022
1023 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1024
1025         [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
1026
1027         * rendering/RenderLayerCompositor.cpp:
1028         (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
1029         Fix use of std::make_unique<>() and add an adoptPtr() call.
1030
1031 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
1032
1033         [Mac] [Windows] Stop scheduling network requests in WebCore
1034         https://bugs.webkit.org/show_bug.cgi?id=126789
1035         <rdar://problem/15114727>
1036
1037         Reviewed by Sam Weinig.
1038
1039         We'll just send all requests to CFNetwork now, along with associated priorities.
1040
1041         * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
1042         for more than just pipelining.
1043         * loader/ResourceLoadScheduler.cpp:
1044         (WebCore::ResourceLoadScheduler::scheduleLoad):
1045         * platform/ios/WebCoreSystemInterfaceIOS.mm:
1046         * platform/mac/WebCoreSystemInterface.h:
1047         * platform/mac/WebCoreSystemInterface.mm:
1048         * platform/network/ResourceHandle.h: For syncronous requests, make it so that they
1049         don't count against HTTP connection limit, to avoid the possibility of hanging the process.
1050         * platform/network/cf/ResourceHandleCFNet.cpp:
1051         (WebCore::ResourceHandle::createCFURLConnection):
1052         (WebCore::ResourceHandle::start):
1053         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
1054         * platform/network/cf/ResourceRequestCFNet.cpp:
1055         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1056         (WebCore::ResourceRequest::doUpdateResourceRequest):
1057         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
1058         (WebCore::initializeHTTPConnectionSettingsOnStartup):
1059         * platform/network/cf/ResourceRequestCFNet.h:
1060         (WebCore::toPlatformRequestPriority):
1061         * platform/network/mac/ResourceHandleMac.mm:
1062         (WebCore::ResourceHandle::createNSURLConnection):
1063         (WebCore::ResourceHandle::start):
1064         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
1065         * platform/network/mac/ResourceRequestMac.mm:
1066         (WebCore::ResourceRequest::doUpdateResourceRequest):
1067         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1068
1069 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1070
1071         [iOS] Fix build failure in WebCore::findEndWordBoundary()
1072
1073         Filed Bug 126830 for the proper fix:
1074         <http://webkit.org/b/126830>
1075
1076         * editing/VisibleUnits.cpp:
1077         (WebCore::endWordBoundary): Switch back to using
1078         WebCore::findWordBoundary() on iOS.
1079
1080         * platform/text/mac/TextBoundaries.mm:
1081         (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
1082         that doesn't use NSAttributedString.
1083
1084 2014-01-11  Andy Estes  <aestes@apple.com>
1085
1086         [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
1087         https://bugs.webkit.org/show_bug.cgi?id=126829
1088
1089         Reviewed by Sam Weinig.
1090
1091         Some newly-upstreamed iOS text autosizing code needs to move to
1092         RenderBlockFlow in order to build.
1093
1094         * rendering/RenderBlock.cpp:
1095         (WebCore::RenderBlock::RenderBlock):
1096         * rendering/RenderBlock.h:
1097         * rendering/RenderBlockFlow.cpp:
1098         (WebCore::RenderBlockFlow::RenderBlockFlow):
1099         (WebCore::isVisibleRenderText):
1100         (WebCore::resizeTextPermitted):
1101         (WebCore::RenderBlockFlow::immediateLineCount):
1102         (WebCore::isNonBlocksOrNonFixedHeightListItems):
1103         (WebCore::oneLineTextMultiplier):
1104         (WebCore::textMultiplier):
1105         (WebCore::RenderBlockFlow::adjustComputedFontSizes):
1106         * rendering/RenderBlockFlow.h:
1107         (WebCore::RenderBlockFlow::resetComputedFontSize):
1108         * rendering/RenderObject.cpp:
1109         (WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
1110         (WebCore::RenderObject::resetTextAutosizing):
1111
1112 2014-01-11  Daniel Bates  <dabates@apple.com>
1113
1114         [iOS] Fix the build
1115
1116         Only call CGContextFlush() when building for OS X < 10.9.
1117
1118         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1119         (WebCore::ImageBufferBackingStoreCache::deallocate):
1120
1121 2014-01-11  Anders Carlsson  <andersca@apple.com>
1122
1123         InspectorAgentRegistry should use std::unique_ptr
1124         https://bugs.webkit.org/show_bug.cgi?id=126826
1125
1126         Reviewed by Sam Weinig.
1127
1128         * inspector/InspectorApplicationCacheAgent.h:
1129         * inspector/InspectorCSSAgent.h:
1130         * inspector/InspectorCanvasAgent.h:
1131         * inspector/InspectorController.cpp:
1132         (WebCore::InspectorController::InspectorController):
1133         * inspector/InspectorDOMAgent.h:
1134         * inspector/InspectorDOMDebuggerAgent.cpp:
1135         * inspector/InspectorDOMDebuggerAgent.h:
1136         * inspector/InspectorDOMStorageAgent.h:
1137         * inspector/InspectorDatabaseAgent.h:
1138         * inspector/InspectorHeapProfilerAgent.cpp:
1139         * inspector/InspectorHeapProfilerAgent.h:
1140         * inspector/InspectorIndexedDBAgent.h:
1141         * inspector/InspectorInputAgent.h:
1142         * inspector/InspectorLayerTreeAgent.h:
1143         * inspector/InspectorMemoryAgent.cpp:
1144         * inspector/InspectorMemoryAgent.h:
1145         * inspector/InspectorPageAgent.cpp:
1146         * inspector/InspectorPageAgent.h:
1147         * inspector/InspectorProfilerAgent.cpp:
1148         (WebCore::InspectorProfilerAgent::create):
1149         * inspector/InspectorProfilerAgent.h:
1150         * inspector/InspectorResourceAgent.h:
1151         * inspector/InspectorTimelineAgent.h:
1152         * inspector/InspectorWorkerAgent.cpp:
1153         * inspector/InspectorWorkerAgent.h:
1154         * inspector/PageConsoleAgent.h:
1155         * inspector/PageDebuggerAgent.cpp:
1156         * inspector/PageDebuggerAgent.h:
1157         * inspector/PageRuntimeAgent.h:
1158         * inspector/WorkerConsoleAgent.h:
1159         * inspector/WorkerDebuggerAgent.cpp:
1160         * inspector/WorkerDebuggerAgent.h:
1161         * inspector/WorkerInspectorController.cpp:
1162         (WebCore::WorkerInspectorController::WorkerInspectorController):
1163         * inspector/WorkerRuntimeAgent.h:
1164
1165 2014-01-11  Sam Weinig  <sam@webkit.org>
1166
1167         Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
1168         https://bugs.webkit.org/show_bug.cgi?id=126820
1169
1170         Reviewed by Anders Carlsson.
1171
1172         * CMakeLists.txt:
1173         * GNUmakefile.list.am:
1174         * WebCore.vcxproj/WebCore.vcxproj:
1175         * WebCore.vcxproj/WebCore.vcxproj.filters:
1176         * WebCore.xcodeproj/project.pbxproj:
1177         * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
1178         (WebCore::convertFloatToHalfFloat):
1179         (WebCore::FormatConverter::convert):
1180         * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
1181         (WebCore::FormatConverter::FormatConverter):
1182         (WebCore::FormatConverter::success):
1183         * platform/graphics/GraphicsContext3D.cpp:
1184         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1185         (WebCore::GraphicsContext3D::computeImageSizeInBytes):
1186         (WebCore::GraphicsContext3D::packImageData):
1187         (WebCore::GraphicsContext3D::extractImageData):
1188         (WebCore::GraphicsContext3D::extractTextureData):
1189         (WebCore::GraphicsContext3D::packPixels):
1190         * platform/graphics/GraphicsContext3D.h:
1191         (WebCore::GraphicsContext3D::hasAlpha):
1192         (WebCore::GraphicsContext3D::hasColor):
1193
1194 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1195
1196         Fix updateScrollingLayerWithClient() for iOS.
1197         
1198         * rendering/RenderLayerCompositor.cpp:
1199         (WebCore::updateScrollingLayerWithClient):
1200
1201 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1202
1203         Unfork GraphicsContext::drawNativeImage for iOS
1204         https://bugs.webkit.org/show_bug.cgi?id=126824
1205
1206         Reviewed by Dean Jackson.
1207
1208         GraphicsContext::drawNativeImage had a different signature for iOS,
1209         which required #ifdefs at all the call sites. Unfork by passing the "scale"
1210         parameter everywhere (it's only used on iOS).
1211
1212         * WebCore.exp.in:
1213         * html/canvas/CanvasRenderingContext2D.cpp:
1214         (WebCore::CanvasRenderingContext2D::drawImage):
1215         * platform/graphics/GraphicsContext.h:
1216         * platform/graphics/cg/BitmapImageCG.cpp:
1217         (WebCore::BitmapImage::draw):
1218         * platform/graphics/cg/GraphicsContext3DCG.cpp:
1219         (WebCore::GraphicsContext3D::paintToCanvas):
1220         * platform/graphics/cg/GraphicsContextCG.cpp:
1221         (WebCore::GraphicsContext::platformInit):
1222         * platform/graphics/cg/ImageBufferCG.cpp:
1223         (WebCore::ImageBuffer::draw):
1224         * platform/graphics/ios/IconIOS.mm:
1225         (WebCore::Icon::paint):
1226
1227 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1228
1229         Work around USE(CFNETWORK) build failure on iOS.
1230
1231         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1232         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
1233
1234 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1235
1236         Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
1237         
1238         * loader/archive/cf/LegacyWebArchive.cpp:
1239
1240 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1241
1242         [iOS] Fix the easy half of the build errors in RenderBlock.cpp
1243
1244         * rendering/RenderBlock.cpp:
1245         (WebCore::isNonBlocksOrNonFixedHeightListItems):
1246         (WebCore::oneLineTextMultiplier):
1247         (WebCore::textMultiplier):
1248         (WebCore::RenderBlock::adjustComputedFontSizes):
1249
1250 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1251
1252         Change touch-related headers to include WebKitAdditions headers,
1253         which have been renamed to have IOS suffixes.
1254
1255         * WebCore.xcodeproj/project.pbxproj:
1256         * bindings/js/ios/TouchConstructors.cpp:
1257         * dom/Touch.h:
1258         * dom/TouchEvent.h:
1259         * dom/TouchList.h:
1260         * dom/ios/TouchEvents.cpp:
1261
1262 2014-01-11  Anders Carlsson  <andersca@apple.com>
1263
1264         ScriptDebugServer should use a separate member function for its timer handler
1265         https://bugs.webkit.org/show_bug.cgi?id=126819
1266
1267         Reviewed by Sam Weinig.
1268
1269         It's weird to have subclasses override a timer handler and sometimes invoke 
1270         the timer handler directly so make it a separate member function instead.
1271
1272         * bindings/js/PageScriptDebugServer.cpp:
1273         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
1274         * bindings/js/PageScriptDebugServer.h:
1275         * bindings/js/ScriptDebugServer.cpp:
1276         (WebCore::ScriptDebugServer::ScriptDebugServer):
1277         (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
1278         * bindings/js/ScriptDebugServer.h:
1279         * bindings/js/WorkerScriptDebugServer.cpp:
1280         (WebCore::WorkerScriptDebugServer::addListener):
1281         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
1282         * bindings/js/WorkerScriptDebugServer.h:
1283         * inspector/InspectorProfilerAgent.cpp:
1284         (WebCore::InspectorProfilerAgent::start):
1285
1286 2014-01-11  Anders Carlsson  <andersca@apple.com>
1287
1288         Simplify Timer and DeferrableOneShotTimer using std::function
1289         https://bugs.webkit.org/show_bug.cgi?id=126816
1290
1291         Reviewed by Sam Weinig.
1292
1293         * platform/Timer.h:
1294         (WebCore::Timer::Timer):
1295
1296 2014-01-11  Anders Carlsson  <andersca@apple.com>
1297
1298         CTTE Timer and DeferrableOneShotTimer
1299         https://bugs.webkit.org/show_bug.cgi?id=126814
1300
1301         Reviewed by Antti Koivisto.
1302
1303         Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
1304         take a reference instead of a pointer.
1305         Also, convert a bunch of classes over to using these new constructors.
1306
1307         * Modules/encryptedmedia/MediaKeySession.cpp:
1308         (WebCore::MediaKeySession::keyRequestTimerFired):
1309         (WebCore::MediaKeySession::addKeyTimerFired):
1310         * Modules/encryptedmedia/MediaKeySession.h:
1311         * Modules/geolocation/Geolocation.cpp:
1312         (WebCore::Geolocation::GeoNotifier::timerFired):
1313         (WebCore::Geolocation::resumeTimerFired):
1314         * Modules/geolocation/Geolocation.h:
1315         * Modules/indexeddb/IDBTransactionBackend.cpp:
1316         (WebCore::IDBTransactionBackend::taskTimerFired):
1317         * Modules/indexeddb/IDBTransactionBackend.h:
1318         * Modules/mediasource/SourceBuffer.cpp:
1319         (WebCore::SourceBuffer::appendBufferTimerFired):
1320         * Modules/mediasource/SourceBuffer.h:
1321         * Modules/notifications/Notification.cpp:
1322         (WebCore::Notification::taskTimerFired):
1323         * Modules/notifications/Notification.h:
1324         * Modules/notifications/NotificationCenter.cpp:
1325         (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
1326         * Modules/notifications/NotificationCenter.h:
1327         * accessibility/AXObjectCache.cpp:
1328         (WebCore::AXObjectCache::notificationPostTimerFired):
1329         * accessibility/AXObjectCache.h:
1330         * css/CSSFontSelector.cpp:
1331         (WebCore::CSSFontSelector::beginLoadTimerFired):
1332         * css/CSSFontSelector.h:
1333         * css/CSSImageGeneratorValue.cpp:
1334         (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
1335         * css/CSSImageGeneratorValue.h:
1336         * dom/Document.cpp:
1337         (WebCore::Document::visualUpdatesSuppressionTimerFired):
1338         (WebCore::Document::styleRecalcTimerFired):
1339         (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
1340         (WebCore::Document::sharedObjectPoolClearTimerFired):
1341         (WebCore::Document::styleResolverThrowawayTimerFired):
1342         (WebCore::Document::updateFocusAppearanceTimerFired):
1343         (WebCore::Document::resetHiddenFocusElementTimer):
1344         (WebCore::Document::pendingTasksTimerFired):
1345         (WebCore::Document::fullScreenChangeDelayTimerFired):
1346         (WebCore::Document::loadEventDelayTimerFired):
1347         (WebCore::Document::didAssociateFormControlsTimerFired):
1348         * dom/Document.h:
1349         * dom/EventSender.h:
1350         (WebCore::EventSender::timerFired):
1351         * dom/GenericEventQueue.cpp:
1352         (WebCore::GenericEventQueue::timerFired):
1353         * dom/GenericEventQueue.h:
1354         * dom/ScriptRunner.cpp:
1355         (WebCore::ScriptRunner::timerFired):
1356         * dom/ScriptRunner.h:
1357         * dom/ScriptedAnimationController.cpp:
1358         (WebCore::ScriptedAnimationController::animationTimerFired):
1359         * dom/ScriptedAnimationController.h:
1360         * editing/AlternativeTextController.cpp:
1361         (WebCore::AlternativeTextController::timerFired):
1362         * editing/AlternativeTextController.h:
1363         * editing/FrameSelection.cpp:
1364         (WebCore::FrameSelection::caretBlinkTimerFired):
1365         * editing/FrameSelection.h:
1366         * html/HTMLMediaElement.cpp:
1367         (WebCore::HTMLMediaElement::parseAttribute):
1368         * html/HTMLMediaElement.h:
1369         * html/HTMLPlugInElement.cpp:
1370         (WebCore::HTMLPlugInElement::swapRendererTimerFired):
1371         * html/HTMLPlugInElement.h:
1372         * html/HTMLPlugInImageElement.cpp:
1373         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
1374         (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
1375         * html/HTMLPlugInImageElement.h:
1376         * html/HTMLSourceElement.cpp:
1377         (WebCore::HTMLSourceElement::errorEventTimerFired):
1378         * html/HTMLSourceElement.h:
1379         * html/HTMLTrackElement.cpp:
1380         (WebCore::HTMLTrackElement::loadTimerFired):
1381         * html/HTMLTrackElement.h:
1382         * html/MediaController.cpp:
1383         (MediaController::asyncEventTimerFired):
1384         (MediaController::clearPositionTimerFired):
1385         (MediaController::timeupdateTimerFired):
1386         * html/MediaController.h:
1387         * html/MediaDocument.cpp:
1388         (WebCore::MediaDocument::replaceMediaElementTimerFired):
1389         * html/MediaDocument.h:
1390         * html/parser/HTMLParserScheduler.cpp:
1391         (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
1392         * html/parser/HTMLParserScheduler.h:
1393         * html/shadow/MediaControlElementTypes.cpp:
1394         (WebCore::MediaControlSeekButtonElement::seekTimerFired):
1395         * html/shadow/MediaControlElementTypes.h:
1396         * html/shadow/MediaControlElements.cpp:
1397         (WebCore::MediaControlPanelElement::transitionTimerFired):
1398         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
1399         * html/shadow/MediaControlElements.h:
1400         * html/shadow/MediaControls.cpp:
1401         (WebCore::MediaControls::hideFullscreenControlsTimerFired):
1402         * html/shadow/MediaControls.h:
1403         * html/track/LoadableTextTrack.cpp:
1404         (WebCore::LoadableTextTrack::loadTimerFired):
1405         * html/track/LoadableTextTrack.h:
1406         * inspector/InspectorCSSAgent.cpp:
1407         (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
1408         (WebCore::UpdateRegionLayoutTask::timerFired):
1409         (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
1410         (WebCore::ChangeRegionOversetTask::timerFired):
1411         * inspector/InspectorDOMAgent.cpp:
1412         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
1413         (WebCore::RevalidateStyleAttributeTask::timerFired):
1414         * inspector/InspectorFrontendClientLocal.cpp:
1415         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
1416         (WebCore::InspectorBackendDispatchTask::timerFired):
1417         * loader/DocumentLoader.cpp:
1418         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
1419         * loader/DocumentLoader.h:
1420         * loader/FrameLoader.cpp:
1421         (WebCore::FrameLoader::checkTimerFired):
1422         * loader/FrameLoader.h:
1423         * loader/ImageLoader.cpp:
1424         (WebCore::ImageLoader::timerFired):
1425         * loader/ImageLoader.h:
1426         * loader/LinkLoader.cpp:
1427         (WebCore::LinkLoader::linkLoadTimerFired):
1428         (WebCore::LinkLoader::linkLoadingErrorTimerFired):
1429         * loader/LinkLoader.h:
1430         * loader/NavigationScheduler.cpp:
1431         (WebCore::NavigationScheduler::timerFired):
1432         * loader/NavigationScheduler.h:
1433         * loader/PingLoader.cpp:
1434         (WebCore::PingLoader::PingLoader):
1435         * loader/PingLoader.h:
1436         (WebCore::PingLoader::timeoutTimerFired):
1437         * loader/ProgressTracker.cpp:
1438         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
1439         * loader/ProgressTracker.h:
1440         * loader/ResourceLoadScheduler.cpp:
1441         (WebCore::ResourceLoadScheduler::requestTimerFired):
1442         * loader/ResourceLoadScheduler.h:
1443         * loader/cache/CachedResource.cpp:
1444         (WebCore::CachedResource::decodedDataDeletionTimerFired):
1445         (WebCore::CachedResource::CachedResourceCallback::timerFired):
1446         * loader/cache/CachedResource.h:
1447         * loader/cache/CachedResourceLoader.cpp:
1448         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
1449         * loader/cache/CachedResourceLoader.h:
1450         * loader/icon/IconDatabase.cpp:
1451         (WebCore::IconDatabase::syncTimerFired):
1452         * loader/icon/IconDatabase.h:
1453         * page/AutoscrollController.cpp:
1454         (WebCore::AutoscrollController::autoscrollTimerFired):
1455         * page/AutoscrollController.h:
1456         * page/CaptionUserPreferences.cpp:
1457         (WebCore::CaptionUserPreferences::timerFired):
1458         * page/CaptionUserPreferences.h:
1459         * page/DeviceController.cpp:
1460         (WebCore::DeviceController::fireDeviceEvent):
1461         * page/DeviceController.h:
1462         * page/EventHandler.cpp:
1463         (WebCore::EventHandler::cursorUpdateTimerFired):
1464         (WebCore::EventHandler::autoHideCursorTimerFired):
1465         (WebCore::EventHandler::fakeMouseMoveEventTimerFired):
1466         (WebCore::EventHandler::hoverTimerFired):
1467         * page/EventHandler.h:
1468         * page/EventSource.cpp:
1469         (WebCore::EventSource::connectTimerFired):
1470         * page/EventSource.h:
1471         * page/FrameView.cpp:
1472         (WebCore::FrameView::deferredRepaintTimerFired):
1473         (WebCore::FrameView::layoutTimerFired):
1474         (WebCore::FrameView::postLayoutTimerFired):
1475         * page/FrameView.h:
1476         * page/PageThrottler.cpp:
1477         (WebCore::PageThrottler::throttleHysteresisTimerFired):
1478         * page/PageThrottler.h:
1479         * page/animation/AnimationController.cpp:
1480         (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
1481         (WebCore::AnimationControllerPrivate::animationTimerFired):
1482         * page/animation/AnimationControllerPrivate.h:
1483         * platform/Scrollbar.cpp:
1484         (WebCore::Scrollbar::autoscrollTimerFired):
1485         * platform/Scrollbar.h:
1486         * platform/Timer.h:
1487         (WebCore::Timer::Timer):
1488         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
1489         * platform/graphics/BitmapImage.cpp:
1490         (WebCore::BitmapImage::advanceAnimation):
1491         * platform/graphics/BitmapImage.h:
1492         * platform/graphics/MediaPlayer.cpp:
1493         (WebCore::MediaPlayer::reloadTimerFired):
1494         * platform/graphics/MediaPlayer.h:
1495         * platform/graphics/ca/mac/LayerPool.h:
1496         * platform/graphics/ca/mac/LayerPool.mm:
1497         (WebCore::LayerPool::pruneTimerFired):
1498         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1499         (WebCore::ImageBufferBackingStoreCache::timerFired):
1500         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
1501         * platform/graphics/cg/SubimageCacheWithTimer.cpp:
1502         (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
1503         * platform/graphics/cg/SubimageCacheWithTimer.h:
1504         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
1505         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1506         (WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
1507         * platform/mac/ScrollAnimatorMac.h:
1508         * platform/mac/ScrollAnimatorMac.mm:
1509         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
1510         (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
1511         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
1512         * platform/mock/DeviceOrientationClientMock.cpp:
1513         (WebCore::DeviceOrientationClientMock::timerFired):
1514         * platform/mock/DeviceOrientationClientMock.h:
1515         * platform/network/NetworkStateNotifier.h:
1516         * platform/network/ResourceHandle.cpp:
1517         (WebCore::ResourceHandle::failureTimerFired):
1518         * platform/network/ResourceHandle.h:
1519         * platform/network/ResourceHandleInternal.h:
1520         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1521         * platform/network/mac/NetworkStateNotifierMac.cpp:
1522         (WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
1523         * rendering/ImageQualityController.cpp:
1524         (WebCore::ImageQualityController::highQualityRepaintTimerFired):
1525         * rendering/ImageQualityController.h:
1526         * rendering/RenderButton.cpp:
1527         (WebCore::RenderButton::timerFired):
1528         * rendering/RenderButton.h:
1529         * rendering/RenderLayerCompositor.cpp:
1530         (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
1531         (WebCore::RenderLayerCompositor::layerFlushTimerFired):
1532         (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
1533         * rendering/RenderLayerCompositor.h:
1534         * rendering/RenderMarquee.cpp:
1535         (WebCore::RenderMarquee::timerFired):
1536         * rendering/RenderMarquee.h:
1537         * rendering/RenderNamedFlowThread.cpp:
1538         (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
1539         (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
1540         * rendering/RenderNamedFlowThread.h:
1541         * rendering/RenderProgress.cpp:
1542         (WebCore::RenderProgress::animationTimerFired):
1543         * rendering/RenderProgress.h:
1544
1545 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1546
1547         #ifdef out the contents of Touch* files for iOS.
1548         
1549         * dom/Touch.h:
1550         * dom/TouchEvent.h:
1551         * dom/TouchList.h:
1552
1553 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1554
1555         No need to include <ApplicationServices/ApplicationServices.h> in
1556         the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
1557
1558         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1559         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
1560
1561 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1562
1563         Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
1564         and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
1565
1566         * bindings/objc/DOMPrivate.h:
1567         * bindings/objc/DOMUIKitExtensions.h:
1568         * bindings/objc/DOMUIKitExtensions.mm:
1569
1570 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1571
1572         Fix use of GL_HALF_FLOAT_ARB on iOS.
1573
1574         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1575         (WebCore::GraphicsContext3D::texSubImage2D):
1576
1577 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1578
1579         Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
1580
1581         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1582
1583 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1584
1585         Fix use of nonexistent kCGColorSpaceSRGB on iOS.
1586
1587         * platform/graphics/cg/GraphicsContextCG.cpp:
1588         (WebCore::sRGBColorSpaceRef):
1589
1590 2014-01-11  Joseph Pecoraro  <pecoraro@apple.com>
1591
1592         Web Inspector: Some ScriptDebugServer Cleanup
1593         https://bugs.webkit.org/show_bug.cgi?id=126793
1594
1595         Reviewed by Timothy Hatcher.
1596
1597         * bindings/js/PageScriptDebugServer.cpp:
1598         (WebCore::PageScriptDebugServer::didContinue):
1599         (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
1600         Move the special iOS WebThread EventLoop nesting handling here.
1601
1602         * bindings/js/ScriptDebugServer.cpp:
1603         (WebCore::ScriptDebugServer::ScriptDebugServer):
1604         (WebCore::ScriptDebugServer::handlePause):
1605         * bindings/js/ScriptDebugServer.h:
1606         * inspector/InspectorDebuggerAgent.cpp:
1607         * inspector/InspectorDebuggerAgent.h:
1608         Remove unused headers and functions.
1609
1610 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1611
1612         [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
1613
1614         * platform/graphics/cg/ImageBufferCG.cpp:
1615         (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
1616         variables are only used by code protected by
1617         USE(IOSURFACE_CANVAS_BACKING_STORE).
1618
1619 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1620
1621         [iOS] Multisampling is not available on iOS
1622
1623         * platform/graphics/mac/GraphicsContext3DMac.mm:
1624         (WebCore::GraphicsContext3D::GraphicsContext3D):
1625
1626 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1627
1628         [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
1629
1630         * html/HTMLImageElement.cpp:
1631         (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
1632
1633 2014-01-10  Anders Carlsson  <andersca@apple.com>
1634
1635         Fix test crashes.
1636         
1637         * loader/ProgressTracker.cpp:
1638         (WebCore::ProgressTracker::~ProgressTracker):
1639         Comment out the call to progressTrackerDestroyed for now.
1640
1641 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1642
1643         [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
1644
1645         * rendering/RenderEmbeddedObject.cpp:
1646         (WebCore::RenderEmbeddedObject::canHaveChildren):
1647
1648 2014-01-10  Anders Carlsson  <andersca@apple.com>
1649
1650         Tweak ProgressTrackerClient functions
1651         https://bugs.webkit.org/show_bug.cgi?id=126808
1652
1653         Reviewed by Sam Weinig.
1654
1655         Rename the three progress state related member functions since it's up to the various
1656         WebKit implementations to decide what to do - not everyone wants to post a notification.
1657         Also add an originating progress frame parameter since WebKit2 doesn't report progress for
1658         subframe navigation and we need to be able to keep track of that.
1659         
1660         Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
1661
1662         * loader/EmptyClients.h:
1663         * loader/ProgressTracker.cpp:
1664         (WebCore::ProgressItem::ProgressItem):
1665         (WebCore::ProgressTracker::progressStarted):
1666         (WebCore::ProgressTracker::finalProgressComplete):
1667         (WebCore::ProgressTracker::incrementProgress):
1668         (WebCore::ProgressTracker::completeProgress):
1669         * loader/ProgressTrackerClient.h:
1670
1671 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1672
1673         [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
1674
1675         * rendering/style/StyleRareInheritedData.cpp:
1676
1677 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1678
1679         [iOS] Fix build of SubframeLoader.cpp
1680
1681         * loader/SubframeLoader.cpp:
1682         (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
1683         (WebCore::SubframeLoader::loadPlugin):
1684         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1685
1686 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1687
1688         Fix Mac after r161747. One part of that is iOS specific.
1689
1690         Unreviewed build fix.
1691
1692         * bindings/js/GCController.cpp:
1693         (WebCore::GCController::releaseExecutableMemory):
1694
1695 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1696
1697         [iOS] Fix GCController::releaseExecutableMemory
1698         https://bugs.webkit.org/show_bug.cgi?id=126805
1699
1700         Reviewed by Sam Weinig and Mark Lam.
1701
1702         VM::dynamicGlobalObject has since been replaced by VMEntryScope.
1703         Update to check entryScope instead of the dynamicGlobalObject.
1704         Also, make this non-iOS only.
1705
1706         * bindings/js/GCController.h:
1707         * bindings/js/GCController.cpp:
1708         (WebCore::GCController::releaseExecutableMemory):
1709
1710 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1711
1712         Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
1713
1714         There is now local variable mediaElement. Just call the
1715         functions since they are methods on this class.
1716
1717         Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
1718
1719         * html/HTMLMediaElement.cpp:
1720         (WebCore::HTMLMediaElement::parseAttribute):
1721
1722 2014-01-10  Anders Carlsson  <andersca@apple.com>
1723
1724         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
1725         https://bugs.webkit.org/show_bug.cgi?id=126801
1726
1727         Reviewed by Sam Weinig.
1728
1729         * GNUmakefile.list.am:
1730         * WebCore.vcxproj/WebCore.vcxproj:
1731         * WebCore.vcxproj/WebCore.vcxproj.filters:
1732         * WebCore.xcodeproj/project.pbxproj:
1733         * loader/EmptyClients.cpp:
1734         (WebCore::fillWithEmptyClients):
1735         * loader/EmptyClients.h:
1736         * loader/FrameLoaderClient.h:
1737         * loader/ProgressTracker.cpp:
1738         (WebCore::ProgressTracker::ProgressTracker):
1739         (WebCore::ProgressTracker::~ProgressTracker):
1740         (WebCore::ProgressTracker::progressStarted):
1741         (WebCore::ProgressTracker::progressCompleted):
1742         (WebCore::ProgressTracker::finalProgressComplete):
1743         (WebCore::ProgressTracker::incrementProgress):
1744         * loader/ProgressTracker.h:
1745         * loader/ProgressTrackerClient.h: Added.
1746         (WebCore::ProgressTrackerClient::~ProgressTrackerClient):
1747         (WebCore::ProgressTrackerClient::progressTrackerDestroyed):
1748         (WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
1749         (WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
1750         * page/Page.cpp:
1751         (WebCore::Page::Page):
1752         (WebCore::Page::PageClients::PageClients):
1753         * page/Page.h:
1754
1755 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1756
1757         Fix RenderObject.o for iOS. Unreviewed build fix.
1758
1759         r156285 renamed firstChild() to firstChildSlow(), so update
1760         occurances in IOS_TEXT_AUTOSIZING code. Also account for a
1761         RenderObject::style reference / pointer change.
1762
1763         * rendering/RenderObject.cpp:
1764         (WebCore::RenderObject::traverseNext):
1765         (WebCore::includeNonFixedHeight):
1766
1767 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1768
1769         Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
1770
1771         Import CALayer, which Mac must have been getting some other way.
1772
1773         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
1774
1775 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1776
1777         Fix TileGrid.o for iOS. Unreviewed build fix.
1778
1779         Explicitly use namespace std in std::pair.
1780
1781         * platform/ios/TileGrid.mm:
1782         (WebCore::isFartherAway):
1783         (WebCore::TileGrid::dropDistantTiles):
1784
1785 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1786
1787         Fix RenderImage.o for iOS. Unreviewed build fix.
1788
1789         inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
1790         without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
1791
1792         * rendering/RenderImage.cpp:
1793
1794 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1795
1796         [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
1797
1798         Fixes the following build error:
1799
1800             WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
1801             #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
1802                                  ^
1803
1804         * platform/Scrollbar.cpp:
1805         (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
1806
1807 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1808
1809         Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
1810
1811         WebCore::theme() returns a reference now, not a pointer.
1812
1813         * rendering/RenderFileUploadControl.cpp:
1814         (WebCore::RenderFileUploadControl::paintObject):
1815
1816 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1817
1818         Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
1819
1820         Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
1821         add the files to the Xcode project so they build.
1822
1823         * WebCore.xcodeproj/project.pbxproj:
1824         * html/shadow/YouTubeEmbedShadowElement.cpp: Added.
1825         (WebCore::YouTubeEmbedShadowElement::create):
1826         (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
1827         (WebCore::YouTubeEmbedShadowElement::pluginElement):
1828         (WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
1829         * html/shadow/YouTubeEmbedShadowElement.h: Added.
1830
1831 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1832
1833         [iOS] Update EditorIOS.mm to switch from pointers to references
1834
1835         * editing/ios/EditorIOS.mm:
1836         (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
1837         (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
1838         (WebCore::styleForSelectionStart):
1839         (WebCore::Editor::selectionInWebArchiveFormat):
1840         (WebCore::Editor::writeImageToPasteboard):
1841         (WebCore::Editor::WebContentReader::readWebArchive):
1842         (WebCore::Editor::WebContentReader::readRTFD):
1843         (WebCore::Editor::WebContentReader::readRTF):
1844         (WebCore::uniqueURLWithRelativePart):
1845         (WebCore::Editor::WebContentReader::readPlainText):
1846         (WebCore::Editor::webContentFromPasteboard):
1847         (WebCore::Editor::createFragmentAndAddResources):
1848         (WebCore::Editor::createFragmentForImageResourceAndAddResource):
1849
1850 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1851
1852         Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
1853         https://bugs.webkit.org/show_bug.cgi?id=126763
1854
1855         Reviewed by Timothy Hatcher.
1856
1857         No new tests, no observable change in functionality.
1858
1859         * CMakeLists.txt:
1860         * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
1861         * GNUmakefile.list.am:
1862         * WebCore.vcxproj/WebCore.vcxproj:
1863         * WebCore.vcxproj/WebCore.vcxproj.filters:
1864         * WebCore.xcodeproj/project.pbxproj:
1865         * inspector/InspectorAllInOne.cpp:
1866         InspectorAgent moved to JavaScriptCore. Include forwarding header.
1867
1868         * inspector/PageConsoleAgent.cpp:
1869         (WebCore::PageConsoleAgent::PageConsoleAgent):
1870         (WebCore::PageConsoleAgent::~PageConsoleAgent):
1871         * inspector/PageConsoleAgent.h:
1872         (WebCore::PageConsoleAgent::create):
1873         * inspector/InspectorApplicationCacheAgent.cpp:
1874         * inspector/InspectorApplicationCacheAgent.h:
1875         InspectorAgent was not used by these files, remove it.
1876
1877         * inspector/CommandLineAPIHost.cpp:
1878         * inspector/CommandLineAPIHost.h:
1879         (WebCore::CommandLineAPIHost::init):
1880         * inspector/InspectorInstrumentation.cpp:
1881         * inspector/InstrumentingAgents.h:
1882         (WebCore::InstrumentingAgents::inspectorAgent):
1883         (WebCore::InstrumentingAgents::setInspectorAgent):
1884         Switch to Inspector::InspectorAgent where applicable.
1885
1886         * inspector/InspectorController.cpp:
1887         (WebCore::InspectorController::InspectorController):
1888         * inspector/InspectorController.h:
1889         Manually add InspectorAgent to the InstrumentingAgents. It is one
1890         of the agents that is always available in InstrumentingAgents.
1891
1892 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1893
1894        Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
1895
1896         * WebCore.xcodeproj/project.pbxproj:
1897         * dom/Document.cpp:
1898         (WebCore::Document::Document):
1899         * rendering/TextAutoSizing.cpp: Added.
1900         (WebCore::cloneRenderStyleWithState):
1901         (WebCore::TextAutoSizingKey::TextAutoSizingKey):
1902         (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
1903         (WebCore::TextAutoSizingKey::operator=):
1904         (WebCore::TextAutoSizingKey::ref):
1905         (WebCore::TextAutoSizingKey::deref):
1906         (WebCore::TextAutoSizingValue::numNodes):
1907         (WebCore::TextAutoSizingValue::addNode):
1908         (WebCore::TextAutoSizingValue::adjustNodeSizes):
1909         (WebCore::TextAutoSizingValue::reset):
1910         * rendering/TextAutoSizing.h: Added.
1911         (WebCore::TextAutoSizingKey::doc):
1912         (WebCore::TextAutoSizingKey::style):
1913         (WebCore::TextAutoSizingKey::isValidDoc):
1914         (WebCore::TextAutoSizingKey::isValidStyle):
1915         (WebCore::TextAutoSizingKey::deletedKeyDoc):
1916         (WebCore::TextAutoSizingKey::deletedKeyStyle):
1917         (WebCore::operator==):
1918         (WebCore::TextAutoSizingHash::hash):
1919         (WebCore::TextAutoSizingHash::equal):
1920         (WebCore::TextAutoSizingValue::create):
1921         (WebCore::TextAutoSizingValue::TextAutoSizingValue):
1922
1923 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1924
1925         Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
1926
1927         Use of systemMemoryLevel was missing include of SystemMemory.h.
1928
1929         * platform/graphics/ca/GraphicsLayerCA.cpp:
1930
1931 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1932
1933         Fix iOS build.
1934
1935         * bindings/objc/DOM.mm:
1936         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
1937         * bindings/objc/DOMExtensions.h:
1938         * platform/DragImage.h:
1939
1940 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1941
1942         Fix iOS build.
1943         
1944         Generated DOMTouch* and DOMGesture* files need to be in the project.
1945         Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
1946         
1947         Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
1948
1949         * Configurations/WebCore.xcconfig:
1950         * WebCore.xcodeproj/project.pbxproj:
1951         * bindings/objc/DOMPrivate.h:
1952
1953 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1954
1955         Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
1956
1957         Typo referring to generated name. Should be "iOS" not "IOS".
1958
1959         * rendering/RenderThemeIOS.mm:
1960         (WebCore::RenderThemeIOS::mediaControlsScript):
1961
1962 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1963
1964         Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
1965
1966         The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
1967         it was using GSFonts. Just upstream a newer version of the file. Also
1968         explicitly namespace qualify std::pair.
1969
1970         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1971         (AXAttributeStringSetStyle):
1972
1973 2014-01-10  Jinwoo Song  <jinwoo7.song@samsung.com>
1974
1975         Remove willRespondToTouchEvents() which was used by chromium port
1976         https://bugs.webkit.org/show_bug.cgi?id=126739
1977
1978         Reviewed by Alexey Proskuryakov.
1979
1980         willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
1981         However, it is not used anywhere after chromium port is removed.
1982
1983         * dom/Node.cpp:
1984         * dom/Node.h:
1985
1986 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1987
1988         Fix SystemVersionMac.o for iOS. Unreviewed build fix.
1989
1990         Add missing expected function. Maybe we can avoid including
1991         this file entirely on iOS, there was already a FIXME.
1992
1993         * platform/mac/SystemVersionMac.mm:
1994         (WebCore::systemMarketingVersion):
1995
1996 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1997
1998         Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
1999
2000         Add missing iOS method declarations.
2001
2002         * bindings/js/JSDOMWindowBase.h:
2003
2004 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2005
2006         Fix InputType.o for iOS. Unreviewed build fix.
2007
2008         The RuntimeEnabledFeatures function pointer type should have a
2009         const qualifier, because the implementations are all const.
2010
2011         * html/InputType.cpp:
2012
2013 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2014
2015         Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
2016
2017         Add missing MediaPlayerProxy Objective C methods and forward declarations.
2018
2019         * platform/graphics/mac/MediaPlayerProxy.h:
2020
2021 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2022
2023         Fix FrameSelection.o for iOS. Unreviewed build fix.
2024
2025         r160966 renamed rendererIsEditable to hasEditableStyle.
2026
2027         * editing/FrameSelection.cpp:
2028         (WebCore::FrameSelection::setSelectionFromNone):
2029
2030 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2031
2032         Fix DragData.o for iOS. Unreviewed build fix.
2033
2034         String m_pasteboardName is unused on iOS, so ifdef it out.
2035
2036         * platform/DragData.h:
2037
2038 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2039
2040         Fix FrameIOS.o for iOS. Unreviewed build fix.
2041
2042         Remove stale include to file that no longer exists. It was not needed.
2043
2044         * page/ios/FrameIOS.mm:
2045
2046 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2047
2048         Fix MonthInputType.o for iOS. Unreviewed build fix.
2049
2050         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
2051         the wrong class name lingered. Fix it to be the base class.
2052
2053         * html/TimeInputType.cpp:
2054         (WebCore::TimeInputType::TimeInputType):
2055
2056 2014-01-10  Andy Estes  <aestes@apple.com>
2057
2058         [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
2059
2060         * DerivedSources.make:
2061         * bindings/scripts/preprocessor.pm:
2062         (applyPreprocessor):
2063
2064 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2065
2066         Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
2067         for a non-iOS function.
2068
2069         * bindings/objc/DOMExtensions.h:
2070
2071 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2072
2073         Clean up architectures in xcconfig files
2074         <http://webkit.org/b/126794>
2075
2076         Reviewed by Andy Estes.
2077
2078         * Configurations/Base.xcconfig:
2079         * Configurations/WebCore.xcconfig: Remove armv6.
2080         * DerivedSources.make: Remove armv6, armv7f. Sort.
2081         - Add new arch.
2082
2083 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2084
2085         Fix iOS build
2086
2087         * Configurations/WebCore.xcconfig:
2088         * css/DeprecatedStyleBuilder.cpp:
2089         (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
2090
2091 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2092
2093         Fix iOS build.
2094         
2095         * html/DateTimeLocalInputType.h:
2096         (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
2097         * loader/ios/DiskImageCacheIOS.h:
2098
2099 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2100
2101         iOS build fix: add StyleRareInheritedData::compositionFillColor
2102
2103         * rendering/style/RenderStyle.h:
2104         * rendering/style/StyleRareInheritedData.cpp:
2105         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2106         (WebCore::StyleRareInheritedData::operator==):
2107         * rendering/style/StyleRareInheritedData.h:
2108
2109 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2110
2111         Fix MonthInputType.o for iOS. Unreviewed build fix.
2112
2113         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
2114         BaseMonthInputType typedef was removed. However a use of it lingered.
2115         Changing to match the base class name.
2116
2117         * html/MonthInputType.h:
2118         (WebCore::MonthInputType::MonthInputType):
2119
2120 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2121
2122         Fix RenderButton.o for iOS. Unreviewed build fix.
2123
2124         Missing prototype in header for override of the layout method.
2125
2126         * rendering/RenderButton.h:
2127
2128 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2129
2130         A couple of iOS build fixes.
2131
2132         * accessibility/ios/AXObjectCacheIOS.mm:
2133         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
2134         * html/canvas/CanvasRenderingContext2D.cpp:
2135         (WebCore::CanvasRenderingContext2D::drawImage):
2136
2137 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2138
2139         Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
2140
2141         PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
2142         so remove the stale implementations on iOS. Also, add a notImplemented version
2143         of screenColorProfile, which matches Mac and is unused in WebCore for this port.
2144
2145         * platform/ios/PlatformScreenIOS.mm:
2146         (WebCore::screenColorProfile):
2147
2148 2014-01-10  Anders Carlsson  <andersca@apple.com>
2149
2150         CTTE FrameTree
2151         https://bugs.webkit.org/show_bug.cgi?id=126795
2152
2153         Reviewed by Tim Horton.
2154
2155         * page/Frame.cpp:
2156         (WebCore::Frame::Frame):
2157         * page/FrameTree.cpp:
2158         (WebCore::FrameTree::transferChild):
2159         (WebCore::FrameTree::appendChild):
2160         (WebCore::FrameTree::actuallyAppendChild):
2161         (WebCore::FrameTree::uniqueChildName):
2162         (WebCore::FrameTree::scopedChild):
2163         (WebCore::FrameTree::scopedChildCount):
2164         (WebCore::FrameTree::child):
2165         (WebCore::FrameTree::find):
2166         (WebCore::FrameTree::isDescendantOf):
2167         (WebCore::FrameTree::traverseNext):
2168         (WebCore::FrameTree::traverseNextWithWrap):
2169         (WebCore::FrameTree::traversePreviousWithWrap):
2170         (WebCore::FrameTree::deepLastChild):
2171         (WebCore::FrameTree::top):
2172         * page/FrameTree.h:
2173         (WebCore::FrameTree::FrameTree):
2174
2175 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2176
2177         Fix iOS build.
2178
2179         * loader/ResourceLoader.h:
2180
2181 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2182
2183         Fix iOS build.
2184
2185         * platform/graphics/ImageSource.h:
2186         (WebCore::ImageSource::acceleratedImageDecodingEnabled):
2187         (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
2188
2189 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2190
2191         Unreviewed EFL build fix after r161678.
2192
2193         static_cast a size_t to unsigned long for %lu format string.
2194
2195         * page/Console.cpp:
2196         (WebCore::internalAddMessage):
2197
2198 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2199
2200         Remove the BlackBerry port from trunk
2201         https://bugs.webkit.org/show_bug.cgi?id=126715
2202
2203         Reviewed by Anders Carlsson.
2204
2205         * html/canvas/WebGLRenderingContext.cpp:
2206         (WebCore::WebGLRenderingContext::readPixels):
2207         * platform/graphics/ImageBuffer.cpp:
2208         * platform/graphics/ImageBufferData.h:
2209         * platform/graphics/IntPoint.h:
2210         * platform/graphics/IntRect.h:
2211         * platform/graphics/IntSize.h:
2212         * platform/graphics/MediaPlayer.cpp:
2213         * platform/graphics/NativeImagePtr.h:
2214         * platform/graphics/OpenGLESShims.h:
2215         * platform/graphics/Path.cpp:
2216         (WebCore::Path::addPathForRoundedRect):
2217         * platform/graphics/Path.h:
2218         * platform/graphics/PlatformLayer.h:
2219         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
2220         * platform/graphics/filters/CustomFilterValidatedProgram.h:
2221         * platform/graphics/filters/FilterOperation.h:
2222         * platform/graphics/gpu/DrawingBuffer.cpp:
2223         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
2224         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
2225         (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
2226         * platform/graphics/opengl/Extensions3DOpenGLES.h:
2227         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2228         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
2229         (WebCore::GraphicsContext3D::prepareTexture):
2230         (WebCore::GraphicsContext3D::bindFramebuffer):
2231         (WebCore::GraphicsContext3D::compileShader):
2232         (WebCore::GraphicsContext3D::copyTexImage2D):
2233         (WebCore::GraphicsContext3D::copyTexSubImage2D):
2234         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
2235         (WebCore::GraphicsContext3D::readPixels):
2236         (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
2237         (WebCore::GraphicsContext3D::reshapeFBOs):
2238         * platform/network/NetworkStateNotifier.h:
2239         * platform/network/ResourceHandle.h:
2240         * platform/network/ResourceHandleInternal.h:
2241         * platform/network/ResourceRequestBase.cpp:
2242
2243 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2244
2245         Fix CharsetData.cpp build for iOS
2246         https://bugs.webkit.org/show_bug.cgi?id=126792
2247
2248         Reviewed by Mark Rowe.
2249
2250         CharsetData.cpp should have an empty CharsetTable list for iOS.
2251         Achieve this with an iOS-specific encodings.txt file.
2252
2253         * DerivedSources.make:
2254         * WebCore.xcodeproj/project.pbxproj:
2255         * platform/text/mac/ios-encodings.txt: Added.
2256
2257 2014-01-10  Anders Carlsson  <andersca@apple.com>
2258
2259         CTTE in NavigationScheduler
2260         https://bugs.webkit.org/show_bug.cgi?id=126788
2261
2262         Reviewed by Tim Horton.
2263
2264         * inspector/InspectorInstrumentation.cpp:
2265         (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
2266         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
2267         * inspector/InspectorInstrumentation.h:
2268         (WebCore::InspectorInstrumentation::frameScheduledNavigation):
2269         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
2270         * inspector/InspectorPageAgent.cpp:
2271         (WebCore::InspectorPageAgent::frameScheduledNavigation):
2272         (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
2273         * inspector/InspectorPageAgent.h:
2274         * loader/NavigationScheduler.cpp:
2275         (WebCore::ScheduledNavigation::shouldStartTimer):
2276         (WebCore::ScheduledNavigation::didStartTimer):
2277         (WebCore::ScheduledNavigation::didStopTimer):
2278         (WebCore::NavigationScheduler::NavigationScheduler):
2279         (WebCore::NavigationScheduler::clear):
2280         (WebCore::NavigationScheduler::shouldScheduleNavigation):
2281         (WebCore::NavigationScheduler::scheduleRedirect):
2282         (WebCore::NavigationScheduler::mustLockBackForwardList):
2283         (WebCore::NavigationScheduler::scheduleLocationChange):
2284         (WebCore::NavigationScheduler::scheduleFormSubmission):
2285         (WebCore::NavigationScheduler::scheduleRefresh):
2286         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
2287         (WebCore::NavigationScheduler::timerFired):
2288         (WebCore::NavigationScheduler::schedule):
2289         (WebCore::NavigationScheduler::startTimer):
2290         (WebCore::NavigationScheduler::cancel):
2291         * loader/NavigationScheduler.h:
2292         * page/Frame.cpp:
2293         (WebCore::Frame::Frame):
2294
2295 2014-01-10  Myles C. Maxfield  <mmaxfield@apple.com>
2296
2297         CSS word-spacing property does not obey percentages
2298         https://bugs.webkit.org/show_bug.cgi?id=126674
2299
2300         Reviewed by Simon Fraser.
2301
2302         One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
2303         take percentages (of the width of the space character) in CSS3. In order to
2304         implement this, the datatype must be changed from a float to a Length, which
2305         can hold percentage values. Then, during layout, we can query the width of
2306         the space character and update the Font's word-spacing value appropriately.
2307         However, the RenderStyle still holds on to the Length (as a rare inherited
2308         value).
2309
2310         Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
2311                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
2312                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
2313
2314         * css/CSSComputedStyleDeclaration.cpp:
2315         (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
2316         of style's Length value.
2317         * css/CSSParser.cpp:
2318         (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
2319         parsed the same way.
2320         * css/DeprecatedStyleBuilder.cpp:
2321         (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
2322         CSSValue and set the style's word spacing with it.
2323         (WebCore::ApplyPropertyWordSpacing::createHandler):
2324         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
2325         * page/animation/CSSPropertyAnimation.cpp:
2326         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2327         * rendering/RenderBlockLineLayout.cpp:
2328         (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
2329         of style's Length value.
2330         * rendering/RenderText.cpp:
2331         (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
2332         * rendering/SimpleLineLayout.cpp:
2333         (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
2334         if either the percentage or the length is nonzero.
2335         * rendering/line/BreakingContextInlineHeaders.h:
2336         (WebCore::BreakingContext::handleText): Use Font's computed value instead
2337         of style's Length value.
2338         * rendering/style/RenderStyle.cpp:
2339         (WebCore::RenderStyle::wordSpacing):
2340         (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
2341         percentage values, but hold on to the original Length.
2342         * rendering/style/RenderStyle.h:
2343         * rendering/style/StyleRareInheritedData.cpp:
2344         * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
2345
2346 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2347
2348         Fix the iOS build.
2349
2350         * platform/audio/mac/MediaSessionManagerMac.cpp:
2351
2352 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2353
2354         iOS doesn't have <OpenGL/gl.h>; fix iOS build.
2355
2356         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
2357
2358 2014-01-10  Andy Estes  <aestes@apple.com>
2359
2360         [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
2361
2362         * bindings/scripts/CodeGeneratorObjC.pm:
2363         (ReadPublicInterfaces):
2364
2365 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2366
2367         Web Inspector: Remove unimplemented or static ScriptDebugServer features
2368         https://bugs.webkit.org/show_bug.cgi?id=126784
2369
2370         Reviewed by Timothy Hatcher.
2371
2372         These features are unimplemented in the backend, and unused by the
2373         current frontend. Most deal with features that were supported by v8
2374         and are as yet unimplemented by JSC. If we decide to add such features
2375         we can reimplement without conforming to an old implementation.
2376
2377         * bindings/js/ScriptDebugServer.cpp:
2378         * bindings/js/ScriptDebugServer.h:
2379         * bindings/js/ScriptProfiler.h:
2380         * inspector/InspectorDebuggerAgent.cpp:
2381         (WebCore::InspectorDebuggerAgent::disable):
2382         * inspector/InspectorDebuggerAgent.h:
2383         * inspector/InspectorPageAgent.cpp:
2384         (WebCore::InspectorPageAgent::reload):
2385         (WebCore::InspectorPageAgent::frameNavigated):
2386         * inspector/InspectorPageAgent.h:
2387         * inspector/InspectorProfilerAgent.cpp:
2388         * inspector/InspectorProfilerAgent.h:
2389         * inspector/PageDebuggerAgent.cpp:
2390         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
2391         * inspector/protocol/Page.json:
2392         * inspector/protocol/Profiler.json:
2393
2394 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2395
2396         [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
2397
2398         Fixes the following build error:
2399
2400             WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
2401                 TileMap::iterator end = m_tiles.end();
2402                                   ^
2403
2404         * platform/ios/TileGrid.mm:
2405         (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
2406         variable now that the for loop uses an auto iterator.
2407
2408 2014-01-10  Dean Jackson  <dino@apple.com>
2409
2410         Implement OES texture half float linear
2411         https://bugs.webkit.org/show_bug.cgi?id=125060
2412
2413         Reviewed by Brent Fulgham.
2414
2415         Test: fast/canvas/webgl/oes-texture-half-float-linear.html
2416
2417         * CMakeLists.txt: Add new files.
2418         * DerivedSources.cpp: Ditto.
2419         * DerivedSources.make: Generate new file from IDL.
2420         * GNUmakefile.list.am: Add new files.
2421         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
2422         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
2423         * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear.
2424
2425         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2426         (WebCore::toJS): Map from extension name to native object.
2427
2428         * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
2429         * html/canvas/OESTextureHalfFloatLinear.h: Added.
2430         * html/canvas/OESTextureHalfFloatLinear.idl: Added.
2431
2432         * html/canvas/WebGLExtension.h: Add new enum for the new extension.
2433
2434         * html/canvas/WebGLRenderingContext.cpp:
2435         (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the
2436         context is asked for one.
2437         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the
2438         list of supported extensions. Actually remember to do it this time :)
2439         (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float
2440         extension as well, and update the log message.
2441         * html/canvas/WebGLRenderingContext.h: New extension object.
2442
2443         * html/canvas/WebGLTexture.cpp:
2444         (WebCore::WebGLTexture::WebGLTexture):
2445         (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type.
2446         (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary.
2447         * html/canvas/WebGLTexture.h:
2448
2449         * platform/graphics/Extensions3D.h: Add a comment about the new extension.
2450         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
2451         (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available
2452         when GL_ARB_texture_float is supported, so add the name to the translation.
2453
2454 2014-01-10  Brent Fulgham  <bfulgham@apple.com>
2455
2456         [WebGL] Correct uniform input validation for texture sampler uniform
2457         https://bugs.webkit.org/show_bug.cgi?id=126775
2458
2459         Reviewed by Dean Jackson.
2460
2461         Added fast/canvas/webgl/uniform-samplers-test.html
2462
2463         * html/canvas/WebGLRenderingContext.cpp:
2464         (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
2465
2466 2014-01-10  Manuel Rego Casasnovas  <rego@igalia.com>
2467
2468         [GTK] Unreviewed build fix after r161644.
2469
2470         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
2471         (WebCore::MediaStreamAudioSourceNode::setFormat):
2472
2473 2014-01-10  Anders Carlsson  <andersca@apple.com>
2474
2475         Remove an unused FrameLoader function
2476         https://bugs.webkit.org/show_bug.cgi?id=126785
2477
2478         Reviewed by Beth Dakin.
2479
2480         * WebCore.exp.in:
2481         * loader/FrameLoader.cpp:
2482         (WebCore::FrameLoader::setState):
2483         * loader/FrameLoader.h:
2484
2485 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2486
2487         Remove the BlackBerry port from trunk
2488         https://bugs.webkit.org/show_bug.cgi?id=126715
2489
2490         Reviewed by Anders Carlsson.
2491
2492         * platform/MIMETypeRegistry.cpp:
2493         (WebCore::initializeSupportedImageMIMETypesForEncoding):
2494         * platform/PlatformKeyboardEvent.h:
2495         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2496         * platform/PlatformMouseEvent.h:
2497         * platform/PlatformTouchEvent.h:
2498         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
2499         * platform/PlatformTouchPoint.h:
2500         * platform/ScrollAnimatorNone.cpp:
2501         (WebCore::ScrollAnimator::create):
2502         * platform/URL.cpp:
2503         (WebCore::URL::parse):
2504         (WebCore::portAllowed):
2505         * platform/Widget.h:
2506         * platform/graphics/ANGLEWebKitBridge.h:
2507         * platform/graphics/DisplayRefreshMonitor.cpp:
2508         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
2509         * platform/graphics/DisplayRefreshMonitor.h:
2510         * platform/graphics/FloatPoint.h:
2511         * platform/graphics/FloatRect.h:
2512         * platform/graphics/FloatSize.h:
2513         * platform/graphics/FontCache.h:
2514         * platform/graphics/FontPlatformData.h:
2515         * platform/graphics/GlyphBuffer.h:
2516         * platform/graphics/Gradient.cpp:
2517         * platform/graphics/Gradient.h:
2518         * platform/graphics/GraphicsContext.h:
2519         * platform/graphics/GraphicsContext3D.h:
2520
2521 2014-01-10  Timothy Hatcher  <timothy@apple.com>
2522
2523         Clean up and fix some issues with stdout formatting of console messages.
2524
2525         * Fix URLs not printing line numbers unless column number is > 0.
2526         * Change "CONSOLEAPI" to "CONSOLE" for the source.
2527         * Clean up how console.trace outputs and print URL, line and column for each frame.
2528         * Print "(unknown)" for anonymous and native code call frames.
2529
2530         https://bugs.webkit.org/show_bug.cgi?id=126767
2531
2532         Reviewed by Joseph Pecoraro.
2533
2534         * page/Console.cpp:
2535         (WebCore::internalAddMessage):
2536         * page/PageConsole.cpp:
2537         (WebCore::PageConsole::printSourceURLAndPosition):
2538         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
2539         * page/PageConsole.h:
2540
2541 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2542
2543         [iOS] Fill in missing WebCoreThread function pointers
2544         https://bugs.webkit.org/show_bug.cgi?id=126776
2545
2546         Reviewed by Timothy Hatcher.
2547
2548         * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
2549         (InitWebCoreThreadSystemInterface):
2550
2551 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
2552
2553         Clear unparented tiled layers on memory pressure.
2554         https://bugs.webkit.org/show_bug.cgi?id=126737
2555
2556         Reviewed by Simon Fraser.
2557
2558         TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented
2559         tiles immediately if we are under memory pressure.
2560         
2561         The patch does 3 things to improve the behavior:
2562         1) When the system free memory is low (<35%), reduce the tiling threshold.  This could reduce
2563         the peak memory usage when system is under low memory since we will convert more web layers into
2564         tiled backing.
2565         2) Under memory pressure, immediately clear all unparented tiles.
2566         3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's.
2567
2568         * WebCore.exp.in:
2569         * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler.
2570         * platform/graphics/ca/GraphicsLayerCA.cpp:
2571         (WebCore::GraphicsLayerCA::requiresTiledLayer):  Use a smaller tiling threshold if the system free memory is low.
2572         * platform/graphics/ca/mac/TileController.h:
2573         (WebCore::TileController::numberOfUnparentedTiles):
2574         * platform/graphics/ca/mac/TileController.mm:
2575         (WebCore::TileController::startedNewCohort):
2576         (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles.
2577         * platform/ios/MemoryPressureHandlerIOS.mm:
2578         * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added.
2579         (WebCore::TileControllerMemoryHandler::removeTileController):
2580         (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers):
2581         (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles):
2582         (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until
2583             it reaches the target.
2584         (WebCore::tileControllerMemoryHandler):
2585         * platform/ios/TileControllerMemoryHandlerIOS.h: Added.
2586         (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler):
2587
2588 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2589
2590         [CSS Blending] Log blending as a layer creation reason in the WI
2591         https://bugs.webkit.org/show_bug.cgi?id=126159
2592
2593         Reviewed by Timothy Hatcher.
2594
2595         * inspector/InspectorLayerTreeAgent.cpp:
2596         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
2597         * inspector/protocol/LayerTree.json:
2598
2599 2014-01-10  Andy Estes  <aestes@apple.com>
2600
2601         Fix some iOS build errors during bindings generation.
2602
2603         * bindings/objc/PublicDOMInterfaces.h: Included
2604         WebKitAdditions/PublicDOMInterfacesIOS.h and change
2605         -[DOMRGBColor color] to return a CGColorRef on iOS.
2606
2607 2014-01-10  Timothy Hatcher  <timothy@apple.com>
2608
2609         Prevent some resources from showing up in Web Inspector as years in duration.
2610
2611         No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
2612
2613         https://bugs.webkit.org/show_bug.cgi?id=126760
2614
2615         Reviewed by Joseph Pecoraro.
2616
2617         * inspector/InspectorInstrumentation.cpp:
2618         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
2619         Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
2620
2621 2014-01-10  Dirk Schulze  <krit@webkit.org>
2622
2623         Make clipping path from basic-shapes relative to <box> value
2624         https://bugs.webkit.org/show_bug.cgi?id=126206
2625
2626         Reviewed by Simon Fraser.
2627
2628         Tests: css3/masking/clip-path-circle-border-box.html
2629                css3/masking/clip-path-circle-bounding-box.html
2630                css3/masking/clip-path-circle-content-box.html
2631                css3/masking/clip-path-circle-margin-box.html
2632                css3/masking/clip-path-circle-padding-box.html
2633
2634         * rendering/RenderLayer.cpp:
2635         (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes
2636             and use different reference boxes to size the clipping path.
2637
2638 2014-01-10  Youenn Fablet  <youennf@gmail.com>
2639
2640
2641         Correctly set XHR loadend attributes (loaded and total).
2642         https://bugs.webkit.org/show_bug.cgi?id=120828
2643
2644         Reviewed by Alexey Proskuryakov.
2645         
2646         Added correct initialization of lengthComputable, loaded and total attributes 
2647         to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
2648
2649         XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge 
2650         of m_loaded and m_total values with this patch.
2651         
2652         Code refactoring to handle event dispatching in case of error in a single manner.
2653         XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
2654         XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
2655         
2656         Fixed assertion issues over bug 120828 patch
2657
2658         Tests: http/tests/xmlhttprequest/loadstart-event-init.html
2659                http/tests/xmlhttprequest/onabort-progressevent-attributes.html
2660                http/tests/xmlhttprequest/onload-progressevent-attributes.html
2661                http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
2662                http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
2663
2664         * xml/XMLHttpRequest.cpp:
2665         (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec 
2666         (WebCore::XMLHttpRequest::createRequest):
2667         (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
2668         (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
2669         (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
2670         (WebCore::XMLHttpRequest::didSendData):
2671         (WebCore::XMLHttpRequest::didReceiveData):
2672         (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
2673         (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
2674         * xml/XMLHttpRequest.h:
2675         * 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...) 
2676         (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
2677         (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. 
2678         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
2679         (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
2680         (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
2681         (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
2682         (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
2683         * 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
2684         * xml/XMLHttpRequestUpload.cpp:
2685         (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
2686         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
2687         * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
2688
2689 2014-01-10  Bear Travis  <betravis@adobe.com>
2690
2691         [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
2692         https://bugs.webkit.org/show_bug.cgi?id=126713
2693
2694         Reviewed by Dirk Schulze.
2695
2696         Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
2697         by having parseBasicShape return a CSSPrimitiveValue reference.
2698
2699         Refactoring, no new tests.
2700
2701         * css/CSSParser.cpp:
2702         (WebCore::CSSParser::parseShapeProperty):
2703         (WebCore::CSSParser::parseClipPath):
2704         (WebCore::CSSParser::parseBasicShape):
2705         * css/CSSParser.h:
2706
2707 2014-01-10  Piotr Grad  <p.grad@samsung.com>
2708
2709         Possible crash in ApplicationCache::removeResource.
2710         https://bugs.webkit.org/show_bug.cgi?id=126695
2711
2712         Reviewed by Alexey Proskuryakov.
2713
2714         No new tests.
2715
2716         Iterator variable was used after it was removed.
2717
2718         * loader/appcache/ApplicationCache.cpp:
2719         (WebCore::ApplicationCache::removeResource):
2720
2721 2014-01-10  Daniel Bates  <dabates@apple.com>
2722
2723         Another build fix for the Production Mac build following <http://trac.webkit.org/changeset/161638>
2724         (https://bugs.webkit.org/show_bug.cgi?id=126698)
2725
2726         Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the
2727         list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS
2728         so that we generate the DOM and JS bindings for these IDLs.
2729
2730         * DerivedSources.make:
2731
2732 2014-01-10  Anders Carlsson  <andersca@apple.com>
2733
2734         Remove supportMultipleWindows setting
2735         https://bugs.webkit.org/show_bug.cgi?id=126772
2736
2737         Reviewed by Beth Dakin.
2738
2739         This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port
2740         and is unused by everyone else so get rid of it.
2741
2742         * loader/FrameLoader.cpp:
2743         (WebCore::createWindow):
2744         * page/ContextMenuController.cpp:
2745         (WebCore::openNewWindow):
2746         * page/Settings.in:
2747
2748 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2749
2750         Remove the BlackBerry port from trunk
2751         https://bugs.webkit.org/show_bug.cgi?id=126715
2752
2753         Reviewed by Anders Carlsson.
2754
2755         * dom/TouchEvent.cpp:
2756         (WebCore::TouchEvent::TouchEvent):
2757         (WebCore::TouchEvent::initTouchEvent):
2758         * dom/TouchEvent.h:
2759         * dom/ViewportArguments.cpp:
2760         * dom/ViewportArguments.h:
2761         * history/HistoryItem.h:
2762         * loader/PingLoader.cpp:
2763         (WebCore::PingLoader::loadImage):
2764         (WebCore::PingLoader::sendPing):
2765         (WebCore::PingLoader::sendViolationReport):
2766         * loader/appcache/ApplicationCacheGroup.cpp:
2767         (WebCore::ApplicationCacheGroup::createResourceHandle):
2768         * loader/cache/CachedResource.cpp:
2769         (WebCore::CachedResource::load):
2770         * loader/icon/IconLoader.cpp:
2771         (WebCore::IconLoader::startLoading):
2772         * page/NavigatorBase.cpp:
2773         * page/Settings.cpp:
2774         * page/scrolling/ScrollingCoordinator.cpp:
2775         (WebCore::ScrollingCoordinator::create):
2776         * platform/Cursor.cpp:
2777         * platform/Cursor.h:
2778         (WebCore::Cursor::Cursor):
2779         * platform/DragData.h:
2780         * platform/DragImage.h:
2781         * plugins/PluginDatabase.cpp:
2782         (WebCore::PluginDatabase::defaultPluginDirectories):
2783         (WebCore::PluginDatabase::isPreferredPluginDirectory):
2784         * rendering/RenderLayerBacking.cpp:
2785         (WebCore::RenderLayerBacking::paintsIntoWindow):
2786         * rendering/RenderObject.cpp:
2787         (WebCore::RenderObject::shouldRespectImageOrientation):
2788         * testing/Internals.cpp:
2789         (WebCore::Internals::getCurrentCursorInfo):
2790         * workers/DefaultSharedWorkerRepository.cpp:
2791         (WebCore::SharedWorkerScriptLoader::load):
2792         * workers/Worker.cpp:
2793         (WebCore::Worker::create):
2794         * workers/WorkerGlobalScope.cpp:
2795         (WebCore::WorkerGlobalScope::importScripts):
2796         * workers/WorkerScriptLoader.cpp:
2797         (WebCore::WorkerScriptLoader::createResourceRequest):
2798         * workers/WorkerScriptLoader.h:
2799         * xml/XMLHttpRequest.cpp:
2800         (WebCore::XMLHttpRequest::createRequest):
2801
2802 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2803
2804         Remove the BlackBerry port from trunk
2805         https://bugs.webkit.org/show_bug.cgi?id=126715
2806
2807         Reviewed by Anders Carlsson.
2808
2809         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
2810         (WebCore::initProtocolHandlerWhitelist):
2811         * UseJSC.cmake:
2812         * bindings/generic/RuntimeEnabledFeatures.cpp:
2813         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
2814         * bindings/js/GCController.cpp:
2815         (WebCore::GCController::GCController):
2816         (WebCore::GCController::garbageCollectSoon):
2817         * bindings/js/GCController.h:
2818
2819 2014-01-10  Daniel Bates  <dabates@apple.com>
2820
2821         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
2822         (https://bugs.webkit.org/show_bug.cgi?id=126698)
2823
2824         Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
2825
2826         * Configurations/Base.xcconfig:
2827
2828 2014-01-09  Andy Estes  <aestes@apple.com>
2829
2830         [iOS] Upstream iOS changes to MigrateHeaders.make
2831         https://bugs.webkit.org/show_bug.cgi?id=126731
2832
2833         Reviewed by David Kilzer.
2834
2835         * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
2836         Private that will later be migrated by WebKit.
2837
2838 2014-01-10  Daniel Bates  <dabates@apple.com>
2839
2840         Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
2841         (https://bugs.webkit.org/show_bug.cgi?id=126698)
2842
2843         Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
2844
2845         * Configurations/WebCore.xcconfig:
2846
2847 2014-01-10  Anders Carlsson  <andersca@apple.com>
2848
2849         Add a missing include.
2850
2851         * Modules/webdatabase/DatabaseManager.h:
2852
2853 2014-01-10  Anders Carlsson  <andersca@apple.com>
2854
2855         Use STL threading primitives in DatabaseDetails and DatabaseManager
2856         https://bugs.webkit.org/show_bug.cgi?id=126759
2857
2858         Reviewed by Geoffrey Garen.
2859
2860         * Modules/webdatabase/DatabaseDetails.h:
2861         (WebCore::DatabaseDetails::DatabaseDetails):
2862         (WebCore::DatabaseDetails::threadID):
2863         * Modules/webdatabase/DatabaseManager.cpp:
2864         (WebCore::DatabaseManager::existingDatabaseContextFor):
2865         (WebCore::DatabaseManager::registerDatabaseContext):
2866         (WebCore::DatabaseManager::unregisterDatabaseContext):
2867         (WebCore::DatabaseManager::didConstructDatabaseContext):
2868         (WebCore::DatabaseManager::didDestructDatabaseContext):
2869         (WebCore::DatabaseManager::addProposedDatabase):
2870         (WebCore::DatabaseManager::removeProposedDatabase):
2871         (WebCore::DatabaseManager::fullPathForDatabase):
2872         (WebCore::DatabaseManager::detailsForNameAndOrigin):
2873         * Modules/webdatabase/DatabaseManager.h:
2874
2875 2014-01-10  Commit Queue  <commit-queue@webkit.org>
2876
2877         Unreviewed, rolling out r161629.
2878         http://trac.webkit.org/changeset/161629
2879         https://bugs.webkit.org/show_bug.cgi?id=126762
2880
2881         Fails svg/custom/conditional-processing-2.html (Requested by
2882         ap on #webkit).
2883
2884         * svg/SVGSwitchElement.cpp:
2885         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
2886         * svg/SVGTests.cpp:
2887         (WebCore::SVGTests::hasExtension):
2888         (WebCore::SVGTests::isValid):
2889
2890 2014-01-10  ChangSeok Oh  <changseok.oh@collabora.com>
2891
2892         Unreviewed build fix since r161589.
2893
2894         The changeset causes a compile failure with --no-svg.
2895
2896         * platform/graphics/FontFastPath.cpp:
2897         (WebCore::Font::drawGlyphBuffer):
2898
2899 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
2900
2901         [WebGL] Removing unnecessary pointer checks
2902         https://bugs.webkit.org/show_bug.cgi?id=124046
2903
2904         Reviewed by Brent Fulgham.
2905
2906         We do not need to check for a null array three times in
2907         the same call. Let's just do it once!
2908
2909         No new tests. Covered by existing ones.
2910
2911         * html/canvas/WebGLBuffer.cpp:
2912         (WebCore::WebGLBuffer::associateBufferData):
2913
2914 2014-01-10  Daniel Bates  <dabates@apple.com>
2915
2916         Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
2917         (https://bugs.webkit.org/show_bug.cgi?id=126698)
2918
2919         Reviewed by David Kilzer.
2920
2921         * bindings/scripts/preprocessor.pm:
2922         (applyPreprocessor):
2923
2924 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
2925
2926         [WebGL] Wrong condition order in the if statement
2927         https://bugs.webkit.org/show_bug.cgi?id=125000
2928
2929         Reviewed by Brent Fulgham.
2930
2931         We should only pay the cost of string comparison once. The
2932         current logic requires a string comparison every time we
2933         pass through the function. Instead, by reordering the statements
2934         we can short-circuit through the boolean test after the initial
2935         setup is complete.
2936
2937         No new tests. No behaviour changes.
2938
2939         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
2940         (WebCore::Extensions3DOpenGLES::supportsExtension):
2941
2942 2014-01-10  Anders Carlsson  <andersca@apple.com>
2943
2944         CTTE in AudioContext::AutoLocker
2945         https://bugs.webkit.org/show_bug.cgi?id=126758
2946
2947         Reviewed by Antti Koivisto.
2948
2949         * Modules/webaudio/AudioBasicInspectorNode.cpp:
2950         (WebCore::AudioBasicInspectorNode::connect):
2951         (WebCore::AudioBasicInspectorNode::disconnect):
2952         * Modules/webaudio/AudioBufferSourceNode.cpp:
2953         (WebCore::AudioBufferSourceNode::setBuffer):
2954         * Modules/webaudio/AudioContext.cpp:
2955         (WebCore::AudioContext::refNode):
2956         (WebCore::AudioContext::deleteMarkedNodes):
2957         (WebCore::AudioContext::removeMarkedSummingJunction):
2958         * Modules/webaudio/AudioContext.h:
2959         (WebCore::AudioContext::AutoLocker::AutoLocker):
2960         (WebCore::AudioContext::AutoLocker::~AutoLocker):
2961         * Modules/webaudio/AudioNode.cpp:
2962         (WebCore::AudioNode::connect):
2963         (WebCore::AudioNode::disconnect):
2964         (WebCore::AudioNode::setChannelCount):
2965         (WebCore::AudioNode::setChannelCountMode):
2966         (WebCore::AudioNode::setChannelInterpretation):
2967         (WebCore::AudioNode::enableOutputsIfNecessary):
2968         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
2969         (WebCore::MediaElementAudioSourceNode::setFormat):
2970         * Modules/webaudio/WaveShaperNode.cpp:
2971         (WebCore::WaveShaperNode::setOversample):
2972
2973 2014-01-10  Antti Koivisto  <antti@apple.com>
2974
2975         Use element iterators more
2976         https://bugs.webkit.org/show_bug.cgi?id=126756
2977
2978         Reviewed by Anders Carlsson.
2979
2980         * dom/VisitedLinkState.cpp:
2981         (WebCore::VisitedLinkState::invalidateStyleForAllLinks):
2982         (WebCore::VisitedLinkState::invalidateStyleForLink):
2983         * html/HTMLMeterElement.cpp:
2984         (WebCore::HTMLMeterElement::renderMeter):
2985         * html/HTMLProgressElement.cpp:
2986         (WebCore::HTMLProgressElement::renderProgress):
2987         * html/shadow/ContentDistributor.cpp:
2988         (WebCore::ContentDistributor::ensureInsertionPointList):
2989         * style/StyleResolveTree.cpp:
2990
2991 2014-01-10  Daniel Bates  <dabates@apple.com>
2992
2993         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
2994         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2995
2996         * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
2997
2998 2014-01-10  Daniel Bates  <dabates@apple.com>
2999
3000         Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
3001         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3002
3003         Substitute tab characters for space characters.
3004
3005         * DerivedSources.make:
3006
3007 2014-01-10  Anders Carlsson  <andersca@apple.com>
3008
3009         DOMWindow::showModalDialog should use std::function
3010         https://bugs.webkit.org/show_bug.cgi?id=126753
3011
3012         Reviewed by Antti Koivisto.
3013
3014         * bindings/js/JSDOMWindowCustom.cpp:
3015         (WebCore::DialogHandler::dialogCreated):
3016         (WebCore::JSDOMWindow::showModalDialog):
3017         * page/DOMWindow.cpp:
3018         (WebCore::DOMWindow::createWindow):
3019         (WebCore::DOMWindow::showModalDialog):
3020         * page/DOMWindow.h:
3021
3022 2014-01-10  Daniel Bates  <dabates@apple.com>
3023
3024         [iOS] Upstream WebCore and Tools miscellaneous changes
3025         https://bugs.webkit.org/show_bug.cgi?id=126698
3026
3027         Reviewed by David Kilzer.
3028
3029         * Configurations/Base.xcconfig:
3030         * Configurations/WebCore.xcconfig:
3031         * Configurations/WebCoreTestSupport.xcconfig:
3032         * Configurations/iOS.xcconfig: Added.
3033         * DerivedSources.make:
3034         * English.lproj/Localizable.strings:
3035         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: Copied from Source/WebCore/editing/TextAffinity.h.
3036         (WebCore::stringForPlaybackTargetAvailability):
3037         (WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent):
3038         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: Added.
3039         (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit):
3040         (WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent):
3041         (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
3042         (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability):
3043         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl: Copied from Source/WebCore/editing/DeleteButton.h.
3044         * Modules/geolocation/Geolocation.cpp:
3045         (WebCore::Geolocation::Geolocation):
3046         (WebCore::Geolocation::canSuspend):
3047         (WebCore::Geolocation::suspend):
3048         (WebCore::Geolocation::resume):
3049         (WebCore::Geolocation::resumeTimerFired):
3050         (WebCore::Geolocation::resetAllGeolocationPermission):
3051         (WebCore::Geolocation::stop):
3052         (WebCore::Geolocation::setIsAllowed):
3053         (WebCore::Geolocation::positionChanged):
3054         (WebCore::Geolocation::setError):
3055         * Modules/geolocation/Geolocation.h:
3056         * Modules/geolocation/NavigatorGeolocation.cpp:
3057         (WebCore::NavigatorGeolocation::resetAllGeolocationPermission):
3058         * Modules/geolocation/NavigatorGeolocation.h:
3059         * Modules/speech/SpeechSynthesis.cpp:
3060         (WebCore::SpeechSynthesis::SpeechSynthesis):
3061         (WebCore::SpeechSynthesis::speak):
3062         * Modules/speech/SpeechSynthesis.h:
3063         (WebCore::SpeechSynthesis::userGestureRequiredForSpeechStart):
3064         (WebCore::SpeechSynthesis::removeBehaviorRestriction):
3065         * Modules/webaudio/AudioContext.cpp:
3066         * Modules/webaudio/AudioContext.h:
3067         * Modules/webaudio/AudioScheduledSourceNode.cpp:
3068         * Modules/webdatabase/Database.cpp:
3069         * Modules/webdatabase/DatabaseBackendBase.cpp:
3070         (WebCore::DatabaseBackendBase::performOpenAndVerify):
3071         (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded):
3072         * Modules/webdatabase/DatabaseContext.cpp:
3073         (WebCore::DatabaseContext::DatabaseContext):
3074         (WebCore::DatabaseContext::databaseThread):
3075         (WebCore::DatabaseContext::setPaused):
3076         * Modules/webdatabase/DatabaseContext.h:
3077         * Modules/webdatabase/DatabaseManagerClient.h:
3078         * Modules/webdatabase/DatabaseTask.cpp:
3079         (WebCore::DatabaseTask::performTask):
3080         (WebCore::Database::DatabaseTransactionTask::shouldPerformWhilePaused):
3081         * Modules/webdatabase/DatabaseTask.h:
3082         * Modules/webdatabase/DatabaseThread.cpp:
3083         (WebCore::DatabaseThread::DatabaseThread):
3084         (WebCore::DatabaseThread::requestTermination):
3085         (WebCore::DatabaseUnpauseTask::create):
3086         (WebCore::DatabaseUnpauseTask::shouldPerformWhilePaused):
3087         (WebCore::DatabaseUnpauseTask::DatabaseUnpauseTask):
3088         (WebCore::DatabaseUnpauseTask::doPerformTask):
3089         (WebCore::DatabaseUnpauseTask::debugTaskName):
3090         (WebCore::DatabaseThread::setPaused):
3091         (WebCore::DatabaseThread::handlePausedQueue):
3092         (WebCore::DatabaseThread::databaseThread):
3093         * Modules/webdatabase/DatabaseThread.h:
3094         * Modules/webdatabase/DatabaseTracker.cpp:
3095         (WebCore::DatabaseTracker::setQuota):
3096         (WebCore::DatabaseTracker::deleteOrigin):
3097         (WebCore::DatabaseTracker::deleteDatabase):
3098         (WebCore::DatabaseTracker::deleteDatabaseFile):
3099         (WebCore::DatabaseTracker::removeDeletedOpenedDatabases):
3100         (WebCore::isZeroByteFile):
3101         (WebCore::DatabaseTracker::deleteDatabaseFileIfEmpty):
3102         (WebCore::DatabaseTracker::openDatabaseMutex):
3103         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskWillBeScheduled):
3104         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskDidFinish):
3105         (WebCore::DatabaseTracker::setDatabasesPaused):
3106         * Modules/webdatabase/DatabaseTracker.h:
3107         * Modules/webdatabase/SQLTransactionBackend.cpp:
3108         (WebCore::SQLTransactionBackend::shouldPerformWhilePaused):
3109         * Modules/webdatabase/SQLTransactionBackend.h:
3110         * Resources/DictationPhraseWithAlternativesDot.png: Added.
3111         * Resources/DictationPhraseWithAlternativesDot@2x.png: Added.
3112         * Resources/SpellingDot.png: Added.
3113         * Resources/SpellingDot@2x.png: Added.
3114         * Resources/decrementArrow.tiff: Added.
3115         * Resources/hScrollControl_left.png: Added.
3116         * Resources/hScrollControl_middle.png: Added.
3117         * Resources/hScrollControl_right.png: Added.
3118         * Resources/incrementArrow.tiff: Added.
3119         * Resources/markedLeft.png: Added.
3120         * Resources/markedMiddle.png: Added.
3121         * Resources/markedRight.png: Added.
3122         * Resources/vScrollControl_bottom.png: Added.
3123         * Resources/vScrollControl_middle.png: Added.
3124         * Resources/vScrollControl_top.png: Added.
3125         * WebCore.xcodeproj/project.pbxproj:
3126         * bindings/js/GCController.cpp:
3127         (WebCore::GCController::garbageCollectNow):
3128         (WebCore::GCController::releaseExecutableMemory):
3129         * bindings/js/GCController.h:
3130         * bindings/js/JSCallbackData.h:
3131         (WebCore::JSCallbackData::~JSCallbackData):
3132         * bindings/js/JSDOMWindowBase.cpp:
3133         (WebCore::JSDOMWindowBase::supportsProfiling):
3134         (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
3135         (WebCore::JSDOMWindowBase::commonVM):
3136         (WebCore::JSDOMWindowBase::commonVMExists):
3137         (WebCore::JSDOMWindowBase::commonVMInternal):
3138         * bindings/js/JSDOMWindowCustom.cpp:
3139         (WebCore::JSDOMWindow::touch):
3140         (WebCore::JSDOMWindow::touchList):
3141         * bindings/js/JSDeviceOrientationEventCustom.cpp:
3142         (WebCore::JSDeviceOrientationEvent::webkitCompassHeading):
3143         (WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy):
3144         (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
3145         * bindings/js/JSMainThreadExecState.h:
3146         * bindings/js/JSTouchCustom.cpp:
3147         * bindings/js/JSTouchListCustom.cpp:
3148         * bindings/js/PageScriptDebugServer.cpp:
3149         (WebCore::PageScriptDebugServer::didContinue):
3150         * bindings/js/ScriptController.cpp:
3151         (WebCore::ScriptController::initializeThreading):
3152         * bindings/js/ScriptDebugServer.cpp:
3153         (WebCore::ScriptDebugServer::handlePause):
3154         * bindings/js/ios/TouchConstructors.cpp: Added.
3155         * bindings/objc/DOM.mm:
3156         (WebCore::wkQuadFromFloatQuad):
3157         (WebCore::kit):
3158         (WebCore::min4):
3159         (WebCore::max4):
3160         (WebCore::emptyQuad):
3161         (-[WKQuadObject initWithQuad:]):
3162         (-[WKQuadObject quad]):
3163         (-[WKQuadObject boundingBox]):
3164         (-[DOMNode boundingBox]):
3165         (-[DOMNode absoluteQuad]):
3166         (-[DOMNode absoluteQuadAndInsideFixedPosition:]):
3167         (-[DOMNode boundingBoxUsingTransforms]):
3168         (-[DOMNode lineBoxQuads]):
3169         (-[DOMNode _linkElement]):
3170         (-[DOMNode hrefURL]):
3171         (-[DOMNode hrefTarget]):
3172         (-[DOMNode hrefFrame]):
3173         (-[DOMNode hrefLabel]):
3174         (-[DOMNode hrefTitle]):
3175         (-[DOMNode boundingFrame]):
3176         (-[DOMNode innerFrameQuad]):
3177         (-[DOMNode computedFontSize]):
3178         (-[DOMNode nextFocusNode]):
3179         (-[DOMNode previousFocusNode]):
3180         (-[DOMRange boundingBox]):
3181         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
3182         (-[DOMElement _font]):
3183         (-[DOMHTMLLinkElement _mediaQueryMatchesForOrientation:]):
3184         (-[DOMHTMLLinkElement _mediaQueryMatches]):
3185         * bindings/objc/DOMEvents.h:
3186         * bindings/objc/DOMEvents.mm:
3187         (kitClass):
3188         * bindings/objc/DOMExtensions.h:
3189         * bindings/objc/DOMHTML.mm:
3190         (-[DOMHTMLElement scrollYOffset]):
3191         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:]):
3192         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
3193         (-[DOMHTMLElement absolutePosition::::]):
3194         (-[DOMHTMLInputElement _autocapitalizeType]):
3195         (-[DOMHTMLTextAreaElement _autocapitalizeType]):
3196         (-[DOMHTMLInputElement setValueWithChangeEvent:]):
3197         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]):
3198         * bindings/objc/DOMInternal.h:
3199         * bindings/objc/DOMInternal.mm:
3200         (wrapperCacheLock):
3201         (getDOMWrapper):
3202         (addDOMWrapper):
3203         (removeDOMWrapper):
3204         * bindings/objc/DOMPrivate.h:
3205         * bindings/objc/DOMUIKitExtensions.h: Added.
3206         * bindings/objc/DOMUIKitExtensions.mm: Added.
3207         * bindings/objc/PublicDOMInterfaces.h:
3208         * bindings/scripts/CodeGeneratorJS.pm:
3209         (GenerateHeaderContentHeader):
3210         (GenerateImplementationContentHeader):
3211         (GenerateHeader):
3212         (GenerateImplementation):
3213         (GenerateCallbackImplementation):
3214         * bindings/scripts/CodeGeneratorObjC.pm:
3215         (ReadPublicInterfaces):
3216         (GetClassName):
3217         (IsCoreFoundationType):
3218         (GetObjCType):
3219         (AddIncludesForType):
3220         (GenerateHeader):
3221         (GenerateImplementation):
3222         (WriteData):
3223         * bindings/scripts/IDLAttributes.txt:
3224         * bindings/scripts/preprocessor.pm:
3225         (applyPreprocessor):
3226         * bridge/objc/objc_class.mm:
3227         (JSC::Bindings::ObjcClass::fieldNamed):
3228         * bridge/objc/objc_instance.mm:
3229         * config.h:
3230         * dom/Document.cpp:
3231         (WebCore::Document::addAutoSizingNode):
3232         * dom/Document.h:
3233         * dom/Document.idl:
3234         * dom/ios/TouchEvents.cpp: Added.
3235         * editing/ApplyStyleCommand.cpp:
3236         (WebCore::ApplyStyleCommand::applyBlockStyle):
3237         * editing/CompositeEditCommand.cpp:
3238         (WebCore::EditCommandComposition::unapply):
3239         (WebCore::CompositeEditCommand::apply):
3240         (WebCore::CompositeEditCommand::inputText):
3241         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
3242         (WebCore::CompositeEditCommand::moveParagraphs):
3243         * editing/CompositeEditCommand.h:
3244         * editing/DeleteButton.h:
3245         * editing/DeleteButtonController.cpp:
3246         (WebCore::DeleteButtonController::enable):
3247         (WebCore::DeleteButtonController::disable):
3248         * editing/DeleteSelectionCommand.cpp:
3249         (WebCore::DeleteSelectionCommand::doApply):
3250         * editing/DeleteSelectionCommand.h:
3251         * editing/EditAction.h:
3252         * editing/EditCommand.h:
3253         (WebCore::EditCommand::isInsertTextCommand):
3254         * editing/EditingStyle.cpp:
3255         * editing/Editor.cpp:
3256         (WebCore::ClearTextCommand::ClearTextCommand):
3257         (WebCore::ClearTextCommand::editingAction):
3258         (WebCore::ClearTextCommand::CreateAndApply):
3259         (WebCore::Editor::handleTextEvent):
3260         (WebCore::Editor::clearText):
3261         (WebCore::Editor::insertDictationPhrases):
3262         (WebCore::Editor::setDictationPhrasesAsChildOfElement):
3263         (WebCore::Editor::confirmMarkedText):
3264         (WebCore::Editor::setTextAsChildOfElement):
3265         (WebCore::Editor::notifyComponentsOnChangedSelection):
3266         (WebCore::Editor::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
3267         (WebCore::Editor::copy):
3268         (WebCore::Editor::setBaseWritingDirection):
3269         (WebCore::Editor::setComposition):
3270         (WebCore::Editor::showSpellingGuessPanel):
3271         (WebCore::Editor::markMisspellingsAfterTypingToWord):
3272         (WebCore::Editor::markMisspellingsOrBadGrammar):
3273         (WebCore::Editor::changeBackToReplacedString):
3274         (WebCore::Editor::updateMarkersForWordsAffectedByEditing):
3275         (WebCore::Editor::setIgnoreCompositionSelectionChange):
3276         (WebCore::Editor::changeSelectionAfterCommand):
3277         (WebCore::Editor::shouldChangeSelection):
3278         (WebCore::Editor::respondToChangedSelection):
3279         (WebCore::Editor::resolveTextCheckingTypeMask):
3280         * editing/Editor.h:
3281         * editing/EditorCommand.cpp:
3282         (WebCore::executeClearText):
3283         (WebCore::enabledCopy):
3284         (WebCore::enabledCut):
3285         (WebCore::enabledClearText):
3286         (WebCore::createCommandMap):
3287         * editing/FrameSelection.cpp:
3288         (WebCore::FrameSelection::FrameSelection):
3289         (WebCore::FrameSelection::setSelection):
3290         (WebCore::FrameSelection::modifyExtendingRight):
3291         (WebCore::FrameSelection::modifyExtendingForward):
3292         (WebCore::FrameSelection::modifyMovingRight):
3293         (WebCore::FrameSelection::modifyMovingForward):
3294         (WebCore::FrameSelection::modifyExtendingLeft):
3295         (WebCore::FrameSelection::modifyExtendingBackward):
3296         (WebCore::FrameSelection::modifyMovingLeft):
3297         (WebCore::FrameSelection::modifyMovingBackward):
3298         (WebCore::FrameSelection::setSelectedRange):
3299         (WebCore::FrameSelection::focusedOrActiveStateChanged):
3300         (WebCore::FrameSelection::updateAppearance):
3301         (WebCore::FrameSelection::shouldDeleteSelection):
3302         (WebCore::FrameSelection::revealSelection):
3303         (WebCore::FrameSelection::setSelectionFromNone):
3304         (WebCore::FrameSelection::shouldChangeSelection):
3305         (WebCore::FrameSelection::expandSelectionToElementContainingCaretSelection):
3306         (WebCore::FrameSelection::elementRangeContainingCaretSelection):
3307         (WebCore::FrameSelection::expandSelectionToWordContainingCaretSelection):
3308         (WebCore::FrameSelection::wordRangeContainingCaretSelection):
3309         (WebCore::FrameSelection::expandSelectionToStartOfWordContainingCaretSelection):
3310         (WebCore::FrameSelection::characterInRelationToCaretSelection):
3311         (WebCore::FrameSelection::characterBeforeCaretSelection):
3312         (WebCore::FrameSelection::characterAfterCaretSelection):
3313         (WebCore::FrameSelection::wordOffsetInRange):
3314         (WebCore::FrameSelection::spaceFollowsWordInRange):
3315         (WebCore::FrameSelection::selectionAtDocumentStart):
3316         (WebCore::FrameSelection::selectionAtSentenceStart):
3317         (WebCore::FrameSelection::selectionAtWordStart):
3318         (WebCore::FrameSelection::rangeByMovingCurrentSelection):
3319         (WebCore::FrameSelection::rangeByExtendingCurrentSelection):
3320         (WebCore::FrameSelection::selectRangeOnElement):
3321         (WebCore::FrameSelection::wordSelectionContainingCaretSelection):
3322         (WebCore::FrameSelection::actualSelectionAtSentenceStart):
3323         (WebCore::FrameSelection::rangeByAlteringCurrentSelection):
3324         (WebCore::FrameSelection::clearCurrentSelection):
3325         (WebCore::FrameSelection::setCaretBlinks):
3326         (WebCore::FrameSelection::setCaretColor):
3327         * editing/FrameSelection.h:
3328         (WebCore::FrameSelection::suppressCloseTyping):
3329         (WebCore::FrameSelection::restoreCloseTyping):
3330         (WebCore::FrameSelection::setUpdateAppearanceEnabled):
3331         (WebCore::FrameSelection::suppressScrolling):
3332         (WebCore::FrameSelection::restoreScrolling):
3333         * editing/InsertIntoTextNodeCommand.cpp:
3334         (WebCore::InsertIntoTextNodeCommand::doReapply):
3335         * editing/InsertIntoTextNodeCommand.h:
3336         * editing/InsertTextCommand.h:
3337         * editing/ReplaceSelectionCommand.cpp:
3338         (WebCore::ReplaceSelectionCommand::doApply):
3339         * editing/TextAffinity.h:
3340         * editing/TextCheckingHelper.cpp:
3341         * editing/TextGranularity.h:
3342         * editing/TextIterator.cpp:
3343         (WebCore::isRendererReplacedElement):
3344         * editing/TypingCommand.cpp:
3345         (WebCore::TypingCommand::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
3346         (WebCore::TypingCommand::markMisspellingsAfterTyping):
3347         (WebCore::TypingCommand::deleteKeyPressed):
3348         (WebCore::TypingCommand::forwardDeleteKeyPressed):
3349         (WebCore::FriendlyEditCommand::setEndingSelection):
3350         (WebCore::TypingCommand::setEndingSelectionOnLastInsertCommand):
3351         * editing/TypingCommand.h:
3352         * editing/VisiblePosition.h:
3353         (WebCore::operator<):
3354         (WebCore::operator>):
3355         (WebCore::operator<=):
3356         (WebCore::operator>=):
3357         * editing/VisibleSelection.cpp:
3358         (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity):
3359         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
3360         * editing/VisibleUnits.cpp:
3361         (WebCore::previousBoundary):
3362         (WebCore::nextBoundary):
3363         (WebCore::startOfDocument):
3364         (WebCore::endOfDocument):
3365         (WebCore::directionIsDownstream):
3366         (WebCore::atBoundaryOfGranularity):
3367         (WebCore::withinTextUnitOfGranularity):
3368         (WebCore::nextCharacterBoundaryInDirection):
3369         (WebCore::nextWordBoundaryInDirection):
3370         (WebCore::nextSentenceBoundaryInDirection):
3371         (WebCore::nextLineBoundaryInDirection):
3372         (WebCore::nextParagraphBoundaryInDirection):
3373         (WebCore::nextDocumentBoundaryInDirection):
3374         (WebCore::positionOfNextBoundaryOfGranularity):
3375         (WebCore::enclosingTextUnitOfGranularity):
3376         (WebCore::distanceBetweenPositions):
3377         (WebCore::wordRangeFromPosition):
3378         (WebCore::closestWordBoundaryForPosition):
3379         * editing/VisibleUnits.h:
3380         * editing/ios/DictationCommandIOS.cpp: Added.
3381         * editing/ios/DictationCommandIOS.h: Added.
3382         (WebCore::DictationCommandIOS::create):
3383         (WebCore::DictationCommandIOS::editingAction):
3384         * editing/mac/FrameSelectionMac.mm:
3385         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
3386         * fileapi/AsyncFileStream.cpp:
3387         * generate-export-file: Added.
3388         * inspector/InspectorCounters.h:
3389         * inspector/InspectorFrontendHost.h:
3390         * make-export-file-generator:
3391         * plugins/PluginPackage.h:
3392         * plugins/PluginViewBase.h:
3393         (WebCore::PluginViewBase::willProvidePluginLayer):
3394         (WebCore::PluginViewBase::attachPluginLayer):
3395         (WebCore::PluginViewBase::detachPluginLayer):
3396         * style/StyleResolveForDocument.cpp:
3397         (WebCore::Style::resolveForDocument):
3398         * style/StyleResolveTree.cpp:
3399         (WebCore::Style::elementImplicitVisibility):
3400         * testing/Internals.cpp:
3401         (WebCore::Internals::getCurrentCursorInfo):
3402         (WebCore::Internals::isSelectPopupVisible):
3403         * workers/WorkerThread.cpp:
3404         (WebCore::WorkerThread::workerThread):
3405
3406 2014-01-10  Daniel Bates  <dabates@apple.com>
3407
3408         Fix the iOS build after <http://trac.webkit.org/changeset/161589>
3409         (https://bugs.webkit.org/show_bug.cgi?id=126654)
3410
3411         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
3412         (WebCore::MediaPlayerPrivateIOS::engineDescription): Adding missing return keyword.
3413
3414 2014-01-10  Andrei Bucur  <abucur@adobe.com>
3415
3416         [CSS Regions] Remove unused CSSParser::parseFlowThread
3417         https://bugs.webkit.org/show_bug.cgi?id=126749
3418
3419         Reviewed by Antti Koivisto.
3420
3421         There are two versions of CSSParser::parseFlowThread. Remove the unused one:
3422         bool parseFlowThread(const String& flowName);
3423
3424         Tests: No tests, code cleanup.
3425
3426         * css/CSSParser.cpp:
3427         * css/CSSParser.h:
3428
3429 2014-01-10  Alex Christensen  <achristensen@webkit.org>
3430
3431         [WinCairo] Build fix after r161589.
3432         https://bugs.webkit.org/show_bug.cgi?id=126747
3433
3434         Reviewed by Anders Carlsson.
3435
3436         * platform/network/ResourceHandle.cpp:
3437         Include NotImplemented.h for all platforms.
3438
3439 2014-01-10  Anders Carlsson  <andersca@apple.com>
3440
3441         Convert some for loops over to range-based for
3442         https://bugs.webkit.org/show_bug.cgi?id=126752
3443
3444         Reviewed by Antti Koivisto.
3445
3446         * inspector/InspectorApplicationCacheAgent.cpp:
3447         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
3448         * loader/appcache/ApplicationCache.cpp:
3449         (WebCore::ApplicationCache::clearStorageID):
3450         * loader/appcache/ApplicationCacheGroup.cpp:
3451         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
3452         (WebCore::ApplicationCacheGroup::clearStorageID):
3453         * loader/appcache/ApplicationCacheHost.cpp:
3454         (WebCore::ApplicationCacheHost::fillResourceList):
3455         * loader/appcache/ApplicationCacheResource.cpp:
3456         (WebCore::ApplicationCacheResource::estimatedSizeInStorage):
3457         * loader/appcache/ApplicationCacheStorage.cpp:
3458         (WebCore::ApplicationCacheStorage::cacheGroupForURL):
3459         * loader/archive/ArchiveFactory.cpp:
3460         (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
3461         * page/animation/AnimationController.cpp:
3462         (WebCore::AnimationControllerPrivate::styleAvailable):
3463         (WebCore::AnimationControllerPrivate::startTimeResponse):
3464
3465 2014-01-10  Anders Carlsson  <andersca@apple.com>
3466
3467         Tighten up two functions in the inspector code
3468         https://bugs.webkit.org/show_bug.cgi?id=126751
3469
3470         Reviewed by Antti Koivisto.
3471
3472         * inspector/InspectorInstrumentation.cpp:
3473         (WebCore::InspectorInstrumentation::frameStartedLoadingImpl):
3474         (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl):
3475         * inspector/InspectorInstrumentation.h:
3476         (WebCore::InspectorInstrumentation::frameStartedLoading):
3477         (WebCore::InspectorInstrumentation::frameStoppedLoading):
3478         * inspector/InspectorPageAgent.cpp:
3479         (WebCore::InspectorPageAgent::frameStartedLoading):
3480         (WebCore::InspectorPageAgent::frameStoppedLoading):
3481         * inspector/InspectorPageAgent.h:
3482
3483 2014-01-10  Antti Koivisto  <antti@apple.com>
3484
3485         Crash when mutating SVG text with transform
3486         https://bugs.webkit.org/show_bug.cgi?id=126744
3487
3488         Reviewed by Dirk Schulze.
3489
3490         Test: svg/custom/mutation-text-transform-crash.html
3491         
3492         Text-transform property triggers subtreeTextDidChange when an SVG text renderer is
3493         being added to the render tree. The function assumes the child is already fully in the tree
3494         but in this case we are still in middle of adding it.
3495
3496         * rendering/svg/RenderSVGText.cpp:
3497         (WebCore::RenderSVGText::subtreeTextDidChange):
3498         
3499             Bail out if the changed RenderSVGInlineText can't be found from m_layoutAttributes.
3500             This means that subtreeChildWasAdded hasn't been invoked yet for it and there is nothing
3501             to update. The required updates will happen in subtreeChildWasAdded.
3502
3503 2014-01-10  Frédéric Wang  <fred.wang@free.fr>
3504
3505         [SVG] Accept HTML and MathML namespaces as valid requiredExtensions
3506         https://bugs.webkit.org/show_bug.cgi?id=88188
3507
3508         Reviewed by Dirk Schulze.
3509
3510         When HTML and MathML are used as foreign objects of an SVG image, it is
3511         important for Web authors to be able to specify a fallback content for
3512         SVG-only readers or browsers without MathML support. We rely on the
3513         requiredExtensions for that purpose and we use the XHTML/MathML
3514         namespaces as suggested in SVG Tiny 1.2 and implemented in Gecko.
3515
3516         Tests: svg/custom/conditional-processing-1.svg
3517                svg/custom/conditional-processing-2.html
3518                svg/dom/SVGTests.html
3519
3520         * svg/SVGSwitchElement.cpp: Remove an incorrect FIXME comment and replace it with a reference to bug 74749.
3521         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3522         * svg/SVGTests.cpp: Check if the&