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