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