948a1f74bd2e7161e056ea734d944150a11e5641
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-02-09  Zan Dobersek  <zdobersek@igalia.com>
2
3         Manage MessagePort, MessagePortChannel and friends through std::unique_ptr
4         https://bugs.webkit.org/show_bug.cgi?id=128467
5
6         Reviewed by Andreas Kling.
7
8         Use std::unique_ptr instead of OwnPtr to manage MessagePort, MessagePortArray, MessagePortChannel
9         and MessagePortChannelArray objects.
10
11         * bindings/js/JSMessageEventCustom.cpp:
12         (WebCore::handleInitMessageEvent):
13         * dom/MessageEvent.cpp:
14         (WebCore::MessageEvent::MessageEvent):
15         (WebCore::MessageEvent::initMessageEvent):
16         * dom/MessageEvent.h:
17         (WebCore::MessageEvent::create):
18         * dom/MessagePort.cpp:
19         (WebCore::MessagePort::postMessage):
20         (WebCore::MessagePort::disentangle):
21         (WebCore::MessagePort::entangle):
22         (WebCore::MessagePort::dispatchMessages):
23         (WebCore::MessagePort::disentanglePorts):
24         (WebCore::MessagePort::entanglePorts):
25         * dom/MessagePort.h:
26         * dom/MessagePortChannel.h:
27         * dom/default/PlatformMessagePortChannel.cpp:
28         (WebCore::PlatformMessagePortChannel::EventData::EventData):
29         (WebCore::MessagePortChannel::createChannel):
30         (WebCore::MessagePortChannel::postMessageToRemote):
31         (WebCore::MessagePortChannel::tryGetMessageFromRemote):
32         * dom/default/PlatformMessagePortChannel.h:
33         (WebCore::PlatformMessagePortChannel::EventData::channels):
34         * page/DOMWindow.cpp:
35         (WebCore::PostMessageTimer::PostMessageTimer):
36         (WebCore::PostMessageTimer::event):
37         (WebCore::DOMWindow::postMessage):
38         * workers/DedicatedWorkerGlobalScope.cpp:
39         (WebCore::DedicatedWorkerGlobalScope::postMessage):
40         * workers/DefaultSharedWorkerRepository.cpp:
41         (WebCore::SharedWorkerConnectTask::create):
42         (WebCore::SharedWorkerConnectTask::SharedWorkerConnectTask):
43         (WebCore::SharedWorkerConnectTask::performTask):
44         (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader):
45         (WebCore::SharedWorkerScriptLoader::notifyFinished):
46         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
47         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
48         * workers/DefaultSharedWorkerRepository.h:
49         * workers/SharedWorker.cpp:
50         (WebCore::SharedWorker::create):
51         * workers/SharedWorkerGlobalScope.cpp:
52         (WebCore::createConnectEvent):
53         * workers/SharedWorkerRepository.cpp:
54         (WebCore::SharedWorkerRepository::connect):
55         * workers/SharedWorkerRepository.h:
56         * workers/Worker.cpp:
57         (WebCore::Worker::postMessage):
58         * workers/WorkerGlobalScopeProxy.h:
59         * workers/WorkerMessagingProxy.cpp:
60         (WebCore::MessageWorkerGlobalScopeTask::create):
61         (WebCore::MessageWorkerGlobalScopeTask::MessageWorkerGlobalScopeTask):
62         (WebCore::MessageWorkerGlobalScopeTask::performTask):
63         (WebCore::MessageWorkerTask::create):
64         (WebCore::MessageWorkerTask::MessageWorkerTask):
65         (WebCore::MessageWorkerTask::performTask):
66         (WebCore::WorkerMessagingProxy::postMessageToWorkerObject):
67         (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
68         * workers/WorkerMessagingProxy.h:
69         * workers/WorkerObjectProxy.h:
70
71 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
72
73         Cleanup the interface of FrameSelection
74         https://bugs.webkit.org/show_bug.cgi?id=128481
75
76         Reviewed by Andreas Kling.
77
78         Removed FrameSelection::end() as intended in r163232, and the stale declaration of
79         paintDragCaret() which was supposed to be removed when we extracted DragCaretController.
80
81         Renamed caretRenderer() to caretRendererWithoutUpdatingLayout() to clarify the contract
82         as the only caller of this function is RenderBlock::paintCaret. Also renamed bounds()
83         to selectionBounds() to make it more easily identifiable / grep'able.
84
85         In addition, made recomputeCaretRect() and invalidateCaretRect() private.
86
87         * WebCore.exp.in:
88         * editing/FrameSelection.cpp:
89         (WebCore::FrameSelection::caretRendererWithoutUpdatingLayout):
90         (WebCore::FrameSelection::selectionBounds):
91         (WebCore::FrameSelection::revealSelection):
92         * editing/FrameSelection.h:
93         (WebCore::FrameSelection::setCaretVisible):
94         * page/DragController.cpp:
95         (WebCore::dragLocForSelectionDrag):
96         * page/FrameSnapshotting.cpp:
97         (WebCore::snapshotSelection):
98         * page/win/FrameWin.cpp:
99         (WebCore::imageFromSelection):
100         * rendering/RenderBlock.cpp:
101         (WebCore::RenderBlock::paintCaret):
102         * testing/Internals.cpp:
103         (WebCore::Internals::selectionBounds):
104
105 2014-02-08  Dan Bernstein  <mitz@apple.com>
106
107         Reverted part of r163734, because the assertion it enabled still fails when running
108         loader/load-defer-resume-crash.html
109
110         * loader/DocumentLoader.cpp:
111         (WebCore::DocumentLoader::dataReceived):
112
113 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
114
115         EFL build fix after r163729.
116
117         * Modules/indexeddb/IDBDatabase.cpp:
118         (WebCore::IDBDatabase::version):
119
120 2014-02-08  Dan Bernstein  <mitz@apple.com>
121
122         Remove outdated workarounds in DocumentLoader::dataReceived
123         https://bugs.webkit.org/show_bug.cgi?id=128465
124
125         Reviewed by Andreas Kling.
126
127         * loader/DocumentLoader.cpp:
128         (WebCore::DocumentLoader::dataReceived):
129
130 2014-02-08  Alexey Proskuryakov  <ap@apple.com>
131
132         Remove some unused functions from SerializedScriptValue
133         https://bugs.webkit.org/show_bug.cgi?id=128407
134
135         Reviewed by Oliver Hunt.
136
137         Removed more unused code, particularly in API helpers. Renamed one serialize()
138         function to create(), because it does the same thing as other create() functions.
139
140         * Modules/indexeddb/IDBObjectStore.cpp:
141         (WebCore::IDBObjectStore::put):
142         * bindings/js/SerializedScriptValue.cpp:
143         (WebCore::SerializedScriptValue::create):
144         (WebCore::SerializedScriptValue::deserialize):
145         * bindings/js/SerializedScriptValue.h:
146
147 2014-02-08  Brady Eidson  <beidson@apple.com>
148
149         IDB: storage/indexeddb/mozilla/versionchange-abort.html fails
150         <rdar://problem/16018887> and https://bugs.webkit.org/show_bug.cgi?id=128442
151
152         Reviewed by Dan Bernstein.
153
154         Tested by storage/indexeddb/mozilla/versionchange-abort.html (and probably others)
155
156         * Modules/indexeddb/IDBDatabase.cpp:
157         (WebCore::IDBDatabase::version): If the version is NoIntVersion, return DefaultIntVersion to script.
158
159 2014-02-08  Brady Eidson  <beidson@apple.com>
160
161         IDB: storage/indexeddb/mozilla/cursors.html fails
162         <rdar://problem/16017998> and https://bugs.webkit.org/show_bug.cgi?id=128423
163
164         Reviewed by Dan Bernstein.
165
166         Tested by storage/indexeddb/mozilla/cursors.html (And probably others)
167
168         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
169         (WebCore::OpenCursorOperation::perform): Distinguish between an error while opening the cursor
170           and opening a cursor that points to no records.
171
172 2014-02-08  Andreas Kling  <akling@apple.com>
173
174         Remove unused ChromeClient::layoutUpdated().
175         <https://webkit.org/b/128470>
176
177         Nobody listens for this callback anymore so remove it.
178
179         Reviewed by Anders Carlsson.
180
181         * page/Chrome.cpp:
182         * page/Chrome.h:
183         * page/ChromeClient.h:
184         * page/FrameView.cpp:
185         (WebCore::FrameView::layout):
186
187 2014-02-08  Dan Bernstein  <mitz@apple.com>
188
189         Stop using PLATFORM(MAC) in WebCore except where it means “OS X but not iOS”
190         https://bugs.webkit.org/show_bug.cgi?id=128464
191
192         Reviewed by Anders Carlsson.
193
194         * Modules/webaudio/AudioContext.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
195         (WebCore::AudioContext::constructCommon):
196         * accessibility/AccessibilityNodeObject.cpp: Ditto.
197         (WebCore::AccessibilityNodeObject::visibleText):
198         * accessibility/AccessibilityObject.h: Ditto.
199         * accessibility/AccessibilityRenderObject.cpp: Ditto.
200         (WebCore::AccessibilityRenderObject::clickPoint):
201         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
202         (WebCore::AccessibilityRenderObject::addChildren):
203         * accessibility/AccessibilityRenderObject.h: Ditto.
204         * bindings/js/JSInspectorFrontendHostCustom.cpp:
205         (WebCore::JSInspectorFrontendHost::platform): Made it explicit that this function returns
206         "mac" when built for iOS.
207         * bindings/js/ScriptController.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
208         (WebCore::ScriptController::ScriptController):
209         * bindings/js/ScriptController.h: Ditto.
210         * crypto/CryptoKey.cpp: Changed PLATFORM(MAC) to OS(DARWIN) && !PLATFORM(EFL) &&
211         !PLATFORM(GTK) when checking for whether to use CoreCrypto.
212         * crypto/keys/CryptoKeyRSA.h: Ditto.
213         * dom/Clipboard.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
214         * dom/Document.cpp: Ditto.
215         (WebCore::Document::implicitClose):
216         * dom/KeyboardEvent.h: Ditto.
217         * editing/Editor.cpp: Ditto.
218         (WebCore::Editor::cut):
219         (WebCore::Editor::copy):
220         (WebCore::Editor::copyImage):
221         * editing/Editor.h: Ditto.
222         * editing/FrameSelection.h: Ditto.
223         * editing/TypingCommand.cpp: Ditto.
224         (WebCore::TypingCommand::typingAddedToOpenCommand):
225         * history/HistoryItem.h: Ditto.
226         * html/HTMLMediaElement.cpp: Ditto.
227         (WebCore::HTMLMediaElement::parseAttribute):
228         * html/HTMLMediaElement.h: Ditto.
229         * html/HTMLPlugInElement.cpp: Ditto.
230         (WebCore::registeredPluginReplacements):
231         * html/HTMLPlugInImageElement.cpp: Ditto.
232         (WebCore::HTMLPlugInImageElement::setDisplayState):
233         * html/HTMLSelectElement.cpp: Ditto.
234         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
235         * html/shadow/MediaControlElements.cpp: Ditto.
236         (WebCore::MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsButtonElement):
237         (WebCore::MediaControlToggleClosedCaptionsButtonElement::defaultEventHandler):
238         * html/shadow/MediaControlElements.h: Ditto.
239         * inspector/InspectorIndexedDBAgent.cpp: Ditto.
240         * loader/CookieJar.cpp: Ditto.
241         * loader/DocumentLoader.cpp: Ditto.
242         (WebCore::DocumentLoader::dataReceived):
243         * loader/DocumentLoader.h: Ditto.
244         (WebCore::DocumentLoader::didTellClientAboutLoad):
245         * loader/EmptyClients.h: Ditto.
246         * loader/FrameLoader.cpp:
247         (WebCore::FrameLoader::loadArchive): Added !PLATFORM(IOS) around Mac-only workaround.
248         (WebCore::FrameLoader::defaultObjectContentType): Changed PLATFORM(MAC) to PLATFORM(COCOA).
249         (WebCore::FrameLoader::subresourceCachePolicy): Ditto.
250         * loader/ResourceBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around functions that
251         are implemented using Foundation.
252         * loader/ResourceLoadScheduler.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
253         (WebCore::ResourceLoadScheduler::scheduleLoad):
254         * loader/ResourceLoader.cpp: Ditto.
255         (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
256         * loader/ResourceLoader.h: Ditto.
257         * loader/archive/cf/LegacyWebArchive.cpp: Ditto.
258         * loader/cache/CachedResource.cpp: Changed PLATFORM(MAC) to USE(FOUNDATION) around function
259         that is implemented using other USE(FOUNDATION)-guarded code.
260         * loader/cache/CachedResource.h: Ditto.
261         * page/Chrome.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
262         * page/ChromeClient.h: Ditto.
263         * page/ContextMenuClient.h: Ditto.
264         * page/ContextMenuController.cpp: Ditto.
265         (WebCore::ContextMenuController::contextMenuItemSelected):
266         (WebCore::ContextMenuController::createAndAppendFontSubMenu):
267         (WebCore::ContextMenuController::createAndAppendSpellingAndGrammarSubMenu):
268         (WebCore::ContextMenuController::populate):
269         (WebCore::ContextMenuController::checkOrEnableIfNeeded):
270         * page/DragClient.h: Ditto.
271         * page/DragController.cpp: Ditto.
272         (WebCore::dragLocForDHTMLDrag):
273         (WebCore::dragLocForSelectionDrag):
274         (WebCore::DragController::startDrag):
275         (WebCore::DragController::doImageDrag):
276         * page/EditorClient.h: Ditto.
277         * page/EventHandler.cpp: Ditto.
278         (WebCore::EventHandler::EventHandler):
279         (WebCore::EventHandler::handleMouseDraggedEvent):
280         (WebCore::EventHandler::logicalScrollRecursively):
281         (WebCore::EventHandler::clearDragState):
282         (WebCore::EventHandler::handleWheelEvent):
283         (WebCore::EventHandler::defaultWheelEventHandler):
284         (WebCore::EventHandler::keyEvent):
285         (WebCore::EventHandler::eventInvertsTabsToLinksClientCallResult):
286         * page/EventHandler.h: Ditto.
287         * page/FrameView.cpp: Ditto.
288         (WebCore::FrameView::layout):
289         * page/Page.h: Ditto.
290         * page/Settings.cpp: Ditto.
291         * page/Settings.h: Ditto.
292         * page/scrolling/ScrollingCoordinator.cpp: Ditto.
293         * page/scrolling/ScrollingCoordinator.h: Ditto.
294         * page/scrolling/ScrollingStateNode.h: Removed unused #include.
295         * page/scrolling/ScrollingThread.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
296         (WebCore::ScrollingThread::createThreadIfNeeded):
297         * page/scrolling/ScrollingThread.h: Ditto.
298         * platform/network/cf/ResourceRequest.h: Added !PLATFORM(IOS) around
299         applyWebArchiveHackForMail.
300         * platform/network/cf/ResourceRequestCFNet.cpp:
301         (WebCore::ResourceRequest::applyWebArchiveHackForMail): Ditto.
302         * platform/network/mac/ResourceRequestMac.mm:
303         (WebCore::ResourceRequest::applyWebArchiveHackForMail): Ditto.
304         * plugins/PluginViewNone.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA)
305         * rendering/RenderBox.cpp: Ditto.
306         (WebCore::RenderBox::logicalScroll):
307         * rendering/RenderLayerBacking.cpp: Ditto.
308         (WebCore::RenderLayerBacking::createGraphicsLayer):
309         (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
310         * rendering/RenderMenuList.h: Ditto.
311         * rendering/RenderText.cpp: Ditto.
312         (WebCore::RenderText::previousOffsetForBackwardDeletion):
313         * rendering/break_lines.cpp: Removed unused #include.
314         * testing/js/WebCoreTestSupport.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
315         * xml/XSLStyleSheetLibxslt.cpp: Changed PLATFORM(MAC) to OS(DARWIN) && !PLATFORM(EFL) &&
316         !PLATFORM(GTK) around soft-linking libxslt.
317         * xml/XSLTExtensions.cpp: Ditto.
318         * xml/XSLTProcessorLibxslt.cpp: Ditto.
319         * xml/XSLTUnicodeSort.cpp: Ditto.
320
321 2014-02-08  Andreas Kling  <akling@apple.com>
322
323         Remove unused ChromeClient::formStateDidChange().
324         <https://webkit.org/b/128469>
325
326         Nobody listens for this callback anymore so remove it and stop
327         spamming no-op virtual dispatches in forms code.
328
329         Reviewed by Anders Carlsson.
330
331         * html/FileInputType.cpp:
332         (WebCore::FileInputType::setFiles):
333         * html/HTMLFormControlElementWithState.cpp:
334         * html/HTMLFormControlElementWithState.h:
335         * html/HTMLInputElement.cpp:
336         (WebCore::HTMLInputElement::updateType):
337         (WebCore::HTMLInputElement::setValue):
338         (WebCore::HTMLInputElement::setValueFromRenderer):
339         * html/HTMLSelectElement.cpp:
340         (WebCore::HTMLSelectElement::updateListBoxSelection):
341         (WebCore::HTMLSelectElement::selectOption):
342         * html/HTMLTextAreaElement.cpp:
343         (WebCore::HTMLTextAreaElement::updateValue):
344         (WebCore::HTMLTextAreaElement::setValueCommon):
345         * loader/EmptyClients.h:
346         * page/ChromeClient.h:
347
348 2014-02-08  Chris J. Shull  <chrisjshull@gmail.com>
349
350         Web Inspector: Find evaluates attributes in a case sensitive manner
351         https://bugs.webkit.org/show_bug.cgi?id=128405
352
353         Reviewed by Timothy Hatcher.
354
355         Changed matchesAttribute to ignore case.
356
357         Updated existing test with additional cases: 
358         inspector-protocol/dom/dom-search.html
359
360         * inspector/InspectorNodeFinder.cpp:
361         (WebCore::InspectorNodeFinder::matchesAttribute):
362
363 2014-02-08  Andreas Kling  <akling@apple.com>
364
365         Remove unused FrameLoaderClient::dispatchWillOpenSocketStream().
366         <https://webkit.org/b/128472>
367
368         Nobody listens for this callback anymore so remove it.
369
370         Reviewed by Anders Carlsson.
371
372         * Modules/websockets/WebSocketChannel.cpp:
373         (WebCore::WebSocketChannel::willOpenSocketStream):
374         * loader/FrameLoaderClient.h:
375
376 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
377
378         Split UserTriggered into FireSelectEvent and RevealSelection for selection options
379         https://bugs.webkit.org/show_bug.cgi?id=128441
380
381         Reviewed by Darin Adler.
382
383         Split UserTriggered by FireSelectEvent and RevealSelection for selection options.
384
385         Also added defaultSetSelectionOptions() to abstract away the default options.
386
387         * editing/AlternativeTextController.cpp:
388         (WebCore::AlternativeTextController::respondToUnappliedSpellCorrection):
389         * editing/Editor.cpp:
390         (WebCore::Editor::unappliedEditing):
391         (WebCore::Editor::reappliedEditing):
392         * editing/FrameSelection.cpp:
393         (WebCore::FrameSelection::moveTo):
394         (WebCore::FrameSelection::setSelectionByMouseIfDifferent): UserTriggered | DoNotRevealSelection
395         is replaced by FireSelectEvent.
396         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance): Check options & FireSelectEvent
397         instead of options & UserTriggered.
398         (WebCore::FrameSelection::setSelection): Check options & RevealSelection instead of
399         options & UserTriggered && !(options & DoNotRevealSelection).
400         (WebCore::FrameSelection::prepareForDestruction):
401         (WebCore::FrameSelection::setBase):
402         (WebCore::FrameSelection::setExtent):
403         (WebCore::FrameSelection::selectAll):
404         (WebCore::FrameSelection::wordSelectionContainingCaretSelection):
405         * editing/FrameSelection.h:
406         (WebCore::FrameSelection::defaultSetSelectionOptions): Added.
407         * editing/SpellingCorrectionCommand.cpp:
408         (WebCore::SpellingCorrectionCommand::doApply):
409         * html/HTMLTextFormControlElement.cpp:
410         (WebCore::HTMLTextFormControlElement::selectionChanged): Renamed the argument.
411         * html/HTMLTextFormControlElement.h:
412
413 2014-02-08  Zan Dobersek  <zdobersek@igalia.com>
414
415         Move TreeScope, IdTargetObserverRegistry to std::unique_ptr
416         https://bugs.webkit.org/show_bug.cgi?id=127276
417
418         Reviewed by Andreas Kling.
419
420         Replace uses of OwnPtr in the TreeScope and IdTargetObserverRegistry classes with std::unique_ptr.
421
422         * dom/IdTargetObserverRegistry.cpp:
423         (WebCore::IdTargetObserverRegistry::addObserver):
424         * dom/IdTargetObserverRegistry.h:
425         (WebCore::IdTargetObserverRegistry::IdTargetObserverRegistry):
426         * dom/TreeScope.cpp:
427         (WebCore::TreeScope::TreeScope):
428         (WebCore::TreeScope::destroyTreeScopeData):
429         (WebCore::TreeScope::addElementById):
430         (WebCore::TreeScope::addElementByName):
431         (WebCore::TreeScope::addImageMap):
432         (WebCore::TreeScope::labelElementForId):
433         * dom/TreeScope.h:
434         (WebCore::TreeScope::shouldCacheLabelsByForAttribute):
435
436 2014-02-08  Anders Carlsson  <andersca@apple.com>
437
438         Slight CTTE in PingLoader
439         https://bugs.webkit.org/show_bug.cgi?id=128462
440
441         Reviewed by Dan Bernstein.
442
443         PingLoader always wants a non-null frame.
444
445         * html/HTMLAnchorElement.cpp:
446         (WebCore::HTMLAnchorElement::sendPings):
447         * html/parser/XSSAuditorDelegate.cpp:
448         (WebCore::XSSAuditorDelegate::didBlockScript):
449         * inspector/InspectorInstrumentation.h:
450         (WebCore::InspectorInstrumentation::continueAfterPingLoader):
451         * loader/PingLoader.cpp:
452         (WebCore::PingLoader::loadImage):
453         (WebCore::PingLoader::sendPing):
454         (WebCore::PingLoader::sendViolationReport):
455         (WebCore::PingLoader::createPingLoader):
456         (WebCore::PingLoader::PingLoader):
457         * loader/PingLoader.h:
458         * loader/cache/CachedResourceLoader.cpp:
459         (WebCore::CachedResourceLoader::requestImage):
460         * page/ContentSecurityPolicy.cpp:
461         (WebCore::ContentSecurityPolicy::reportViolation):
462
463 2014-02-08  Dan Bernstein  <mitz@apple.com>
464
465         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
466         https://bugs.webkit.org/show_bug.cgi?id=128456
467
468         Reviewed by Anders Carlsson.
469
470         Updated fast/css/getComputedStyle and svg/css results.
471
472         * css/CSSComputedStyleDeclaration.cpp:
473         (WebCore::ComputedStyleExtractor::propertyValue): Removed CSSPropertyWebKitHighlight case.
474         * css/CSSParser.cpp:
475         (WebCore::CSSParser::parseValue): Ditto.
476         * css/CSSPropertyNames.in: Removed -webkit-highlight.
477         * css/DeprecatedStyleBuilder.cpp:
478         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Removed
479         CSSPropertyWebKitHighlight handler.
480         * css/StyleResolver.cpp:
481         (WebCore::StyleResolver::applyProperty): Removed CSSPropertyWebKitHighlight case.
482         * page/Chrome.cpp: Removed customHighlightRect and paintCustomHighlight.
483         * page/ChromeClient.h: Ditto.
484         * rendering/InlineTextBox.cpp:
485         (WebCore::InlineTextBox::paint): Removed painting custom highlight.
486         * rendering/InlineTextBox.h:
487         * rendering/RenderBlockLineLayout.cpp:
488         (WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns): Removed adding overflow for custom
489         highlights.
490         * rendering/RenderBox.cpp: Removed paintCustomHighlight.
491         * rendering/RenderBox.h:
492         * rendering/RenderImage.cpp:
493         (WebCore::RenderImage::paintReplaced): Removed painting custom highlight.
494         * rendering/RenderListMarker.cpp:
495         (WebCore::RenderListMarker::paint): Ditto.
496         * rendering/RenderSnapshottedPlugIn.cpp:
497         (WebCore::RenderSnapshottedPlugIn::paintSnapshot): Ditto.
498         * rendering/RenderWidget.cpp:
499         (WebCore::RenderWidget::paint): Ditto.
500         * rendering/RootInlineBox.cpp:
501         (WebCore::RootInlineBox::paint): Ditto.
502         * rendering/RootInlineBox.h:
503         * rendering/style/RenderStyle.cpp:
504         (WebCore::RenderStyle::changeRequiresLayout): Removed highlight comparison.
505         * rendering/style/RenderStyle.h:
506         * rendering/style/StyleRareInheritedData.cpp:
507         (WebCore::StyleRareInheritedData::StyleRareInheritedData): Removed initializer.
508         (WebCore::StyleRareInheritedData::operator==): Removed highlight comparison.
509         * rendering/style/StyleRareInheritedData.h: Removed highlight member variable.
510
511 2014-02-08  Dan Bernstein  <mitz@apple.com>
512
513         One more build fix fix.
514
515         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
516         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
517
518 2014-02-08  Dan Bernstein  <mitz@apple.com>
519
520         More (and more correct) iOS build fix after r163712.
521
522         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
523         (AXAttributedStringAppendText):
524         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
525         * page/ios/FrameIOS.mm:
526         (WebCore::Frame::wordsInCurrentParagraph):
527
528 2014-02-08  Dan Bernstein  <mitz@apple.com>
529
530         iOS build fix after r163712.
531
532         * page/ios/FrameIOS.mm:
533         (WebCore::Frame::indexCountOfWordPrecedingSelection):
534         (WebCore::Frame::wordsInCurrentParagraph):
535
536 2014-02-08  Darin Adler  <darin@apple.com>
537
538         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
539         https://bugs.webkit.org/show_bug.cgi?id=128233
540
541         Reviewed by Anders Carlsson.
542
543         * accessibility/AccessibilityNodeObject.cpp: Removed unneeded TextIterator.h include.
544
545         * accessibility/AccessibilityObject.cpp:
546         (WebCore::AccessibilityObject::hasMisspelling): Updated to use StringView for checkSpelling.
547
548         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
549         (AXAttributeStringSetSpelling): Changed to take a StringView.
550         (AXAttributedStringAppendText): Ditto.
551         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]): Pass StringView.
552
553         * editing/Editor.cpp:
554         (WebCore::Editor::misspelledWordAtCaretOrRange): Pass StringView.
555         (WebCore::Editor::misspelledSelectionString): Ditto.
556         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
557
558         * editing/TextCheckingHelper.cpp:
559         (WebCore::findGrammaticalErrors): Renamed this function. Changed to use StringView.
560         (WebCore::findMisspellings): Use StringView.
561         (WebCore::TextCheckingHelper::findFirstMisspelling): Ditto. Also separated out assertions
562         that were asserting multiple things with &&.
563         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar): Ditto.
564         (WebCore::TextCheckingHelper::findFirstGrammarDetail): Ditto.
565         (WebCore::TextCheckingHelper::findFirstBadGrammar): Ditto.
566         (WebCore::TextCheckingHelper::isUngrammatical): Ditto.
567         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange): Ditto.
568         (WebCore::checkTextOfParagraph): Ditto.
569
570         * editing/TextCheckingHelper.h: Made TextCheckingParagraph::text public. Deleted
571         TextCheckingParagraph::textDeprecatedCharacters. Added comments about additional
572         TextCheckingParagraph refinements. Changed checkTextOfParagraph to take a client
573         reference instead of pointer and StringView instead of characters pointer with length.
574
575         * editing/TextIterator.cpp:
576         (WebCore::TextIterator::appendTextToStringBuilder): Use data members directly,
577         rather than using functions, since we already checked m_textCharacters for null.
578         (WebCore::CharacterIterator::string): Use text() instead of characters().
579         (WebCore::WordAwareIterator::WordAwareIterator): Removed initialization of
580         m_previousText now that it's a StringView rather than a pointer.
581         (WebCore::WordAwareIterator::advance): Use TextIterator::text instead of
582         TextIterator::characters. Also added a FIXME about a fundamental problem
583         with the implementation of this class!
584         (WebCore::WordAwareIterator::length): Updated for m_previousText change.
585         (WebCore::WordAwareIterator::text): Replaced WordAwareIterator::characters with this.
586         (WebCore::SearchBuffer::append): Changed to take a StringView.
587         (WebCore::SearchBuffer::prependContext): Ditto.
588         (WebCore::SearchBuffer::isWordStartMatch): Use StringView.
589         (WebCore::SearchBuffer::search): Ditto.
590         (WebCore::findPlainText): Ditto.
591
592         * editing/TextIterator.h: Added TextIterator::text that returns a StringView, and
593         renamed TextIterator::characters to TextIterator::deprecatedTextIteratorCharacters
594         (easy to search for in source code). Added SimplifiedBackwardsTextIterator::text
595         and removed SimplifiedBackwardsTextIterator::characters. Added CharacterIterator::text,
596         and removed CharacterIterator::characters. Added WordAwareIterator::text and removed
597         WorkdAwareIterator::characters. Changed WordAwareIterator data members to use StringView.
598
599         * editing/VisibleSelection.cpp:
600         (WebCore::VisibleSelection::appendTrailingWhitespace): Use TextIterator::text instead
601         of TextIterator::characters.
602
603         * editing/VisibleUnits.cpp:
604         (WebCore::previousBoundary): Updated to use StringView.
605         (WebCore::nextBoundary): Ditto.
606         (WebCore::startWordBoundary): Ditto.
607         (WebCore::startOfWord): Ditto.
608         (WebCore::endWordBoundary): Ditto.
609         (WebCore::endOfWord): Fixed formatting.
610         (WebCore::previousWordPositionBoundary): Updated to use StringView.
611         (WebCore::previousWordPosition): Fixed formatting and got rid of local variable.
612         (WebCore::nextWordPositionBoundary): Updated to use StringView.
613         (WebCore::nextWordPosition): Fixed formatting and got rid of local variable.
614         (WebCore::inSameLine): Fixed formatting.
615         (WebCore::isStartOfLine): Ditto.
616         (WebCore::isEndOfLine): Ditto.
617         (WebCore::absoluteLineDirectionPointToLocalPointInBlock): Changed to take a reference.
618         (WebCore::previousLinePosition): Fixed formatting chand changed to pass a reference.
619         (WebCore::nextLinePosition): Ditto.
620         (WebCore::startSentenceBoundary): Updated to use StringView and got rid of a local.
621         (WebCore::startOfSentence): Fixed formatting.
622         (WebCore::endSentenceBoundary): Updated to use StringView and got rid of a local.
623         (WebCore::endOfSentence): Fixed formatting.
624         (WebCore::previousSentencePositionBoundary): Updated to use StringView and got rid of
625         a local.
626         (WebCore::previousSentencePosition): Ditto.
627         (WebCore::nextSentencePositionBoundary): Ditto.
628         (WebCore::nextSentencePosition): Fixed formatting.
629         (WebCore::endOfParagraph): Ditto.
630         (WebCore::inSameParagraph): Ditto.
631         (WebCore::isStartOfParagraph): Ditto.
632         (WebCore::isEndOfParagraph): Ditto.
633         (WebCore::inSameBlock): Ditto.
634         (WebCore::isStartOfBlock): Ditto.
635         (WebCore::isEndOfBlock): Ditto.
636         (WebCore::startOfDocument): Ditto.
637         (WebCore::endOfDocument): Ditto.
638         (WebCore::inSameDocument): Ditto.
639         (WebCore::isStartOfDocument): Ditto.
640         (WebCore::isEndOfDocument): Ditto.
641         (WebCore::isEndOfEditableOrNonEditableContent): Ditto.
642
643         * loader/EmptyClients.h: Use StringView.
644
645         * platform/mac/HTMLConverter.mm:
646         (+[WebHTMLConverter editingAttributedStringFromRange:]): Use StringView.
647
648         * platform/text/TextBoundaries.cpp:
649         (WebCore::endOfFirstWordBoundaryContext): Use StringView and unsigned.
650         (WebCore::startOfLastWordBoundaryContext): Ditto.
651
652         * platform/text/TextBoundaries.h: Change interfaces to use StringView,
653         and in some cases, unsigned instead of int. All call sites were better off
654         with unsigned.
655
656         * platform/text/TextCheckerClient.h: Use StringView.
657
658         * platform/text/mac/TextBoundaries.mm: Changed conditionals to say
659         USE(APPKIT) instead of PLATFORM(IOS), since that's the real issue.
660         (WebCore::isSkipCharacter): Tweaked formatting.
661         (WebCore::isWhitespaceCharacter): Ditto.
662         (WebCore::isWordDelimitingCharacter): Ditto, also removed local variable.
663         (WebCore::isSymbolCharacter): Ditto.
664         (WebCore::tokenizerForString): Ditto.
665         (WebCore::findSimpleWordBoundary): Use StringView. Also changed to mostly
666         use unsigned instead of int.
667         (WebCore::findComplexWordBoundary): Use StringView. Also restructured to
668         be much more readable, with early returns and such.
669         (WebCore::findWordBoundary): Use StringView and unsigned.
670         (WebCore::findEndWordBoundary): Removed redudant copy of the findWordBoundary
671         function and changed this to just call findWordBoundary. The reason this
672         function exists is to optimize this case for some non-Mac, non-iOS platforms.
673         We can always do that for Mac and/or iOS later if we like.
674         (WebCore::findNextWordFromIndex): Use StringView. Also use wordBreakIterator
675         instead of using UBreakIterator directly so we get a cached iterator instead
676         of creating and destroying a new one each time this function is called.
677
678         * bindings/objc/DOMUIKitExtensions.mm: Removed unneeded includes.
679         * dom/Element.cpp: Ditto.
680         * dom/PositionIterator.cpp: Ditto.
681         * editing/ApplyBlockElementCommand.cpp: Ditto.
682         * editing/IndentOutdentCommand.cpp: Ditto.
683         * editing/InsertListCommand.cpp: Ditto.
684         * editing/markup.cpp: Ditto.
685         * html/HTMLElement.cpp: Ditto.
686         * html/HTMLTextAreaElement.cpp: Ditto.
687         * page/Frame.cpp: Ditto.
688         * rendering/RenderTextControl.cpp: Ditto.
689
690 2014-02-08  Andreas Kling  <akling@apple.com>
691
692         Remove two unused function declarations.
693
694         Scrub "highQualityRepaintTimerFired" declarations from RenderImage
695         and RenderBoxModelObject since they're not actually defined.
696
697         * rendering/RenderBoxModelObject.h:
698         * rendering/RenderImage.h:
699
700 2014-02-08  Andreas Kling  <akling@apple.com>
701
702         CTTE: SVGTRefTargetEventListener is always owned by SVGTRefElement.
703         <https://webkit.org/b/128432>
704
705         Tighten up the relationship between SVGTRefElement and its internal
706         event listener helper by storing the listener in a Ref, and making
707         the listeners backpointer to the element be a reference.
708
709         Reviewed by Anders Carlsson.
710
711         * svg/SVGTRefElement.cpp:
712         (WebCore::SVGTRefTargetEventListener::create):
713         (WebCore::SVGTRefTargetEventListener::SVGTRefTargetEventListener):
714         (WebCore::SVGTRefTargetEventListener::operator==):
715         (WebCore::SVGTRefTargetEventListener::handleEvent):
716         (WebCore::SVGTRefElement::SVGTRefElement):
717         * svg/SVGTRefElement.h:
718
719 2014-02-07  Andreas Kling  <akling@apple.com>
720
721         Devirtualize RenderBlockFlowRareData.
722         <https://webkit.org/b/128427>
723
724         This class had a virtual destructor for no reason. Removing it
725         shrinks RenderBlockFlowRareData by 8 bytes.
726
727         Reviewed by Anders Carlsson.
728
729         * rendering/RenderBlockFlow.h:
730         (WebCore::RenderBlockFlow::RenderBlockFlowRareData::~RenderBlockFlowRareData):
731
732 2014-02-08  Andreas Kling  <akling@apple.com>
733
734         Use renderer iterators in two more places.
735         <https://webkit.org/b/128371>
736
737         Reviewed by Antti Koivisto.
738
739         * dom/Position.cpp:
740         (WebCore::Position::primaryDirection):
741
742             Use lineageOfType instead of walking the parent chain.
743
744         * rendering/RenderLayer.cpp:
745         (WebCore::RenderLayer::insertOnlyThisLayer):
746
747             Use childrenOfType instead of walking the children.
748
749 2014-02-07  David Kilzer  <ddkilzer@apple.com>
750
751         [ASan] Use new/delete in PODFreeListArena
752         <http://webkit.org/b/128437>
753
754         Reviewed by Oliver Hunt.
755
756         * platform/PODFreeListArena.h:
757         (WebCore::PODFreeListArena::allocateObject): Use new when
758         ADDRESS_SANITIZER is defined.
759         (WebCore::PODFreeListArena::freeObject): Use delete when
760         ADDRESS_SANITIZER is defined.
761
762 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
763
764         Merge updateSelectionCachesIfSelectionIsInsideTextFormControl into setSelectionWithoutUpdatingAppearance
765         https://bugs.webkit.org/show_bug.cgi?id=128439
766
767         Reviewed by Anders Carlsson.
768
769         FrameSelection::selectAll had a superfluous call to updateSelectionCachesIfSelectionIsInsideTextFormControl
770         because it wasn't setting UserTriggered option to avoid revealing selection.
771
772         Call setSelection with UserTriggered and recently added DoNotRevealSelection option and merge
773         updateSelectionCachesIfSelectionIsInsideTextFormControl into setSelectionWithoutUpdatingAppearance.
774
775         Also rename local variables in setSelectionWithoutUpdatingAppearance, newSelection to
776         newSelectionPossiblyWithoutDirection and s to newSelection so that they're self explanatory.
777
778         In addition, we now update the input element's selection caches before calling
779         selectFrameElementInParentIfFullySelected but this should be fine because selection cannot simultaneously
780         select the entire document and be inside a text form control.
781
782         * editing/FrameSelection.cpp:
783         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
784         (WebCore::FrameSelection::selectAll):
785
786 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
787
788         EFL build fix attempt after r163662.
789
790         * Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp:
791         (WebCore::IDBLevelDBCoding::encodeIDBKey):
792
793 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
794
795         FrameSelection's destructor shouldn't notify accessibility
796         https://bugs.webkit.org/show_bug.cgi?id=128421
797
798         Reviewed by Benjamin Poulain.
799
800         Extracted setSelectionWithoutUpdatingAppearance out of setSelection and called it in prepareForDestruction
801         instead of setting DoNotUpdateAppearance option. This new function doesn't reveal selection or notify
802         accessibility code in addition to not updating appearance.
803
804         Note that all implementations of notifyAccessibilityForSelectionChange in FrameSelectionAtk.cpp and
805         FrameSelectionMac.mm exit early when the selection type is not caret or either start or end is null,
806         which is already the case inside FrameSelection's destructor. In addition, revealSelection is never called
807         when selection change was not triggered by user so there should be no behavioral change from this patch.
808
809         * editing/FrameSelection.cpp:
810         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
811         (WebCore::FrameSelection::setSelection):
812         (WebCore::FrameSelection::prepareForDestruction):
813         * editing/FrameSelection.h:
814         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange): Added the trivial implementation in the case
815         accessibility is disabled to tidy up call sites.
816
817 2014-02-07  Martin Robinson  <mrobinson@igalia.com>
818
819         Build fix for the GTK+ CMake build
820
821         * PlatformGTK.cmake: VTTCue.idl was unintentionally added to the list of GObject DOM bindings
822         output files. Remove it.
823
824 2014-02-07  Dirk Schulze  <krit@webkit.org>
825
826         Per CSSOM, computed rect() function values must be comma separated
827         https://bugs.webkit.org/show_bug.cgi?id=128401
828
829         Reviewed by Simon Fraser.
830
831         Updated tests.
832
833         * css/Rect.h:
834         (WebCore::Rect::generateCSSString):
835
836 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
837
838         Remove isInitialState flag from Page::setViewState
839         https://bugs.webkit.org/show_bug.cgi?id=128428
840
841         Reviewed by Sam Weinig.
842
843         * WebCore.exp.in:
844             - removed isInitialState.
845         * page/Page.cpp:
846         (WebCore::Page::setViewState):
847             - removed isInitialState.
848         (WebCore::Page::setIsVisible):
849             - removed isInitialState.
850         (WebCore::Page::setIsVisibleInternal):
851             - removed isInitialState.
852         * page/Page.h:
853             - removed isInitialState.
854
855 2014-02-07  Simon Fraser  <simon.fraser@apple.com>
856
857         Encode requestedScrollPosition on ScrollingStateScrollingNodes to send to the UI process
858         https://bugs.webkit.org/show_bug.cgi?id=128416
859
860         Reviewed by Tim Horton.
861         
862         Change requestedScrollPosition() to be a FloatPoint, and export
863         ScrollingStateScrollingNode::setRequestedScrollPosition(WebCore::FloatPoint const&, bool)
864         for WK2.
865
866         * WebCore.exp.in:
867         * page/scrolling/ScrollingStateScrollingNode.cpp:
868         (WebCore::ScrollingStateScrollingNode::setRequestedScrollPosition):
869         * page/scrolling/ScrollingStateScrollingNode.h:
870
871 2014-02-07  Beth Dakin  <bdakin@apple.com>
872
873         Should get rid of TileController's CoverageForSlowScrolling mode
874         https://bugs.webkit.org/show_bug.cgi?id=128339
875
876         Reviewed by Simon Fraser.
877
878         This patch gets rid of CoverageForSlowScrolling in the TileController. It also 
879         makes sure that margin tiles are properly invalidated on pages with slow repaint 
880         objects that cause slow scrolling. 
881
882         When we invalidate because of slow scrolling, don’t clip the update rect to the 
883         layer bounds.
884         * page/FrameView.cpp:
885         (WebCore::FrameView::scrollContentsSlowPath):
886
887         Call new RenderObject paint function repaintSlowRepaintObject() instead of the 
888         more-generic repaint().
889         (WebCore::FrameView::repaintSlowRepaintObjects):
890
891         Remove CoverageForSlowScrolling.
892         * platform/graphics/TiledBacking.h:
893         * platform/graphics/ca/mac/TileController.h:
894         * platform/graphics/ca/mac/TileController.mm:
895         (WebCore::TileController::tilesWouldChangeForVisibleRect):
896         (WebCore::TileController::computeTileCoverageRect):
897         (WebCore::TileController::revalidateTiles):
898         * rendering/RenderLayerBacking.cpp:
899         (WebCore::computeTileCoverage):
900
901         Handle repainting a slow repaint object. Don’t clip when we shouldn’t, use the 
902         RenderView’s backgroundRect as a repaintRect when this is the root background 
903         since that will take the extended background rect into consideration.
904         * rendering/RenderObject.cpp:
905         (WebCore::RenderObject::repaintSlowRepaintObject):
906         * rendering/RenderObject.h:
907
908 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
909
910         More FTL build scaffolding
911         https://bugs.webkit.org/show_bug.cgi?id=128330
912
913         Reviewed by Geoffrey Garen.
914
915         The FTL already has tests.
916
917         * Configurations/FeatureDefines.xcconfig:
918
919 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
920
921         Remove some unused functions from SerializedScriptValue
922         https://bugs.webkit.org/show_bug.cgi?id=128407
923
924         Reviewed by Anders Carlsson.
925
926         * bindings/js/SerializedScriptValue.cpp:
927         (WebCore::SerializedScriptValue::undefinedValue):
928         (WebCore::SerializedScriptValue::nullValue):
929         * bindings/js/SerializedScriptValue.h:
930
931 2014-02-07  Brady Eidson  <beidson@apple.com>
932
933         IDB: Some Mozilla cursor mutation tests fail
934         <rdar://problem/16011680> and https://bugs.webkit.org/show_bug.cgi?id=128374
935
936         Reviewed by Sam Weinig.
937
938         Tested by:
939         storage/indexeddb/mozilla/cursor-mutation-objectstore-only.html
940         storage/indexeddb/mozilla/cursor-mutation.html
941
942         The previous comment about LevelDB was wrong.
943         Apparently calling onSuccess() with a null SharedBuffer means the cursor reached the end.
944         Update to distinguish between an error and reaching the end:
945         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
946         (WebCore::CursorAdvanceOperation::perform):
947         (WebCore::CursorIterationOperation::perform):
948  
949         Add a new IDBKey type - Maximum - To be used in comparisons between keys.
950         This will allow the DatabaseProcess to operate on the range of all keys:
951         * Modules/indexeddb/IDBKey.cpp:
952         (WebCore::IDBKey::compare):
953         * Modules/indexeddb/IDBKey.h:
954
955         * Modules/indexeddb/IDBKeyData.cpp:
956         (WebCore::IDBKeyData::IDBKeyData):
957         (WebCore::IDBKeyData::maybeCreateIDBKey):
958         (WebCore::IDBKeyData::isolatedCopy):
959         (WebCore::IDBKeyData::encode):
960         (WebCore::IDBKeyData::decode):
961         (WebCore::IDBKeyData::compare):
962         (WebCore::IDBKeyData::loggingString):
963         * Modules/indexeddb/IDBKeyData.h:
964         (WebCore::IDBKeyData::minimum):
965         (WebCore::IDBKeyData::maximum):
966
967         * bindings/js/IDBBindingUtilities.cpp:
968         (WebCore::idbKeyToJSValue):
969
970         Remove an unused callback:
971         * Modules/indexeddb/IDBCallbacks.h:
972         * Modules/indexeddb/IDBRequest.h:
973
974 2014-02-07  Roger Fong  <roger_fong@apple.com>
975
976         CGContextGetUserSpaceToDeviceSpaceTransform returns the wrong value on Windows.
977         https://bugs.webkit.org/show_bug.cgi?id=128395.
978         
979         Rubberstamped by Zalan Bujtas.
980
981         The call essentially returns 0 and causes an assertion failure when running many layout tests.
982
983         * platform/graphics/cg/GraphicsContextCG.cpp: Don't make the call on Windows. We default to 1.
984         (WebCore::GraphicsContext::platformInit):
985
986 2014-02-07  Dan Bernstein  <mitz@apple.com>
987
988         iOS build fix.
989
990         * platform/PlatformKeyboardEvent.h: Fixed a typo.
991
992 2014-02-07  Dan Bernstein  <mitz@apple.com>
993
994         Stop using PLATFORM(MAC) in WebCore/platform except where it means “OS X but not iOS”
995         https://bugs.webkit.org/show_bug.cgi?id=128404
996
997         Reviewed by Anders Carlsson.
998
999         * Configurations/WebCore.xcconfig: Removed KeyEventMac.mm from
1000         EXCLUDED_SOURCE_FILE_NAMES_iphoneos, because that file contains !PLATFORM(IOS) guards.
1001         Removed WheelEventMac.mm from the same definition, because that file no longer exists.
1002         * platform/ContentFilter.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1003         * platform/ContextMenu.h: Ditto.
1004         * platform/ContextMenuItem.h: Ditto.
1005         * platform/Cursor.cpp: Ditto.
1006         * platform/Cursor.h: Ditto.
1007         * platform/DragData.cpp: Ditto.
1008         * platform/DragImage.cpp: Ditto.
1009         * platform/Language.cpp:
1010         (WebCore::displayNameForLanguageLocale): Changed PLATFORM(MAC) to USE(CF) && !PLATFORM(WIN).
1011         * platform/LocalizedStrings.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1012         (WebCore::contextMenuItemTagSearchWeb):
1013         * platform/LocalizedStrings.h: Ditto.
1014         * platform/MIMETypeRegistry.cpp: Ditto.
1015         (WebCore::initializeSupportedImageMIMETypesForEncoding):
1016         * platform/PasteboardStrategy.h: Ditto.
1017         * platform/PlatformKeyboardEvent.h: Ditto.
1018         * platform/PlatformMenuDescription.h: Ditto.
1019         * platform/PlatformSpeechSynthesizer.h: Ditto.
1020         * platform/PlatformWheelEvent.h: Ditto.
1021         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1022         * platform/SchemeRegistry.cpp: Ditto.
1023         (WebCore::localURLSchemes):
1024         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
1025         (WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely):
1026         * platform/ScrollAnimator.cpp: Ditto.
1027         (WebCore::ScrollAnimator::handleWheelEvent):
1028         * platform/ScrollAnimator.h: Ditto.
1029         * platform/ScrollView.cpp: Ditto.
1030         * platform/ScrollView.h: Ditto.
1031         * platform/ScrollbarThemeComposite.h: Ditto.
1032         * platform/SharedBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSData-related
1033         code.
1034         * platform/URL.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSURL-related code.
1035         * platform/Widget.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1036         * platform/Widget.h: Ditto.
1037         * platform/audio/AudioSession.cpp: Changed !PLATFORM(MAC) && !PLATFORM(IOS) to
1038         !PLATFORM(COCOA).
1039         * platform/audio/HRTFElevation.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1040         * platform/audio/MediaSessionManager.cpp: Ditto.
1041         * platform/audio/mac/AudioSessionMac.cpp: Updated comment.
1042         * platform/audio/mac/MediaSessionManagerMac.cpp: Removed PLATFORM(MAC) from Cocoa-only file.
1043         * platform/cf/SharedBufferCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION) and updated
1044         comment.
1045         * platform/cf/URLCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION).
1046         * platform/graphics/BitmapImage.h: Changed one instance of PLATFORM(MAC) to
1047         USE(CG) || USE(APPKIT), and another to PLATFORM(COCOA).
1048         * platform/graphics/DisplayRefreshMonitor.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1049         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
1050         * platform/graphics/DisplayRefreshMonitor.h: Ditto.
1051         * platform/graphics/FloatPoint.h: Collapsed nested #ifs into a single #if.
1052         * platform/graphics/FloatRect.h: Ditto.
1053         * platform/graphics/FloatSize.h: Ditto.
1054         * platform/graphics/Font.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1055         * platform/graphics/Font.h: Ditto.
1056         * platform/graphics/FontCache.cpp: Ditto.
1057         (WebCore::FontCache::getFontData):
1058         * platform/graphics/FontCache.h: Ditto. Also removed redundant friend class declaration.
1059         * platform/graphics/FontGlyphs.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1060         (WebCore::FontGlyphs::glyphDataAndPageForCharacter):
1061         * platform/graphics/GlyphPage.h: Ditto.
1062         * platform/graphics/GraphicsContext3D.h: Ditto.
1063         * platform/graphics/Image.h: Changed PLATFORM(MAC) to USE(APPKIT) around use of NSImage.
1064         Changed another PLATFORM(MAC) to PLATFORM(COCOA).
1065         * platform/graphics/IntRect.h: Collapsed nested #ifs into a single #if.
1066         * platform/graphics/IntSize.h: Ditto.
1067         * platform/graphics/MediaPlayer.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1068         (WebCore::installedMediaEngines):
1069         (WebCore::MediaPlayer::supportsType):
1070         * platform/graphics/SimpleFontData.cpp: Ditto.
1071         (WebCore::SimpleFontData::nonSyntheticItalicFontData):
1072         (WebCore::SimpleFontData::DerivedFontData::~DerivedFontData):
1073         * platform/graphics/SimpleFontData.h: Ditto.
1074         * platform/graphics/TiledBacking.h: Ditto.
1075         * platform/graphics/ca/GraphicsLayerCA.cpp: Ditto.
1076         (WebCore::GraphicsLayerCA::filtersCanBeComposited):
1077         (WebCore::GraphicsLayerCA::createPlatformCALayer):
1078         * platform/graphics/ca/LayerFlushScheduler.h: Ditto.
1079         * platform/graphics/ca/PlatformCAAnimation.h: Ditto.
1080         * platform/graphics/ca/PlatformCAFilters.h: Ditto.
1081         * platform/graphics/ca/PlatformCALayer.h: Ditto.
1082         * platform/graphics/cg/BitmapImageCG.cpp: Ditto.
1083         * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
1084         (WebCore::GraphicsContext::setAllowsFontSmoothing):
1085         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h: Ditto.
1086         * platform/graphics/cg/ImageBufferCG.cpp: Ditto.
1087         * platform/graphics/cg/ImageBufferDataCG.h: Ditto.
1088         * platform/graphics/cg/ImageCG.cpp: Ditto.
1089         * platform/graphics/cg/ImageSourceCG.cpp: Ditto.
1090         (WebCore::ImageSource::setData):
1091         * platform/graphics/cg/ImageSourceCG.h: Ditto.
1092         * platform/graphics/cg/PathCG.cpp: Ditto.
1093         (WebCore::Path::platformAddPathForRoundedRect):
1094         * platform/graphics/cg/PatternCG.cpp: Ditto.
1095         * platform/graphics/gpu/DrawingBuffer.h: Ditto.
1096         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1097         (WebCore::MediaPlayerPrivateQTKit::createQTMovieView): Removed PLATFORM(MAC) guards, since
1098         this file is only used on Mac and iOS.
1099         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
1100         (WebCore::Extensions3DOpenGL::supportsExtension): Changed the GL_EXT_draw_buffers check to
1101         match the implementation.
1102         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: Changed PLATFORM(MAC) to
1103         PLATFORM(COCOA).
1104         * platform/mac/KeyEventMac.mm: Added !PLATFORM(IOS).
1105         * platform/mac/PlatformEventFactoryMac.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1106         * platform/mac/WebCoreSystemInterface.h: Ditto. Removed redundant check for PLATFORM(MAC).
1107         * platform/mac/WebCoreSystemInterface.mm: Removed redundant check for PLATFORM(MAC).
1108         * platform/network/Credential.h: Changed PLATFORM(IOS) || PLATFORM(MAC) to PLATFORM(COCOA).
1109         * platform/network/NetworkStateNotifier.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1110         * platform/network/NetworkStorageSession.h: Ditto.
1111         * platform/network/NetworkingContext.h: Ditto.
1112         * platform/network/ProtectionSpace.cpp: Ditto.
1113         (WebCore::ProtectionSpace::receivesCredentialSecurely):
1114         * platform/network/ResourceHandle.cpp: Ditto.
1115         (WebCore::ResourceHandle::clearAuthentication):
1116         (WebCore::ResourceHandle::shouldContentSniffURL):
1117         * platform/network/ResourceHandle.h: Ditto.
1118         * platform/network/ResourceHandleClient.cpp: Ditto.
1119         * platform/network/ResourceHandleClient.h: Ditto.
1120         * platform/network/ResourceHandleInternal.h: Ditto.
1121         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1122         * platform/network/ResourceRequestBase.cpp: Ditto.
1123         * platform/network/cf/AuthenticationCF.h: Ditto.
1124         * platform/network/cf/CookieStorageCFNet.cpp: Ditto.
1125         * platform/network/cf/CredentialStorageCFNet.cpp: Ditto.
1126         * platform/network/cf/FormDataStreamCFNet.cpp: Ditto.
1127         * platform/network/cf/NetworkStorageSessionCFNet.cpp: Ditto.
1128         (WebCore::NetworkStorageSession::switchToNewTestingSession):
1129         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
1130         * platform/network/cf/ResourceError.h: Ditto.
1131         * platform/network/cf/ResourceHandleCFNet.cpp: Ditto.
1132         (WebCore::ResourceHandle::createCFURLConnection):
1133         * platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp:
1134         * platform/network/cf/ResourceRequest.h: Ditto.
1135         (WebCore::ResourceRequest::ResourceRequest):
1136         * platform/network/cf/ResourceRequestCFNet.cpp: Ditto.
1137         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1138         (WebCore::ResourceRequest::doUpdatePlatformHTTPBody):
1139         (WebCore::ResourceRequest::setStorageSession):
1140         * platform/network/cf/ResourceResponse.h: Ditto.
1141         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp:
1142         (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse):
1143         * platform/network/mac/ResourceResponseMac.mm: Ditto.
1144         * platform/posix/FileSystemPOSIX.cpp: Changed PLATFORM(MAC) to OS(DARWIN) &&
1145         !PLATFORM(EFL) && !PLATFORM(GTK).
1146         * platform/text/TextBoundaries.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1147
1148 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
1149
1150         Revert r154384 and r154674 as they broke selection rect computations for text with ligatures.
1151
1152         * platform/graphics/Font.cpp:
1153         (WebCore::Font::drawText):
1154         (WebCore::Font::drawEmphasisMarks):
1155         (WebCore::Font::selectionRectForText):
1156         (WebCore::Font::offsetForPosition):
1157         * platform/graphics/FontFastPath.cpp:
1158         (WebCore::Font::getGlyphsAndAdvancesForSimpleText):
1159         (WebCore::Font::selectionRectForSimpleText):
1160         (WebCore::Font::offsetForPositionForSimpleText):
1161         * platform/graphics/GlyphBuffer.h:
1162         * platform/graphics/WidthIterator.cpp:
1163         (WebCore::WidthIterator::WidthIterator):
1164         (WebCore::WidthIterator::advanceInternal):
1165         (WebCore::WidthIterator::advanceOneCharacter):
1166         * platform/graphics/WidthIterator.h:
1167
1168 2014-02-07  Benjamin Poulain  <bpoulain@apple.com>
1169
1170         [WK2] Add support for text document viewport configuration
1171         https://bugs.webkit.org/show_bug.cgi?id=128359
1172
1173         Reviewed by Simon Fraser.
1174
1175         Define a set of ViewportParameters suitable for displaying text documents.
1176         Add a documents class for text document to differentiate them from other type of documents.
1177
1178         * WebCore.exp.in:
1179         * dom/Document.h:
1180         (WebCore::Document::isTextDocument):
1181         * html/TextDocument.cpp:
1182         (WebCore::TextDocument::TextDocument):
1183         * page/ViewportConfiguration.cpp:
1184         (WebCore::ViewportConfiguration::ViewportConfiguration):
1185         (WebCore::ViewportConfiguration::webpageParameters):
1186         (WebCore::ViewportConfiguration::plainTextParameters):
1187         * page/ViewportConfiguration.h:
1188
1189 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
1190
1191         FloatingObject::unsafeClone should not copy m_originatingLine
1192         https://bugs.webkit.org/show_bug.cgi?id=128381
1193
1194         Reviewed by Andreas Kling.
1195
1196         Copying the originatingLine allows to break the invariant that the
1197         floating object must only contain lines that are owned by the renderer
1198         it is attached to.
1199
1200         * rendering/FloatingObjects.cpp:
1201         (WebCore::FloatingObject::unsafeClone):
1202
1203 2014-02-07  Brendan Long  <b.long@cablelabs.com>
1204
1205         Update TextTrack API to current spec
1206         https://bugs.webkit.org/show_bug.cgi?id=122218
1207
1208         Refactoring VTTCue out of TextTrackCue.
1209
1210         Reviewed by Eric Carlson.
1211
1212         Test: media/track/track-vttcue.html
1213
1214         * CMakeLists.txt: Add VTTCue and rename RenderTextTrackCue to RenderVTTCue.
1215         * DerivedSources.cpp: Same.
1216         * DerivedSources.make: Same.
1217         * GNUmakefile.list.am: Same.
1218         * PlatformGTK.cmake:  Same.
1219         * WebCore.vcxproj/WebCore.vcxproj: Same.
1220         * WebCore.vcxproj/WebCore.vcxproj.filters: Same.
1221         * WebCore.xcodeproj/project.pbxproj: Same.
1222         * bindings/js/JSTextTrackCueCustom.cpp:
1223         (WebCore::toJS): Use VTTCue DOM wrapper for VTTCue and its subclasses.
1224         * html/HTMLMediaElement.cpp:
1225         (WebCore::HTMLMediaElement::updateActiveTextTrackCues): Convert to VTTCue as needed.
1226         (WebCore::HTMLMediaElement::textTrackRemoveCue): Same.
1227         * html/HTMLMediaElement.h: Only print cue.text in debug output if the cue type has a .text attribute
1228         * html/shadow/MediaControlElements.cpp:
1229         (WebCore::MediaControlTextTrackContainerElement::updateDisplay): Convert to VTTCue as needed, and fix TextTrackCueBox to VTTCueBox.
1230         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired): Convert to VTTCue as needed.
1231         * html/track/InbandGenericTextTrack.cpp:
1232         (WebCore::InbandGenericTextTrack::addGenericCue): Use refactored VTTCue attributes.
1233         * html/track/InbandWebVTTTextTrack.cpp:
1234         (WebCore::InbandWebVTTTextTrack::newCuesParsed): Use VTTCue's constructor instead of deprecated TextTrackCue constructor.
1235         * html/track/TextTrack.cpp:
1236         (WebCore::TextTrack::setMode): Convert to VTTCue as needed.
1237         (WebCore::TextTrack::hasCue): Make this function only accept VTTCues, since it's only used for them anyway, and convert existing cues to VTTCues as needed.
1238         * html/track/TextTrack.h: Same as hasCue above.
1239         * html/track/TextTrackCue.cpp: Refactor a lot of code out. Everything that was removed went to VTTCue.cpp.
1240         (WebCore::TextTrackCue::create): For backwards compatibility, just call VTTCue::create().
1241         (WebCore::TextTrackCue::TextTrackCue): Refactor a lot of code out.
1242         (WebCore::TextTrackCue::~TextTrackCue): Same.
1243         (WebCore::TextTrackCue::didChange): Same.
1244         (WebCore::TextTrackCue::setIsActive): Same.
1245         * html/track/TextTrackCue.h: Same.
1246         * html/track/TextTrackCue.idl: Remove VTTCue attributes and add custom toJS function.
1247         * html/track/TextTrackCueGeneric.cpp: Use VTTCue instead of TextTrackCue.
1248         * html/track/TextTrackCueGeneric.h: Same.
1249         * html/track/VTTCue.cpp: Copied from Source/WebCore/html/track/TextTrackCue.cpp.
1250         * html/track/VTTCue.h: Copied from Source/WebCore/html/track/TextTrackCue.h.
1251         * html/track/VTTCue.idl: Copied from Source/WebCore/html/track/TextTrackCue.idl.
1252         * loader/TextTrackLoader.cpp:
1253         (WebCore::TextTrackLoader::getNewCues): Use VTTCue instead of TextTrackCue.
1254         * page/CaptionUserPreferencesMediaAF.cpp:
1255         (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride): Use VTTCueBox instead of TextTrackCueBox.
1256         * rendering/RenderVTTCue.cpp: Renamed from Source/WebCore/rendering/RenderTextTrackCue.cpp. Changed to use VTTCue instead of TextTrackCue.
1257         * rendering/RenderVTTCue.h: Renamed from Source/WebCore/rendering/RenderTextTrackCue.h. Changed to use VTTCue instead of TextTrackCue.
1258         * rendering/RenderingAllInOne.cpp: Rename RenderTextTrackCue to RenderVTTCue.
1259
1260 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
1261
1262         Should report user input to PageThrottler
1263         https://bugs.webkit.org/show_bug.cgi?id=128398
1264
1265         Reviewed by Tim Horton.
1266
1267         Make sure we wake from AppNap if there is user interaction.
1268
1269         * page/PageThrottler.h:
1270         (WebCore::PageThrottler::didReceiveUserInput):
1271         (WebCore::PageThrottler::pluginDidEvaluate):
1272             - added, these call reportInterestingEvent()
1273
1274 2014-02-07  Jer Noble  <jer.noble@apple.com>
1275
1276         Unreviewed build fix for 32-bit iOS.
1277
1278         Use magic ? values to allow the exported symbol to be different on 32- and 64-bit builds.
1279
1280         * WebCore.exp.in:
1281
1282 2014-02-07  Anders Carlsson  <andersca@apple.com>
1283
1284         Convert ProgressTracker to std::chrono
1285         https://bugs.webkit.org/show_bug.cgi?id=128377
1286
1287         Reviewed by Andreas Kling.
1288
1289         * loader/ProgressTracker.cpp:
1290         (WebCore::ProgressTracker::ProgressTracker):
1291         (WebCore::ProgressTracker::reset):
1292         (WebCore::ProgressTracker::progressStarted):
1293         (WebCore::ProgressTracker::finalProgressComplete):
1294         (WebCore::ProgressTracker::incrementProgress):
1295         * loader/ProgressTracker.h:
1296
1297 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
1298
1299         32-bit build fix.
1300
1301         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1302         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
1303
1304 2014-02-07  Mihai Tica  <mitica@adobe.com>
1305
1306         [CSS Background Blending] Unprefix the -webkit-background-blend-mode property
1307
1308         https://bugs.webkit.org/show_bug.cgi?id=128270
1309
1310         Reviewed by Dean Jackson.
1311
1312         This patch consist of unprefixing the -webkit-background-blend-mode.
1313         The property now changes to background-blend-mode.
1314
1315         * css/CSSComputedStyleDeclaration.cpp:
1316         (WebCore::ComputedStyleExtractor::propertyValue):
1317         * css/CSSParser.cpp:
1318         (WebCore::CSSParser::parseValue):
1319         (WebCore::CSSParser::parseFillProperty):
1320         * css/CSSPropertyNames.in:
1321         * css/DeprecatedStyleBuilder.cpp:
1322         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
1323
1324 2014-02-07  Samuel White  <samuel_white@apple.com>
1325
1326         AX: Find and select text with respect to insertion point using accessibility API.
1327         https://bugs.webkit.org/show_bug.cgi?id=128026
1328
1329         Reviewed by Chris Fleizach.
1330
1331         Added facilities to support semi-ambiguous text selection through the accessibility API. All
1332         requests are handled with respect to the current selection. The requests are disambiguated in
1333         WebCore using passed parameters such as: SelectStringAfterSelection , ..Before.., ..ClosestTo...,
1334         etc. Callers can also supply an array of strings to select and the closest that matches the
1335         disambiguation criteria will be used.
1336
1337         Test: platform/mac/accessibility/select-text.html
1338
1339         * accessibility/AccessibilityObject.cpp:
1340         (WebCore::AccessibilityObject::rangeClosestToRange):
1341         (WebCore::AccessibilityObject::rangeOfStringClosestToRangeInDirection):
1342         (WebCore::AccessibilityObject::selectionRange):
1343         (WebCore::AccessibilityObject::selectText):
1344         (WebCore::AccessibilityObject::frame):
1345         * accessibility/AccessibilityObject.h:
1346         (WebCore::AccessibilitySelectTextCriteria::AccessibilitySelectTextCriteria):
1347         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1348         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
1349         (-[WebAccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
1350         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
1351         * dom/Position.cpp:
1352         (WebCore::Position::positionCountBetweenPositions):
1353         * dom/Position.h:
1354
1355 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
1356
1357         FloatingObject m_paginationStrut should be LayoutUnit
1358         https://bugs.webkit.org/show_bug.cgi?id=119808
1359
1360         Reviewed by Andreas Kling.
1361
1362         Make the paginationStrut in FloatingObject have the same type as all
1363         of the other paginationStruts in the code.
1364
1365         * rendering/FloatingObjects.h:
1366         (WebCore::FloatingObject::paginationStrut):
1367         (WebCore::FloatingObject::setPaginationStrut):
1368         * rendering/RenderBlockLineLayout.cpp:
1369         (WebCore::RenderBlockFlow::positionNewFloatOnLine):
1370
1371 2014-02-06  Brady Eidson  <beidson@apple.com>
1372
1373         IDB: storage/indexeddb/create-index-with-integer-keys.html fails
1374         <rdar://problem/16002857> and https://bugs.webkit.org/show_bug.cgi?id=128316
1375
1376         Reviewed by Geoff Garen.
1377
1378         Tested by storage/indexeddb/create-index-with-integer-keys.html (and probably some others)
1379
1380         * Modules/indexeddb/IDBCursor.cpp:
1381         (WebCore::IDBCursor::update): Update createIDBKeyFromScriptValueAndKeyPath usage.
1382         (WebCore::IDBCursor::setValueReady): Update createIDBKeyFromScriptValueAndKeyPath usage.
1383
1384         * Modules/indexeddb/IDBObjectStore.cpp:
1385         (WebCore::IDBObjectStore::put): Update usage of binding utilities.
1386
1387         * Modules/indexeddb/IDBRequest.cpp:
1388         (WebCore::IDBRequest::onSuccess): Update createIDBKeyFromScriptValueAndKeyPath usage.
1389
1390         * bindings/js/IDBBindingUtilities.cpp:
1391         (WebCore::internalCreateIDBKeyFromScriptValueAndKeyPath):
1392         (WebCore::createIDBKeyFromScriptValueAndKeyPath): Changed to take an ExecState*.
1393         (WebCore::deserializeIDBValueBuffer): Added new version that starts with ExecState* and Vector<uint8_t>
1394           instead of RequestState and SharedBuffer.
1395         (WebCore::generateIndexKeysForValue): Moved from IDBObjectStore.cpp and changed to take an ExecState*
1396         * bindings/js/IDBBindingUtilities.h:
1397
1398         Added new blob fetcher that works with uint8_t buffers:
1399         * platform/sql/SQLiteStatement.cpp:
1400         (WebCore::SQLiteStatement::getColumnBlobAsVector):
1401         * platform/sql/SQLiteStatement.h:
1402
1403         * WebCore.exp.in:
1404
1405 2014-02-07  Frédéric Wang  <fred.wang@free.fr>
1406
1407         childShouldCreateRenderer should return false for the mspace element
1408         https://bugs.webkit.org/show_bug.cgi?id=128325
1409
1410         Reviewed by Chris Fleizach.
1411
1412         The mspace element can not have children so this makes its
1413         childShouldCreateRenderer always return false.
1414
1415         Test: mathml/presentation/mspace-children.html
1416
1417         * mathml/MathMLTextElement.cpp:
1418         (WebCore::MathMLTextElement::childShouldCreateRenderer):
1419
1420 2014-02-07  Javier Fernandez  <jfernandez@igalia.com>
1421
1422         [CSS Grid Layout] Rename grid-definition-{columns|rows} to match the new syntax
1423         https://bugs.webkit.org/show_bug.cgi?id=127989
1424
1425         Reviewed by Andreas Kling.
1426
1427         In the latest WD, grid-definition-{columns|rows} were renamed to grid-template-{columns|rows}.
1428
1429         * css/CSSComputedStyleDeclaration.cpp:
1430         (WebCore::isLayoutDependent):
1431         (WebCore::ComputedStyleExtractor::propertyValue):
1432         * css/CSSParser.cpp:
1433         (WebCore::CSSParser::parseValue):
1434         * css/CSSPropertyNames.in:
1435         * css/StyleResolver.cpp:
1436         (WebCore::StyleResolver::applyProperty):
1437
1438 2014-02-07  Andreas Kling  <akling@apple.com>
1439
1440         CTTE: DocumentThreadableLoader always has a Document.
1441         <https://webkit.org/b/128364>
1442
1443         DocumentThreadableLoader always has an "owner" Document, so store
1444         that as a reference instead of a pointer. Removed some unnecessary
1445         assertions exposed by this change.
1446
1447         Reviewed by Antti Koivisto.
1448
1449         * loader/DocumentThreadableLoader.cpp:
1450         (WebCore::DocumentThreadableLoader::loadResourceSynchronously):
1451         (WebCore::DocumentThreadableLoader::create):
1452         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
1453         (WebCore::DocumentThreadableLoader::didReceiveResponse):
1454         (WebCore::DocumentThreadableLoader::didReceiveData):
1455         (WebCore::DocumentThreadableLoader::didFinishLoading):
1456         (WebCore::DocumentThreadableLoader::didFail):
1457         (WebCore::DocumentThreadableLoader::preflightFailure):
1458         (WebCore::DocumentThreadableLoader::loadRequest):
1459         (WebCore::DocumentThreadableLoader::securityOrigin):
1460         * loader/DocumentThreadableLoader.h:
1461         * loader/ThreadableLoader.cpp:
1462         (WebCore::ThreadableLoader::create):
1463         (WebCore::ThreadableLoader::loadResourceSynchronously):
1464         * loader/WorkerThreadableLoader.cpp:
1465         (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
1466
1467 2014-02-07  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1468
1469         Vector-effect updates require a re-layout
1470         https://bugs.webkit.org/show_bug.cgi?id=127553
1471
1472         Reviewed by Andreas Kling.
1473
1474         As noted in the stale SVGRenderStyle::diff() comment, now that layout() observes vector-effect
1475         we need to trigger a re-layout on attribute changes.
1476
1477         Merged from Blink: https://src.chromium.org/viewvc/blink?revision=152570&view=revision
1478
1479         Tests: svg/custom/non-scaling-stroke-update-expected.svg
1480                svg/custom/non-scaling-stroke-update.svg
1481
1482         * rendering/style/SVGRenderStyle.cpp:
1483         (WebCore::SVGRenderStyle::diff):
1484
1485 2014-02-07  Laszlo Vidacs  <lvidacs.u-szeged@partner.samsung.com>
1486
1487         Renaming isTableElement() to isRenderedTable() as per the FIXME comment
1488         https://bugs.webkit.org/show_bug.cgi?id=127769
1489
1490         Reviewed by Andreas Kling.
1491
1492         Rename method and use IsTable() instead of local type checking.
1493
1494         * dom/Position.cpp:
1495         (WebCore::Position::parentAnchoredEquivalent):
1496         (WebCore::Position::upstream):
1497         (WebCore::Position::downstream):
1498         (WebCore::Position::isCandidate):
1499         * dom/PositionIterator.cpp:
1500         (WebCore::PositionIterator::isCandidate):
1501         * editing/CompositeEditCommand.cpp:
1502         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
1503         (WebCore::CompositeEditCommand::moveParagraphWithClones):
1504         * editing/FrameSelection.cpp:
1505         (WebCore::caretRendersInsideNode):
1506         * editing/VisibleUnits.cpp:
1507         (WebCore::startOfParagraph):
1508         (WebCore::endOfParagraph):
1509         * editing/htmlediting.cpp:
1510         (WebCore::firstInSpecialElement):
1511         (WebCore::lastInSpecialElement):
1512         (WebCore::isRenderedTable):
1513         * editing/htmlediting.h:
1514         * rendering/RenderBox.cpp:
1515         (WebCore::RenderBox::localCaretRect):
1516
1517 2014-02-06  Brady Eidson  <beidson@apple.com>
1518
1519         IDB: Remove the entirely unnecessary "Value Key" concept
1520         https://bugs.webkit.org/show_bug.cgi?id=128360
1521
1522         Reviewed by Dan Bernstein.
1523
1524         No new tests (No change in behavior)
1525
1526         All cursor operations were set up to pass a value key parameter around, but it was:
1527         1 - Entirely unused
1528         2 - The same thing that the primary key is supposed to be
1529
1530         * Modules/indexeddb/IDBCallbacks.h:
1531
1532         * Modules/indexeddb/IDBCursorBackend.cpp:
1533         (WebCore::IDBCursorBackend::updateCursorData):
1534         (WebCore::IDBCursorBackend::clear):
1535         * Modules/indexeddb/IDBCursorBackend.h:
1536
1537         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
1538         (WebCore::CursorAdvanceOperation::perform):
1539         (WebCore::CursorIterationOperation::perform):
1540
1541         * Modules/indexeddb/IDBRequest.cpp:
1542         (WebCore::IDBRequest::onSuccess):
1543         * Modules/indexeddb/IDBRequest.h:
1544
1545         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
1546         (WebCore::OpenCursorOperation::perform):
1547
1548         * Modules/indexeddb/IDBServerConnection.h:
1549         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
1550         (WebCore::IDBServerConnectionLevelDB::openCursor):
1551         (WebCore::IDBServerConnectionLevelDB::cursorAdvance):
1552         (WebCore::IDBServerConnectionLevelDB::cursorIterate):
1553         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
1554
1555 2014-02-06  Jeremy Jones  <jeremyj@apple.com>
1556
1557         Add support for AVKit fullscreen to WebKit2
1558         https://bugs.webkit.org/show_bug.cgi?id=128143
1559
1560         Reviewed by Simon Fraser.
1561
1562         Rename overloaded functions to prevent ambiguous template parameter
1563         compile error in generated code.
1564
1565         Rename overloaded exitFullscreen to exitFullscreenWithCompletionHandler.
1566         Rename overloaded enterFullscreen to enterFullscreenWithCompletionHandler.
1567
1568         * WebCore.exp.in:
1569         * WebCore.xcodeproj/project.pbxproj:
1570         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
1571         (-[WebVideoFullscreenController exitFullscreen]):
1572         * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
1573         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
1574         (WebVideoFullscreenInterfaceAVKit::enterFullscreenWithCompletionHandler):
1575         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
1576         (WebVideoFullscreenInterfaceAVKit::exitFullscreenWithCompletionHandler):
1577         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
1578         * platform/ios/WebVideoFullscreenModelMediaElement.h:
1579
1580 2014-02-06  Jeffrey Pfau  <jpfau@apple.com>
1581
1582         loadSubframe can return null in SubframeLoader::loadOrRedirectSubframe
1583         https://bugs.webkit.org/show_bug.cgi?id=128344
1584
1585         Reviewed by Ryosuke Niwa.
1586
1587         * loader/SubframeLoader.cpp:
1588         (WebCore::SubframeLoader::loadOrRedirectSubframe):
1589
1590 2014-02-06  Andreas Kling  <akling@apple.com>
1591
1592         Use child iterator in HTMLDetailsElement::findMainSummary().
1593         <https://webkit.org/b/128335>
1594
1595         Reviewed by Antti Koivisto.
1596
1597         * html/HTMLDetailsElement.h:
1598         * html/HTMLDetailsElement.cpp:
1599         (WebCore::HTMLDetailsElement::findMainSummary):
1600
1601 2014-02-06  Antti Koivisto  <antti@apple.com>
1602
1603         Add missing &.
1604
1605         * css/StyleInvalidationAnalysis.cpp:
1606         (WebCore::shouldDirtyAllStyle):
1607
1608 2014-02-06  Antti Koivisto  <antti@apple.com>
1609
1610         Check selectors exactly when invalidating style
1611         https://bugs.webkit.org/show_bug.cgi?id=128321
1612
1613         Reviewed by Andreas Kling.
1614         
1615         Selectors are now really fast to match with the JIT. Take advantage of this by invalidating
1616         the document style exactly when a new stylesheet arrives (instead of using heuristics).
1617         
1618         This reduces need for large style recalculations in some common cases.
1619
1620         * css/ElementRuleCollector.cpp:
1621         (WebCore::ElementRuleCollector::clearMatchedRules):
1622         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
1623         * css/ElementRuleCollector.h:
1624         (WebCore::ElementRuleCollector::hasMatchedRules):
1625         * css/RuleSet.h:
1626         (WebCore::RuleSet::hasShadowPseudoElementRules):
1627         * css/SelectorChecker.cpp:
1628         (WebCore::SelectorChecker::matchRecursively):
1629         * css/SelectorChecker.h:
1630         
1631             Add new mode where all pseudo elements match so we can invalidate their element.
1632
1633         * css/StyleInvalidationAnalysis.cpp:
1634         (WebCore::shouldDirtyAllStyle):
1635         (WebCore::StyleInvalidationAnalysis::StyleInvalidationAnalysis):
1636         (WebCore::invalidateStyleRecursively):
1637         (WebCore::StyleInvalidationAnalysis::invalidateStyle):
1638         
1639             Switch to real selector checker.
1640
1641         * css/StyleInvalidationAnalysis.h:
1642         * css/StyleResolver.cpp:
1643         (WebCore::StyleResolver::MatchedProperties::~MatchedProperties):
1644         * css/StyleResolver.h:
1645         (WebCore::StyleResolver::mediaQueryEvaluator):
1646         * dom/DocumentStyleSheetCollection.cpp:
1647         (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
1648
1649 2014-02-06  Gavin Barraclough  <barraclough@apple.com>
1650
1651         Remove ChildProcess::m_activeTasks
1652         https://bugs.webkit.org/show_bug.cgi?id=128342
1653
1654         Reviewed by Anders Carlson.
1655
1656         Currently we funnel a number of different user activities
1657         to a single UserActivity object, which requires a call down
1658         from WebCore to WebKit2. Split these out so we can track
1659         them separately.
1660
1661         * page/ChromeClient.h:
1662             - removed [inc|dec]rementActivePageCount
1663         * page/PageThrottler.cpp:
1664         (WebCore::PageThrottler::PageThrottler):
1665             - incrementActivePageCount -> beginActivity
1666         (WebCore::PageThrottler::~PageThrottler):
1667             - decrementActivePageCount -> endActivity
1668         (WebCore::PageThrottler::throttlePage):
1669             - decrementActivePageCount -> endActivity
1670         (WebCore::PageThrottler::unthrottlePage):
1671             - incrementActivePageCount -> beginActivity
1672         * page/PageThrottler.h:
1673             - Added m_pageActivity.
1674
1675 2014-02-06  Commit Queue  <commit-queue@webkit.org>
1676
1677         Unreviewed, rolling out r163558.
1678         http://trac.webkit.org/changeset/163558
1679         https://bugs.webkit.org/show_bug.cgi?id=128350
1680
1681         Breaks scrolling on certain websites (Requested by bfulgham on
1682         #webkit).
1683
1684         * page/EventHandler.cpp:
1685         (WebCore::EventHandler::handleWheelEvent):
1686         * page/WheelEventDeltaTracker.h:
1687
1688 2014-02-06  Chris Fleizach  <cfleizach@apple.com>
1689
1690         AX: Crash in WebCore::AXObjectCache::computedObjectAttributeCache
1691         https://bugs.webkit.org/show_bug.cgi?id=128310
1692
1693         Reviewed by Alexey Proskuryakov.
1694
1695         Be more careful about using axObjectCache() directly since it can return null.
1696         I audited the usage cases of this method and ensured the ptr was not null in cases
1697         where I thought we might get hit by this.
1698
1699         * accessibility/AccessibilityNodeObject.cpp:
1700         (WebCore::AccessibilityNodeObject::parentObject):
1701         (WebCore::AccessibilityNodeObject::menuForMenuButton):
1702         (WebCore::AccessibilityNodeObject::menuButtonForMenu):
1703         * accessibility/AccessibilityObject.cpp:
1704         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
1705         (WebCore::AccessibilityObject::findMatchingObjects):
1706         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
1707         (WebCore::AccessibilityObject::axObjectCache):
1708         (WebCore::AccessibilityObject::notifyIfIgnoredValueChanged):
1709         (WebCore::AccessibilityObject::accessibilityIsIgnored):
1710         * accessibility/AccessibilityRenderObject.cpp:
1711         (WebCore::AccessibilityRenderObject::parentObjectIfExists):
1712         (WebCore::AccessibilityRenderObject::parentObject):
1713         (WebCore::AccessibilityRenderObject::anchorElement):
1714         (WebCore::AccessibilityRenderObject::isTabItemSelected):
1715         (WebCore::AccessibilityRenderObject::accessibilityParentForImageMap):
1716         (WebCore::AccessibilityRenderObject::nodeIsTextControl):
1717         (WebCore::AccessibilityRenderObject::activeDescendant):
1718         (WebCore::AccessibilityRenderObject::handleAriaExpandedChanged):
1719         (WebCore::AccessibilityRenderObject::observableObject):
1720         (WebCore::AccessibilityRenderObject::textChanged):
1721         * accessibility/AccessibilityScrollView.cpp:
1722         (WebCore::AccessibilityScrollView::addChildScrollbar):
1723         (WebCore::AccessibilityScrollView::webAreaObject):
1724         (WebCore::AccessibilityScrollView::parentObject):
1725         (WebCore::AccessibilityScrollView::parentObjectIfExists):
1726
1727 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
1728
1729         [CSS Shapes] Rounded Insets Let Content Overlap Shape
1730         https://bugs.webkit.org/show_bug.cgi?id=127852
1731
1732         Reviewed by Bem Jones-Bey.
1733
1734         Using LengthSize to FloatSize conversion from LengthSize.h lead to miscalculated
1735         inset border radius, when the border radius was defined by percentages. This patch
1736         fixes the behavior and removes the incorrect conversion.
1737
1738         Test: fast/shapes/shape-outside-floats/shape-outside-rounded-inset.html
1739
1740         * css/LengthFunctions.cpp:
1741         (WebCore::floatSizeForLengthSize): Add new helper function for LengthSize to FloatSize conversion.
1742         * css/LengthFunctions.h:
1743         * platform/LengthSize.h: Remove floatSize conversion.
1744         * rendering/shapes/Shape.cpp:
1745         (WebCore::Shape::createShape): Use new helper function to calculate the right with for the inset border radius.
1746
1747 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
1748
1749         Regenerate JSTestObj now that ScriptArguments moved. Generator knows what to do.
1750
1751         Rubber-stamped by Zalan Bujtas.
1752
1753         * bindings/scripts/test/JS/JSTestObj.cpp:
1754         (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
1755
1756 2014-02-04  Jeffrey Pfau  <jpfau@apple.com>
1757
1758         Make adoption agency use the task queue
1759         https://bugs.webkit.org/show_bug.cgi?id=109445
1760
1761         Reviewed by Ryosuke Niwa.
1762
1763         Tests: fast/parser/adoption-agency-crash-01.html
1764                fast/parser/adoption-agency-crash-02.html
1765                fast/parser/adoption-agency-crash-03.html
1766
1767         * html/parser/HTMLConstructionSite.cpp:
1768         (WebCore::insert):
1769         (WebCore::executeInsertTask):
1770         (WebCore::executeReparentTask):
1771         (WebCore::executeInsertAlreadyParsedChildTask):
1772         (WebCore::executeTakeAllChildrenTask):
1773         (WebCore::executeTask):
1774         (WebCore::HTMLConstructionSite::attachLater):
1775         (WebCore::HTMLConstructionSite::executeQueuedTasks):
1776         (WebCore::HTMLConstructionSite::insertTextNode):
1777         (WebCore::HTMLConstructionSite::reparent):
1778         (WebCore::HTMLConstructionSite::insertAlreadyParsedChild):
1779         (WebCore::HTMLConstructionSite::takeAllChildren):
1780         (WebCore::HTMLConstructionSite::fosterParent):
1781         * html/parser/HTMLConstructionSite.h:
1782         (WebCore::HTMLConstructionSiteTask::HTMLConstructionSiteTask):
1783         (WebCore::HTMLConstructionSiteTask::oldParent):
1784         * html/parser/HTMLTreeBuilder.cpp:
1785         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
1786
1787 2014-02-06  Mark Hahnenberg  <mhahnenberg@apple.com>
1788
1789         Heap::writeBarrier shouldn't be static
1790         https://bugs.webkit.org/show_bug.cgi?id=127807
1791
1792         Reviewed by Geoffrey Garen.
1793
1794         Currently it looks up the Heap in which to fire the write barrier by using 
1795         the cell passed to it. Almost every call site already has a reference to the 
1796         VM or the Heap itself. It seems wasteful to look it up all over again.
1797
1798         * bindings/js/JSEventListener.cpp:
1799         (WebCore::JSEventListener::JSEventListener):
1800         * bindings/js/JSEventListener.h:
1801         (WebCore::JSEventListener::jsFunction):
1802
1803 2014-02-06  Jaehun Lim  <ljaehun.lim@samsung.com>
1804
1805         Unreviewed, fix build error on 64bit debug build
1806
1807         Apply static_cast<long long> to int64_t variable when '%lli' is used.
1808
1809         * Modules/indexeddb/IDBDatabaseBackend.cpp:
1810         (WebCore::IDBDatabaseBackend::clearObjectStore):
1811         * Modules/indexeddb/IDBTransaction.cpp:
1812         (WebCore::IDBTransaction::setActive):
1813
1814 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
1815
1816         Web Inspector: Add Console support to JSContext Inspection
1817         https://bugs.webkit.org/show_bug.cgi?id=127941
1818
1819         Reviewed by Geoffrey Garen.
1820
1821           - Move InspectorConsoleAgent and dependencies to JavaScriptCore
1822             and into the Inspector namespace.
1823           - Update Console Message enum types to enum classes and update
1824             all users to the new, simpler names.
1825           - Since we are updating addConsoleMessage callsites anyways, add
1826             ASCIILiteral where appropriate.
1827           - Add WebConsoleAgent base of Page/Worker ConsoleAgent to implement
1828             what could not be pushed into JavaScriptCore.
1829
1830         * CMakeLists.txt:
1831         * DerivedSources.make:
1832         * ForwardingHeaders/inspector/ConsoleMessage.h: Added.
1833         * ForwardingHeaders/inspector/ConsoleTypes.h: Added.
1834         * ForwardingHeaders/inspector/IdentifiersFactory.h: Added.
1835         * ForwardingHeaders/inspector/ScriptArguments.h: Added.
1836         * ForwardingHeaders/inspector/ScriptCallFrame.h: Added.
1837         * ForwardingHeaders/inspector/ScriptCallStack.h: Added.
1838         * ForwardingHeaders/inspector/ScriptCallStackFactory.h: Added.
1839         * ForwardingHeaders/inspector/agents/InspectorConsoleAgent.h: Added.
1840         * GNUmakefile.am:
1841         * GNUmakefile.list.am:
1842         Add / remove files from builds.
1843
1844         * inspector/WebConsoleAgent.h:
1845         * inspector/WebConsoleAgent.cpp: Added.
1846         (WebCore::WebConsoleAgent::WebConsoleAgent):
1847         (WebCore::WebConsoleAgent::setMonitoringXHREnabled):
1848         (WebCore::WebConsoleAgent::frameWindowDiscarded):
1849         (WebCore::WebConsoleAgent::didFinishXHRLoading):
1850         (WebCore::WebConsoleAgent::didReceiveResponse):
1851         (WebCore::WebConsoleAgent::didFailLoading):
1852         (WebCore::WebConsoleAgent::addInspectedHeapObject):
1853         Implement what could not be pushed down into JavaScriptCore.
1854
1855         * inspector/InstrumentingAgents.h:
1856         (WebCore::InstrumentingAgents::webConsoleAgent):
1857         (WebCore::InstrumentingAgents::setWebConsoleAgent):
1858         Hold a WebConsoleAgent instead of InspectorConsoleAgent.
1859
1860         * Modules/indexeddb/IDBCursor.cpp:
1861         * Modules/indexeddb/IDBDatabase.cpp:
1862         * Modules/indexeddb/IDBTransaction.cpp:
1863         * Modules/quota/DOMWindowQuota.cpp:
1864         (WebCore::DOMWindowQuota::webkitStorageInfo):
1865         * Modules/webaudio/AudioBufferSourceNode.cpp:
1866         (WebCore::AudioBufferSourceNode::looping):
1867         (WebCore::AudioBufferSourceNode::setLooping):
1868         * Modules/webaudio/AudioContext.cpp:
1869         * Modules/webaudio/PannerNode.cpp:
1870         (WebCore::PannerNode::setPanningModel):
1871         * Modules/webdatabase/DatabaseBase.cpp:
1872         (WebCore::DatabaseBase::logErrorMessage):
1873         * Modules/webdatabase/DatabaseManager.cpp:
1874         (WebCore::DatabaseManager::logErrorMessage):
1875         * Modules/websockets/WebSocket.cpp:
1876         (WebCore::WebSocket::connect):
1877         (WebCore::WebSocket::send):
1878         (WebCore::WebSocket::close):
1879         (WebCore::WebSocket::setBinaryType):
1880         * Modules/websockets/WebSocketChannel.cpp:
1881         (WebCore::WebSocketChannel::fail):
1882         (WebCore::WebSocketChannel::didFailSocketStream):
1883         * Modules/websockets/WebSocketHandshake.cpp:
1884         * WebCore.exp.in:
1885         * WebCore.vcxproj/WebCore.vcxproj:
1886         * WebCore.vcxproj/WebCore.vcxproj.filters:
1887         * WebCore.xcodeproj/project.pbxproj:
1888         * bindings/js/JSAudioContextCustom.cpp:
1889         (WebCore::JSAudioContextConstructor::constructJSAudioContext):
1890         * bindings/js/JSCustomXPathNSResolver.cpp:
1891         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1892         * bindings/js/JSDOMBinding.cpp:
1893         * bindings/js/JSSubtleCryptoCustom.cpp:
1894         (WebCore::JSSubtleCrypto::encrypt):
1895         (WebCore::JSSubtleCrypto::decrypt):
1896         (WebCore::JSSubtleCrypto::sign):
1897         (WebCore::JSSubtleCrypto::verify):
1898         (WebCore::JSSubtleCrypto::wrapKey):
1899         (WebCore::JSSubtleCrypto::unwrapKey):
1900         * bindings/js/ScriptController.cpp:
1901         (WebCore::ScriptController::canExecuteScripts):
1902         * bindings/scripts/CodeGeneratorJS.pm:
1903         (GenerateCallWith):
1904         * bindings/scripts/test/JS/JSTestObj.cpp:
1905         * css/CSSParser.cpp:
1906         (WebCore::CSSParser::logError):
1907         * css/MediaList.cpp:
1908         (WebCore::addResolutionWarningMessageToConsole):
1909         * dom/Document.cpp:
1910         (WebCore::Document::logExceptionToConsole):
1911         (WebCore::Document::processHttpEquiv):
1912         (WebCore::Document::addMessage):
1913         * dom/Document.h:
1914         * dom/ScriptElement.cpp:
1915         (WebCore::ScriptElement::executeScript):
1916         (WebCore::ScriptElement::notifyFinished):
1917         * dom/ScriptExecutionContext.cpp:
1918         * dom/ScriptExecutionContext.h:
1919         * dom/ViewportArguments.cpp:
1920         (WebCore::viewportErrorMessageLevel):
1921         (WebCore::reportViewportWarning):
1922         * fileapi/Blob.cpp:
1923         * fileapi/WebKitBlobBuilder.cpp:
1924         * html/HTMLFormControlElement.cpp:
1925         (WebCore::shouldAutofocus):
1926         * html/HTMLFormElement.cpp:
1927         (WebCore::HTMLFormElement::validateInteractively):
1928         * html/HTMLIFrameElement.cpp:
1929         (WebCore::HTMLIFrameElement::parseAttribute):
1930         * html/HTMLMediaElement.cpp:
1931         (WebCore::HTMLMediaElement::parseAttribute):
1932         * html/canvas/CanvasRenderingContext2D.cpp:
1933         (WebCore::CanvasRenderingContext2D::getImageData):
1934         * html/canvas/WebGLRenderingContext.cpp:
1935         (WebCore::WebGLRenderingContext::printWarningToConsole):
1936         * html/parser/XSSAuditor.cpp:
1937         (WebCore::XSSAuditor::init):
1938         * html/parser/XSSAuditorDelegate.cpp:
1939         (WebCore::XSSAuditorDelegate::didBlockScript):
1940         * inspector/CommandLineAPIHost.cpp:
1941         * inspector/CommandLineAPIHost.h:
1942         (WebCore::CommandLineAPIHost::init):
1943         * inspector/InspectorAllInOne.cpp:
1944         * inspector/InspectorConsoleAgent.h: Removed.
1945         * inspector/InspectorConsoleInstrumentation.h:
1946         (WebCore::InspectorInstrumentation::addMessageToConsole):
1947         (WebCore::InspectorInstrumentation::consoleCount):
1948         (WebCore::InspectorInstrumentation::stopConsoleTiming):
1949         (WebCore::InspectorInstrumentation::consoleTimeStamp):
1950         (WebCore::InspectorInstrumentation::addProfile):
1951         * inspector/InspectorController.cpp:
1952         (WebCore::InspectorController::InspectorController):
1953         * inspector/InspectorDOMAgent.cpp:
1954         * inspector/InspectorFrontendHost.h:
1955         * inspector/InspectorInstrumentation.cpp:
1956         (WebCore::InspectorInstrumentation::frameWindowDiscardedImpl):
1957         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
1958         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
1959         (WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl):
1960         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1961         (WebCore::isConsoleAssertMessage):
1962         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
1963         (WebCore::InspectorInstrumentation::consoleCountImpl):
1964         (WebCore::InspectorInstrumentation::startConsoleTimingImpl):
1965         (WebCore::InspectorInstrumentation::stopConsoleTimingImpl):
1966         (WebCore::InspectorInstrumentation::consoleAgentEnabled):
1967         * inspector/InspectorInstrumentation.h:
1968         * inspector/InspectorLayerTreeAgent.cpp:
1969         * inspector/InspectorPageAgent.cpp:
1970         * inspector/InspectorProfilerAgent.cpp:
1971         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
1972         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
1973         * inspector/InspectorProfilerAgent.h:
1974         * inspector/InspectorResourceAgent.cpp:
1975         (WebCore::InspectorResourceAgent::buildInitiatorObject):
1976         * inspector/InspectorTimelineAgent.cpp:
1977         * inspector/InstrumentingAgents.cpp:
1978         (WebCore::InstrumentingAgents::InstrumentingAgents):
1979         (WebCore::InstrumentingAgents::reset):
1980         * inspector/PageConsoleAgent.cpp:
1981         (WebCore::PageConsoleAgent::PageConsoleAgent):
1982         (WebCore::PageConsoleAgent::clearMessages):
1983         (WebCore::PageConsoleAgent::addInspectedNode):
1984         * inspector/PageConsoleAgent.h:
1985         * inspector/PageDebuggerAgent.cpp:
1986         (WebCore::PageDebuggerAgent::breakpointActionLog):
1987         * inspector/PageInjectedScriptHost.h:
1988         * inspector/PageInjectedScriptManager.h:
1989         * inspector/TimelineRecordFactory.cpp:
1990         (WebCore::TimelineRecordFactory::createGenericRecord):
1991         (WebCore::WebConsoleAgent::~WebConsoleAgent):
1992         * inspector/WorkerConsoleAgent.cpp:
1993         (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
1994         (WebCore::WorkerConsoleAgent::addInspectedNode):
1995         * inspector/WorkerConsoleAgent.h:
1996         * inspector/WorkerDebuggerAgent.cpp:
1997         (WebCore::WorkerDebuggerAgent::breakpointActionLog):
1998         * inspector/WorkerInspectorController.cpp:
1999         (WebCore::WorkerInspectorController::WorkerInspectorController):
2000         * loader/DocumentLoader.cpp:
2001         (WebCore::DocumentLoader::responseReceived):
2002         * loader/FrameLoader.cpp:
2003         (WebCore::FrameLoader::submitForm):
2004         (WebCore::FrameLoader::reportLocalLoadFailed):
2005         (WebCore::FrameLoader::handleBeforeUnloadEvent):
2006         (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
2007         (WebCore::createWindow):
2008         * loader/ImageLoader.cpp:
2009         (WebCore::ImageLoader::notifyFinished):
2010         * loader/MixedContentChecker.cpp:
2011         (WebCore::MixedContentChecker::logWarning):
2012         * loader/TextTrackLoader.cpp:
2013         (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
2014         * loader/appcache/ApplicationCacheGroup.cpp:
2015         (WebCore::ApplicationCacheGroup::abort):
2016         (WebCore::ApplicationCacheGroup::didReceiveResponse):
2017         (WebCore::ApplicationCacheGroup::didFinishLoading):
2018         (WebCore::ApplicationCacheGroup::didFail):
2019         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse):
2020         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
2021         (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
2022         * loader/cache/CachedResourceLoader.cpp:
2023         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
2024         * page/ChromeClient.h:
2025         * page/Console.cpp:
2026         (WebCore::internalAddMessage):
2027         (WebCore::Console::debug):
2028         (WebCore::Console::error):
2029         (WebCore::Console::log):
2030         (WebCore::Console::warn):
2031         (WebCore::Console::dir):
2032         (WebCore::Console::dirxml):
2033         (WebCore::Console::table):
2034         (WebCore::Console::clear):
2035         (WebCore::Console::trace):
2036         (WebCore::Console::assertCondition):
2037         (WebCore::Console::group):
2038         (WebCore::Console::groupCollapsed):
2039         (WebCore::Console::groupEnd):
2040         * page/Console.h:
2041         * page/ConsoleTypes.h: Removed.
2042         * page/ContentSecurityPolicy.cpp:
2043         (WebCore::ContentSecurityPolicy::reportViolation):
2044         (WebCore::ContentSecurityPolicy::logToConsole):
2045         * page/DOMSecurityPolicy.cpp:
2046         * page/DOMWindow.cpp:
2047         (WebCore::DOMWindow::postMessage):
2048         (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
2049         (WebCore::DOMWindow::close):
2050         (WebCore::DOMWindow::printErrorMessage):
2051         * page/DOMWindow.h:
2052         * page/EventSource.cpp:
2053         (WebCore::EventSource::didReceiveResponse):
2054         (WebCore::EventSource::didFailAccessControlCheck):
2055         * page/PageConsole.cpp:
2056         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
2057         (WebCore::PageConsole::addMessage):
2058         * page/PageConsole.h:
2059         * page/PointerLockController.cpp:
2060         (WebCore::PointerLockController::requestPointerLock):
2061         * platform/CrossThreadCopier.h:
2062         * rendering/shapes/ShapeInfo.cpp:
2063         (WebCore::checkShapeImageOrigin):
2064         * svg/SVGDocumentExtensions.cpp:
2065         (WebCore::reportMessage):
2066         (WebCore::SVGDocumentExtensions::reportWarning):
2067         (WebCore::SVGDocumentExtensions::reportError):
2068         * testing/Internals.cpp:
2069         (WebCore::Internals::consoleMessageArgumentCounts):
2070         * workers/DefaultSharedWorkerRepository.cpp:
2071         * workers/SharedWorkerGlobalScope.cpp:
2072         (WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
2073         * workers/SharedWorkerGlobalScope.h:
2074         * workers/WorkerGlobalScope.cpp:
2075         (WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
2076         * workers/WorkerGlobalScope.h:
2077         * workers/WorkerMessagingProxy.cpp:
2078         * workers/WorkerReportingProxy.h:
2079         * xml/XMLHttpRequest.cpp:
2080         (WebCore::logConsoleError):
2081         (WebCore::XMLHttpRequest::send):
2082         * xml/XSLTProcessorLibxslt.cpp:
2083         (WebCore::XSLTProcessor::parseErrorFunc):
2084
2085 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2086
2087         Convert a parameter to PassRefPtr
2088         https://bugs.webkit.org/show_bug.cgi?id=128327
2089
2090         Reviewed by Timothy Hatcher.
2091
2092         * inspector/InspectorConsoleInstrumentation.h:
2093         (WebCore::InspectorInstrumentation::addProfile):
2094         * inspector/InspectorInstrumentation.h:
2095
2096 2014-01-30  Oliver Hunt  <oliver@apple.com>
2097
2098         Push DOM attributes into the prototype chain
2099         https://bugs.webkit.org/show_bug.cgi?id=127969
2100
2101         Reviewed by Mark Lam.
2102
2103         This patch does the actual work of moving dom attributes up the
2104         prototype chain. There are still a few class and edge cases
2105         where we can't do this without impacting existing behaviour,
2106         but they can be fixed separately in later patches.
2107
2108         * bindings/js/JSDOMBinding.h:
2109         (WebCore::getStaticPropertySlotEntryWithoutCaching):
2110         (WebCore::getStaticPropertySlotEntryWithoutCaching<JSDOMWrapper>):
2111         * bindings/scripts/CodeGeneratorJS.pm:
2112         (GenerateGetOwnPropertySlotBody):
2113         (HasComplexGetOwnProperty):
2114         (ConstructorShouldBeOnInstance):
2115         (AttributeShouldBeOnInstance):
2116         (InstanceAttributeCount):
2117         (PrototypeAttributeCount):
2118         (InstanceOverridesGetOwnPropertySlot):
2119         (PrototypeOverridesGetOwnPropertySlot):
2120         (GenerateAttributesHashTable):
2121         (GenerateImplementation):
2122
2123 2014-02-06  Andreas Kling  <akling@apple.com>
2124
2125         Remove display:run-in support.
2126         <https://webkit.org/b/127874>
2127         <rdar://problem/15926949>
2128
2129         Remove support for the "run-in" display type. Blink recently removed
2130         this and Gecko never supported in the first place.
2131
2132         Rubber-stamped by Anders Carlsson.
2133
2134         * css/CSSParser.cpp:
2135         (WebCore::isValidKeywordPropertyAndValue):
2136         * css/CSSPrimitiveValueMappings.h:
2137         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2138         * css/CSSValueKeywords.in:
2139         * css/StyleResolver.cpp:
2140         (WebCore::equivalentBlockDisplay):
2141         (WebCore::doesNotInheritTextDecoration):
2142         * rendering/RenderBlock.cpp:
2143         (WebCore::RenderBlock::willBeDestroyed):
2144         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
2145         (WebCore::RenderBlock::makeChildrenNonInline):
2146         (WebCore::canMergeContiguousAnonymousBlocks):
2147         (WebCore::RenderBlock::renderName):
2148         * rendering/RenderBlock.h:
2149         * rendering/RenderBlockFlow.cpp:
2150         (WebCore::RenderBlockFlow::willBeDestroyed):
2151         (WebCore::shouldCheckLines):
2152         (WebCore::getHeightForLineCount):
2153         * rendering/RenderElement.cpp:
2154         (WebCore::RenderElement::createFor):
2155         (WebCore::RenderElement::destroyLeftoverChildren):
2156         * rendering/RenderFileUploadControl.cpp:
2157         * rendering/RenderFileUploadControl.h:
2158         * rendering/RenderInline.cpp:
2159         (WebCore::RenderInline::updateFromStyle):
2160         (WebCore::RenderInline::renderName):
2161         (WebCore::RenderInline::clippedOverflowRectForRepaint):
2162         * rendering/RenderListBox.cpp:
2163         * rendering/RenderListBox.h:
2164         * rendering/RenderMenuList.cpp:
2165         * rendering/RenderMenuList.h:
2166         * rendering/RenderObject.cpp:
2167         * rendering/RenderObject.h:
2168         * rendering/RenderProgress.cpp:
2169         * rendering/RenderProgress.h:
2170         * rendering/RenderSlider.cpp:
2171         * rendering/RenderSlider.h:
2172         * rendering/RenderTextControl.cpp:
2173         * rendering/RenderTextControl.h:
2174         * rendering/RenderTheme.cpp:
2175         (WebCore::RenderTheme::adjustStyle):
2176         * rendering/style/RenderStyleConstants.h:
2177
2178 2014-02-06  Andreas Kling  <akling@apple.com>
2179
2180         Remove leftover cruft from scoped stylesheet implementation.
2181         <https://webkit.org/b/128139>
2182
2183         Kill some pointless non-null checks that were left behind by the
2184         removed <style scoped> code. Also pruned outdated comments and
2185         FIXME's about such scopes.
2186
2187         Reviewed by Antti Koivisto.
2188
2189         * css/ElementRuleCollector.cpp:
2190         (WebCore::ElementRuleCollector::collectMatchingRules):
2191         * css/RuleSet.cpp:
2192         (WebCore::RuleSet::addChildRules):
2193         (WebCore::RuleSet::addRulesFromSheet):
2194         * css/RuleSet.h:
2195         * css/StyleResolver.cpp:
2196         (WebCore::StyleResolver::checkRegionStyle):
2197
2198 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
2199
2200         Wheel events don't latch to inner scrollable elements 
2201         https://bugs.webkit.org/show_bug.cgi?id=128225
2202
2203         Reviewed by Beth Dakin.
2204
2205         * page/EventHandler.cpp:
2206         (WebCore::EventHandler::handleWheelEvent): Identify the case
2207         where we have hit the end of a scroll, and treat that as a
2208         valid 'handled' case. If the scroll event is just starting,
2209         treat end-of-scroll as unhandled so the parent element can
2210         handle things.
2211         * page/WheelEventDeltaTracker.h:
2212         (WebCore::WheelEventDeltaTracker::isFirstWheelEvent): Added.
2213
2214 2014-02-06  Commit Queue  <commit-queue@webkit.org>
2215
2216         Unreviewed, rolling out r163542.
2217         http://trac.webkit.org/changeset/163542
2218         https://bugs.webkit.org/show_bug.cgi?id=128324
2219
2220         Caused many assertion failures (Requested by ap on #webkit).
2221
2222         * bindings/js/JSEventListener.cpp:
2223         (WebCore::JSEventListener::JSEventListener):
2224         * bindings/js/JSEventListener.h:
2225         (WebCore::JSEventListener::jsFunction):
2226
2227 2014-02-06  Frédéric Wang  <fred.wang@free.fr>
2228
2229         Do not draw multi-characters <mi> in italic.
2230         https://bugs.webkit.org/show_bug.cgi?id=44208
2231
2232         Reviewed by Chris Fleizach.
2233
2234         This test prevents multi-char <mi> to be drawn in italic and prepare
2235         further improvements to MathML token and mfenced elements (bugs 124838
2236         and bug 99620).
2237
2238         Test: mathml/presentation/tokenElements-dynamic.html
2239
2240         * CMakeLists.txt:
2241         * GNUmakefile.list.am:
2242         * WebCore.vcxproj/WebCore.vcxproj:
2243         * WebCore.vcxproj/WebCore.vcxproj.filters:
2244         * WebCore.xcodeproj/project.pbxproj:
2245         * css/mathml.css:
2246         (mi, mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
2247         * mathml/MathMLTextElement.cpp:
2248         (WebCore::MathMLTextElement::didAttachRenderers):
2249         (WebCore::MathMLTextElement::childrenChanged):
2250         (WebCore::MathMLTextElement::createElementRenderer):
2251         * rendering/RenderObject.h:
2252         (WebCore::RenderObject::isRenderMathMLToken):
2253         * rendering/mathml/RenderMathMLToken.cpp: Added.
2254         (WebCore::RenderMathMLToken::RenderMathMLToken):
2255         (WebCore::RenderMathMLToken::addChild):
2256         (WebCore::RenderMathMLToken::createWrapperIfNeeded):
2257         (WebCore::RenderMathMLToken::updateTokenContent):
2258         (WebCore::RenderMathMLToken::updateStyle):
2259         (WebCore::RenderMathMLToken::styleDidChange):
2260         (WebCore::RenderMathMLToken::updateFromElement):
2261         * rendering/mathml/RenderMathMLToken.h: Added.
2262         (WebCore::RenderMathMLToken::element):
2263         (WebCore::RenderMathMLToken>):
2264
2265 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
2266
2267         [CSS Shapes] Simplify BasicShapeInset creation
2268         https://bugs.webkit.org/show_bug.cgi?id=128314
2269
2270         Reviewed by David Hyatt.
2271
2272         Introduce convertToLengthSize helper function in order to simplify and make BasicShapeInset more readable.
2273
2274         No new tests, no behavior change.
2275
2276         * css/BasicShapeFunctions.cpp:
2277         (WebCore::convertToLengthSize):
2278         (WebCore::basicShapeForValue):
2279
2280 2014-02-06  Anders Carlsson  <andersca@apple.com>
2281
2282         Try to fix the Windows build.
2283
2284         * loader/DocumentThreadableLoader.cpp:
2285         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2286
2287 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
2288
2289         [CSS Grid Layout] getComputedStyle() is wrong for grid-definition-{columns|rows}
2290         https://bugs.webkit.org/show_bug.cgi?id=127033
2291
2292         Reviewed by Andreas Kling.
2293
2294         Tests: fast/css-grid-layout/non-grid-columns-rows-get-set-multiple.html
2295                fast/css-grid-layout/non-grid-columns-rows-get-set.html
2296                fast/css-grid-layout/non-grid-element-repeat-get-set.html
2297                fast/css-grid-layout/non-named-grid-line-get-set.html
2298
2299         According to the specs getComputedStyle() should return the used
2300         values instead of the resolved values for compatibility with early
2301         implementations. This means that grid-definition-{columns|rows}
2302         are now layout dependent as we need to compute the used values for
2303         grid track sizes.
2304
2305         Updated the outcome of existing tests and added a bunch of new
2306         ones that check the behavior of the different properties outside
2307         grid containers.
2308
2309         * css/CSSComputedStyleDeclaration.cpp:
2310         (WebCore::specifiedValueForGridTrackSize):
2311         (WebCore::valueForGridTrackList):
2312         (WebCore::isLayoutDependent):
2313         (WebCore::ComputedStyleExtractor::propertyValue):
2314         * rendering/RenderGrid.cpp:
2315         (WebCore::RenderGrid::GridIterator::GridIterator):
2316         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
2317         (WebCore::RenderGrid::computeUsedBreadthOfMinLength):
2318         (WebCore::RenderGrid::computeUsedBreadthOfMaxLength):
2319         (WebCore::RenderGrid::computeUsedBreadthOfSpecifiedLength):
2320         (WebCore::RenderGrid::computeNormalizedFractionBreadth):
2321         (WebCore::RenderGrid::gridTrackSize):
2322         (WebCore::RenderGrid::minContentForChild):
2323         (WebCore::RenderGrid::maxContentForChild):
2324         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
2325         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctionsForItems):
2326         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
2327         (WebCore::RenderGrid::growGrid):
2328         (WebCore::RenderGrid::autoPlacementMajorAxisDirection):
2329         (WebCore::RenderGrid::autoPlacementMinorAxisDirection):
2330         (WebCore::RenderGrid::layoutGridItems):
2331         (WebCore::RenderGrid::resolveGridPositionsFromAutoPlacementPosition):
2332         (WebCore::RenderGrid::resolveGridPositionsFromStyle):
2333         (WebCore::RenderGrid::gridAreaBreadthForChild):
2334         (WebCore::RenderGrid::populateGridPositions):
2335         (WebCore::RenderGrid::findChildLogicalPosition):
2336         * rendering/RenderGrid.h:
2337
2338 2014-02-06  Anders Carlsson  <andersca@apple.com>
2339
2340         Modernize CrossOriginPreflightResultCache
2341         https://bugs.webkit.org/show_bug.cgi?id=128309
2342
2343         Reviewed by Antti Koivisto.
2344
2345         Use std::chrono::steady_clock instead of currentTime() for determining when
2346         cache items expire, Use std::unique_ptr instead of OwnPtr, use NeverDestroyed,
2347         get rid of unnecessary container typedefs now that we have auto. Finally,
2348         de-indent the entire class declaration.
2349
2350         * loader/CrossOriginPreflightResultCache.cpp:
2351         (WebCore::CrossOriginPreflightResultCache::CrossOriginPreflightResultCache):
2352         (WebCore::parseAccessControlMaxAge):
2353         (WebCore::CrossOriginPreflightResultCacheItem::parse):
2354         (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest):
2355         (WebCore::CrossOriginPreflightResultCache::shared):
2356         (WebCore::CrossOriginPreflightResultCache::appendEntry):
2357         (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
2358         * loader/CrossOriginPreflightResultCache.h:
2359         (WebCore::CrossOriginPreflightResultCacheItem::CrossOriginPreflightResultCacheItem):
2360         * loader/DocumentThreadableLoader.cpp:
2361         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2362
2363 2014-02-06  Gurpreet Kaur  <k.gurpreet@samsung.com>
2364
2365         Menclose with no notation attribute does not display anything.
2366         https://bugs.webkit.org/show_bug.cgi?id=127889
2367
2368         Reviewed by Chris Fleizach.
2369
2370         Menclose with no notation attribute should behave same as menclose with
2371         notation attribute with value as longdiv. By default the division
2372         symbol should be displayed. For empty and invalid notation attribute
2373         nothing should be displayed.
2374
2375         Tests: mathml/presentation/menclose-notation-default-longdiv.html
2376                mathml/presentation/menclose-notation-invalid-empty.html
2377
2378         * mathml/MathMLMencloseElement.h:
2379         * rendering/mathml/RenderMathMLMenclose.cpp:
2380         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
2381         (WebCore::RenderMathMLMenclose::paint):
2382         Added style for menclose with no notation attribute and handled this
2383         condition in paint also where for longdiv we are explicitly drawing
2384         the division symbol.
2385
2386 2014-02-05  Mark Hahnenberg  <mhahnenberg@apple.com>
2387
2388         Heap::writeBarrier shouldn't be static
2389         https://bugs.webkit.org/show_bug.cgi?id=127807
2390
2391         Reviewed by Geoffrey Garen.
2392
2393         Currently it looks up the Heap in which to fire the write barrier by using 
2394         the cell passed to it. Almost every call site already has a reference to the 
2395         VM or the Heap itself. It seems wasteful to look it up all over again.
2396
2397         * bindings/js/JSEventListener.cpp:
2398         (WebCore::JSEventListener::JSEventListener):
2399         * bindings/js/JSEventListener.h:
2400         (WebCore::JSEventListener::jsFunction):
2401
2402 2014-02-06  Brady Eidson  <beidson@apple.com>
2403
2404         IDB: storage/indexeddb/mozilla/clear.html fails
2405         <rdar://problem/15997155> and https://bugs.webkit.org/show_bug.cgi?id=128282
2406
2407         Reviewed by David Kilzer.
2408
2409         Covered by storage/indexeddb/mozilla/clear.html (and probably others)
2410
2411         Update the value deserializer to take into account whether or not there was an IDBKey:
2412         * bindings/js/IDBBindingUtilities.cpp:
2413         (WebCore::deserializeIDBValueBuffer):
2414         * bindings/js/IDBBindingUtilities.h:
2415
2416         * Modules/indexeddb/IDBRequest.cpp:
2417         (WebCore::IDBRequest::onSuccess): Call the new form of deserializeIDBValueBuffer.
2418
2419         * Modules/indexeddb/IDBDatabaseBackend.cpp:
2420         (WebCore::IDBDatabaseBackend::clearObjectStore): Update logging.
2421
2422         * Modules/indexeddb/IDBTransaction.cpp:
2423         (WebCore::IDBTransaction::setActive): Update logging.
2424
2425         * Modules/indexeddb/IDBTransactionBackend.cpp:
2426         (WebCore::IDBTransactionBackend::commit): Fix ASSERTs to reflect multi-process worlds.
2427
2428 2014-02-06  Csaba Osztrogonác  <ossy@webkit.org>
2429
2430         Re-enable simple line layout on non-Mac platforms
2431         https://bugs.webkit.org/show_bug.cgi?id=123338
2432
2433         Reviewed by Anders Carlsson.
2434
2435         * rendering/SimpleLineLayout.cpp:
2436         (WebCore::SimpleLineLayout::canUseFor):
2437
2438 2014-02-06  Koop Mast <kwm@FreeBSD.org>
2439
2440         Use system default compiler instead of gcc, as final fall through.
2441         https://bugs.webkit.org/show_bug.cgi?id=126773
2442
2443         Reviewed by Alexey Proskuryakov.
2444
2445         * dom/make_names.pl:
2446
2447 2014-02-06  Eric Carlson  <eric.carlson@apple.com>
2448
2449         No need to enterFullscreen() when already in fullscreen
2450         https://bugs.webkit.org/show_bug.cgi?id=128276
2451
2452         Reviewed by Jer Noble.
2453
2454         No new tests, this is just cleanup.
2455
2456         * html/HTMLMediaElement.cpp:
2457         (WebCore::HTMLMediaElement::updatePlayState): Don't call enterFullscreen() if already there.
2458         (WebCore::HTMLMediaElement::enterFullscreen): Return early if m_isFullscreen is already true.
2459
2460 2014-02-06  Radu Stavila  <stavila@adobe.com>
2461
2462         [CSS Regions] Null dereference applying animation with CSS regions
2463         https://bugs.webkit.org/show_bug.cgi?id=128218
2464
2465         Reviewed by Andrei Bucur.
2466
2467         The first issue (the null dereference) was caused by the checkForZoomChange method
2468         not guarding against a null parentStyle parameter, as the checkForGenericFamilyChange 
2469         method does, which in the crashing scenario is called just before the faulty
2470         checkForZoomChange method.
2471         The second issue was an assert which was caused by the fact that detaching is performed
2472         in a certain situation if the element has a renderer or if it's inside a named flow.
2473         However, when reattaching and asserting the element has no renderer, the 
2474         "inside named flow" condition was no longer considered.
2475
2476         Test: fast/regions/animation-element-in-region-flowed-to-other-thread.html
2477
2478         * css/StyleResolver.cpp:
2479         (WebCore::StyleResolver::checkForZoomChange):
2480         * style/StyleResolveTree.cpp:
2481         (WebCore::Style::attachChildren):
2482
2483 2014-02-06  László Langó  <llango.u-szeged@partner.samsung.com>
2484
2485         Create a HTMLUnknownElement when using createElement('image')
2486         https://bugs.webkit.org/show_bug.cgi?id=125896
2487
2488         Reviewed by Antti Koivisto.
2489
2490         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad
2491
2492         * html/HTMLTagNames.in:
2493
2494 2014-02-06  Youenn Fablet  <youennf@gmail.com>
2495
2496         [XHR] Ensure response return null when error flag is set for blob and arraybuffer
2497         https://bugs.webkit.org/show_bug.cgi?id=127050
2498
2499         Reviewed by Alexey Proskuryakov.
2500
2501         Added a check in JSXMLHttpRequest::response to ensure response return null when error flag is set for blob and arraybuffer
2502         This check also applies to document and json response types (no change in behavior for those types but code path change)
2503         Added assertions in the related XMLHttpRequest blob and array buffer getters
2504         Minor code clean-up.
2505         The test cases check all four response types in case of timeout and abort
2506
2507         Tests: http/tests/xmlhttprequest/onabort-response-getters.html
2508                http/tests/xmlhttprequest/ontimeout-response-getters.html
2509
2510         * bindings/js/JSXMLHttpRequestCustom.cpp:
2511         (WebCore::JSXMLHttpRequest::response):
2512         * xml/XMLHttpRequest.cpp:
2513         (WebCore::XMLHttpRequest::didCacheResponseJSON):
2514         (WebCore::XMLHttpRequest::responseXML):
2515         (WebCore::XMLHttpRequest::responseBlob):
2516         (WebCore::XMLHttpRequest::responseArrayBuffer):
2517
2518 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
2519
2520         Change Page, FocusController to use ViewState
2521         https://bugs.webkit.org/show_bug.cgi?id=126533
2522
2523         Reviewed by Tim Horton.
2524
2525         These classes currently maintain a set of separate fields to represent the view state;
2526         combine these into a single field, and allow WebPage to send the combined update rather
2527         than individual changes.
2528
2529         Maintain existing interface for WebKit1 clients.
2530
2531         * WebCore.exp.in:
2532             - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
2533         * page/FocusController.cpp:
2534         (WebCore::FocusController::FocusController):
2535             - Initialize combined m_viewState.
2536         (WebCore::FocusController::setFocused):
2537             - Calls setViewState.
2538         (WebCore::FocusController::setFocusedInternal):
2539             - setFocused -> setFocusedInternal.
2540         (WebCore::FocusController::setViewState):
2541             - Added, update all ViewState flags.
2542         (WebCore::FocusController::setActive):
2543             - Calls setViewState.
2544         (WebCore::FocusController::setActiveInternal):
2545             - setActive -> setActiveInternal.
2546         (WebCore::FocusController::setContentIsVisible):
2547             - Calls setViewState.
2548         (WebCore::FocusController::setContentIsVisibleInternal):
2549             - setContentIsVisible -> setContentIsVisibleInternal.
2550         * page/FocusController.h:
2551         (WebCore::FocusController::isActive):
2552         (WebCore::FocusController::isFocused):
2553         (WebCore::FocusController::contentIsVisible):
2554             - Implemented in terms of ViewState.
2555         * page/Page.cpp:
2556         (WebCore::Page::Page):
2557             - Initialize using PageInitialViewState.
2558         (WebCore::Page::setIsInWindow):
2559             - Calls setViewState.
2560         (WebCore::Page::setIsInWindowInternal):
2561             - setIsInWindow -> setIsInWindowInternal.
2562         (WebCore::Page::setIsVisuallyIdleInternal):
2563             - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
2564         (WebCore::Page::setViewState):
2565             - Added, update all ViewState flags, including FocusController.
2566         (WebCore::Page::setIsVisible):
2567             - Calls setViewState.
2568         (WebCore::Page::setIsVisibleInternal):
2569             - setIsVisible -> setIsVisibleInternal.
2570         (WebCore::Page::visibilityState):
2571             - m_isVisible -> isVisible()
2572         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
2573             - m_isVisible -> isVisible()
2574         * page/Page.h:
2575         (WebCore::Page::isVisible):
2576         (WebCore::Page::isInWindow):
2577             - Implemented in terms of ViewState.
2578         (WebCore::Page::scriptedAnimationsSuspended):
2579             - Combined member fields into ViewState::Flags.
2580
2581 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
2582
2583         Transfer the non-fast-scrollable region to the UI process for iOS
2584         https://bugs.webkit.org/show_bug.cgi?id=128293
2585
2586         Reviewed by Benjamin Poulain.
2587
2588         Two main changes to support sending the non-fast scrollable region
2589         to the UI process for iOS:
2590         
2591         1. Add ScrollingCoordinator::frameViewNonFastScrollableRegionChanged(),
2592         which is called when we've updated the touch event region (this can happen
2593         independenly of layout). When called we just scheduled a scrolling tree
2594         commit with the new region.
2595         
2596         2. Avoid thinking that we have a new root node with every remote scrolling
2597         transaction. This was a side-effect of reconstructing the scrolling state
2598         tree in the UI process, and caused us to try to grab a nonFastScrollableRegion
2599         from a node which never had one set.
2600
2601         * WebCore.exp.in:
2602         * page/scrolling/AsyncScrollingCoordinator.cpp:
2603         (WebCore::AsyncScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
2604         * page/scrolling/AsyncScrollingCoordinator.h:
2605         * page/scrolling/ScrollingCoordinator.cpp:
2606         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
2607         * page/scrolling/ScrollingCoordinator.h:
2608         (WebCore::ScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
2609         * page/scrolling/ScrollingStateTree.h:
2610         (WebCore::ScrollingStateTree::setHasNewRootStateNode):
2611         * page/scrolling/ScrollingTree.cpp:
2612         (WebCore::ScrollingTree::commitNewTreeState):
2613         (WebCore::ScrollingTree::isPointInNonFastScrollableRegion):
2614         * page/scrolling/ScrollingTree.h:
2615
2616 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
2617
2618         [iOS] Synchronize the WKContentView and UIScrollView updates with the tiles being commited
2619         https://bugs.webkit.org/show_bug.cgi?id=127886
2620
2621         Reviewed by Simon Fraser.
2622
2623         The updates of the views on the UIProcess side was completely disconnected
2624         from the tiles updates from the DrawingArea. There is a non-negligible time
2625         between the size/scale update and the new tiles coming, which causes
2626         visual glitches.
2627
2628         There are three main cases where the tiles and content would be out of sync
2629         with the UIViews:
2630         -When loading a new page with different content width of a different viewport.
2631         -When a page changes its viewport.
2632         -When the viewport-constrainted viewport size changes.
2633
2634         To fix the issue, WKView is modified to maintain the old state of WKContentView
2635         and UIScrollView until the new tiles are available.
2636
2637         Geometry/scale update are split in two phases:
2638         1) A source (the page or the user) changes parameters of the geometry. The WebProcess updates
2639            its layout accordingly.
2640            At this point, the UIViews are unchanged and are left with the old parameters.
2641         2) Eventually, new tiles come and commitLayerTree() is called on the drawing area proxy.
2642            At that point, WKContentView and its UIScrollView are updated to match the committed
2643            size and scale for the page.
2644
2645         * WebCore.exp.in:
2646         * WebCore.xcodeproj/project.pbxproj:
2647         * page/ViewportConfiguration.cpp: Added.
2648         (WebCore::constraintsAreAllRelative):
2649         (WebCore::ViewportConfiguration::ViewportConfiguration):
2650         (WebCore::ViewportConfiguration::setDefaultConfiguration):
2651         (WebCore::ViewportConfiguration::setContentsSize):
2652         (WebCore::ViewportConfiguration::setMinimumLayoutSize):
2653         (WebCore::ViewportConfiguration::setViewportArguments):
2654         (WebCore::ViewportConfiguration::layoutSize):
2655         (WebCore::ViewportConfiguration::initialScale):
2656         (WebCore::ViewportConfiguration::minimumScale):
2657         (WebCore::ViewportConfiguration::maximumScale):
2658         (WebCore::ViewportConfiguration::allowsUserScaling):
2659         (WebCore::viewportArgumentValueIsValid):
2660         (WebCore::applyViewportArgument):
2661         (WebCore::ViewportConfiguration::updateConfiguration):
2662         (WebCore::ViewportConfiguration::layoutWidth):
2663         (WebCore::ViewportConfiguration::layoutHeight):
2664         * page/ViewportConfiguration.h: Added.
2665         (WebCore::ViewportConfigurationConfiguration::ViewportConfigurationConfiguration):
2666         (WebCore::ViewportConfiguration::defaultConfiguration):
2667         (WebCore::ViewportConfiguration::contentsSize):
2668         (WebCore::ViewportConfiguration::minimumLayoutSize):
2669         (WebCore::ViewportConfiguration::viewportArguments):
2670
2671 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
2672
2673         SelectorCodeGenerator::generateElementHasTagName should match the local name before the namespace
2674         https://bugs.webkit.org/show_bug.cgi?id=128167
2675
2676         Reviewed by Sam Weinig.
2677
2678         The local name is a stricter filter than the namespace, it should always run first.
2679
2680         * cssjit/SelectorCompiler.cpp:
2681         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementHasTagName):
2682
2683 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
2684
2685         Add HTMLNames::classAttr as a regular name in SVGElement::isAnimatableAttribute
2686         https://bugs.webkit.org/show_bug.cgi?id=128166
2687
2688         Reviewed by Sam Weinig.
2689
2690         For historical reasons, classAttr was treated separately. There is no reasons for that anymore.
2691
2692         * svg/SVGElement.cpp:
2693         (WebCore::SVGElement::isAnimatableAttribute):
2694
2695 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
2696
2697         Support encoding and decoding of Regions
2698         https://bugs.webkit.org/show_bug.cgi?id=128284
2699
2700         Reviewed by Anders Carlsson.
2701
2702         Region changes to make it encodable:
2703         
2704         Make Region::Span public and give it a default constructor.
2705         Allow getting and setting of Shape internals, and a way to update
2706         the Region bounds after changing the shape. Also add a way to test
2707         for valid spans and segments.
2708
2709         * platform/graphics/Region.cpp:
2710         (WebCore::Region::Shape::isValid):
2711         (WebCore::Region::updateBoundsFromShape):
2712         * platform/graphics/Region.h:
2713         (WebCore::Region::isValid):
2714         (WebCore::Region::Span::Span):
2715         (WebCore::Region::shapeSegments):
2716         (WebCore::Region::shapeSpans):
2717         (WebCore::Region::setShapeSegments):
2718         (WebCore::Region::setShapeSpans):
2719         (WebCore::Region::Shape::segments):
2720         (WebCore::Region::Shape::spans):
2721         (WebCore::Region::Shape::setSegments):
2722         (WebCore::Region::Shape::setSpans):
2723
2724 2014-02-05  Andreas Kling  <akling@apple.com>
2725
2726         Rebaseline the bindings tests after Oliver's hackery.
2727
2728         * bindings/scripts/test/JS/:
2729
2730 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
2731
2732         [EFL][GTK] Share plugin's implementation between EFL and Gtk ports.
2733         https://bugs.webkit.org/show_bug.cgi?id=70592
2734
2735         Reviewed by Gyuyoung Kim.
2736
2737         Merge common logics of PluginViewGtk.cpp and PluginViewEfl.cpp to PluginViewX11.cpp.
2738         So, this patch improves the windowless plugin support for the EFL port.
2739
2740         * GNUmakefile.am: Add include path for gtk2xtbin.h header file.
2741         * GNUmakefile.list.am: Added PluginViewX11.cpp into source lists.
2742         * PlatformEfl.cmake: Ditto.
2743         * PlatformGTK.cmake: Ditto.
2744         * plugins/PluginView.h: Added getRootWindow and getPluginDisply which implement platform specific code.
2745         * plugins/efl/PluginViewEfl.cpp:
2746         (WebCore::PluginView::getRootWindow):
2747         (WebCore::PluginView::platformGetValueStatic): Turn on NPNVSupportsWindowless support.
2748         (WebCore::PluginView::getPluginDisplay):
2749         (WebCore::PluginView::platformStart):
2750         * plugins/gtk/PluginViewGtk.cpp:
2751         (WebCore::PluginView::getRootWindow):
2752         (WebCore::setXButtonEventSpecificFields):
2753         (WebCore::setXMotionEventSpecificFields):
2754         (WebCore::setXCrossingEventSpecificFields):
2755         (WebCore::PluginView::getPluginDisplay):
2756         (WebCore::PluginView::platformStart):
2757         * plugins/x11/PluginViewX11.cpp: Moved common logics from PluginViewGtk.cpp
2758         (WebCore::PluginView::dispatchNPEvent):
2759         (WebCore::PluginView::updatePluginWidget):
2760         (WebCore::PluginView::handleFocusInEvent):
2761         (WebCore::PluginView::invalidateRect):
2762         (WebCore::PluginView::invalidateRegion):
2763         (WebCore::PluginView::handleFocusOutEvent):
2764         (WebCore::PluginView::initXEvent):
2765         (WebCore::PluginView::paint):
2766         (WebCore::PluginView::setParent):
2767         (WebCore::PluginView::setNPWindowRect):
2768         (WebCore::PluginView::setNPWindowIfNeeded):
2769
2770 2014-02-05  Anders Carlsson  <andersca@apple.com>
2771
2772         Fix a warning.
2773
2774         * platform/mac/ContentFilterMac.mm:
2775         (WebCore::ContentFilter::ContentFilter):
2776         Remove an unnecessary comparison.
2777
2778 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
2779
2780         Fix the !ENABLE(PAGE_VISIBILITY_API) build
2781         https://bugs.webkit.org/show_bug.cgi?id=127907
2782
2783         Reviewed by Brent Fulgham.
2784
2785         * page/Page.cpp:
2786         (WebCore::Page::setIsVisible):
2787
2788 2014-02-05  Oliver Hunt  <oliver@apple.com>
2789
2790         Change custom getter signature to make the base reference an object pointer
2791         https://bugs.webkit.org/show_bug.cgi?id=128279
2792
2793         Reviewed by Geoffrey Garen.
2794
2795         Update everything to the new calling convention.
2796
2797         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2798         (WebCore::cssPropertyGetterPixelOrPosPrefixCallback):
2799         (WebCore::cssPropertyGetterCallback):
2800         * bindings/js/JSDOMBinding.cpp:
2801         (WebCore::objectToStringFunctionGetter):
2802         * bindings/js/JSDOMBinding.h:
2803         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
2804         (WebCore::JSDOMMimeTypeArray::nameGetter):
2805         * bindings/js/JSDOMPluginArrayCustom.cpp:
2806         (WebCore::JSDOMPluginArray::nameGetter):
2807         * bindings/js/JSDOMPluginCustom.cpp:
2808         (WebCore::JSDOMPlugin::nameGetter):
2809         * bindings/js/JSDOMWindowCustom.cpp:
2810         (WebCore::nonCachingStaticFunctionGetter):
2811         (WebCore::childFrameGetter):
2812         (WebCore::indexGetter):
2813         (WebCore::namedItemGetter):
2814         * bindings/js/JSHTMLAllCollectionCustom.cpp:
2815         (WebCore::JSHTMLAllCollection::nameGetter):
2816         * bindings/js/JSHTMLCollectionCustom.cpp:
2817         (WebCore::JSHTMLCollection::nameGetter):
2818         * bindings/js/JSHTMLDocumentCustom.cpp:
2819         (WebCore::JSHTMLDocument::nameGetter):
2820         * bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
2821         (WebCore::JSHTMLFormControlsCollection::nameGetter):
2822         * bindings/js/JSHTMLFormElementCustom.cpp:
2823         (WebCore::JSHTMLFormElement::nameGetter):
2824         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
2825         (WebCore::JSHTMLFrameSetElement::nameGetter):
2826         * bindings/js/JSHistoryCustom.cpp:
2827         (WebCore::nonCachingStaticBackFunctionGetter):
2828         (WebCore::nonCachingStaticForwardFunctionGetter):
2829         (WebCore::nonCachingStaticGoFunctionGetter):
2830         * bindings/js/JSLocationCustom.cpp:
2831         (WebCore::nonCachingStaticReplaceFunctionGetter):
2832         (WebCore::nonCachingStaticReloadFunctionGetter):
2833         (WebCore::nonCachingStaticAssignFunctionGetter):
2834         * bindings/js/JSNamedNodeMapCustom.cpp:
2835         (WebCore::JSNamedNodeMap::nameGetter):
2836         * bindings/js/JSPluginElementFunctions.cpp:
2837         (WebCore::pluginElementPropertyGetter):
2838         * bindings/js/JSPluginElementFunctions.h:
2839         * bindings/js/JSRTCStatsResponseCustom.cpp:
2840         (WebCore::JSRTCStatsResponse::nameGetter):
2841         * bindings/js/JSStorageCustom.cpp:
2842         (WebCore::JSStorage::nameGetter):
2843         * bindings/js/JSStyleSheetListCustom.cpp:
2844         (WebCore::JSStyleSheetList::nameGetter):
2845         * bindings/scripts/CodeGeneratorJS.pm:
2846         (GenerateHeader):
2847         (GenerateImplementation):
2848         * bridge/runtime_array.cpp:
2849         (JSC::RuntimeArray::lengthGetter):
2850         (JSC::RuntimeArray::indexGetter):
2851         * bridge/runtime_array.h:
2852         * bridge/runtime_method.cpp:
2853         (JSC::RuntimeMethod::lengthGetter):
2854         * bridge/runtime_method.h:
2855         * bridge/runtime_object.cpp:
2856         (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
2857         (JSC::Bindings::RuntimeObject::fieldGetter):
2858         (JSC::Bindings::RuntimeObject::methodGetter):
2859         * bridge/runtime_object.h:
2860
2861 2014-02-04  Andy Estes  <aestes@apple.com>
2862
2863         Buffer incoming data in ContentFilter when using NEFilterSource
2864         https://bugs.webkit.org/show_bug.cgi?id=127979
2865
2866         Reviewed by Sam Weinig.
2867
2868         WebFilterEvaluator buffers incoming data and returns it to us as
2869         replacement data if the load is allowed. NEFilterSource doesn't do
2870         this, so we need to do our own buffering.
2871
2872         * platform/ContentFilter.h: Forward-declared NSMutableData and added
2873         m_originalData.
2874         * platform/mac/ContentFilterMac.mm:
2875         (WebCore::ContentFilter::ContentFilter): Constructed m_originalData
2876         with an initial capacity (if we know the expected content size).
2877         (WebCore::ContentFilter::addData): Buffered incoming data if we are
2878         using NEFilterSource.
2879         (WebCore::ContentFilter::finishedAddingData):
2880         (WebCore::ContentFilter::getReplacementData): Returned m_originalData
2881         if the load wasn't blocked.
2882
2883 2014-02-05  Andreas Kling  <akling@apple.com>
2884
2885         Remove ENABLE(DIRECTORY_UPLOAD).
2886         <https://webkit.org/b/128275>
2887
2888         This is a non-standard Chrome extension that none of the WebKit
2889         ports have even been building.
2890
2891         Rubber-stamped by Ryosuke Niwa.
2892
2893         * Configurations/FeatureDefines.xcconfig:
2894         * fileapi/File.cpp:
2895         * fileapi/File.h:
2896         * fileapi/File.idl:
2897         * html/FileInputType.cpp:
2898         (WebCore::FileInputType::handleDOMActivateEvent):
2899         (WebCore::FileInputType::createFileList):
2900         (WebCore::FileInputType::receiveDroppedFiles):
2901         * html/FileInputType.h:
2902         * html/HTMLAttributeNames.in:
2903         * html/HTMLInputElement.cpp:
2904         (WebCore::HTMLInputElement::parseAttribute):
2905         * html/HTMLInputElement.idl:
2906         * loader/EmptyClients.h:
2907         * page/Chrome.cpp:
2908         * page/Chrome.h:
2909         * page/ChromeClient.h:
2910         * platform/FileChooser.h:
2911         * platform/network/FormData.cpp:
2912         (WebCore::FormData::appendKeyValuePairItems):
2913
2914 2014-02-05  Brady Eidson  <beidson@apple.com>
2915
2916         IDB: storage/indexeddb/mozilla/autoincrement-indexes.html fails
2917         https://bugs.webkit.org/show_bug.cgi?id=128257
2918
2919         Reviewed by Sam Weinig.
2920
2921         Tests: storage/indexeddb/mozilla/autoincrement-indexes.html
2922
2923         Add some IDBKeyData utility methods for WK2 to use:
2924         * Modules/indexeddb/IDBKeyData.cpp:
2925         (WebCore::IDBKeyData::setArrayValue):
2926         (WebCore::IDBKeyData::setStringValue):
2927         (WebCore::IDBKeyData::setDateValue):
2928         (WebCore::IDBKeyData::setNumberValue):
2929         * Modules/indexeddb/IDBKeyData.h:
2930
2931         * WebCore.exp.in:
2932
2933 2014-02-05  Andreas Kling  <akling@apple.com>
2934
2935         Turn on ENABLE(8BIT_TEXTRUN) for everyone.
2936         <https://webkit.org/b/128273>
2937
2938         Reviewed by Anders Carlsson.
2939
2940         * platform/graphics/TextRun.h:
2941         (WebCore::TextRun::TextRun):
2942         (WebCore::TextRun::subRun):
2943         * rendering/RenderBlock.cpp:
2944         (WebCore::RenderBlock::constructTextRun):
2945         * rendering/RenderBlock.h:
2946
2947 2014-02-05  Enrica Casucci  <enrica@apple.com>
2948
2949         WK2: Caret, selections and autocorrection bubbles are incorrectly positioned when inside an iframe.
2950         https://bugs.webkit.org/show_bug.cgi?id=128264
2951         <rdar://problem/15986954>
2952
2953         Reviewed by Simon Fraser.
2954
2955         Adding new exported function.
2956
2957         * WebCore.exp.in:
2958
2959 2014-02-05  Antti Koivisto  <antti@apple.com>
2960
2961         ElementRuleCollector should not use StyleResolver::State
2962         https://bugs.webkit.org/show_bug.cgi?id=128247
2963
2964         Reviewed by Andreas Kling.
2965         
2966         Make ElementRuleCollector more reusable.
2967
2968         * css/ElementRuleCollector.cpp:
2969         (WebCore::ElementRuleCollector::collectMatchingRules):
2970         (WebCore::ElementRuleCollector::sortAndTransferMatchedRules):
2971         (WebCore::ElementRuleCollector::matchAuthorRules):
2972         (WebCore::ElementRuleCollector::matchUARules):
2973         (WebCore::ElementRuleCollector::ruleMatches):
2974         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
2975         (WebCore::ElementRuleCollector::matchAllRules):
2976         * css/ElementRuleCollector.h:
2977         (WebCore::ElementRuleCollector::ElementRuleCollector):
2978         
2979             Pass the objects that are actually needed rather than the entire State.
2980
2981 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
2982
2983         [Mac] Correct copy/paste error in scrolling code.
2984         https://bugs.webkit.org/show_bug.cgi?id=128258
2985
2986         Reviewed by Anders Carlsson.
2987
2988         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2989         (WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection): Use
2990         'setWidth' when dealing with width metrics.
2991
2992 2014-02-05  Yuki Sekiguchi  <yuki.sekiguchi@access-company.com>
2993
2994         Ruby base oddly justify its text when the text is ideograph and it contains <br> on Mac.
2995         https://bugs.webkit.org/show_bug.cgi?id=106417
2996
2997         Reviewed by David Hyatt.
2998
2999         Ruby base always justify even if a line have hard break.
3000         Even if next leaf child is line break, InlineTextBox allow trailing expansion.
3001         This make <br> expanded, and there is odd space at the end of the line.
3002
3003         Test: fast/text/ruby-justification-br.html
3004
3005         * rendering/InlineTextBox.h:
3006         (WebCore::InlineTextBox::expansionBehavior):
3007          - If next leaf child is line break, we should forbid trailing expansion.
3008
3009 2014-02-05  Andreas Kling  <akling@apple.com>
3010
3011         FrameLoader::stateMachine() should return a reference.
3012         <https://webkit.org/b/128263>
3013
3014         There is always a FrameLoaderStateMatchine, so return it by
3015         reference since it can never be null.
3016
3017         Reviewed by Anders Carlsson.
3018
3019         * history/PageCache.cpp:
3020         (WebCore::logCanCachePageDecision):
3021         * loader/DocumentLoader.cpp:
3022         (WebCore::DocumentLoader::finishedLoading):
3023         (WebCore::DocumentLoader::commitData):
3024         (WebCore::DocumentLoader::maybeLoadEmpty):
3025         * loader/DocumentWriter.cpp:
3026         (WebCore::DocumentWriter::createDocument):
3027         (WebCore::DocumentWriter::begin):
3028         * loader/FrameLoader.cpp:
3029         (WebCore::FrameLoader::prepareForHistoryNavigation):
3030         * loader/FrameLoader.h:
3031         (WebCore::FrameLoader::stateMachine):
3032         * loader/HistoryController.cpp:
3033         (WebCore::HistoryController::restoreScrollPositionAndViewState):
3034         (WebCore::HistoryController::saveDocumentState):
3035         * loader/NavigationScheduler.cpp:
3036         (WebCore::NavigationScheduler::scheduleLocationChange):
3037         (WebCore::NavigationScheduler::scheduleFormSubmission):
3038         * loader/ProgressTracker.cpp:
3039         (WebCore::ProgressTracker::incrementProgress):
3040         * loader/cache/CachedResourceLoader.cpp:
3041         (WebCore::CachedResourceLoader::storeResourceTimingInitiatorInformation):
3042         * page/Frame.cpp:
3043         (WebCore::Frame::injectUserScripts):
3044         * page/FrameView.cpp:
3045         (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
3046
3047 2014-02-04  Myles C. Maxfield  <mmaxfield@apple.com>
3048
3049         Move characterAt index checks from InlineIterator to RenderText
3050         https://bugs.webkit.org/show_bug.cgi?id=128224
3051
3052         Reviewed by Simon Fraser.
3053
3054         Move characterAt index checks from InlineIterator to RenderText
3055         so that all RenderText calls are covered. Few safe instances are
3056         now covered with uncheckedCharacterAt.
3057
3058         Merged from Blink:
3059         http://src.chromium.org/viewvc/blink?view=revision&revision=150830
3060
3061         Test: fast/text/character-at-crash.html
3062
3063         * rendering/InlineIterator.h:
3064         (WebCore::InlineIterator::characterAt):
3065         * rendering/RenderText.cpp:
3066         (WebCore::RenderText::computePreferredLogicalWidths):
3067         * rendering/RenderText.h:
3068         (WebCore::RenderText::operator[]):
3069         (WebCore::RenderText::uncheckedCharacterAt):
3070         (WebCore::RenderText::characterAt):
3071
3072 2014-02-05  Andreas Kling  <akling@apple.com>
3073
3074         Remove leftover seamless iframe logic from containerForRepaint().
3075         <https://webkit.org/b/128235>
3076
3077         The parent-flow-thread-in-different-document case is no longer
3078         relevant after <iframe seamless> was removed.
3079
3080         Reviewed by David Hyatt.
3081
3082         * rendering/RenderObject.cpp:
3083         (WebCore::RenderObject::containerForRepaint):
3084
3085 2014-02-05  Hans Muller  <hmuller@adobe.com>
3086
3087         [CSS Shapes] Dynamically created element with image valued shape-outside doesn't update automatically
3088         https://bugs.webkit.org/show_bug.cgi?id=128187
3089
3090         Reviewed by Dean Jackson.
3091
3092         Corrected the way shape-outside handles the completion of an image load. Move
3093         the shape-outside imageChanged() logic from RenderBlock to RenderBox and call
3094         markShapeOutsideDependentsForLayout() instead of parent()->setNeedsLayoutAndPrefWidthsRecalc().
3095         The latter did not deal with descendants of the shape element's siblings correctly and it
3096         failed when the shape element was inserted dynamically. The markShapeOutsideDependentsForLayout()
3097         method can't be called during layout, so the imageChanged() code checks for that. The only
3098         scenario where imageChanged() can be called during layout (that I've discovered so far anyway)
3099         is when an SVG Image is renderered  with drawImage(). The Shape::createRasterShape() does this,
3100         and the corresponding imageChanged() notification can be safely ignored.
3101
3102         Test: fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
3103
3104         * rendering/RenderBlock.cpp:
3105         (WebCore::RenderBlock::imageChanged):
3106         * rendering/RenderBox.cpp:
3107         (WebCore::RenderBox::imageChanged):
3108
3109 2014-02-05  Andreas Kling  <akling@apple.com>
3110
3111         CTTE: ImageLoader is always owned by an Element.
3112         <https://webkit.org/b/128254>
3113
3114         - Codify this by making the constructor take Element& or better.
3115         - Make element() return Element&.
3116         - Marked HTMLImageLoader and SVGImageLoader final.
3117         - Made the ImageLoader constructor protected.
3118
3119         Reviewed by Sam Weinig.
3120
3121         * html/HTMLEmbedElement.cpp:
3122         (WebCore::HTMLEmbedElement::parseAttribute):
3123         * html/HTMLImageElement.cpp:
3124         (WebCore::HTMLImageElement::HTMLImageElement):
3125         * html/HTMLImageLoader.cpp:
3126         (WebCore::HTMLImageLoader::HTMLImageLoader):
3127         (WebCore::HTMLImageLoader::dispatchLoadEvent):
3128         (WebCore::HTMLImageLoader::sourceURI):
3129         (WebCore::HTMLImageLoader::notifyFinished):
3130         * html/HTMLImageLoader.h:
3131         * html/HTMLInputElement.cpp:
3132         (WebCore::HTMLInputElement::imageLoader):
3133         * html/HTMLObjectElement.cpp:
3134         (WebCore::HTMLObjectElement::parseAttribute):
3135         * html/HTMLPlugInImageElement.cpp:
3136         (WebCore::HTMLPlugInImageElement::startLoadingImage):
3137         * html/HTMLVideoElement.cpp:
3138         (WebCore::HTMLVideoElement::didAttachRenderers):
3139         (WebCore::HTMLVideoElement::parseAttribute):
3140         * loader/ImageLoader.cpp:
3141         (WebCore::ImageLoader::ImageLoader):
3142         (WebCore::ImageLoader::~ImageLoader):
3143         (WebCore::ImageLoader::updateFromElement):
3144         (WebCore::ImageLoader::notifyFinished):
3145         (WebCore::ImageLoader::renderImageResource):
3146         (WebCore::ImageLoader::updatedHasPendingEvent):
3147         (WebCore::ImageLoader::timerFired):
3148         (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
3149         (WebCore::ImageLoader::dispatchPendingLoadEvent):
3150         (WebCore::ImageLoader::dispatchPendingErrorEvent):
3151         * loader/ImageLoader.h:
3152         (WebCore::ImageLoader::element):
3153         * svg/SVGImageElement.cpp:
3154         (WebCore::SVGImageElement::SVGImageElement):
3155         * svg/SVGImageLoader.cpp:
3156         (WebCore::SVGImageLoader::SVGImageLoader):
3157         (WebCore::SVGImageLoader::~SVGImageLoader):
3158         (WebCore::SVGImageLoader::dispatchLoadEvent):
3159         (WebCore::SVGImageLoader::sourceURI):
3160         * svg/SVGImageLoader.h:
3161
3162 2014-02-05  Sergio Correia  <sergio.correia@openbossa.org>
3163
3164         SVG preserveAspectRatio=none is not honored.
3165         https://bugs.webkit.org/show_bug.cgi?id=111402
3166
3167         Reviewed by Andreas Kling.
3168
3169         Previously, preserveAspectRatio=none had no effect on SVG images. This change fixes this so
3170         we follow the special handling of preserveAspectRatio on images as defined in the spec:
3171         http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute.
3172
3173         Images that depend on a container size (such as SVG images) require a call to
3174         setContainerSizeForRenderer(...) to set this size. By passing the image's intrinsic size
3175         as the container size, the non-uniform scaling defined in the spec will be achieved.
3176
3177         Merged from Blink: https://chromiumcodereview.appspot.com/14964004
3178
3179         Test: svg/custom/image-with-preserveAspectRatio-none.html
3180
3181         * rendering/svg/RenderSVGImage.cpp:
3182         (WebCore::RenderSVGImage::updateImageViewport):
3183
3184 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
3185
3186         [CSS Shapes] Simplify CSSBasicShapeInset::cssText
3187         https://bugs.webkit.org/show_bug.cgi?id=127841
3188
3189         Reviewed by David Hyatt.
3190
3191         I introduced the updateCornerRadiusWidthAndHeight helper function, which makes the code of cssText method clearer.
3192
3193         No new tests, no behavior change.
3194
3195         * css/CSSBasicShapes.cpp:
3196         (WebCore::updateCornerRadiusWidthAndHeight): Add helper function.
3197         (WebCore::CSSBasicShapeInset::cssText):
3198
3199 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
3200
3201         [CSS Shapes] Simplify BasicShapeInset::path
3202         https://bugs.webkit.org/show_bug.cgi?id=127920
3203
3204         Reviewed by David Hyatt.
3205
3206         I introduced a new static helper function called floatSizeForLengthSize
3207         in order to simplify BasicShapeInset::path method.
3208
3209         No new tests, no behavior change.
3210
3211         * rendering/style/BasicShapes.cpp:
3212         (WebCore::floatSizeForLengthSize): New helper function.
3213         (WebCore::BasicShapeInset::path):
3214
3215 2014-02-05  Wojciech Bielawski  <w.bielawski@samsung.com>
3216
3217         XMLHttpRequest performs too many copies for ArrayBuffer results
3218         https://bugs.webkit.org/show_bug.cgi?id=117458
3219
3220         Reviewed by Alexey Proskuryakov.
3221
3222         Based on blink change: https://chromium.googlesource.com/chromium/blink/+/bed266aa5a43f7c080c87e527bd35e2b80ecc7b7
3223
3224         Add SharedBuffer::createArrayBuffer() and use it to create XMLHttpRequest's response in ArrayBuffer
3225         This cuts
3226             - two memsets (in ArrayBuffer::create and SharedBuffer::m_buffer::resize)
3227             - one copy (SharedBuffer::m_buffer to ArrayBufferContents::m_data)
3228             - one allocation (SharedBuffer::m_buffer)
3229
3230         No new tests. WebKit desn't provide test mechanism similar to blink's one.
3231
3232         * platform/SharedBuffer.cpp:
3233         (WebCore::SharedBuffer::createArrayBuffer):
3234         * platform/SharedBuffer.h:
3235         * xml/XMLHttpRequest.cpp:
3236         (WebCore::XMLHttpRequest::responseArrayBuffer):
3237
3238 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
3239
3240         Remove ENABLE(SVG) guards
3241         https://bugs.webkit.org/show_bug.cgi?id=127991
3242
3243         Reviewed by Sam Weinig.
3244
3245         * CMakeLists.txt:
3246         * Configurations/FeatureDefines.xcconfig:
3247         * DerivedSources.make:
3248         * GNUmakefile.am:
3249         * UseJSC.cmake:
3250         * WebCore.exp.in:
3251         * accessibility/AXObjectCache.cpp:
3252         (WebCore::createFromRenderer):
3253         * accessibility/AccessibilityNodeObject.cpp:
3254         (WebCore::AccessibilityNodeObject::alternativeText):
3255         (WebCore::AccessibilityNodeObject::accessibilityDescription):
3256         * accessibility/AccessibilityRenderObject.cpp:
3257         (WebCore::AccessibilityRenderObject::boundingBoxRect):
3258         (WebCore::AccessibilityRenderObject::supportsPath):
3259         (WebCore::AccessibilityRenderObject::elementPath):
3260         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
3261         (WebCore::AccessibilityRenderObject::remoteSVGRootElement):
3262         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
3263         (-[WebAccessibilityObjectWrapper isSVGGroupElement]):
3264         * bindings/gobject/GNUmakefile.am:
3265         * bindings/js/JSCSSValueCustom.cpp:
3266         (WebCore::toJS):
3267         * bindings/js/JSDocumentCustom.cpp:
3268         (WebCore::toJS):
3269         * bindings/js/JSElementCustom.cpp:
3270         (WebCore::toJSNewlyCreated):
3271         * bindings/js/JSExceptionBase.cpp:
3272         (WebCore::toExceptionBase):
3273         * bindings/js/JSNodeCustom.cpp:
3274         (WebCore::createWrapperInline):
3275         * bindings/js/JSSVGElementInstanceCustom.cpp:
3276         * bindings/js/JSSVGLengthCustom.cpp:
3277         * bindings/js/JSSVGPathSegCustom.cpp:
3278         * css/CSSComputedStyleDeclaration.cpp:
3279         (WebCore::ComputedStyleExtractor::propertyValue):
3280         * css/CSSComputedStyleDeclaration.h:
3281         * css/CSSCursorImageValue.cpp:
3282         (WebCore::resourceReferencedByCursorElement):
3283         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3284         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
3285         (WebCore::CSSCursorImageValue::cachedImage):
3286         (WebCore::CSSCursorImageValue::removeReferencedElement):
3287         * css/CSSCursorImageValue.h:
3288         * css/CSSDefaultStyleSheets.cpp:
3289         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
3290         * css/CSSFontSelector.cpp:
3291         * css/CSSParser.cpp:
3292         (WebCore::CSSParser::parseValue):
3293         (WebCore::CSSParser::parseClipPath):
3294         (WebCore::CSSParser::parseShadow):
3295         (WebCore::CSSParser::parseFilter):
3296         (WebCore::CSSParser::realLex):
3297         * css/CSSParser.h:
3298         * css/CSSPrimitiveValueMappings.h:
3299         * css/CSSStyleSheet.cpp:
3300         (WebCore::isAcceptableCSSStyleSheetParent):
3301         * css/CSSValue.cpp:
3302         (WebCore::CSSValue::equals):
3303         (WebCore::CSSValue::cssText):
3304         (WebCore::CSSValue::destroy):
3305         (WebCore::CSSValue::cloneForCSSOM):
3306         * css/CSSValue.h:
3307         (WebCore::CSSValue::isSubtypeExposedToCSSOM):
3308         * css/CSSValueKeywords.in:
3309         * css/DeprecatedStyleBuilder.cpp:
3310         (WebCore::ApplyPropertyDisplay::isValidDisplayValue):
3311         (WebCore::ApplyPropertyClipPath::applyValue):
3312         * css/ElementRuleCollector.cpp:
3313         (WebCore::ElementRuleCollector::matchAllRules):
3314         * css/SVGCSSComputedStyleDeclaration.cpp:
3315         * css/SVGCSSParser.cpp:
3316         * css/SVGCSSPropertyNames.in:
3317         * css/SVGCSSStyleSelector.cpp:
3318         * css/StyleProperties.cpp:
3319         (WebCore::StyleProperties::getPropertyValue):
3320         * css/StylePropertyShorthand.cpp:
3321         (WebCore::markerShorthand):
3322         (WebCore::shorthandForProperty):
3323         (WebCore::matchingShorthandsForLonghand):
3324         * css/StylePropertyShorthand.h:
3325         * css/StyleResolver.cpp:
3326         (WebCore::StyleResolver::State::clear):
3327         (WebCore::StyleResolver::locateCousinList):
3328         (WebCore::StyleResolver::sharingCandidateHasIdenticalStyleAffectingAttributes):
3329         (WebCore::StyleResolver::canShareStyleWithElement):
3330         (WebCore::StyleResolver::locateSharedStyle):
3331         (WebCore::StyleResolver::adjustRenderStyle):
3332         (WebCore::isValidVisitedLinkProperty):
3333         (WebCore::StyleResolver::applyProperty):
3334         (WebCore::StyleResolver::loadPendingSVGDocuments):
3335         (WebCore::StyleResolver::createFilterOperations):
3336         (WebCore::StyleResolver::loadPendingResources):
3337         * css/StyleResolver.h:
3338         * dom/DOMExceptions.in:
3339         * dom/DOMImplementation.cpp:
3340         (WebCore::addString):
3341         (WebCore::isSupportedSVG11Feature):
3342         (WebCore::DOMImplementation::hasFeature):
3343         (WebCore::DOMImplementation::createDocument):
3344         * dom/Document.cpp:
3345         (WebCore::Document::commonTeardown):
3346         (WebCore::Document::createElement):
3347         (WebCore::Document::implicitClose):
3348         (WebCore::Document::hasSVGRootNode):
3349         * dom/Document.h:
3350         * dom/DocumentStyleSheetCollection.cpp:
3351         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
3352         * dom/Element.cpp:
3353         (WebCore::Element::~Element):
3354         (WebCore::Element::synchronizeAllAttributes):
3355         (WebCore::Element::synchronizeAttribute):
3356         (WebCore::Element::boundsInRootViewSpace):
3357         (WebCore::Element::getBoundingClientRect):
3358         (WebCore::Element::removedFrom):
3359         (WebCore::Element::childShouldCreateRenderer):
3360         (WebCore::Element::fastAttributeLookupAllowed):
3361         (WebCore::Element::clearHasPendingResources):
3362         * dom/Element.h:
3363         * dom/ElementData.h:
3364         * dom/ElementRareData.h:
3365         (WebCore::ElementRareData::ElementRareData):
3366         * dom/EventDispatcher.cpp:
3367         (WebCore::eventTargetRespectingTargetRules):
3368         * dom/EventListenerMap.cpp:
3369         * dom/EventListenerMap.h:
3370         * dom/EventNames.in:
3371         * dom/EventTargetFactory.in:
3372         * dom/QualifiedName.cpp:
3373         * dom/ScriptElement.cpp:
3374         (WebCore::toScriptElementIfPossible):
3375         * dom/Text.cpp:
3376         (WebCore::isSVGText):
3377         (WebCore::Text::createTextRenderer):
3378         * history/CachedFrame.cpp:
3379         (WebCore::CachedFrameBase::restore):
3380         * html/HTMLAnchorElement.cpp:
3381         (WebCore::shouldProhibitLinks):
3382         * html/HTMLEmbedElement.idl:
3383         * html/HTMLFrameElement.idl:
3384         * html/HTMLFrameOwnerElement.cpp:
3385         (WebCore::HTMLFrameOwnerElement::getSVGDocument):
3386         * html/HTMLFrameOwnerElement.h:
3387         * html/HTMLIFrameElement.idl:
3388         * html/HTMLObjectElement.idl:
3389         * html/canvas/DOMPath.h:
3390         (WebCore::DOMPath::create):
3391         * html/canvas/DOMPath.idl:
3392         * html/parser/XSSAuditor.cpp:
3393         (WebCore::isSemicolonSeparatedAttribute):
3394         * inspector/DOMPatchSupport.cpp:
3395         (WebCore::DOMPatchSupport::patchDocument):
3396         * inspector/InspectorCSSAgent.cpp:
3397         (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
3398         * inspector/InspectorDOMAgent.cpp:
3399         (WebCore::InspectorDOMAgent::setOuterHTML):
3400         * inspector/InspectorOverlay.cpp:
3401         * inspector/InspectorStyleSheet.cpp:
3402         (WebCore::InspectorStyleSheet::inlineStyleSheetText):
3403         * loader/FrameLoader.cpp:
3404         * loader/ImageLoader.cpp:
3405         (WebCore::ImageLoader::renderImageResource):
3406         * loader/cache/CachedImage.cpp:
3407         (WebCore::CachedImage::didRemoveClient):
3408         (WebCore::CachedImage::imageForRenderer):
3409         (WebCore::CachedImage::setContainerSizeForRenderer):
3410         (WebCore::CachedImage::imageSizeForRenderer):
3411         (WebCore::CachedImage::createImage):
3412         * loader/cache/CachedImage.h:
3413         * loader/cache/CachedResource.cpp:
3414         (WebCore::defaultPriorityForResourceType):
3415         * loader/cache/CachedResource.h:
3416         * loader/cache/CachedResourceClient.h:
3417         * loader/cache/CachedResourceLoader.cpp:
3418         (WebCore::createResource):
3419         (WebCore::CachedResourceLoader::requestSVGDocument):
3420         (WebCore::CachedResourceLoader::checkInsecureContent):
3421         (WebCore::CachedResourceLoader::canRequest):
3422         * loader/cache/CachedResourceLoader.h:
3423         * loader/cache/CachedSVGDocument.cpp:
3424         * loader/cache/CachedSVGDocument.h:
3425         * loader/cache/CachedSVGDocumentClient.h:
3426         * loader/cache/CachedSVGDocumentReference.cpp:
3427         * loader/cache/CachedSVGDocumentReference.h:
3428         * page/EventHandler.cpp:
3429         (WebCore::EventHandler::EventHandler):
3430         (WebCore::EventHandler::clear):
3431         (WebCore::EventHandler::handleMousePressEvent):
3432         (WebCore::EventHandler::updateSelectionForMouseDrag):
3433         (WebCore::EventHandler::handleMouseMoveEvent):
3434         (WebCore::EventHandler::handleMouseReleaseEvent):
3435         (WebCore::instanceAssociatedWithShadowTreeElement):
3436         (WebCore::EventHandler::updateMouseEventTargetNode):
3437         * page/EventHandler.h:
3438         * page/Frame.cpp:
3439         (WebCore::Frame::setPageAndTextZoomFactors):
3440         * page/FrameView.cpp:
3441         (WebCore::FrameView::applyOverflowToViewport):
3442         (WebCore::FrameView::forceLayoutParentViewIfNeeded):
3443         (WebCore::FrameView::embeddedContentBox):
3444         (WebCore::FrameView::scrollToAnchor):
3445         * page/animation/CSSPropertyAnimation.cpp:
3446         (WebCore::blendFunc):
3447         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
3448         * platform/MIMETypeRegistry.cpp:
3449         (WebCore::initializeSupportedNonImageMimeTypes):
3450         * platform/graphics/TextRun.cpp:
3451         * platform/graphics/TextRun.h:
3452         (WebCore::TextRun::TextRun):
3453         * platform/graphics/WidthIterator.cpp:
3454         (WebCore::WidthIterator::advanceInternal):
3455         * platform/graphics/filters/FETile.cpp:
3456         (WebCore::FETile::platformApplySoftware):
3457         * platform/graphics/filters/FilterOperation.cpp:
3458         (WebCore::ReferenceFilterOperation::getOrCreateCachedSVGDocumentReference):
3459         * platform/graphics/filters/FilterOperation.h:
3460         * platform/gtk/PasteboardGtk.cpp:
3461         (WebCore::getURLForImageElement):
3462         * rendering/FilterEffectRenderer.cpp:
3463         (WebCore::FilterEffectRenderer::buildReferenceFilter):
3464         * rendering/HitTestLocation.cpp:
3465         * rendering/HitTestResult.cpp:
3466         (WebCore::HitTestResult::absoluteImageURL):
3467         (WebCore::HitTestResult::absoluteLinkURL):
3468         (WebCore::HitTestResult::isLiveLink):
3469         * rendering/InlineBox.h:
3470         * rendering/LogicalSelectionOffsetCaches.h:
3471         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject):
3472         * rendering/PaintInfo.h:
3473         (WebCore::PaintInfo::applyTransform):
3474         * rendering/RenderBlockLineLayout.cpp:
3475         (WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns):
3476         * rendering/RenderBoxModelObject.cpp:
3477         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
3478         * rendering/RenderElement.cpp:
3479         (WebCore::RenderElement::addChild):
3480         (WebCore::RenderElement::layerCreationAllowedForSubtree):
3481         (WebCore::RenderElement::styleDidChange):
3482         * rendering/RenderGeometryMap.cpp:
3483         (WebCore::canMapBetweenRenderers):
3484         * rendering/RenderImage.cpp:
3485         (WebCore::RenderImage::embeddedContentBox):
3486         * rendering/RenderLayer.cpp:
3487         (WebCore::RenderLayer::isTransparent):
3488         (WebCore::RenderLayer::setupClipPath):
3489         (WebCore::RenderLayer::calculateClipRects):
3490         * rendering/RenderLayer.h:
3491         * rendering/RenderLayerFilterInfo.cpp:
3492         (WebCore::RenderLayer::FilterInfo::~FilterInfo):
3493         * rendering/RenderLayerFilterInfo.h:
3494         * rendering/RenderNamedFlowThread.cpp:
3495         (WebCore::nextNodeInsideContentElement):
3496         * rendering/RenderObject.cpp:
3497         (WebCore::objectIsRelayoutBoundary):
3498         (WebCore::RenderObject::container):
3499         (WebCore::RenderObject::willBeRemovedFromTree):
3500         * rendering/RenderObject.h:
3501         (WebCore::RenderObject::canContainFixedPositionObjects):
3502         (WebCore::RenderObject::preservesNewline):
3503         * rendering/RenderTreeAsText.cpp:
3504         (WebCore::write):
3505         * rendering/RenderView.cpp:
3506         (WebCore::RenderView::layout):
3507         * rendering/RootInlineBox.cpp:
3508         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
3509         * rendering/SimpleLineLayout.cpp:
3510         (WebCore::SimpleLineLayout::canUseFor):
3511         * rendering/line/BreakingContextInlineHeaders.h:
3512         (WebCore::BreakingContext::initializeForCurrentObject):
3513         (WebCore::BreakingContext::handleText):
3514         * rendering/style/RenderStyle.cpp:
3515         (WebCore::RenderStyle::RenderStyle):
3516         (WebCore::RenderStyle::inheritFrom):
3517         (WebCore::RenderStyle::copyNonInheritedFrom):
3518         (WebCore::RenderStyle::operator==):
3519         (WebCore::RenderStyle::inheritedNotEqual):
3520         (WebCore::RenderStyle::inheritedDataShared):
3521         (WebCore::RenderStyle::diff):
3522         * rendering/style/RenderStyle.h:
3523         * rendering/style/SVGRenderStyle.cpp:
3524         * rendering/style/SVGRenderStyle.h:
3525         * rendering/style/SVGRenderStyleDefs.cpp:
3526         * rendering/style/SVGRenderStyleDefs.h:
3527         * rendering/svg/RenderSVGBlock.cpp:
3528         * rendering/svg/RenderSVGBlock.h:
3529         * rendering/svg/RenderSVGContainer.cpp:
3530         * rendering/svg/RenderSVGContainer.h:
3531         * rendering/svg/RenderSVGEllipse.cpp:
3532         * rendering/svg/RenderSVGEllipse.h:
3533         * rendering/svg/RenderSVGForeignObject.cpp:
3534         * rendering/svg/RenderSVGForeignObject.h:
3535         * rendering/svg/RenderSVGGradientStop.cpp:
3536         * rendering/svg/RenderSVGGradientStop.h:
3537         * rendering/svg/RenderSVGHiddenContainer.cpp:
3538         * rendering/svg/RenderSVGHiddenContainer.h:
3539         * rendering/svg/RenderSVGImage.cpp:
3540         * rendering/svg/RenderSVGImage.h:
3541         * rendering/svg/RenderSVGInline.cpp:
3542         * rendering/svg/RenderSVGInline.h:
3543         * rendering/svg/RenderSVGInlineText.cpp:
3544         * rendering/svg/RenderSVGInlineText.h:
3545         * rendering/svg/RenderSVGModelObject.cpp:
3546         * rendering/svg/RenderSVGModelObject.h:
3547         * rendering/svg/RenderSVGPath.cpp:
3548         * rendering/svg/RenderSVGPath.h:
3549         * rendering/svg/RenderSVGRect.cpp:
3550         * rendering/svg/RenderSVGRect.h:
3551         * rendering/svg/RenderSVGResource.cpp:
3552         * rendering/svg/RenderSVGResource.h:
3553         * rendering/svg/RenderSVGResourceClipper.cpp:
3554         * rendering/svg/RenderSVGResourceClipper.h:
3555         * rendering/svg/RenderSVGResourceContainer.cpp:
3556         * rendering/svg/RenderSVGResourceContainer.h:
3557         * rendering/svg/RenderSVGResourceFilter.cpp:
3558         * rendering/svg/RenderSVGResourceFilter.h:
3559         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
3560         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
3561         * rendering/svg/RenderSVGResourceGradient.cpp:
3562         (WebCore::RenderSVGResourceGradient::applyResource):
3563         * rendering/svg/RenderSVGResourceGradient.h:
3564         * rendering/svg/RenderSVGResourceLinearGradient.cpp:
3565         * rendering/svg/RenderSVGResourceLinearGradient.h:
3566         * rendering/svg/RenderSVGResourceMarker.cpp:
3567         * rendering/svg/RenderSVGResourceMarker.h:
3568         * rendering/svg/RenderSVGResourceMasker.cpp:
3569         * rendering/svg/RenderSVGResourceMasker.h:
3570         * rendering/svg/RenderSVGResourcePattern.cpp:
3571         * rendering/svg/RenderSVGResourcePattern.h:
3572         * rendering/svg/RenderSVGResourceRadialGradient.cpp:
3573         * rendering/svg/RenderSVGResourceRadialGradient.h:
3574         * rendering/svg/RenderSVGResourceSolidColor.cpp:
3575         * rendering/svg/RenderSVGResourceSolidColor.h:
3576         * rendering/svg/RenderSVGRoot.cpp:
3577         * rendering/svg/RenderSVGRoot.h:
3578         * rendering/svg/RenderSVGShape.cpp:
3579         * rendering/svg/RenderSVGShape.h:
3580         * rendering/svg/RenderSVGTSpan.h:
3581         * rendering/svg/RenderSVGText.cpp:
3582         * rendering/svg/RenderSVGText.h:
3583         * rendering/svg/RenderSVGTextPath.cpp:
3584         * rendering/svg/RenderSVGTextPath.h:
3585         * rendering/svg/RenderSVGTransformableContainer.cpp:
3586         * rendering/svg/RenderSVGTransformableContainer.h:
3587         * rendering/svg/RenderSVGViewportContainer.cpp:
3588         * rendering/svg/RenderSVGViewportContainer.h:
3589         * rendering/svg/SVGInlineFlowBox.cpp:
3590         * rendering/svg/SVGInlineFlowBox.h:
3591         * rendering/svg/SVGInlineTextBox.cpp:
3592         * rendering/svg/SVGInlineTextBox.h:
3593         * rendering/svg/SVGMarkerData.h:
3594         * rendering/svg/SVGPathData.cpp:
3595         * rendering/svg/SVGPathData.h:
3596         * rendering/svg/SVGRenderSupport.cpp:
3597         * rendering/svg/SVGRenderSupport.h:
3598         * rendering/svg/SVGRenderTreeAsText.cpp:
3599         * rendering/svg/SVGRenderTreeAsText.h:
3600         * rendering/svg/SVGRenderingContext.cpp:
3601         * rendering/svg/SVGRenderingContext.h:
3602         * rendering/svg/SVGResources.cpp:
3603         * rendering/svg/SVGResources.h:
3604         * rendering/svg/SVGResourcesCache.cpp:
3605         * rendering/svg/SVGResourcesCache.h:
3606         * rendering/svg/SVGResourcesCycleSolver.cpp:
3607         * rendering/svg/SVGResourcesCycleSolver.h:
3608         * rendering/svg/SVGRootInlineBox.cpp:
3609         * rendering/svg/SVGRootInlineBox.h:
3610         * rendering/svg/SVGSubpathData.h:
3611         * rendering/svg/SVGTextChunk.cpp:
3612         * rendering/svg/SVGTextChunk.h:
3613         * rendering/svg/SVGTextChunkBuilder.cpp:
3614         * rendering/svg/SVGTextChunkBuilder.h:
3615         * rendering/svg/SVGTextFragment.h:
3616         * rendering/svg/SVGTextLayoutAttributes.cpp:
3617         * rendering/svg/SVGTextLayoutAttributes.h:
3618         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
3619         * rendering/svg/SVGTextLayoutAttributesBuilder.h:
3620         * rendering/svg/SVGTextLayoutEngine.cpp:
3621         * rendering/svg/SVGTextLayoutEngine.h:
3622         * rendering/svg/SVGTextLayoutEngineBaseline.cpp:
3623         * rendering/svg/SVGTextLayoutEngineBaseline.h:
3624         * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
3625         * rendering/svg/SVGTextLayoutEngineSpacing.h:
3626         * rendering/svg/SVGTextMetrics.cpp:
3627         * rendering/svg/SVGTextMetrics.h:
3628         * rendering/svg/SVGTextMetricsBuilder.cpp:
3629         * rendering/svg/SVGTextMetricsBuilder.h:
3630         * rendering/svg/SVGTextQuery.cpp:
3631         * rendering/svg/SVGTextQuery.h:
3632         * svg/ColorDistance.cpp:
3633         * svg/ColorDistance.h:
3634         * svg/GradientAttributes.h:
3635         * svg/LinearGradientAttributes.h:
3636         * svg/PatternAttributes.h:
3637         * svg/RadialGradientAttributes.h:
3638         * svg/SVGAElement.cpp:
3639         * svg/SVGAElement.h:
3640         * svg/SVGAElement.idl:
3641         * svg/SVGAltGlyphDefElement.cpp:
3642         * svg/SVGAltGlyphDefElement.h:
3643         * svg/SVGAltGlyphDefElement.idl:
3644         * svg/SVGAltGlyphElement.cpp:
3645         * svg/SVGAltGlyphElement.h:
3646         * svg/SVGAltGlyphElement.idl:
3647         * svg/SVGAltGlyphItemElement.cpp:
3648         * svg/SVGAltGlyphItemElement.h:
3649         * svg/SVGAltGlyphItemElement.idl:
3650         * svg/SVGAngle.cpp:
3651         * svg/SVGAngle.h:
3652         * svg/SVGAngle.idl:
3653         * svg/SVGAnimateColorElement.cpp:
3654         * svg/SVGAnimateColorElement.h:
3655         * svg/SVGAnimateColorElement.idl:
3656         * svg/SVGAnimateElement.cpp:
3657         * svg/SVGAnimateElement.h:
3658         * svg/SVGAnimateElement.idl:
3659         * svg/SVGAnimateMotionElement.cpp:
3660         * svg/SVGAnimateMotionElement.h:
3661         * svg/SVGAnimateMotionElement.idl:
3662         * svg/SVGAnimateTransformElement.cpp:
3663         * svg/SVGAnimateTransformElement.h:
3664         * svg/SVGAnimateTransformElement.idl:
3665         * svg/SVGAnimatedAngle.cpp:
3666         * svg/SVGAnimatedAngle.h:
3667         * svg/SVGAnimatedAngle.idl:
3668         * svg/SVGAnimatedBoolean.cpp:
3669         * svg/SVGAnimatedBoolean.h:
3670         * svg/SVGAnimatedBoolean.idl:
3671         * svg/SVGAnimatedColor.cpp:
3672         * svg/SVGAnimatedColor.h:
3673         * svg/SVGAnimatedEnumeration.cpp:
3674         * svg/SVGAnimatedEnumeration.h:
3675         * svg/SVGAnimatedEnumeration.idl:
3676         * svg/SVGAnimatedInteger.cpp:
3677         * svg/SVGAnimatedInteger.h:
3678         * svg/SVGAnimatedInteger.idl:
3679         * svg/SVGAnimatedIntegerOptionalInteger.cpp:
3680         * svg/SVGAnimatedIntegerOptionalInteger.h:
3681         * svg/SVGAnimatedLength.cpp:
3682         * svg/SVGAnimatedLength.h:
3683         * svg/SVGAnimatedLength.idl:
3684         * svg/SVGAnimatedLengthList.cpp:
3685         * svg/SVGAnimatedLengthList.h:
3686         * svg/SVGAnimatedLengthList.idl:
3687         * svg/SVGAnimatedNumber.cpp:
3688         * svg/SVGAnimatedNumber.h:
3689         * svg/SVGAnimatedNumber.idl:
3690         * svg/SVGAnimatedNumberList.cpp:
3691         * svg/SVGAnimatedNumberList.h:
3692         * svg/SVGAnimatedNumberList.idl:
3693         * svg/SVGAnimatedNumberOptionalNumber.cpp:
3694         * svg/SVGAnimatedNumberOptionalNumber.h:
3695         * svg/SVGAnimatedPath.cpp:
3696         * svg/SVGAnimatedPath.h:
3697         * svg/SVGAnimatedPointList.cpp:
3698         * svg/SVGAnimatedPointList.h:
3699         * svg/SVGAnimatedPreserveAspectRatio.cpp:
3700         * svg/SVGAnimatedPreserveAspectRatio.h:
3701         * svg/SVGAnimatedPreserveAspectRatio.idl:
3702         * svg/SVGAnimatedRect.cpp:
3703         * svg/SVGAnimatedRect.h:
3704         * svg/SVGAnimatedRect.idl:
3705         * svg/SVGAnimatedString.cpp:
3706         * svg/SVGAnimatedString.h:
3707         * svg/SVGAnimatedString.idl:
3708         * svg/SVGAnimatedTransformList.cpp:
3709         * svg/SVGAnimatedTransformList.h:
3710         * svg/SVGAnimatedTransformList.idl:
3711         * svg/SVGAnimatedType.cpp:
3712         * svg/SVGAnimatedType.h:
3713         * svg/SVGAnimatedTypeAnimator.cpp:
3714         * svg/SVGAnimatedTypeAnimator.h:
3715         * svg/SVGAnimationElement.cpp:
3716         * svg/SVGAnimationElement.h:
3717         * svg/SVGAnimationElement.idl:
3718         * svg/SVGAnimatorFactory.h:
3719         * svg/SVGCircleElement.cpp:
3720         * svg/SVGCircleElement.h:
3721         * svg/SVGCircleElement.idl:
3722         * svg/SVGClipPathElement.cpp:
3723         * svg/SVGClipPathElement.h:
3724         * svg/SVGClipPathElement.idl:
3725         * svg/SVGColor.cpp:
3726         * svg/SVGColor.h:
3727         * svg/SVGColor.idl:
3728         * svg/SVGComponentTransferFunctionElement.cpp:
3729         * svg/SVGComponentTransferFunctionElement.h:
3730         * svg/SVGComponentTransferFunctionElement.idl:
3731         * svg/SVGCursorElement.cpp:
3732         * svg/SVGCursorElement.h:
3733         * svg/SVGCursorElement.idl:
3734         * svg/SVGDefsElement.cpp:
3735         * svg/SVGDefsElement.h:
3736         * svg/SVGDefsElement.idl:
3737         * svg/SVGDescElement.cpp:
3738         * svg/SVGDescElement.h:
3739         * svg/SVGDescElement.idl:
3740         * svg/SVGDocument.cpp:
3741         * svg/SVGDocument.h:
3742         * svg/SVGDocument.idl:
3743         * svg/SVGDocumentExtensions.cpp:
3744         * svg/SVGDocumentExtensions.h:
3745         * svg/SVGElement.cpp:
3746         * svg/SVGElement.h:
3747         * svg/SVGElement.idl:
3748         * svg/SVGElementInstance.cpp:
3749         * svg/SVGElementInstance.h:
3750         * svg/SVGElementInstance.idl:
3751         * svg/SVGElementInstanceList.cpp:
3752         * svg/SVGElementInstanceList.h:
3753         * svg/SVGElementInstanceList.idl:
3754         * svg/SVGEllipseElement.cpp:
3755         * svg/SVGEllipseElement.h:
3756         * svg/SVGEllipseElement.idl:
3757         * svg/SVGException.cpp:
3758         * svg/SVGException.h:
3759         * svg/SVGException.idl:
3760         * svg/SVGExternalResourcesRequired.cpp:
3761         * svg/SVGExternalResourcesRequired.h:
3762         * svg/SVGExternalResourcesRequired.idl:
3763         * svg/SVGFEBlendElement.cpp:
3764         * svg/SVGFEBlendElement.h:
3765         * svg/SVGFEBlendElement.idl:
3766         * svg/SVGFEColorMatrixElement.cpp:
3767         * svg/SVGFEColorMatrixElement.h:
3768         * svg/SVGFEColorMatrixElement.idl:
3769         * svg/SVGFEComponentTransferElement.cpp:
3770         * svg/SVGFEComponentTransferElement.h:
3771         * svg/SVGFEComponentTransferElement.idl:
3772         * svg/SVGFECompositeElement.cpp:
3773         * svg/SVGFECompositeElement.h:
3774         * svg/SVGFECompositeElement.idl:
3775         * svg/SVGFEConvolveMatrixElement.cpp:
3776         * svg/SVGFEConvolveMatrixElement.h:
3777         * svg/SVGFEConvolveMatrixElement.idl:
3778         * svg/SVGFEDiffuseLightingElement.cpp:
3779         * svg/SVGFEDiffuseLightingElement.h:
3780         * svg/SVGFEDiffuseLightingElement.idl:
3781         * svg/SVGFEDisplacementMapElement.cpp:
3782         * svg/SVGFEDisplacementMapElement.h:
3783         * svg/SVGFEDisplacementMapElement.idl:
3784         * svg/SVGFEDistantLightElement.cpp:
3785         * svg/SVGFEDistantLightElement.h:
3786         * svg/SVGFEDistantLightElement.idl:
3787         * svg/SVGFEDropShadowElement.cpp:
3788         * svg/SVGFEDropShadowElement.h:
3789         * svg/SVGFEDropShadowElement.idl:
3790         * svg/SVGFEFloodElement.cpp:
3791         * svg/SVGFEFloodElement.h:
3792         * svg/SVGFEFloodElement.idl:
3793         * svg/SVGFEFuncAElement.cpp:
3794         * svg/SVGFEFuncAElement.h:
3795         * svg/SVGFEFuncAElement.idl:
3796         * svg/SVGFEFuncBElement.cpp:
3797         * svg/SVGFEFuncBElement.h:
3798         * svg/SVGFEFuncBElement.idl:
3799         * svg/SVGFEFuncGElement.cpp:
3800         * svg/SVGFEFuncGElement.h:
3801         * svg/SVGFEFuncGElement.idl:
3802         * svg/SVGFEFuncRElement.cpp:
3803         * svg/SVGFEFuncRElement.h:
3804         * svg/SVGFEFuncRElement.idl:
3805         * svg/SVGFEGaussianBlurElement.cpp:
3806         * svg/SVGFEGaussianBlurElement.h:
3807         * svg/SVGFEGaussianBlurElement.idl:
3808         * svg/SVGFEImageElement.cpp:
3809         * svg/SVGFEImageElement.h:
3810         * svg/SVGFEImageElement.idl:
3811         * svg/SVGFELightElement.cpp:
3812         * svg/SVGFELightElement.h:
3813         * svg/SVGFEMergeElement.cpp:
3814         * svg/SVGFEMergeElement.h:
3815         * svg/SVGFEMergeElement.idl:
3816         * svg/SVGFEMergeNodeElement.cpp:
3817         * svg/SVGFEMergeNodeElement.h:
3818         * svg/SVGFEMergeNodeElement.idl:
3819         * svg/SVGFEMorphologyElement.cpp:
3820         * svg/SVGFEMorphologyElement.h:
3821         * svg/SVGFEMorphologyElement.idl:
3822         * svg/SVGFEOffsetElement.cpp:
3823         * svg/SVGFEOffsetElement.h:
3824         * svg/SVGFEOffsetElement.idl:
3825         * svg/SVGFEPointLightElement.cpp:
3826         * svg/SVGFEPointLightElement.h:
3827         * svg/SVGFEPointLightElement.idl:
3828         * svg/SVGFESpecularLightingElement.cpp:
3829         * svg/SVGFESpecularLightingElement.h:
3830         * svg/SVGFESpecularLightingElement.idl:
3831         * svg/SVGFESpotLightElement.cpp:
3832         * svg/SVGFESpotLightElement.h:
3833         * svg/SVGFESpotLightElement.idl:
3834         * svg/SVGFETileElement.cpp:
3835         * svg/SVGFETileElement.h:
3836         * svg/SVGFETileElement.idl:
3837         * svg/SVGFETurbulenceElement.cpp:
3838         * svg/SVGFETurbulenceElement.h:
3839         * svg/SVGFETurbulenceElement.idl:
3840         * svg/SVGFilterElement.cpp:
3841         * svg/SVGFilterElement.h:
3842         * svg/SVGFilterElement.idl:
3843         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
3844         * svg/SVGFilterPrimitiveStandardAttributes.h:
3845         * svg/SVGFilterPrimitiveStandardAttributes.idl:
3846         * svg/SVGFitToViewBox.cpp:
3847         * svg/SVGFitToViewBox.h:
3848         * svg/SVGFitToViewBox.idl:
3849         * svg/SVGFontElement.idl:
3850         * svg/SVGFontFaceElement.idl:
3851         * svg/SVGFontFaceFormatElement.idl:
3852         * svg/SVGFontFaceNameElement.cpp:
3853         * svg/SVGFontFaceNameElement.idl:
3854         * svg/SVGFontFaceSrcElement.idl:
3855         * svg/SVGFontFaceUriElement.idl:
3856         * svg/SVGForeignObjectElement.cpp:
3857         * svg/SVGForeignObjectElement.h:
3858         * svg/SVGForeignObjectElement.idl:
3859         * svg/SVGGElement.cpp:
3860         * svg/SVGGElement.h:
3861         * svg/SVGGElement.idl:
3862         * svg/SVGGlyphElement.idl:
3863         * svg/SVGGlyphRefElement.cpp:
3864         * svg/SVGGlyphRefElement.h:
3865         * svg/SVGGlyphRefElement.idl:
3866         * svg/SVGGradientElement.cpp:
3867         * svg/SVGGradientElement.h:
3868         * svg/SVGGradientElement.idl:
3869         * svg/SVGGraphicsElement.cpp:
3870         * svg/SVGGraphicsElement.h:
3871         * svg/SVGGraphicsElement.idl:
3872         * svg/SVGHKernElement.idl:
3873         * svg/SVGImageElement.cpp:
3874         * svg/SVGImageElement.h:
3875         * svg/SVGImageElement.idl:
3876         * svg/SVGImageLoader.cpp:
3877         * svg/SVGImageLoader.h:
3878         * svg/SVGLangSpace.cpp:
3879         * svg/SVGLangSpace.h:
3880         * svg/SVGLength.cpp:
3881         * svg/SVGLength.h:
3882         * svg/SVGLength.idl:
3883         * svg/SVGLengthContext.cpp:
3884         * svg/SVGLengthContext.h:
3885         * svg/SVGLengthList.cpp:
3886         * svg/SVGLengthList.h:
3887         * svg/SVGLengthList.idl:
3888         * svg/SVGLineElement.cpp:
3889         * svg/SVGLineElement.h:
3890         * svg/SVGLineElement.idl:
3891         * svg/SVGLinearGradientElement.cpp:
3892         * svg/SVGLinearGradientElement.h:
3893         * svg/SVGLinearGradientElement.idl:
3894         * svg/SVGLocatable.cpp:
3895         * svg/SVGLocatable.h:
3896         * svg/SVGMPathElement.cpp:
3897         * svg/SVGMPathElement.h:
3898         * svg/SVGMPathElement.idl:
3899         * svg/SVGMarkerElement.cpp:
3900         * svg/SVGMarkerElement.h:
3901         * svg/SVGMarkerElement.idl:
3902         * svg/SVGMaskElement.cpp:
3903         * svg/SVGMaskElement.h:
3904         * svg/SVGMaskElement.idl:
3905         * svg/SVGMatrix.h:
3906         * svg/SVGMatrix.idl:
3907         * svg/SVGMetadataElement.cpp:
3908         * svg/SVGMetadataElement.h:
3909         * svg/SVGMetadataElement.idl:
3910         * svg/SVGMissingGlyphElement.idl:
3911         * svg/SVGNumber.idl:
3912         * svg/SVGNumberList.cpp:
3913         * svg/SVGNumberList.h:
3914         * svg/SVGNumberList.idl:
3915         * svg/SVGPaint.cpp:
3916         * svg/SVGPaint.h:
3917         * svg/SVGPaint.idl:
3918         * svg/SVGParserUtilities.cpp:
3919         * svg/SVGParserUtilities.h:
3920         * svg/SVGParsingError.h:
3921         * svg/SVGPathBlender.cpp:
3922         * svg/SVGPathBlender.h:
3923         * svg/SVGPathBuilder.cpp:
3924         * svg/SVGPathBuilder.h:
3925         * svg/SVGPathByteStream.h:
3926         * svg/SVGPathByteStreamBuilder.cpp:
3927         * svg/SVGPathByteStreamBuilder.h:
3928         * svg/SVGPathByteStreamSource.cpp:
3929         * svg/SVGPathByteStreamSource.h:
3930         * svg/SVGPathConsumer.h:
3931         * svg/SVGPathElement.cpp:
3932         * svg/SVGPathElement.h:
3933         * svg/SVGPathElement.idl:
3934         * svg/SVGPathParser.cpp:
3935         * svg/SVGPathParser.h:
3936         * svg/SVGPathSeg.h:
3937         * svg/SVGPathSeg.idl:
3938         * svg/SVGPathSegArc.h:
3939         * svg/SVGPathSegArcAbs.h:
3940         * svg/SVGPathSegArcAbs.idl:
3941         * svg/SVGPathSegArcRel.h:
3942         * svg/SVGPathSegArcRel.idl:
3943         * svg/SVGPathSegClosePath.h:
3944         * svg/SVGPathSegClosePath.idl:
3945         * svg/SVGPathSegCurvetoCubic.h:
3946         * svg/SVGPathSegCurvetoCubicAbs.h:
3947         * svg/SVGPathSegCurvetoCubicAbs.idl:
3948         * svg/SVGPathSegCurvetoCubicRel.h:
3949         * svg/SVGPathSegCurvetoCubicRel.idl:
3950         * svg/SVGPathSegCurvetoCubicSmooth.h:
3951         * svg/SVGPathSegCurvetoCubicSmoothAbs.h:
3952         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
3953         * svg/SVGPathSegCurvetoCubicSmoothRel.h:
3954         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
3955         * svg/SVGPathSegCurvetoQuadratic.h:
3956         * svg/SVGPathSegCurvetoQuadraticAbs.h:
3957         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
3958         * svg/SVGPathSegCurvetoQuadraticRel.h:
3959         * svg/SVGPathSegCurvetoQuadraticRel.idl:
3960         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h:
3961         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
3962         * svg/SVGPathSegCurvetoQuadraticSmoothRel.h:
3963         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
3964         * svg/SVGPathSegLinetoAbs.h:
3965         * svg/SVGPathSegLinetoAbs.idl:
3966         * svg/SVGPathSegLinetoHorizontal.h:
3967         * svg/SVGPathSegLinetoHorizontalAbs.h:
3968         * svg/SVGPathSegLinetoHorizontalAbs.idl:
3969         * svg/SVGPathSegLinetoHorizontalRel.h:
3970         * svg/SVGPathSegLinetoHorizontalRel.idl:
3971         * svg/SVGPathSegLinetoRel.h:
3972         * svg/SVGPathSegLinetoRel.idl:
3973         * svg/SVGPathSegLinetoVertical.h:
3974         * svg/SVGPathSegLinetoVerticalAbs.h:
3975         * svg/SVGPathSegLinetoVerticalAbs.idl:
3976         * svg/SVGPathSegLinetoVerticalRel.h:
3977         * svg/SVGPathSegLinetoVerticalRel.idl:
3978         * svg/SVGPathSegList.cpp:
3979         * svg/SVGPathSegList.h:
3980         * svg/SVGPathSegList.idl:
3981         * svg/SVGPathSegListBuilder.cpp:
3982         * svg/SVGPathSegListBuilder.h:
3983         * svg/SVGPathSegListSource.cpp:
3984         * svg/SVGPathSegListSource.h:
3985         * svg/SVGPathSegMovetoAbs.h:
3986         * svg/SVGPathSegMovetoAbs.idl:
3987         * svg/SVGPathSegMovetoRel.h:
3988         * svg/SVGPathSegMovetoRel.idl:
3989         * svg/SVGPathSegWithContext.h:
3990         * svg/SVGPathSource.h:
3991         * svg/SVGPathStringBuilder.cpp:
3992         * svg/SVGPathStringBuilder.h:
3993         * svg/SVGPathStringSource.cpp:
3994         * svg/SVGPathStringSource.h:
3995         * svg/SVGPathTraversalStateBuilder.cpp:
3996         * svg/SVGPathTraversalStateBuilder.h:
3997         * svg/SVGPathUtilities.cpp:
3998         * svg/SVGPathUtilities.h:
3999         * svg/SVGPatternElement.cpp:
4000         * svg/SVGPatternElement.h:
4001         * svg/SVGPatternElement.idl:
4002         * svg/SVGPoint.h:
4003         * svg/SVGPoint.idl:
4004         * svg/SVGPointList.cpp:
4005         * svg/SVGPointList.h:
4006         * svg/SVGPointList.idl:
4007         * svg/SVGPolyElement.cpp:
4008         * svg/SVGPolyElement.h:
4009         * svg/SVGPolygonElement.cpp:
4010         * svg/SVGPolygonElement.h:
4011         * svg/SVGPolygonElement.idl:
4012         * svg/SVGPolylineElement.cpp:
4013         * svg/SVGPolylineElement.h:
4014         * svg/SVGPolylineElement.idl:
4015         * svg/SVGPreserveAspectRatio.cpp:
4016         * svg/SVGPreserveAspectRatio.h:
4017         * svg/SVGPreserveAspectRatio.idl:
4018         * svg/SVGRadialGradientElement.cpp:
4019         * svg/SVGRadialGradientElement.h:
4020         * svg/SVGRadialGradientElement.idl:
4021         * svg/SVGRect.h:
4022         * svg/SVGRect.idl:
4023         * svg/SVGRectElement.cpp:
4024         * svg/SVGRectElement.h:
4025         * svg/SVGRectElement.idl:
4026         * svg/SVGRenderingIntent.h:
4027         * svg/SVGRenderingIntent.idl:
4028         * svg/SVGSVGElement.cpp:
4029         * svg/SVGSVGElement.h:
4030         * svg/SVGSVGElement.idl:
4031         * svg/SVGScriptElement.cpp:
4032         * svg/SVGScriptElement.h:
4033         * svg/SVGScriptElement.idl:
4034         * svg/SVGSetElement.cpp:
4035         * svg/SVGSetElement.h:
4036         * svg/SVGSetElement.idl:
4037         * svg/SVGStopElement.cpp:
4038         * svg/SVGStopElement.h:
4039         * svg/SVGStopElement.idl:
4040         * svg/SVGStringList.cpp:
4041         * svg/SVGStringList.h:
4042         * svg/SVGStringList.idl:
4043         * svg/SVGStyleElement.cpp:
4044         * svg/SVGStyleElement.h:
4045         * svg/SVGStyleElement.idl:
4046         * svg/SVGSwitchElement.cpp:
4047         * svg/SVGSwitchElement.h:
4048         * svg/SVGSwitchElement.idl:
4049         * svg/SVGSymbolElement.cpp:
4050         * svg/SVGSymbolElement.h:
4051         * svg/SVGSymbolElement.idl:
4052         * svg/SVGTRefElement.cpp:
4053         * svg/SVGTRefElement.h:
4054         * svg/SVGTRefElement.idl:
4055         * svg/SVGTSpanElement.cpp:
4056         * svg/SVGTSpanElement.h:
4057         * svg/SVGTSpanElement.idl:
4058         * svg/SVGTests.cpp:
4059         * svg/SVGTests.h:
4060         * svg/SVGTests.idl:
4061         * svg/SVGTextContentElement.cpp:
4062         * svg/SVGTextContentElement.h:
4063         * svg/SVGTextContentElement.idl:
4064         * svg/SVGTextElement.cpp:
4065         * svg/SVGTextElement.h: