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