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