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