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