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