[contenteditable] Content after non-editable element disappears when merging lines...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-10-24  Santosh Mahto  <santosh.ma@samsung.com>
2
3         [contenteditable] Content after non-editable element disappears when merging lines using backspace
4         https://bugs.webkit.org/show_bug.cgi?id=122748
5
6         Reviewed by Ryosuke Niwa.
7
8         In case of paragraph merging after deletion if second paragraph
9         contains non-editable element, then content after the non-editable
10         element(including non-editable element) will be removed while the
11         content before the element will be merged with the first paragraph.
12         This happens becasue endOfParagraphToMove calculation in merging function
13         stop at editing boundary so endOfParagraphToMove becomes position just
14         before non-editable content.
15         With this patch now endOfParagraphToMove is calculated by skipping
16         over the non-editable element.
17
18         Test: editing/deleting/merge-paragraph-contatining-noneditable.html
19
20         * editing/DeleteSelectionCommand.cpp:
21         (WebCore::DeleteSelectionCommand::mergeParagraphs): use CanSkipOverEditingBoundary
22         condition while calculating endOfParagraphToMove.
23
24 2013-10-24  Antoine Quint  <graouts@apple.com>
25
26         Web Inspector: Inspector doesn't show webkitTransitionEnd events in the timeline
27         https://bugs.webkit.org/show_bug.cgi?id=123263
28
29         Reviewed by Timothy Hatcher.
30
31         A legacy event type is only set on an event in EventTarget::fireEventListeners(Event*)
32         which is called after we used to call InspectorInstrumentation::willDispatchEvent(), the method
33         that would ultimately yield the creation of a TimelineRecord for the event in the Web Inspector
34         frontend, and as a result we would try to dispatch an event with an unprefixed event type to
35         the frontend, which wouldn't even happen because most likely it wouldn't have listeners for this
36         unprefixed type.
37
38         We now move the call to InspectorInstrumentation::willDispatchEvent() in
39         EventTarget::fireEventListeners(Event*, EventTargetData*, EventListenerVector&) such that the
40         correct event type and list of listeners is used to determine what event to dispatch to the frontend.
41
42         * dom/EventDispatcher.cpp:
43         (WebCore::EventDispatcher::dispatchEvent):
44         Remove calls to InspectorInstrumentation::willDispatchEvent() and InspectorInstrumentation::didDispatchEvent().
45
46         * dom/EventTarget.cpp:
47         (WebCore::EventTarget::fireEventListeners):
48         Add call to InspectorInstrumentation::willDispatchEvent() before we go through each listener and
49         call InspectorInstrumentation::willHandleEvent(). Additionally, we refactor some code since we're
50         getting references to the ScriptExecutionContext and Document upfront now.
51
52 2013-10-24  Andreas Kling  <akling@apple.com>
53
54         SVG: RenderElement-ize intersectRepaintRectWithResources().
55         <https://webkit.org/b/123278>
56
57         SVGRenderSupport::intersectRepaintRectWithResources() is only ever
58         called with non-text renderers so make it take RenderElement&.
59
60         Had to tweak RenderSVGResource::resourceBoundingBox() to take the
61         renderer by reference.
62
63         Reviewed by Antti Koivisto.
64
65 2013-10-24  Joseph Pecoraro  <pecoraro@apple.com>
66
67         Web Inspector: Breakpoints in sourceURL named scripts do not work
68         https://bugs.webkit.org/show_bug.cgi?id=123231
69
70         Reviewed by Timothy Hatcher.
71
72         Remember a Script's sourceURL and sourceMappingURL. When setting a
73         breakpoint by URL, check it against the sourceURL or original URL.
74         If a script had a sourceURL that would have been the only URL sent
75         to the frontend, so that receives priority.
76
77         Test: inspector-protocol/debugger/setBreakpointByUrl-sourceURL.html
78
79         * inspector/InspectorDebuggerAgent.cpp:
80         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
81         (WebCore::InspectorDebuggerAgent::didParseSource):
82         * inspector/InspectorDebuggerAgent.h:
83         * inspector/ScriptDebugListener.h:
84
85 2013-10-23  Alexey Proskuryakov  <ap@apple.com>
86
87         Add CryptoKey base class and bindings
88         https://bugs.webkit.org/show_bug.cgi?id=123216
89
90         Reviewed by Sam Weinig.
91
92         * crypto/CryptoKey.idl: Added.
93
94         * CMakeLists.txt:
95         * DerivedSources.make:
96         * GNUmakefile.list.am:
97         Process the IDL.
98
99         * WebCore.xcodeproj/project.pbxproj: Added files.
100
101         * bindings/js/JSCryptoKeyCustom.cpp: Added.
102         (WebCore::JSCryptoKey::algorithm): Use a visitor to build algorithm dictionary
103         for the key.
104
105         * crypto/CryptoAlgorithmDescriptionBuilder.cpp: Added.
106         * crypto/CryptoAlgorithmDescriptionBuilder.h: Added.
107         An interface for a visitor we'll use to expose CrytoKey.algorithm in bindings,
108         and possibly also for storage serialization. Not complete yet, we'll need support
109         for a few more simple types, and less trivially, for nested algorithms.
110
111         * bindings/js/JSCryptoAlgorithmBuilder.cpp: Added.
112         * bindings/js/JSCryptoAlgorithmBuilder.h: Added.
113         An implementation that builds an algorithm description dictionary for JS bindings.
114
115         * crypto/CryptoKey.cpp: Added.
116         (WebCore::CryptoKey::~CryptoKey):
117         (WebCore::CryptoKey::buildAlgorithmDescription):
118         * crypto/CryptoKey.h: Added.
119         Added an almost empty implementation. Some of the functions that are currently
120         marked as pure virtual will likely be implemented in this base class.
121
122 2013-10-24  Commit Queue  <commit-queue@webkit.org>
123
124         Unreviewed, rolling out r157916.
125         http://trac.webkit.org/changeset/157916
126         https://bugs.webkit.org/show_bug.cgi?id=123274
127
128         Broke Layout/flexbox-lots-of-data.html on perfbot (Requested
129         by ap on #webkit).
130
131         * rendering/RenderFlexibleBox.cpp:
132         (WebCore::RenderFlexibleBox::OrderHashTraits::emptyValue):
133         (WebCore::RenderFlexibleBox::OrderHashTraits::constructDeletedValue):
134         (WebCore::RenderFlexibleBox::OrderHashTraits::isDeletedValue):
135         (WebCore::RenderFlexibleBox::OrderIterator::setOrderValues):
136         (WebCore::RenderFlexibleBox::layoutBlock):
137         (WebCore::RenderFlexibleBox::computeMainAxisPreferredSizes):
138         * rendering/RenderFlexibleBox.h:
139
140 2013-10-24  Zan Dobersek  <zdobersek@igalia.com>
141
142         Comment in ScopedEventQueue::dispatchEvent is unnecessarily verbose
143         https://bugs.webkit.org/show_bug.cgi?id=123252
144
145         Reviewed by Darin Adler.
146
147         Shorten the comment about the crash avoidance in ScopedEventQueue::dispatchEvent due to
148         the calling convention in C++ is left unspecified. The problem was already fixed in r157219
149         and later adjusted in r157401, but the comment could have been shorter and simpler in both cases.
150
151         * dom/ScopedEventQueue.cpp:
152         (WebCore::ScopedEventQueue::dispatchEvent):
153
154 2013-10-24  Alex Christensen  <achristensen@webkit.org>
155
156         Removed unused ThreadSafeCoordinatedSurface and CertificateInfoCurl files.
157         https://bugs.webkit.org/show_bug.cgi?id=123246
158
159         Reviewed by Noam Rosenthal.
160
161         * WebCore.vcxproj/WebCore.vcxproj:
162         * WebCore.vcxproj/WebCore.vcxproj.filters:
163         Removed references to ThreadSafeCoordinatedSurface and CertificateInfoCurl.
164         * platform/graphics/texmap/coordinated/ThreadSafeCoordinatedSurface.cpp: Removed.
165         * platform/graphics/texmap/coordinated/ThreadSafeCoordinatedSurface.h: Removed.
166         * platform/network/curl/CertificateInfoCurl.cpp: Removed.
167
168 2013-10-24  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
169
170         Removed Qt workaround.
171         https://bugs.webkit.org/show_bug.cgi?id=123258
172
173         Reviewed by Csaba Osztrogonác.
174
175         No change of functionality, no new tests needed.
176
177         !$defines case can be removed, because Qt and Android aren't in WebKit trunk,
178         all ports (Mac,EFL,GTK,Windows) call this script with --defines option now
179
180         * css/make-css-file-arrays.pl:
181
182 2013-10-24  Antti Koivisto  <antti@apple.com>
183
184         Remove a stray space.
185         
186         Not reviewed.
187
188         * accessibility/AccessibilityRenderObject.cpp:
189         (WebCore::AccessibilityRenderObject::addImageMapChildren):
190
191 2013-10-24  Antti Koivisto  <antti@apple.com>
192
193         Element iterator functions should take reference
194         https://bugs.webkit.org/show_bug.cgi?id=123267
195
196         Reviewed by Andreas Kling.
197
198         The argument has to be non-null.
199
200 2013-10-24  Ryuan Choi  <ryuan.choi@samsung.com>
201
202         [EFL] Build break with latest EFL 1.8 libraries.
203         https://bugs.webkit.org/show_bug.cgi?id=123245
204
205         Reviewed by Gyuyoung Kim.
206
207         After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
208         Eo typedef and splitted header files which contain version macro.
209
210         * platform/Widget.h: Changed Eo typedef.
211         * platform/efl/EflScreenUtilities.h: Ditto.
212         * platform/graphics/Image.h: Ditto.
213
214 2013-10-24  Andreas Kling  <akling@apple.com>
215
216         RenderSVGResource: Pass RenderElement to fill/strokePaintingResource.
217         <https://webkit.org/b/123242>
218
219         We never pass text renderers to these functions, so make them take
220         RenderElement instead.
221
222         Reviewed by Anders Carlsson.
223
224 2013-10-24  Carlos Garcia Campos  <cgarcia@igalia.com>
225
226         [GObject bindings] Make EventTarget interface introspectable
227         https://bugs.webkit.org/show_bug.cgi?id=77835
228
229         Reviewed by Gustavo Noronha Silva.
230
231         Add webkit_dom_event_target_add_event_listener_with_closure and
232         webkit_dom_event_target_remove_event_listener_with_closure to be
233         used by GObject instrospection bindings. Instead of receving a
234         GCallback, which makes the function not introspectable, they
235         receive a GClosure.
236
237         * bindings/gobject/GObjectEventListener.cpp:
238         (WebCore::GObjectEventListener::GObjectEventListener):
239         (WebCore::GObjectEventListener::~GObjectEventListener):
240         (WebCore::GObjectEventListener::gobjectDestroyed):
241         (WebCore::GObjectEventListener::handleEvent):
242         (WebCore::GObjectEventListener::operator==):
243         * bindings/gobject/GObjectEventListener.h:
244         (WebCore::GObjectEventListener::addEventListener):
245         (WebCore::GObjectEventListener::removeEventListener):
246         * bindings/gobject/WebKitDOMEventTarget.cpp:
247         (webkit_dom_event_target_dispatch_event):
248         (webkit_dom_event_target_add_event_listener):
249         (webkit_dom_event_target_remove_event_listener):
250         (webkit_dom_event_target_add_event_listener_with_closure):
251         (webkit_dom_event_target_remove_event_listener_with_closure):
252         * bindings/gobject/WebKitDOMEventTarget.h:
253         * bindings/scripts/CodeGeneratorGObject.pm:
254         (GenerateEventTargetIface):
255         * bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp:
256         (webkit_dom_test_event_target_dispatch_event):
257         (webkit_dom_test_event_target_add_event_listener):
258         (webkit_dom_test_event_target_remove_event_listener):
259         * bindings/scripts/test/GObject/WebKitDOMTestNode.cpp:
260         (webkit_dom_test_node_dispatch_event):
261         (webkit_dom_test_node_add_event_listener):
262         (webkit_dom_test_node_remove_event_listener):
263
264 2013-10-14  Sergio Villar Senin  <svillar@igalia.com>
265
266         Use a Vector instead of HashSet to computed the orderValues in RenderFlexibleBox
267         https://bugs.webkit.org/show_bug.cgi?id=118620
268
269         Reviewed by Antti Koivisto.
270
271         Turns out that order is extremelly uncommon so using a Vector is
272         much less expensive. This also special-cases the much common case
273         of only having order of value 0 by using Vectors with just one
274         preallocated member.
275
276         Also added the performance test that shows a ~1% win when using a
277         vector instead of the HashSet.
278
279         * rendering/RenderFlexibleBox.cpp:
280         (WebCore::RenderFlexibleBox::OrderIterator::setOrderValues):
281         (WebCore::RenderFlexibleBox::layoutBlock):
282         (WebCore::RenderFlexibleBox::computeMainAxisPreferredSizes):
283         * rendering/RenderFlexibleBox.h:
284
285 2013-10-23  ChangSeok Oh  <changseok.oh@collabora.com>
286
287         Unreviewed build fix since r157823.
288         FilterOperation::getOperationType() is renamed FilterOperation::type().
289
290         * platform/graphics/texmap/TextureMapperGL.cpp:
291         (WebCore::prepareFilterProgram):
292         (WebCore::TextureMapperGL::drawTexture):
293         (WebCore::TextureMapperGL::drawUsingCustomFilter):
294         (WebCore::TextureMapperGL::drawFiltered):
295         (WebCore::BitmapTextureGL::applyFilters):
296         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
297         (WebCore::CoordinatedGraphicsScene::injectCachedCustomFilterPrograms):
298
299 2013-10-23  Ryuan Choi  <ryuan.choi@samsung.com>
300
301         Unreviewed build fix on CMake based ports when CMAKE_BUILD_TYPE is not given.
302
303         When CMAKE_BUILD_TYPE is empty, FIND command will be failed.
304
305         * CMakeLists.txt:
306
307 2013-10-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
308
309         Integrate css3-images image-orientation with existing EXIF support
310         https://bugs.webkit.org/show_bug.cgi?id=91566
311
312         Reviewed by Beth Dakin.
313
314         Original patch by David Barr(davidbarr@chromium.org).
315
316         This patch passes an information of image orientation into existing EXIF support functions
317         (draw() functions of image classes mainly). We need to let the functions to know the information
318         in order to meet the image-orientation requirement.
319
320         Spec: http://dev.w3.org/csswg/css-images-3/#the-image-orientation
321         The css3-images module specification is at last call.
322
323         Test: fast/css/image-orientation/image-orientation.html
324         Image orientation test is to check if incorrect rotation value can be fixed with correct orientation.
325
326         * loader/cache/CachedImage.cpp:
327         (WebCore::CachedImage::imageSizeForRenderer):
328         * page/DragController.cpp:
329         (WebCore::DragController::doImageDrag):
330         * page/Frame.cpp:
331         (WebCore::Frame::nodeImage):
332         * platform/graphics/BitmapImage.cpp:
333         (WebCore::BitmapImage::updateSize):
334         (WebCore::BitmapImage::sizeRespectingOrientation):
335         (WebCore::BitmapImage::drawPattern):
336         * platform/graphics/BitmapImage.h:
337         * platform/graphics/CrossfadeGeneratedImage.cpp:
338         (WebCore::CrossfadeGeneratedImage::draw):
339         * platform/graphics/CrossfadeGeneratedImage.h:
340         * platform/graphics/GeneratedImage.h:
341         * platform/graphics/GradientImage.cpp:
342         (WebCore::GradientImage::draw):
343         * platform/graphics/GradientImage.h:
344         * platform/graphics/Image.cpp:
345         (WebCore::Image::draw):
346         (WebCore::Image::drawTiled):
347         * platform/graphics/Image.h:
348         * platform/graphics/blackberry/ImageBlackBerry.cpp:
349         * platform/graphics/cairo/BitmapImageCairo.cpp:
350         (WebCore::BitmapImage::draw):
351         * platform/graphics/cg/BitmapImageCG.cpp:
352         * platform/graphics/cg/PDFDocumentImage.cpp:
353         (WebCore::PDFDocumentImage::draw):
354         * platform/graphics/cg/PDFDocumentImage.h:
355         * platform/graphics/win/ImageCGWin.cpp:
356         (WebCore::BitmapImage::getHBITMAPOfSize):
357         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
358         * platform/graphics/wince/ImageBufferWinCE.cpp:
359         (WebCore::BufferedImage::draw):
360         * platform/graphics/wince/ImageWinCE.cpp:
361         (WebCore::BitmapImage::draw):
362         * platform/mac/DragImageMac.mm:
363         (WebCore::createDragImageFromImage):
364         * rendering/RenderEmbeddedObject.cpp:
365         (WebCore::RenderEmbeddedObject::paintSnapshotImage):
366         * rendering/RenderImage.cpp:
367         (WebCore::RenderImage::styleDidChange):
368         * rendering/RenderSnapshottedPlugIn.cpp:
369         (WebCore::RenderSnapshottedPlugIn::paintSnapshot):
370         * rendering/style/RenderStyle.cpp:
371         (WebCore::RenderStyle::changeRequiresLayout):
372         * svg/graphics/SVGImage.cpp:
373         (WebCore::SVGImage::drawForContainer):
374         (WebCore::SVGImage::nativeImageForCurrentFrame):
375         (WebCore::SVGImage::draw):
376         * svg/graphics/SVGImage.h:
377         * svg/graphics/SVGImageForContainer.cpp:
378         (WebCore::SVGImageForContainer::draw):
379         * svg/graphics/SVGImageForContainer.h:
380
381 2013-10-23  Andreas Kling  <akling@apple.com>
382
383         Tighten typing in SVGInlineTextBox a bit.
384         <https://webkit.org/b/123238>
385
386         Use RenderBoxModelObject& instead of generic RenderObject* in some
387         places where it happens as a natural consequence of keeping the
388         original return type from InlineBox::parent()->renderer().
389
390         Reviewed by Anders Carlsson.
391
392 2013-10-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
393
394         Introduce RENDER_OBJECT_TYPE_CASTS to replace manual toFoo() in child render object
395         https://bugs.webkit.org/show_bug.cgi?id=123150
396
397         Reviewed by Andreas Kling.
398
399         As a step to let toFoo use TYPE_CASTS_BASE, toRenderFoo() can use it for child render object.
400         So, this patch introduces RENDER_OBJECT_TYPE_CASTS based on the TYPE_CASTS_BASE. This will
401         generate plenty more helper functions for render object type cast.
402
403         Some unnecessary type casts are fixed by this change.
404
405         No new tests, no behavior changes.
406
407         * rendering/RenderBlock.h:
408         * rendering/RenderBlockFlow.h:
409         * rendering/RenderBox.h:
410         * rendering/RenderBoxModelObject.h:
411         * rendering/RenderButton.h:
412         * rendering/RenderCounter.h:
413         * rendering/RenderElement.h:
414         (WebCore::RenderElement::generatingElement):
415         * rendering/RenderEmbeddedObject.h:
416         * rendering/RenderFieldset.h:
417         * rendering/RenderFileUploadControl.h:
418         * rendering/RenderFlexibleBox.h:
419         * rendering/RenderFlowThread.h:
420         * rendering/RenderFrame.h:
421         * rendering/RenderFrameSet.h:
422         * rendering/RenderFullScreen.h:
423         * rendering/RenderHTMLCanvas.h:
424         * rendering/RenderIFrame.h:
425         * rendering/RenderImage.h:
426         * rendering/RenderInline.h:
427         * rendering/RenderLayerModelObject.h:
428         * rendering/RenderLineBreak.h:
429         * rendering/RenderListBox.h:
430         * rendering/RenderListItem.h:
431         * rendering/RenderMedia.h:
432         * rendering/RenderMenuList.h:
433         * rendering/RenderMeter.h:
434         * rendering/RenderMultiColumnBlock.h:
435         * rendering/RenderMultiColumnSet.h:
436         * rendering/RenderNamedFlowFragment.h:
437         * rendering/RenderNamedFlowThread.h:
438         * rendering/RenderObject.h:
439         * rendering/RenderProgress.h:
440         * rendering/RenderQuote.h:
441         * rendering/RenderRegion.h:
442         * rendering/RenderReplaced.h:
443         * rendering/RenderRubyRun.h:
444         * rendering/RenderScrollbarPart.h:
445         * rendering/RenderSearchField.h:
446         * rendering/RenderSlider.h:
447         * rendering/RenderSnapshottedPlugIn.h:
448         * rendering/RenderTable.h:
449         * rendering/RenderTableCaption.h:
450         * rendering/RenderTableCell.h:
451         * rendering/RenderTableCol.h:
452         * rendering/RenderTableRow.h:
453         * rendering/RenderTableSection.h:
454         * rendering/RenderText.h:
455         * rendering/RenderTextControl.h:
456         * rendering/RenderTextControlMultiLine.h:
457         * rendering/RenderTextControlSingleLine.h:
458         * rendering/RenderWidget.h:
459         * rendering/mathml/RenderMathMLBlock.h:
460         * rendering/svg/RenderSVGContainer.h:
461         * rendering/svg/RenderSVGGradientStop.h:
462         * rendering/svg/RenderSVGImage.h:
463         * rendering/svg/RenderSVGInlineText.h:
464         * rendering/svg/RenderSVGPath.h:
465         * rendering/svg/RenderSVGResourceFilter.h:
466         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
467         (WebCore::RenderSVGResourceFilterPrimitive::styleDidChange):
468         * rendering/svg/RenderSVGRoot.h:
469         * rendering/svg/RenderSVGShape.h:
470         * rendering/svg/RenderSVGText.h:
471         * rendering/svg/RenderSVGTextPath.h:
472         * rendering/svg/RenderSVGViewportContainer.h:
473         * rendering/svg/SVGInlineFlowBox.cpp:
474         (WebCore::SVGInlineFlowBox::paint):
475
476 2013-10-23  Myles C. Maxfield  <mmaxfield@apple.com>
477
478         Include misspelling dot gap width when centering misspelling dots
479         https://bugs.webkit.org/show_bug.cgi?id=122365
480
481         Reviewed by Simon Fraser.
482
483         When calculating where to place the misspelling dots, we find the
484         maximum number of full dots that can fit under the misspelled word,
485         and then center a run of that many dots. However, when we're
486         centering the run, we are only considering the size of the extra
487         fractional dot that we cut off. However, the dot image has a "gap"
488         of transparent pixels (which visually provide tracking for the dots)
489         which visually appears to be empty space. We should take this gap
490         space into consideration when centering the run of dots. We also
491         should make sure that our dots start on integral pixel boundaries
492         because otherwise we can't set the phase of the dot run properly.
493
494         Test: editing/spelling/centering-misspelling-dots.html
495
496         * platform/graphics/mac/GraphicsContextMac.mm:
497         (WebCore::GraphicsContext::drawLineForDocumentMarker):
498
499 2013-10-23  Andreas Kling  <akling@apple.com>
500
501         SVGFilterBuilder should not be ref-counted.
502         <https://webkit.org/b/123222>
503
504         These objects are singly-owned and do not need ref counting.
505
506         Reviewed by Anders Carlsson.
507
508 2013-10-23  Brady Eidson  <beidson@apple.com>
509
510         Remove unused IDBBackingStoreLevelDB default constructor.
511
512         Rubberstamped by Anders Carlsson.
513
514         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
515         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
516
517 2013-10-23  Alex Christensen  <achristensen@webkit.org>
518
519         Added Texture Mapper and Coordinated Graphics to Windows build for WinCairo.
520         https://bugs.webkit.org/show_bug.cgi?id=123215
521
522         Reviewed by Brent Fulgham.
523
524         * WebCore.vcxproj/WebCore.vcxproj:
525         * WebCore.vcxproj/WebCore.vcxproj.filters:
526         Added source files for Texture Mapper to Windows build.
527         * WebCore.vcxproj/WebCoreCairo.props:
528         Added Texture Mapper include directories for WinCairo.
529
530 2013-10-23  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
531
532         Adding mock class to test RTCDataChannelHandler
533         https://bugs.webkit.org/show_bug.cgi?id=123205
534
535         Reviewed by Eric Carlson.
536
537         Now RTCPeerConnectionHandler-datachannel LayouTest can run properly.
538         Also updated the expected file, removing the reliable property check (which was removed in the spec)
539
540         Existing tests updated.
541
542         * CMakeLists.txt:
543         * platform/mediastream/RTCDataChannelHandlerClient.h:
544         * platform/mock/RTCDataChannelHandlerMock.cpp: Added.
545         * platform/mock/RTCDataChannelHandlerMock.h: Added.
546         * platform/mock/RTCNotifiersMock.cpp:
547         (WebCore::RemoteDataChannelNotifier::RemoteDataChannelNotifier):
548         (WebCore::RemoteDataChannelNotifier::fire):
549         (WebCore::DataChannelStateNotifier::DataChannelStateNotifier):
550         (WebCore::DataChannelStateNotifier::fire):
551         * platform/mock/RTCNotifiersMock.h:
552         * platform/mock/RTCPeerConnectionHandlerMock.cpp:
553         (WebCore::RTCPeerConnectionHandlerMock::createDataChannel):
554
555 2013-10-23  Andreas Kling  <akling@apple.com>
556
557         Clock should not be ref-counted.
558         <https://webkit.org/b/123217>
559
560         The Clock object is only ever owned by the MediaController,
561         so remove the ref counting and store it in a std::unique_ptr.
562
563         Also slapped the Clock subclasses with FINAL and OVERRIDE.
564
565         Reviewed by Anders Carlsson.
566
567 2013-10-23  Mark Lam  <mark.lam@apple.com>
568
569         Fix assertion in DatabaseManager::detailsForNameAndOrigin() to be iOS friendly.
570         https://bugs.webkit.org/show_bug.cgi?id=123218.
571
572         Reviewed by Joseph Pecoraro.
573
574         No new tests.
575
576         * Modules/webdatabase/DatabaseManager.cpp:
577         (WebCore::DatabaseManager::detailsForNameAndOrigin):
578
579 2013-10-23  Alex Christensen  <achristensen@webkit.org>
580
581         Separated USE(CA) from USE(ACCELERATED_COMPOSITING) to prepare WinCairo for accelerated compositing.
582         https://bugs.webkit.org/show_bug.cgi?id=123214
583
584         Reviewed by Brent Fulgham.
585
586         * platform/graphics/PlatformLayer.h:
587         Added TextureMapperPlatformLayer PlatformLayer declaration for WinCairo.
588         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
589         (WebCore::MediaPlayerPrivateFullscreenWindow::createWindow):
590         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
591         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
592         Added USE(CA) where necessary to compile WinCairo with accelerated compositing.
593
594 2013-10-23  Myles C. Maxfield  <mmaxfield@apple.com>
595
596         Antialias underlines if they're not axis-aligned
597         https://bugs.webkit.org/show_bug.cgi?id=123004
598
599         Reviewed by Simon Fraser.
600
601         In order to make underlines crisp, GraphicsContext:drawLineForText
602         modifies the bounds of the underline rect in order to make the rect
603         device-pixel-aligned, and then turns off antialiasing when drawing
604         the line. This makes sense when the underline is axis-aligned, but
605         doesn't when the rect is rotated or skewed. Therefore, we should
606         only opt-in to this behavior if the underline we're about to draw
607         is axis-aligned. This requires figuring out whether or not the
608         current transformation is axis-aligned every time
609         GraphicsContext::drawLineForText is called, which will incur a small
610         performance hit. However, this is justified by underlines looking
611         much better (antialiased) when the context is rotated or skewed.
612
613         Tests: svg/custom/foreign-object-skew.html
614                svg/zoom/page/zoom-foreignObject.html
615                svg/zoom/text/zoom-foreignObject.html:
616
617         * platform/graphics/cg/GraphicsContextCG.cpp:
618         (WebCore::GraphicsContext::drawLineForText):
619
620 2013-10-23  Mark Lam  <mark.lam@apple.com>
621
622         Re-instate ProposedDatabases needed by detailsForNameAndOrigin().
623         https://bugs.webkit.org/show_bug.cgi?id=123131.
624
625         Reviewed by Geoffrey Garen.
626
627         Test: storage/websql/open-database-expand-quota.html
628
629         If a webpage tries to create a database that exceeds the database size
630         quota for that security origin, the WebKit1 quota request mechanism
631         uses detailsForNameAndOrigin() to get the requested size of the database
632         (that the webpage is attempting to open) in order to determine whether
633         to increase the quota or not.
634
635         Previously, detailsForNameAndOrigin() relies on the ProposedDatabase
636         mechanism to provide this size information. This change re-instates the
637         ProposedDatabase mechanism so that WebKit1 client code that relies on
638         this behavior will continue to work.
639
640         * Modules/webdatabase/DatabaseManager.cpp:
641         (WebCore::DatabaseManager::ProposedDatabase::ProposedDatabase):
642         (WebCore::DatabaseManager::ProposedDatabase::~ProposedDatabase):
643         (WebCore::DatabaseManager::DatabaseManager):
644         (WebCore::DatabaseManager::openDatabaseBackend):
645         (WebCore::DatabaseManager::fullPathForDatabase):
646         (WebCore::DatabaseManager::detailsForNameAndOrigin):
647         * Modules/webdatabase/DatabaseManager.h:
648         (WebCore::DatabaseManager::ProposedDatabase::origin):
649         (WebCore::DatabaseManager::ProposedDatabase::details):
650
651 2013-10-23  Tim Horton  <timothy_horton@apple.com>
652
653         [cg] Fix the capitalization of kCGImageSourceSkipMetaData (-> Metadata)
654         https://bugs.webkit.org/show_bug.cgi?id=122918
655
656         Reviewed by Anders Carlsson.
657
658         * platform/graphics/cg/ImageSourceCG.cpp:
659         (WebCore::imageSourceOptions):
660         The capitalization of kCGImageSourceSkipMetaData changed to
661         kCGImageSourceSkipMetadata in Mountain Lion.
662
663 2013-10-23  Brady Eidson  <beidson@apple.com>
664
665         Make IDBDatabaseBackendLevelDB.cpp be cross platform
666         https://bugs.webkit.org/show_bug.cgi?id=123027
667
668         Attentively reviewed by Dean Jackson.
669
670         Move it out of the indexeddb/leveldb directory, and rename it to IDBDatabaseBackendImpl.
671
672         Project files:
673         * CMakeLists.txt:
674         * GNUmakefile.list.am:
675         * WebCore.vcxproj/WebCore.vcxproj:
676         * WebCore.vcxproj/WebCore.vcxproj.filters:
677         * WebCore.xcodeproj/project.pbxproj:
678
679         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp: Renamed from Source/WebCore/Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp.
680         * Modules/indexeddb/IDBDatabaseBackendImpl.h: Renamed from Source/WebCore/Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h.
681
682         * Modules/indexeddb/IDBDatabaseBackendInterface.h:
683         (WebCore::IDBDatabaseBackendInterface::isIDBDatabaseBackendImpl): Add to support a required cast in LevelDB code.
684
685         * Modules/indexeddb/IDBFactoryBackendInterface.h:
686
687         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
688         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
689
690         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
691         (WebCore::IDBFactoryBackendLevelDB::deleteDatabase):
692         (WebCore::IDBFactoryBackendLevelDB::open):
693         (WebCore::IDBFactoryBackendLevelDB::maybeCreateTransactionBackend):
694         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
695
696         * Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp:
697         * Modules/indexeddb/leveldb/IDBLevelDBCoding.h:
698
699         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
700         (WebCore::IDBTransactionBackendLevelDB::create):
701         (WebCore::IDBTransactionBackendLevelDB::IDBTransactionBackendLevelDB):
702         (WebCore::IDBTransactionBackendLevelDB::scheduleVersionChangeOperation):
703         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
704
705         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
706         (WebCore::IDBDatabaseBackendImpl::VersionChangeOperation::perform):
707         (WebCore::IDBDatabaseBackendImpl::VersionChangeAbortOperation::perform):
708         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h:
709
710 2013-10-23  Daniel Bates  <dabates@apple.com>
711
712         [iOS] Upstream more ARMv7s bits
713         https://bugs.webkit.org/show_bug.cgi?id=123052
714
715         Reviewed by Joseph Pecoraro.
716
717         Define exported symbol file for armv7s and arm64.
718
719         * Configurations/WebCore.xcconfig:
720
721 2013-10-23  Krzysztof Wolanski  <k.wolanski@samsung.com>
722
723         [GTK] accessibility/self-referencing-aria-labelledby.html is failing
724         https://bugs.webkit.org/show_bug.cgi?id=121594
725
726         Reviewed by Mario Sanchez Prada.
727
728         According to http://www.w3.org/TR/REC-html40/struct/objects.html#edef-IMG
729         description of image element should be determined by alt attribute, then
730         if it is empty by title attributte.
731
732         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
733         (webkitAccessibleGetDescription):
734
735 2013-10-15  Andreas Kling  <akling@apple.com>
736
737         Tighten animation-driven restyle to operate on Element only.
738         <https://webkit.org/b/122820>
739
740         Text nodes are never directly animated, so we can tighten this code
741         to work on Element only. This happens naturally since the code was
742         already working with RenderElement everywhere.
743
744         Reviewed by Antti Koivisto.
745
746 2013-10-22  Andreas Kling  <akling@apple.com>
747
748         Even more PassRef<RenderStyle>!
749         <https://webkit.org/b/123147>
750
751         Convert more of the WebCore code to use PassRef for RenderStyle
752         in places where they are known to be non-null.
753
754         Re-landing this without region styling since that caused some
755         assertions last time.
756
757         Reviewed by Antti Koivisto.
758
759 2013-10-22  Zoltan Horvath  <zoltan@webkit.org>
760
761         Refactor LineBreaker::nextSegmentBreak, add BreakingContext that holds all its state
762         https://bugs.webkit.org/show_bug.cgi?id=123038
763
764         Reviewed by David Hyatt.
765
766         I followed Levi's logic on Blink's nextSegmentBreak refactoring (https://chromiumcodereview.appspot.com/25054004). 
767         I mostly did the same changes, but the code is too diverged at this point to just apply that patch on our trunk. The patch
768         introduces BreakingContext as a separate class. I added new methods for each condition, which were originally located in
769         nextSegmentBreak. I also removed the goto-s from the code. All the new methods are inline in order to avoid introducing any
770         performance regression. The change makes the code so much cleaner and understandable.
771
772         This change would be the first step of the nextSegmentBreak refactoring, I wanted to keep things in place in RenderBlockLineLayout.cpp
773         for now, but I'm planning to separate BreakingContext into a new file and do additional changes to make things nicer. I'm tracking
774         the entire progress under http://webkit.org/b/121261 meta bug.
775
776         No new tests, covered by existing tests.
777         - I updated 1 expected result, because there was a 1 pixel difference on the result, which I believe comes from a rounding situation.
778
779         * rendering/RenderBlockFlow.h:
780         * rendering/RenderBlockLineLayout.cpp:
781         (WebCore::BreakingContext::BreakingContext):
782         (WebCore::BreakingContext::currentObject):
783         (WebCore::BreakingContext::lineBreak):
784         (WebCore::BreakingContext::lineBreakRef):
785         (WebCore::BreakingContext::lineWidth):
786         (WebCore::BreakingContext::atEnd):
787         (WebCore::BreakingContext::clearLineBreakIfFitsOnLine):
788         (WebCore::BreakingContext::commitLineBreakAtCurrentWidth):
789         (WebCore::BreakingContext::initializeForCurrentObject):
790         (WebCore::BreakingContext::increment):
791         (WebCore::BreakingContext::handleBR):
792         (WebCore::BreakingContext::handleOutOfFlowPositioned):
793         (WebCore::BreakingContext::handleFloat):
794         (WebCore::BreakingContext::handleEmptyInline):
795         (WebCore::BreakingContext::handleReplaced):
796         (WebCore::nextCharacter):
797         (WebCore::BreakingContext::handleText):
798         (WebCore::textBeginsWithBreakablePosition):
799         (WebCore::BreakingContext::canBreakAtThisPosition):
800         (WebCore::BreakingContext::commitAndUpdateLineBreakIfNeeded):
801         (WebCore::BreakingContext::handleEndOfLine):
802         (WebCore::LineBreaker::nextSegmentBreak):
803
804 2013-10-22  Commit Queue  <commit-queue@webkit.org>
805
806         Unreviewed, rolling out r157826.
807         http://trac.webkit.org/changeset/157826
808         https://bugs.webkit.org/show_bug.cgi?id=123197
809
810         Caused some regions tests to assert (Requested by smfr on
811         #webkit).
812
813         * dom/Document.cpp:
814         (WebCore::Document::styleForElementIgnoringPendingStylesheets):
815         * dom/Document.h:
816         * dom/Element.cpp:
817         (WebCore::Element::styleForRenderer):
818         * dom/Element.h:
819         * dom/ElementRareData.h:
820         (WebCore::ElementRareData::setComputedStyle):
821         (WebCore::ElementRareData::resetComputedStyle):
822         * html/HTMLTitleElement.cpp:
823         (WebCore::HTMLTitleElement::textWithDirection):
824         * page/animation/AnimationController.cpp:
825         (WebCore::AnimationController::updateAnimations):
826         * page/animation/CompositeAnimation.cpp:
827         (WebCore::CompositeAnimation::animate):
828         * page/animation/CompositeAnimation.h:
829         * rendering/RenderElement.cpp:
830         (WebCore::RenderElement::createFor):
831         * rendering/RenderElement.h:
832         (WebCore::RenderElement::setStyleInternal):
833         * rendering/RenderRegion.cpp:
834         (WebCore::RenderRegion::setRegionObjectsRegionStyle):
835         (WebCore::RenderRegion::restoreRegionObjectsOriginalStyle):
836         (WebCore::RenderRegion::computeStyleInRegion):
837         (WebCore::RenderRegion::computeChildrenStyleInRegion):
838         (WebCore::RenderRegion::setObjectStyleInRegion):
839         * rendering/RenderRegion.h:
840         * style/StyleResolveTree.cpp:
841         (WebCore::Style::resolveLocal):
842
843 2013-10-22  Ryuan Choi  <ryuan.choi@samsung.com>
844
845         [EFL] Remove HAVE_GLX macro
846         https://bugs.webkit.org/show_bug.cgi?id=123191
847
848         Reviewed by Gyuyoung Kim.
849
850         Since r138313, HAVE(GLX) was replaced to USE(GLX) except in GraphicsSurfaceToken.h.
851
852         * platform/graphics/surfaces/GraphicsSurfaceToken.h:
853         Replace HAVE(GLX) to USE(GLX)
854
855 2013-10-22  Mark Lam  <mark.lam@apple.com>
856
857         Gardening: fix broken build on Windows.
858         https://bugs.webkit.org/show_bug.cgi?id=123174.
859
860         Not reviewed.
861
862         No new tests.
863
864         * WebCore.vcxproj/WebCore.vcxproj:
865         * WebCore.vcxproj/WebCore.vcxproj.filters:
866
867 2013-10-22  Brady Eidson  <beidson@apple.com>
868
869         Get rid of IDBObjectStoreBackendLevelDB
870         https://bugs.webkit.org/show_bug.cgi?id=123174
871
872         Reviewed by Tim Horton.
873
874         This file was kind of a dumping ground.
875         Its contents can be merged into IDBBackingStoreInterface and a new IDBIndexWriter class.
876
877         Also took the opportunity to do a little bit of RefPtr<> and pointer-vs-reference cleanup.
878
879         * CMakeLists.txt:
880         * GNUmakefile.list.am:
881         * WebCore.xcodeproj/project.pbxproj:
882
883         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp: Removed.
884         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h: Removed.
885
886         * Modules/indexeddb/IDBIndexWriter.cpp: Added.
887         (WebCore::IDBIndexWriter::IDBIndexWriter):
888         (WebCore::IDBIndexWriter::writeIndexKeys):
889         (WebCore::IDBIndexWriter::verifyIndexKeys):
890         (WebCore::IDBIndexWriter::addingKeyAllowed):
891         * Modules/indexeddb/IDBIndexWriter.h: Added.
892         (WebCore::IDBIndexWriter::create):
893
894         * Modules/indexeddb/IDBBackingStoreInterface.h:
895         * Modules/indexeddb/IDBDatabaseBackendInterface.h:
896
897         * Modules/indexeddb/IDBMetadata.h:
898         * Modules/indexeddb/IDBTransactionBackendInterface.h:
899
900         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
901         (WebCore::IDBBackingStoreLevelDB::makeIndexWriters):
902         (WebCore::IDBBackingStoreLevelDB::generateKey):
903         (WebCore::IDBBackingStoreLevelDB::updateKeyGenerator):
904         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
905
906         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
907         (WebCore::IDBDatabaseBackendLevelDB::setIndexKeys):
908         (WebCore::IDBDatabaseBackendLevelDB::setIndexesReady):
909         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
910
911         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
912         (WebCore::IDBTransactionBackendLevelDB::schedulePutOperation):
913         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
914
915         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
916         (WebCore::PutOperation::perform):
917         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h:
918         (WebCore::PutOperation::create):
919         (WebCore::PutOperation::PutOperation):
920
921 2013-10-22  Dean Jackson  <dino@apple.com>
922
923         [WebGL] Implement a software rendering option on Mac
924         https://bugs.webkit.org/show_bug.cgi?id=123177
925
926         Reviewed by Tim Horton.
927
928         Implement a way to force software OpenGL rendering
929         for WebGL, via a Setting/Preference.
930
931         No new tests. We intentionally hide the capabilities of
932         the renderer from the content, so you can't test for
933         this setting. However, manual inspection is pretty
934         obvious. Just go to a page with a complex shader
935         such as https://www.shadertoy.com/view/lss3WS.
936
937         * html/canvas/WebGLRenderingContext.cpp:
938         (WebCore::WebGLRenderingContext::create): If we're forcing software
939         rendering, mark the context attributes as such.
940         * page/Settings.in: New setting key.
941         * platform/graphics/GraphicsContext3D.h: New flag in Attributes.
942         (WebCore::GraphicsContext3D::Attributes::Attributes):
943         * platform/graphics/mac/GraphicsContext3DMac.mm:
944         (WebCore::GraphicsContext3D::GraphicsContext3D): Slight update to the
945         algorithm that sets a pixel format. If we're forcing software rendering,
946         obviously we never want to create an accelerated pixel format.
947         * platform/graphics/filters/CustomFilterGlobalContext.cpp:
948         (WebCore::CustomFilterGlobalContext::prepareContextIfNeeded): Set the attribute
949         here before trying to create the context.
950         * platform/graphics/filters/CustomFilterGlobalContext.h: Add a forceSoftwareRendering
951         flag to prepareContextIfNeeded.
952         * rendering/FilterEffectRenderer.cpp:
953         (WebCore::createCustomFilterEffect): Check the Setting before creating a custom
954         filter context.
955
956 2013-10-22  Anders Carlsson  <andersca@apple.com>
957
958         Revert r157445 since it broke certificates on Mac.
959         <rdar://problem/15246926&15254017&15269117>
960
961         * GNUmakefile.list.am:
962         * PlatformEfl.cmake:
963         * WebCore.exp.in:
964         * WebCore.vcxproj/WebCore.vcxproj:
965         * WebCore.vcxproj/WebCore.vcxproj.filters:
966         * WebCore.xcodeproj/project.pbxproj:
967         * platform/network/ResourceErrorBase.h:
968         * platform/network/ResourceResponseBase.h:
969         * platform/network/cf/CertificateInfoCFNet.cpp: Removed.
970         * platform/network/cf/ResourceResponse.h:
971         * platform/network/mac/ResourceResponseMac.mm:
972         (WebCore::ResourceResponse::setCertificateChain):
973         (WebCore::ResourceResponse::certificateChain):
974         * platform/network/soup/ResourceError.h:
975         (WebCore::ResourceError::ResourceError):
976         (WebCore::ResourceError::tlsErrors):
977         (WebCore::ResourceError::setTLSErrors):
978         (WebCore::ResourceError::certificate):
979         (WebCore::ResourceError::setCertificate):
980         * platform/network/soup/ResourceErrorSoup.cpp:
981         (WebCore::ResourceError::tlsError):
982         (WebCore::ResourceError::platformCopy):
983         (WebCore::ResourceError::platformCompare):
984         * platform/network/soup/ResourceResponse.h:
985         (WebCore::ResourceResponse::ResourceResponse):
986         (WebCore::ResourceResponse::soupMessageCertificate):
987         (WebCore::ResourceResponse::setSoupMessageCertificate):
988         (WebCore::ResourceResponse::soupMessageTLSErrors):
989         (WebCore::ResourceResponse::setSoupMessageTLSErrors):
990         * platform/network/soup/ResourceResponseSoup.cpp:
991         (WebCore::ResourceResponse::toSoupMessage):
992         (WebCore::ResourceResponse::updateFromSoupMessage):
993
994 2013-10-22  Jer Noble  <jer.noble@apple.com>
995
996         [Media] Refactor supportsType() factory method to take a parameters object.
997         https://bugs.webkit.org/show_bug.cgi?id=122489
998
999         Reviewed by Eric Carlson.
1000
1001         In order to support adding new conditional properties with which to decide
1002         what MediaPlayerPrivate subclass to create, replace the two versions of the
1003         supportsType() factory method with a single one taking a parameters object.
1004
1005         At the same time, add a 'isMediaSource' parameter to that object, allowing
1006         MediaPlayerPrivate subclasses which support the same type and codecs but
1007         which do not both support MediaSource to be distinguised.
1008
1009         * platform/graphics/MediaPlayer.cpp:
1010         (WebCore::bestMediaEngineForSupportParameters): Renamed from
1011             bestMediaEngineForTypeAndCodecs.
1012         (WebCore::MediaPlayer::nextBestMediaEngine): Added convenience function.
1013         (WebCore::MediaPlayer::loadWithNextMediaEngine): Call nextBestMediaEngine()
1014         (WebCore::MediaPlayer::supportsType): Pass parameter object.
1015         (WebCore::MediaPlayer::networkStateChanged): Call nextBestMediaEngine().
1016         * platform/graphics/MediaPlayer.h:
1017         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
1018         (WebCore::MediaPlayerPrivateAVFoundationCF::supportsType): Handle parameter object.
1019         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h:
1020         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1021         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1022         (WebCore::MediaPlayerPrivateAVFoundationObjC::registerMediaEngine): Remove extraneous
1023             extendedSupportsType method.
1024         (WebCore::MediaPlayerPrivateAVFoundationObjC::supportsType): Handle parameter object.
1025         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
1026         (WebCore::MediaPlayerPrivate::supportsType): Ditto.
1027         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
1028         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1029         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1030         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
1031         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1032         (WebCore::MediaPlayerPrivateQTKit::registerMediaEngine): Remove extraneous
1033             extendedSupportsType method.
1034         (WebCore::MediaPlayerPrivateQTKit::supportsType): Handle parameter object.
1035         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1036         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsType): Ditto.
1037         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1038         * platform/graphics/wince/MediaPlayerPrivateWinCE.h:
1039
1040 2013-10-22  Andreas Kling  <akling@apple.com>
1041
1042         Merge SVGRenderBlock::styleWillChange() into styleDidChange().
1043         <https://webkit.org/b/123181>
1044
1045         I meant to do this one in r157787, but better late than never.
1046
1047         Reviewed by Geoffrey Garen.
1048
1049 2013-10-22  Sam Weinig  <sam@webkit.org>
1050
1051         CTTE: Modernize RenderBlock a bit
1052         https://bugs.webkit.org/show_bug.cgi?id=123162
1053
1054         Reviewed by Andreas Kling.
1055
1056         Start threading references through RenderBlock. While we 
1057         are here, do some selective modernization as well.
1058
1059 2013-10-22  Andreas Kling  <akling@apple.com>
1060
1061         Even more PassRef<RenderStyle>!
1062         <https://webkit.org/b/123147>
1063
1064         Convert the remaining WebCore code to use PassRef for RenderStyle
1065         wherever they are known to be non-null.
1066
1067         Reviewed by Antti Koivisto.
1068
1069 2013-10-22  Commit Queue  <commit-queue@webkit.org>
1070
1071         Unreviewed, rolling out r157819.
1072         http://trac.webkit.org/changeset/157819
1073         https://bugs.webkit.org/show_bug.cgi?id=123180
1074
1075         Broke 32-bit builds (Requested by smfr on #webkit).
1076
1077         * Configurations/WebCore.xcconfig:
1078
1079 2013-10-22  Antti Koivisto  <antti@apple.com>
1080
1081         Rename deleteLineBoxTree to deleteLines
1082         https://bugs.webkit.org/show_bug.cgi?id=123176
1083
1084         Reviewed by Andreas Kling.
1085
1086         RenderBlock::deleteLineBoxTree -> RenderBlock::deleteLines
1087         RenderInline::deleteLineBoxTree -> RenderInline::deleteLines
1088
1089 2013-10-22  Tim Horton  <timothy_horton@apple.com>
1090
1091         {ClipPathOperation, FilterOperation}::getOperationType() should not include 'get'
1092         https://bugs.webkit.org/show_bug.cgi?id=123172
1093
1094         Reviewed by Simon Fraser.
1095
1096         No new tests, just a rename.
1097
1098         "get" in WebCore tends to mean that the function has out arguments; these have no arguments.
1099         Rename FilterOperation::getOperationType() to FilterOperation::type().
1100         I noticed that ClipPathOperation had the same mistake, so I fixed it there too.
1101
1102         Removed long and useless list of files.
1103
1104 2013-10-22  Samuel White  <samuel_white@apple.com>
1105
1106         AX: Add paramAttrs to fetch start and end text markers in a given rect.
1107         https://bugs.webkit.org/show_bug.cgi?id=122164
1108
1109         Reviewed by Chris Fleizach.
1110
1111         Added ability to fetch end and start text markers inside a given bounds. This gives ScreenReaders
1112         like VoiceOver a way to retrieve the text markers for a specified column of page text.
1113
1114         Test: platform/mac/accessibility/text-marker-for-bounds.html
1115
1116         * accessibility/AccessibilityObject.cpp:
1117         (WebCore::AccessibilityObject::mainFrame):
1118         (WebCore::AccessibilityObject::topDocument):
1119         (WebCore::AccessibilityObject::visiblePositionForBounds):
1120         * accessibility/AccessibilityObject.h:
1121         * accessibility/AccessibilityRenderObject.cpp:
1122         * accessibility/AccessibilityRenderObject.h:
1123         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1124         (-[WebAccessibilityObjectWrapper screenToContents:]):
1125         (-[WebAccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
1126         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
1127
1128 2013-10-22  Zoltan Horvath  <zoltan@webkit.org>
1129
1130         [CSS Shapes] Match adjustLogicalLineTopAndLogicalHeightIfNeeded's implementation with Blink's
1131         https://bugs.webkit.org/show_bug.cgi?id=123033
1132
1133         Reviewed by David Hyatt.
1134
1135         In Blink I made this function in a bit different way. This change modifies it
1136         to be identical, which helps a lot in the future cross-merging patches.
1137
1138         No new tests, covered by existing texts.
1139
1140         * rendering/RenderBlockLineLayout.cpp:
1141         (WebCore::RenderBlockFlow::adjustLogicalLineTopAndLogicalHeightIfNeeded):
1142
1143 2013-10-22  Daniel Bates  <dabates@apple.com>
1144
1145         [iOS] Upstream more ARMv7s bits
1146         https://bugs.webkit.org/show_bug.cgi?id=123052
1147
1148         Reviewed by Joseph Pecoraro.
1149
1150         * Configurations/WebCore.xcconfig:
1151
1152 2013-10-22  Simon Fraser  <simon.fraser@apple.com>
1153
1154         Try to fix Mavericks build; use <> for framework include.
1155
1156         * page/CaptionUserPreferencesMediaAF.cpp:
1157
1158 2013-10-22  Tim Horton  <timothy_horton@apple.com>
1159
1160         GammaFilterOperation seems to be dead code
1161         https://bugs.webkit.org/show_bug.cgi?id=123173
1162
1163         Reviewed by Simon Fraser.
1164
1165         * platform/graphics/filters/FilterOperation.cpp:
1166         * platform/graphics/filters/FilterOperation.h:
1167         Remove dead code.
1168
1169 2013-10-22  Antti Koivisto  <antti@apple.com>
1170
1171         Rename some line box functions to be just about lines
1172         https://bugs.webkit.org/show_bug.cgi?id=123168
1173
1174         Reviewed by Dave Hyatt.
1175
1176         firstLineBoxBaseline -> firstLineBaseline
1177         hasInlineBoxChildren -> hasLines
1178         
1179         Also use hasLines in a bunch of places where firstLineBox() was used.
1180
1181         * accessibility/AccessibilityRenderObject.cpp:
1182         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
1183         
1184             Also use hasRenderedText() instead of firstTextBox()
1185
1186         * rendering/RenderFullScreen.cpp:
1187         
1188             Fix namespace.
1189
1190 2013-10-22  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1191
1192         Adding Mock class to test RTCPeerConnection
1193         https://bugs.webkit.org/show_bug.cgi?id=122848
1194
1195         Reviewed by Eric Carlson.
1196
1197         The following tests can be run:
1198
1199             RTCPeerConnection-createAnswer.html
1200             RTCPeerConnection-createOffer.html
1201             RTCPeerConnection-ice.html
1202             RTCPeerConnection-localDescription.html
1203             RTCPeerConnection-remoteDescription.html
1204             RTCPeerConnection-state.html
1205
1206         Tests that require a MediaStream object, by invoking getUserMedia,
1207         are not ready to run yet.
1208
1209         No new tests needed.
1210
1211         * CMakeLists.txt:
1212         * platform/mediastream/RTCPeerConnectionHandler.cpp:
1213         (WebCore::createHandler):
1214         * platform/mediastream/RTCPeerConnectionHandler.h:
1215         * platform/mediastream/RTCPeerConnectionHandlerClient.h:
1216         * platform/mock/RTCNotifiersMock.cpp: Added.
1217         * platform/mock/RTCNotifiersMock.h: Added.
1218         * platform/mock/RTCPeerConnectionHandlerMock.cpp: Added.
1219         * platform/mock/RTCPeerConnectionHandlerMock.h: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.h.
1220         * platform/mock/TimerEventBasedMock.h: Added.
1221         * testing/Internals.cpp:
1222         (WebCore::Internals::Internals):
1223         (WebCore::Internals::enableMockRTCPeerConnectionHandler):
1224         * testing/Internals.h:
1225
1226 2013-10-22  Zan Dobersek  <zdobersek@igalia.com>
1227
1228         WebCore::fillWithEmptyClients adopts new empty clients before leaking their pointers
1229         https://bugs.webkit.org/show_bug.cgi?id=122945
1230
1231         Reviewed by Anders Carlsson.
1232
1233         * loader/EmptyClients.cpp:
1234         (WebCore::fillWithEmptyClients): Store the static empty clients as NeverDestroyed, rather than
1235         adopting the pointer of each heap-allocated object and then immediately leaking that pointer.
1236
1237 2013-10-22  Zan Dobersek  <zdobersek@igalia.com>
1238
1239         Simplify HRTFDatabaseLoader's load map
1240         https://bugs.webkit.org/show_bug.cgi?id=122944
1241
1242         Reviewed by Eric Carlson.
1243
1244         * platform/audio/HRTFDatabaseLoader.cpp:
1245         (WebCore::loaderMap): Return a reference to a NeverDestroyed HashMap that maps sample rates to loaders.
1246         (WebCore::HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary):
1247         (WebCore::HRTFDatabaseLoader::~HRTFDatabaseLoader):
1248         * platform/audio/HRTFDatabaseLoader.h: Remove the LoaderMap type definition, the private singleton of that type
1249         and the singleton's unused getter.
1250
1251 2013-10-22  Tim Horton  <timothy_horton@apple.com>
1252
1253         Remote Layer Tree: Support hardware accelerated filters
1254         https://bugs.webkit.org/show_bug.cgi?id=123139
1255
1256         Reviewed by Anders Carlsson.
1257
1258         * WebCore.exp.in:
1259         Export a variety of filter-related things.
1260
1261         * platform/graphics/ca/PlatformCAFilters.h:
1262         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
1263         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1264         (PlatformCALayerMac::setFilters):
1265         * platform/graphics/ca/win/PlatformCAFiltersWin.cpp:
1266         (PlatformCAFilters::setFiltersOnLayer):
1267         setFiltersOnLayer should take a PlatformLayer instead of a PlatformCALayer
1268         as its argument, because it doesn't need a PlatformCALayer, and this way
1269         we can share code with the RemoteLayerTreeHost, which only has PlatformLayers
1270         and not PlatformCALayers.
1271
1272 2013-10-22  Brendan Long  <b.long@cablelabs.com>
1273
1274         cue.text fails for some track element cues
1275         https://bugs.webkit.org/show_bug.cgi?id=81123
1276
1277         Reviewed by Eric Carlson.
1278
1279         Test: media/track/track-long-captions-file.html
1280
1281         * html/track/WebVTTParser.cpp:
1282         (WebCore::WebVTTParser::parseBytes): Use buffer when we don't have full lines.
1283         (WebCore::WebVTTParser::fileFinished): Force file to finish parsing.
1284         (WebCore::WebVTTParser::hasRequiredFileIdentifier): Simplify due to using String.
1285         (WebCore::WebVTTParser::collectCueText): Don't automatically create cues when we run out of data.
1286         (WebCore::WebVTTParser::collectNextLine): Use buffer.
1287         * html/track/WebVTTParser.h: Add m_buffer and Finished state.
1288         * loader/TextTrackLoader.cpp:
1289         (WebCore::TextTrackLoader::notifyFinished): Call m_parser->fileFinished() when done.
1290
1291 2013-10-22  peavo@outlook.com  <peavo@outlook.com>
1292
1293         [WinCairo] Compile error.
1294         https://bugs.webkit.org/show_bug.cgi?id=123161
1295
1296         Reviewed by Brent Fulgham.
1297
1298         * rendering/RenderFlowThread.h: Move USE(ACCELERATED_COMPOSITING) guard to expose needed type.
1299
1300 2013-10-21  Brady Eidson  <beidson@apple.com>
1301
1302         Add a cross-platform IDBRecordIdentifier
1303         https://bugs.webkit.org/show_bug.cgi?id=123138
1304
1305         Reviewed by Andreas Kling.
1306
1307         Add the cross-platform header:
1308         * Modules/indexeddb/IDBRecordIdentifier.h: Added.
1309         (WebCore::IDBRecordIdentifier::create):
1310         (WebCore::IDBRecordIdentifier::encodedPrimaryKey):
1311         (WebCore::IDBRecordIdentifier::version):
1312         (WebCore::IDBRecordIdentifier::reset):
1313         (WebCore::IDBRecordIdentifier::IDBRecordIdentifier):
1314         * WebCore.xcodeproj/project.pbxproj:
1315         * GNUmakefile.list.am:
1316
1317         Remove the old abstract and LevelDB classes:
1318         * Modules/indexeddb/IDBBackingStoreInterface.h:
1319         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
1320
1321         Use the cross-platform one everywhere:
1322         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
1323         (WebCore::IDBBackingStoreLevelDB::putRecord):
1324         (WebCore::IDBBackingStoreLevelDB::deleteRecord):
1325         (WebCore::IDBBackingStoreLevelDB::keyExistsInObjectStore):
1326         (WebCore::IDBBackingStoreLevelDB::putIndexDataForRecord):
1327         (WebCore::ObjectStoreKeyCursorImpl::loadCurrentRow):
1328         (WebCore::ObjectStoreCursorImpl::loadCurrentRow):
1329
1330         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
1331         (WebCore::IDBDatabaseBackendLevelDB::setIndexKeys):
1332
1333         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
1334         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::writeIndexKeys):
1335
1336         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
1337         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
1338         (WebCore::PutOperation::perform):
1339
1340 2013-10-22  Andrei Bucur  <abucur@adobe.com>
1341
1342         [CSS Regions] Possible performance regression after r157567
1343         https://bugs.webkit.org/show_bug.cgi?id=123016
1344
1345         Reviewed by Andreas Kling.
1346
1347         The revision 157567 http://trac.webkit.org/changeset/157567 may have regressed
1348         Parser/html5-full-render by ~1.1% and Parser/html-parser by ~2%. These changes
1349         try to optimize the initial patch, based on Andreas Kling's review.
1350
1351         The patch also adds a couple of refactorings that should make the code easier to read:
1352         - the CSS Shapes functions are now wrapped in a single #if clause
1353         - the CSS Shapes and CSS Regions pre-layout preparations are wrapped in a helper function
1354
1355         The RenderFlowThread::logicalWidthChangedInRegionsForBlock function is optimized by passing
1356         it information about the state of the relayout children flag. If the flag is true already,
1357         some of the steps are skipped.
1358
1359         Tests: no new tests.
1360
1361         * dom/Element.cpp:
1362         (WebCore::Element::webkitGetRegionFlowRanges):
1363         * inspector/InspectorOverlay.cpp:
1364         (WebCore::buildObjectForElementInfo):
1365         * rendering/RenderBlock.cpp:
1366         (WebCore::shapeInfoRequiresRelayout):
1367         (WebCore::RenderBlock::updateShapesBeforeBlockLayout):
1368         (WebCore::RenderBlock::computeShapeSize):
1369         (WebCore::RenderBlock::prepareShapesAndPaginationBeforeBlockLayout):
1370         * rendering/RenderBlock.h:
1371         * rendering/RenderBlockFlow.cpp:
1372         (WebCore::RenderBlockFlow::layoutBlock):
1373         (WebCore::RenderBlockFlow::createRenderNamedFlowFragmentIfNeeded):
1374         (WebCore::RenderBlockFlow::setRenderNamedFlowFragment):
1375         (WebCore::RenderBlockFlow::ensureRareData):
1376         * rendering/RenderBlockFlow.h:
1377         (WebCore::RenderBlockFlow::RenderBlockFlowRareData::RenderBlockFlowRareData):
1378         (WebCore::RenderElement::isRenderNamedFlowFragmentContainer):
1379         * rendering/RenderDeprecatedFlexibleBox.cpp:
1380         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
1381         * rendering/RenderElement.h:
1382         (WebCore::RenderElement::generatingElement):
1383         * rendering/RenderFlexibleBox.cpp:
1384         (WebCore::RenderFlexibleBox::layoutBlock):
1385         * rendering/RenderFlowThread.cpp:
1386         (WebCore::RenderFlowThread::logicalWidthChangedInRegionsForBlock):
1387         * rendering/RenderFlowThread.h:
1388         * rendering/RenderGrid.cpp:
1389         (WebCore::RenderGrid::layoutBlock):
1390         * rendering/RenderNamedFlowFragment.h:
1391         * rendering/RenderObject.cpp:
1392         * rendering/RenderObject.h:
1393         * rendering/RenderTreeAsText.cpp:
1394         (WebCore::write):
1395         * style/StyleResolveTree.cpp:
1396         (WebCore::Style::elementInsideRegionNeedsRenderer):
1397
1398 2013-10-22  Andreas Kling  <akling@apple.com>
1399
1400         CSSStyleSheet constructor functions should return PassRef.
1401         <https://webkit.org/b/123156>
1402
1403         Make CSSStyleSheet::create*() return PassRef and tighten some call
1404         sites that were using them. Most callers didn't need any tweaks to
1405         take advantage of PassRef.
1406
1407         Reviewed by Antti Koivisto.
1408
1409 2013-10-22  Andreas Kling  <akling@apple.com>
1410
1411         CTTE: RenderMathMLFraction always has a MathMLInlineContainerElement.
1412         <https://webkit.org/b/123154>
1413
1414         This renderer is never anonymous and always has a corresponding
1415         MathMLInlineContainerElement. Overload element() with a tighter
1416         return type.
1417
1418         Also marked the class FINAL and made most member functions private.
1419
1420         Reviewed by Antti Koivisto.
1421
1422 2013-10-22  Andreas Kling  <akling@apple.com>
1423
1424         FontGlyphs constructor functions should return PassRef.
1425         <https://webkit.org/b/123159>
1426
1427         Made the two FontGlyphs creator functions return PassRef and tweaked
1428         the FontGlyphsCache in Font.cpp to make more efficient use of it.
1429
1430         Reviewed by Antti Koivisto.
1431
1432 2013-10-22  Andreas Kling  <akling@apple.com>
1433
1434         Fix some more code to use RenderElement instead of RenderObject.
1435         <https://webkit.org/b/123149>
1436
1437         Using RenderElement where possible lets us skip the isRenderElement()
1438         branch in RenderObject::style() and generates much tighter code.
1439
1440         Reviewed by Antti Koivisto.
1441
1442 2013-10-22  Andreas Kling  <akling@apple.com>
1443
1444         Merge SVG renderers' styleWillChange() into styleDidChange().
1445         <https://webkit.org/b/123108>
1446
1447         This work can just as well be done after setting the style.
1448         Three more styleWillChange() overloads gone.
1449
1450         Reviewed by Antti Koivisto.
1451
1452 2013-10-22  Andreas Kling  <akling@apple.com>
1453
1454         CSSValueList constructor functions should return PassRef.
1455         <https://webkit.org/b/123151>
1456
1457         These functions always return objects, and thus can return PassRef.
1458         Also made CSSValueList::createFromParserValueList() take a reference
1459         since that function is only ever called with a non-null value.
1460
1461         Reviewed by Antti Koivisto.
1462
1463 2013-10-22  Andreas Kling  <akling@apple.com>
1464
1465         Avoid parent style ref churn in createTextRendererIfNeeded().
1466         <https://webkit.org/b/123148>
1467
1468         There's no need to take a temporary ref on the parent's RenderStyle
1469         while creating a text renderer. It's not going away, and the text
1470         renderer is not going to participate in ownership afterwards.
1471
1472         Reviewed by Antti Koivisto.
1473
1474 2013-10-22  Andreas Kling  <akling@apple.com>
1475
1476         Remove some unnecessary null checks in RenderElement::setStyle().
1477         <https://webkit.org/b/123146>
1478
1479         After assigning the new style to RenderElement::m_style, we know that
1480         it'll be non-null, so remove all the checking for this.
1481
1482         Reviewed by Antti Koivisto.
1483
1484 2013-10-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1485
1486         Introduce ACCESSIBILITY_OBJECT_TYPE_CASTS to replace manual toFoo() in accessibility child class
1487         https://bugs.webkit.org/show_bug.cgi?id=123140
1488
1489         Reviewed by Andreas Kling.
1490
1491         As a step to let toFoo use TYPE_CASTS_BASE, DEFINE_TYPE_CASTS can be used for toFoo() in accessibility
1492         child class. The DEFINE_TYPE_CASTS will generate plenty more helper functions for accessibility type cast.
1493
1494         No new tests, no behavior changes.
1495
1496         * accessibility/AccessibilityList.h:
1497         * accessibility/AccessibilityMenuList.h:
1498         * accessibility/AccessibilityMockObject.h:
1499         * accessibility/AccessibilityNodeObject.h:
1500         * accessibility/AccessibilityObject.h:
1501         * accessibility/AccessibilityRenderObject.h:
1502         * accessibility/AccessibilitySVGRoot.h:
1503         * accessibility/AccessibilityScrollView.h:
1504         * accessibility/AccessibilitySpinButton.h:
1505         * accessibility/AccessibilityTable.h:
1506
1507 2013-10-22  Brian Holt  <brian.holt@samsung.com>
1508
1509         [GTK] Add WebKit2 API for TLS errors
1510         https://bugs.webkit.org/show_bug.cgi?id=120160
1511
1512         Reviewed by Carlos Garcia Campos.
1513
1514         Added a new constructor for CertificateInfo under Soup.
1515
1516         * platform/network/CertificateInfo.h:
1517         * platform/network/soup/CertificateInfoSoup.cpp:
1518         (WebCore::CertificateInfo::CertificateInfo): New constructor using
1519         GTlsCertificateFlags and GTlsCertificate.
1520
1521 2013-10-22  Mihnea Ovidenie  <mihnea@adobe.com>
1522
1523         [CSSRegions] Use RenderStyle::hasFlowFrom when needed
1524         https://bugs.webkit.org/show_bug.cgi?id=122543
1525
1526         Reviewed by David Hyatt.
1527
1528         Rename RenderStyle::hasStyleRegion -> RenderStyle::hasFlowFrom.
1529         Use RenderStyle::hasFlowFrom() helper function instead of directly
1530         checking the value of RenderStyle::regionThread().
1531
1532         No change of functionality, covered by existing tests.
1533
1534         * css/CSSComputedStyleDeclaration.cpp:
1535         (WebCore::contentToCSSValue):
1536         (WebCore::ComputedStyleExtractor::propertyValue):
1537         * css/StyleResolver.cpp:
1538         (WebCore::StyleResolver::adjustRenderStyle):
1539         * dom/PseudoElement.cpp:
1540         (WebCore::PseudoElement::didAttachRenderers):
1541         * dom/PseudoElement.h:
1542         (WebCore::pseudoElementRendererIsNeeded):
1543         * rendering/RenderBlockFlow.cpp:
1544         (WebCore::RenderBlockFlow::createRenderNamedFlowFragmentIfNeeded):
1545         * rendering/RenderLayer.cpp:
1546         (WebCore::RenderLayer::shouldBeNormalFlowOnly):
1547         * rendering/style/RenderStyle.h:
1548
1549 2013-10-21  Brent Fulgham  <bfulgham@apple.com>
1550
1551         [WIN] Properly support reverse animations without needing software fallback.
1552         https://bugs.webkit.org/show_bug.cgi?id=85121
1553
1554         Reviewed by Dean Jackson.
1555
1556         Testing is provided by existing animation tests.
1557
1558         * platform/animation/TimingFunction.h:
1559         (WebCore::CubicBezierTimingFunction::createReversed): Added.
1560         * platform/graphics/ca/GraphicsLayerCA.cpp:
1561         (WebCore::GraphicsLayerCA::addAnimation): The early return when performing a reverse or
1562         autoreverse animation is no longer needed.
1563         * platform/graphics/ca/PlatformCAAnimation.h:
1564         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
1565         (toCAMediaTimingFunction): Use new reversed function.
1566         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
1567         (toCACFTimingFunction): Ditto.
1568         (PlatformCAAnimation::setTimingFunction): Pass 'reverse' flag.
1569         (PlatformCAAnimation::setTimingFunctions): Ditto.
1570
1571 2013-10-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1572
1573         Use TYPE_CASTS_BASE for CSS_VALUE_TYPE_CASTS
1574         https://bugs.webkit.org/show_bug.cgi?id=123126
1575
1576         Reviewed by Andreas Kling.
1577
1578         TYPE_CASTS_BASE was moved to common place to be used by all toFoo().
1579         CSS_VALUE_TYPE_CASTS starts to use it for CSS child value. This change
1580         generates plenty more helper functions for toCSSFooValue().
1581
1582         Additionally, this use support that toWebKitCSSFooValue, which couldn't
1583         use CSS_VALUE_TYPE_CASTS macro.
1584
1585         No new tests, no behavior change.
1586
1587         * css/CSSAspectRatioValue.h:
1588         * css/CSSBorderImageSliceValue.h:
1589         * css/CSSCalculationValue.h:
1590         * css/CSSCanvasValue.h:
1591         * css/CSSCrossfadeValue.h:
1592         * css/CSSCursorImageValue.h:
1593         * css/CSSFilterImageValue.h:
1594         * css/CSSFontFaceSrcValue.h:
1595         * css/CSSFontFeatureValue.h:
1596         * css/CSSFontValue.h:
1597         * css/CSSFunctionValue.h:
1598         * css/CSSGradientValue.h:
1599         * css/CSSGridTemplateValue.h:
1600         * css/CSSImageSetValue.h:
1601         * css/CSSImageValue.h:
1602         * css/CSSInheritedValue.h:
1603         * css/CSSInitialValue.h:
1604         * css/CSSLineBoxContainValue.h:
1605         * css/CSSPrimitiveValue.h:
1606         * css/CSSReflectValue.h:
1607         * css/CSSShadowValue.h:
1608         * css/CSSTimingFunctionValue.h:
1609         * css/CSSUnicodeRangeValue.h:
1610         * css/CSSValue.h:
1611         * css/CSSValueList.h:
1612         * css/CSSVariableValue.h:
1613         * css/WebKitCSSArrayFunctionValue.h:
1614         * css/WebKitCSSFilterValue.h:
1615         * css/WebKitCSSMatFunctionValue.h:
1616         * css/WebKitCSSMixFunctionValue.h:
1617         * css/WebKitCSSSVGDocumentValue.h:
1618         * css/WebKitCSSShaderValue.h:
1619
1620 2013-10-21  Joone Hur  <joone.hur@intel.com>
1621
1622         Bad cast with toRenderBoxModelObject in RenderBlock::updateFirstLetter()
1623         https://bugs.webkit.org/show_bug.cgi?id=123013
1624
1625         Reviewed by Andreas Kling.
1626
1627         No new tests because this was reported by Google ClusterFuzz.
1628         https://codereview.chromium.org/25713009/
1629
1630         There is a case that toRenderBoxModelObject causes a crash in RenderBlock::updateFirstLetter() 
1631         due to bad cast, so we need to check whether the RenderObject is a RenderBoxModelObject 
1632         by running isBoxModelObject() before calling toRenderBoxModelObject.  
1633
1634         * rendering/RenderBlock.cpp:
1635         (WebCore::RenderBlock::updateFirstLetter):
1636
1637 2013-10-21  Brady Eidson  <beidson@apple.com>
1638
1639         Make IDBTransactionCoordinatorLevelDB cross platform
1640         https://bugs.webkit.org/show_bug.cgi?id=123124
1641
1642         Enthusiastically reviewed by Tim Horton.
1643
1644         * CMakeLists.txt:
1645         * GNUmakefile.list.am:
1646         * WebCore.xcodeproj/project.pbxproj:
1647
1648         Make more methods pure virtual in the interface:
1649         * Modules/indexeddb/IDBTransactionBackendInterface.h:
1650         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
1651         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
1652
1653         Update the name of the class, and use IDBTransactionBackendInterface instead of IDBTransactionBackendLeveDB:
1654         * Modules/indexeddb/IDBTransactionCoordinator.cpp: Renamed from Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.cpp.
1655         (WebCore::IDBTransactionCoordinator::create):
1656         (WebCore::IDBTransactionCoordinator::IDBTransactionCoordinator):
1657         (WebCore::IDBTransactionCoordinator::~IDBTransactionCoordinator):
1658         (WebCore::IDBTransactionCoordinator::didCreateTransaction):
1659         (WebCore::IDBTransactionCoordinator::didStartTransaction):
1660         (WebCore::IDBTransactionCoordinator::didFinishTransaction):
1661         (WebCore::IDBTransactionCoordinator::isActive):
1662         (WebCore::IDBTransactionCoordinator::processStartedTransactions):
1663         (WebCore::doScopesOverlap):
1664         (WebCore::IDBTransactionCoordinator::canRunTransaction):
1665         * Modules/indexeddb/IDBTransactionCoordinator.h: Renamed from Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.h.
1666
1667         Update the name of the class elsewhere:
1668         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
1669         (WebCore::IDBDatabaseBackendLevelDB::IDBDatabaseBackendLevelDB):
1670         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
1671         (WebCore::IDBDatabaseBackendLevelDB::transactionCoordinator):
1672         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
1673
1674 2013-10-21  Daniel Bates  <dabates@apple.com>
1675
1676         [iOS] Upstream JSGlobalObject::shouldInterruptScriptBeforeTimeout()
1677         https://bugs.webkit.org/show_bug.cgi?id=123045
1678
1679         Reviewed by Joseph Pecoraro.
1680
1681         * bindings/js/JSDOMWindowBase.cpp:
1682         (WebCore::shouldInterruptScriptToPreventInfiniteRecursionWhenClosingPage): Added.
1683         (WebCore::JSDOMWindowBase::shouldInterruptScript): Extracted comment and assertion
1684         about null Page object into WebCore::shouldInterruptScriptToPreventInfiniteRecursionWhenClosingPage()
1685         so that it can be shared by both this function and JSDOMWindowBase::shouldInterruptScriptBeforeTimeout().
1686         (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
1687         * bindings/js/JSDOMWindowBase.h:
1688         * bindings/js/JSWorkerGlobalScopeBase.cpp:
1689         (WebCore::JSWorkerGlobalScopeBase::shouldInterruptScriptBeforeTimeout): Added.
1690         * bindings/js/JSWorkerGlobalScopeBase.h:
1691         * loader/EmptyClients.h: Added isStopping(). We'll land the iOS chrome client implementation
1692         in a subsequent patch.
1693         * page/ChromeClient.h: Added isStopping().
1694
1695 2013-10-21  Anders Carlsson  <andersca@apple.com>
1696
1697         Navigation policy callback not called when performing the same fragment navigation twice
1698         https://bugs.webkit.org/show_bug.cgi?id=123121
1699         <rdar://problem/15230466>
1700
1701         Reviewed by Beth Dakin.
1702
1703         There's code in PolicyChecker::checkNavigationPolicy that will call the decision function right away 
1704         if the requests are equal, without consulting any policy client. Because of this, make sure to empty out
1705         the last checked request of the document loader when doing a fragment navigation.
1706
1707         * loader/FrameLoader.cpp:
1708         (WebCore::FrameLoader::loadURL):
1709         (WebCore::FrameLoader::loadWithDocumentLoader):
1710
1711 2013-10-21  Jer Noble  <jer.noble@apple.com>
1712
1713         Unreviewed build fix; unprotect the declaration of updateSleepDisabling();
1714
1715         * html/HTMLMediaElement.h:
1716
1717 2013-10-20  Mark Lam  <mark.lam@apple.com>
1718
1719         Avoid JSC debugger overhead unless needed.
1720         https://bugs.webkit.org/show_bug.cgi?id=123084.
1721
1722         Reviewed by Geoffrey Garen.
1723
1724         No new tests.
1725
1726         - If no breakpoints are set, we now avoid calling the debug hook callbacks.
1727         - If no break on exception is set, we also avoid exception event debug callbacks.
1728         - When we return from the ScriptDebugServer to the JSC::Debugger, we may no
1729           longer call the debug hook callbacks if not needed. Hence, the m_currentCallFrame
1730           pointer in the ScriptDebugServer may become stale. To avoid this issue, before
1731           returning, the ScriptDebugServer will clear its m_currentCallFrame if
1732           needsOpDebugCallbacks() is false.
1733
1734         * bindings/js/ScriptDebugServer.cpp:
1735         (WebCore::ScriptDebugServer::setBreakpoint):
1736         (WebCore::ScriptDebugServer::removeBreakpoint):
1737         (WebCore::ScriptDebugServer::clearBreakpoints):
1738         (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
1739         (WebCore::ScriptDebugServer::setPauseOnNextStatement):
1740         (WebCore::ScriptDebugServer::breakProgram):
1741         (WebCore::ScriptDebugServer::stepIntoStatement):
1742         (WebCore::ScriptDebugServer::dispatchDidContinue):
1743         (WebCore::ScriptDebugServer::exception):
1744         (WebCore::ScriptDebugServer::didReachBreakpoint):
1745         * inspector/InspectorDebuggerAgent.cpp:
1746         (WebCore::InspectorDebuggerAgent::reset):
1747
1748 2013-10-21  Myles C. Maxfield  <mmaxfield@apple.com>
1749
1750         Grammar markers are not updated when switching between 1x and 2x
1751         https://bugs.webkit.org/show_bug.cgi?id=122146
1752
1753         Reviewed by Dean Jackson.
1754
1755         When running editing/spelling/grammar-markers-hidpi.html, the 2x
1756         grammar/spelling dot resources are cached. If you then run
1757         editing/spelling/grammar-markers.html without tearing down WebKit,
1758         it re-uses the 2x dots. The difference between the two tests is a call
1759         to testRunner.setBackingScaleFactor().
1760
1761         We create a NSColor from an NSImage, and remember it in a static
1762         variable. However, NSColor inspects the current graphics context to
1763         determine which resolution to use, and then remembers that decision.
1764         Therefore, we want to recreate the NSColor whenever the device pixel
1765         ratio changes. This patch adds a new static function to GraphicsContext
1766         which recreates this NSColor every time the ratio changes.
1767
1768         Tests: editing/spelling/grammar-markers.html
1769                editing/spelling/inline_spelling_markers.html
1770
1771         * platform/graphics/mac/GraphicsContextMac.mm:
1772         (WebCore::makePattern):
1773         (WebCore::GraphicsContext::drawLineForDocumentMarker):
1774
1775 2013-10-21  Simon Fraser  <simon.fraser@apple.com>
1776
1777         Use pink layer borders for compositing layers with a contents layer
1778         https://bugs.webkit.org/show_bug.cgi?id=123118
1779
1780         Reviewed by Dean Jackson.
1781
1782         With the existing layer border colors, it's not possible to distinguish an empty
1783         layer from one with solid color, image or video contents. So use a pink color
1784         for those. This makes it easier to diagnose bugs like 122784.
1785
1786         * platform/graphics/GraphicsLayer.cpp:
1787         (WebCore::GraphicsLayer::getDebugBorderInfo):
1788
1789 2013-10-21  Jer Noble  <jer.noble@apple.com>
1790
1791         Limit use of display sleep assertion when <video> element is off-screen.
1792         https://bugs.webkit.org/show_bug.cgi?id=123041
1793
1794         Reviewed by Darin Adler.
1795
1796         Use page visibility changes to suspend and resume the use of sleep assertions in
1797         HTMLMediaElement.
1798
1799         Page will propogate the page visibility change notifications to its Documents, which
1800         will further propogate those notifications to registered elements.  Upon receiving
1801         these notifications, HTMLMediaElement will release or take a DisplaySleepDisabler
1802         token if necessary.
1803
1804         Also, rename HTMLMediaElement's updateDisableSleep() to updateSleepDisabling() and wrap
1805         the implementation in a PLATFORM(MAC) guard rather than at each call site.
1806
1807         * dom/Document.cpp:
1808         (WebCore::Document::registerForVisibilityStateCallbacks): Added registration method.
1809         (WebCore::Document::unregisterForVisibilityStateCallbacks): Added unregistration method.
1810         (WebCore::Document::visibilityStateChanged): Call all registered clients.
1811         * dom/Document.h:
1812         * dom/Element.h:
1813         (WebCore::Element::visibilityStateChanged): Added default virtual method to be overridden
1814             by subclasses.
1815         * html/HTMLMediaElement.cpp:
1816         (WebCore::HTMLMediaElement::HTMLMediaElement): Register for the notification, and check the
1817             current status of Document::hidden().
1818         (WebCore::HTMLMediaElement::~HTMLMediaElement): Unregister for the notification.
1819         (WebCore::HTMLMediaElement::visibilityStateChanged): Set m_displaySleepDisablingSuspended
1820             and call updateSleepDisabling().
1821         (WebCore::HTMLMediaElement::shouldDisableSleep): Add a check for m_displaySleepDisablingSuspended.
1822         * html/HTMLMediaElement.h:
1823         * page/Page.cpp:
1824         (WebCore::Page::setVisibilityState): Pass to every child document.
1825
1826         Rename updateDisableSleep() -> updateSleepDisabling():
1827         * html/HTMLMediaElement.cpp:
1828         (WebCore::HTMLMediaElement::HTMLMediaElement):
1829         (WebCore::HTMLMediaElement::~HTMLMediaElement):
1830         (WebCore::HTMLMediaElement::parseAttribute):
1831         (WebCore::HTMLMediaElement::mediaPlayerRateChanged):
1832         (WebCore::HTMLMediaElement::clearMediaPlayer):
1833         (WebCore::HTMLMediaElement::stop):
1834
1835 2013-10-21  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1836
1837         MediaStreamTrack now tracks its own state
1838         https://bugs.webkit.org/show_bug.cgi?id=123025
1839
1840         Reviewed by Jer Noble.
1841
1842         The spec says that a MediaStreamSource can be shared by different tracks,
1843         so a track must have its own state tracking, synchronizing with its MediaStreamSource when
1844         the underlying MediaStreamSource changes the readyState.
1845         In the old implementation if a user invoked the stop method, its readyState method was still
1846         returning the MediaStreamSource state, which was wrong.
1847         This also adds a setEnabled method, which can be used to set the state of a track when a
1848         remote peer ends it, for instance.
1849
1850         No new tests needed.
1851
1852         * Modules/mediastream/MediaStreamTrack.cpp:
1853         (WebCore::MediaStreamTrack::readyState):
1854         (WebCore::MediaStreamTrack::setState):
1855         (WebCore::MediaStreamTrack::stopProducingData):
1856         (WebCore::MediaStreamTrack::ended):
1857         (WebCore::MediaStreamTrack::sourceStateChanged):
1858         (WebCore::MediaStreamTrack::trackDidEnd):
1859         * Modules/mediastream/MediaStreamTrack.h:
1860
1861 2013-10-21  Tim Horton  <timothy_horton@apple.com>
1862
1863         Remote Layer Tree: Clean up transaction logging
1864         https://bugs.webkit.org/show_bug.cgi?id=123116
1865
1866         Reviewed by Anders Carlsson.
1867
1868         * WebCore.exp.in:
1869         Export some TextStream functions.
1870
1871 2013-10-21  Brady Eidson  <beidson@apple.com>
1872
1873         Transition most use of IDBBackingStoreLevelDB to IDBBackingStoreInterface
1874         https://bugs.webkit.org/show_bug.cgi?id=123105
1875
1876         Reviewed by Anders Carlsson.
1877
1878         Export more required headers:
1879         * WebCore.xcodeproj/project.pbxproj:
1880
1881         Flesh out many of the pure virtual methods on IDBBackingStoreInterface, as well as
1882         the RecordIdentifier and Cursor classes:
1883
1884         * Modules/indexeddb/IDBBackingStoreInterface.h:
1885         (WebCore::IDBBackingStoreInterface::RecordIdentifier::~RecordIdentifier):
1886         (WebCore::IDBBackingStoreInterface::Cursor::~Cursor):
1887
1888         Use IDBBackingStoreInterface, IDBBackingStoreInterface::RecordIdentifier, and
1889         IDBBackingStoreInterface::Cursor wherever possible:
1890
1891         * Modules/indexeddb/IDBFactoryBackendInterface.cpp:
1892         * Modules/indexeddb/IDBFactoryBackendInterface.h:
1893
1894         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
1895         (WebCore::IDBBackingStoreLevelDB::putRecord):
1896         (WebCore::IDBBackingStoreLevelDB::deleteRecord):
1897         (WebCore::IDBBackingStoreLevelDB::keyExistsInObjectStore):
1898         (WebCore::IDBBackingStoreLevelDB::putIndexDataForRecord):
1899         (WebCore::ObjectStoreKeyCursorImpl::clone):
1900         (WebCore::ObjectStoreCursorImpl::clone):
1901         (WebCore::IndexKeyCursorImpl::clone):
1902         (WebCore::IndexCursorImpl::clone):
1903         (WebCore::IDBBackingStoreLevelDB::openObjectStoreCursor):
1904         (WebCore::IDBBackingStoreLevelDB::openObjectStoreKeyCursor):
1905         (WebCore::IDBBackingStoreLevelDB::openIndexKeyCursor):
1906         (WebCore::IDBBackingStoreLevelDB::openIndexCursor):
1907         (WebCore::IDBBackingStoreLevelDB::Transaction::Transaction):
1908         (WebCore::IDBBackingStoreLevelDB::Transaction::begin):
1909         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
1910         (WebCore::IDBBackingStoreLevelDB::RecordIdentifier::RecordIdentifier):
1911
1912         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
1913         (WebCore::IDBCursorBackendLevelDB::IDBCursorBackendLevelDB):
1914         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
1915
1916         (WebCore::IDBCursorBackendLevelDB::create):
1917         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
1918         (WebCore::IDBDatabaseBackendLevelDB::create):
1919         (WebCore::IDBDatabaseBackendLevelDB::IDBDatabaseBackendLevelDB):
1920         (WebCore::IDBDatabaseBackendLevelDB::backingStore):
1921         (WebCore::IDBDatabaseBackendLevelDB::setIndexKeys):
1922         (WebCore::IDBDatabaseBackendLevelDB::createTransaction):
1923         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
1924
1925         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
1926         (WebCore::IDBFactoryBackendLevelDB::createTransactionBackend):
1927         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
1928
1929         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
1930         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::verifyIndexKeys):
1931         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::writeIndexKeys):
1932         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::addingKeyAllowed):
1933         (WebCore::IDBObjectStoreBackendLevelDB::makeIndexWriters):
1934         (WebCore::IDBObjectStoreBackendLevelDB::generateKey):
1935         (WebCore::IDBObjectStoreBackendLevelDB::updateKeyGenerator):
1936         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
1937
1938         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
1939         (WebCore::IDBTransactionBackendLevelDB::create):
1940         (WebCore::IDBTransactionBackendLevelDB::IDBTransactionBackendLevelDB):
1941         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
1942
1943         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
1944         (WebCore::GetOperation::perform):
1945         (WebCore::OpenCursorOperation::perform):
1946         (WebCore::CountOperation::perform):
1947         (WebCore::DeleteRangeOperation::perform):
1948         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h:
1949         (WebCore::CreateObjectStoreOperation::create):
1950         (WebCore::CreateObjectStoreOperation::CreateObjectStoreOperation):
1951         (WebCore::DeleteObjectStoreOperation::create):
1952         (WebCore::DeleteObjectStoreOperation::DeleteObjectStoreOperation):
1953         (WebCore::CreateIndexOperation::create):
1954         (WebCore::CreateIndexOperation::CreateIndexOperation):
1955         (WebCore::DeleteIndexOperation::create):
1956         (WebCore::DeleteIndexOperation::DeleteIndexOperation):
1957         (WebCore::GetOperation::create):
1958         (WebCore::GetOperation::GetOperation):
1959         (WebCore::PutOperation::create):
1960         (WebCore::PutOperation::PutOperation):
1961         (WebCore::OpenCursorOperation::create):
1962         (WebCore::OpenCursorOperation::OpenCursorOperation):
1963         (WebCore::CountOperation::create):
1964         (WebCore::CountOperation::CountOperation):
1965         (WebCore::DeleteRangeOperation::create):
1966         (WebCore::DeleteRangeOperation::DeleteRangeOperation):
1967         (WebCore::ClearOperation::create):
1968         (WebCore::ClearOperation::ClearOperation):
1969
1970 2013-10-21  Zoltan Horvath  <zoltan@webkit.org>
1971
1972         [CSS Shapes][CSS Regions] Don't apply shape-inside when we have multiple auto-height regions and the height is not resolved
1973         https://bugs.webkit.org/show_bug.cgi?id=123103
1974
1975         Reviewed by David Hyatt.
1976
1977         When we have multiple regions with auto-height, the region's height is not resolved from other elements we can't apply the
1978         the shape on the region. This patch prevents to apply the shape and fixes the behavior for these cases.
1979
1980         Test: fast/regions/shape-inside/shape-inside-on-multiple-autoheight-regions.html
1981
1982         * rendering/RenderBlock.cpp:
1983         (WebCore::RenderBlock::layoutShapeInsideInfo):
1984         * rendering/RenderBlockLineLayout.cpp:
1985         (WebCore::RenderBlockFlow::updateShapeAndSegmentsForCurrentLineInFlowThread):
1986
1987 2013-10-21  Tim Horton  <timothy_horton@apple.com>
1988
1989         Remote Layer Tree: Backing store should take contentsScale into account
1990         https://bugs.webkit.org/show_bug.cgi?id=123106
1991
1992         Reviewed by Simon Fraser.
1993
1994         * WebCore.exp.in:
1995         Export FloatRect::scale.
1996
1997 2013-10-21  Andreas Kling  <akling@apple.com>
1998
1999         RenderScrollbarPart doesn't need styleWillChange().
2000         <https://webkit.org/b/123113>
2001
2002         We will call setInline(false) in styleDidChange(), there's no need
2003         to override styleWillChange() just to do it twice.
2004
2005         Reviewed by Darin Adler.
2006
2007 2013-10-21  Mihai Maerean  <mmaerean@adobe.com>
2008
2009         [CSS Regions] The layers from the flow thread should be collected under the regions' layers.
2010         https://bugs.webkit.org/show_bug.cgi?id=120457
2011
2012         Reviewed by David Hyatt.
2013
2014         This patch is based on the work of Alexandru Chiculita at https://bugs.webkit.org/attachment.cgi?id=203872&action=review
2015
2016         The composited layers inside the named flow threads are collected as part of the regions (as children of the
2017         GraphicsLayer of the layer that corresponds to the region (which is attached to the parent renderer of
2018         RenderNameFlowFragment)).
2019         When a region displays a layer that needs accelerated compositing we activate the accelerated compositing for
2020         that region too (inside RenderLayerCompositor::computeRegionCompositingRequirements).
2021
2022         This patch has landed before (as http://trac.webkit.org/changeset/156451), but was reverted because
2023         fast/multicol/mixed-positioning-stacking-order.html failed. The fix is inside RenderLayerCompositor::canBeComposited
2024         that only enables compositing for layers inside flow threads that collect the graphics layers under the regions.
2025
2026         Another change from changeset #156451 is that now the region renderers are created as anonymous renderers under
2027         the element that has the flow-from property. When a composited layer is needed for the region, it sits in it's
2028         parent renderer, not in the region renderer (RenderNamedFlowFragment).
2029
2030         Tests: compositing/regions/crash-transform-inside-region.html
2031                compositing/regions/floated-region-with-transformed-child.html
2032                compositing/regions/move-layer-from-one-region-to-another.html
2033                compositing/regions/propagate-region-box-shadow-border-padding-for-video.html
2034                compositing/regions/propagate-region-box-shadow-border-padding.html
2035                compositing/regions/region-as-layer-in-another-flowthread.html
2036                compositing/regions/transform-transparent-positioned-video-inside-region.html
2037                compositing/regions/transformed-layer-inside-transformed-layer.html
2038                compositing/regions/z-index-update.html
2039                compositing/regions/z-index.html
2040
2041         * rendering/FlowThreadController.cpp:
2042         (WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded):
2043         * rendering/RenderElement.cpp:
2044         (WebCore::RenderElement::propagateStyleToAnonymousChildren): Not for RenderFlowThreads, as they are updated
2045         through the RenderView::styleDidChange function.
2046         * rendering/RenderFlowThread.cpp:
2047         (WebCore::RenderFlowThread::layout): When the layout of the flow thread is over (including the 2 phase layout),
2048         we update all the mappings between the layers inside the flow thread and the regions where those layers will be
2049         painted.
2050         (WebCore::RenderFlowThread::hasCompositingRegionDescendant): Whether any of the regions has a compositing descendant.
2051         (WebCore::RenderFlowThread::getLayerListForRegion):
2052         (WebCore::RenderFlowThread::regionForCompositedLayer):
2053         (WebCore::RenderFlowThread::cachedRegionForCompositedLayer):
2054         (WebCore::RenderFlowThread::collectsGraphicsLayersUnderRegions):
2055         (WebCore::RenderFlowThread::updateLayerToRegionMappings): Triggers an update of the layers if a layer has moved
2056         from a region to another since the last update.
2057         (WebCore::RenderFlowThread::updateAllLayerToRegionMappings):
2058         * rendering/RenderFlowThread.h:
2059         * rendering/RenderGeometryMap.cpp:
2060         (WebCore::RenderGeometryMap::pushRenderFlowThread):
2061         * rendering/RenderGeometryMap.h:
2062         * rendering/RenderLayer.cpp:
2063         (WebCore::RenderLayer::paintList):
2064         (WebCore::RenderLayer::enclosingFlowThreadAncestor):
2065         (WebCore::RenderLayer::isFlowThreadCollectingGraphicsLayersUnderRegions):
2066         (WebCore::RenderLayer::hitTestList):
2067         (WebCore::RenderLayer::calculateLayerBounds): When we calculate the bounds of the RenderView, we ignore those
2068         flow threads that collect the graphics layers under the regions.
2069         (WebCore::RenderLayer::dirtyZOrderLists):
2070         (WebCore::RenderLayer::dirtyNormalFlowList):
2071         * rendering/RenderLayer.h:
2072         * rendering/RenderLayerBacking.cpp:
2073         (WebCore::RenderLayerBacking::shouldClipCompositedBounds): Not if it's a flow thread that collects the graphics
2074         layers under the regions
2075         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Now adjusts the ancestorCompositingBounds for the FlowThread.
2076         (WebCore::RenderLayerBacking::adjustAncestorCompositingBoundsForFlowThread): Make sure that the region propagates
2077         its borders, paddings, outlines or box-shadows to layers inside it.
2078         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
2079         * rendering/RenderLayerBacking.h:
2080         * rendering/RenderLayerCompositor.cpp:
2081         (WebCore::RenderLayerCompositor::computeCompositingRequirements): Now calls computeRegionCompositingRequirements.
2082         (WebCore::RenderLayerCompositor::computeRegionCompositingRequirements):
2083         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Do not iterate the RenderFlowThread directly if
2084         we are going to collect the composited layers as part of regions.
2085         (WebCore::RenderLayerCompositor::rebuildRegionCompositingLayerTree):
2086         (WebCore::RenderLayerCompositor::canBeComposited): CSS Regions flow threads do not need to be composited as we
2087         use composited RenderRegions to render the background of the RenderFlowThread.
2088         (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): If it's a container of a css region.
2089         * rendering/RenderLayerCompositor.h:
2090         * rendering/RenderMultiColumnSet.cpp:
2091         (WebCore::RenderMultiColumnSet::adjustRegionBoundsFromFlowThreadPortionRect):
2092         * rendering/RenderMultiColumnSet.h:
2093         * rendering/RenderNamedFlowFragment.h:
2094         (WebCore::RenderNamedFlowFragment::layerOwner): When the content inside the region requires the region to have a
2095         layer, the layer will be created on the region's parent renderer instead. This method returns that renderer
2096         holding the layer. The return value may be null.
2097         * rendering/RenderNamedFlowThread.cpp:
2098         (WebCore::RenderNamedFlowThread::RenderNamedFlowThread):
2099         (WebCore::RenderNamedFlowThread::nextRendererForNode):
2100         (WebCore::RenderNamedFlowThread::previousRendererForNode):
2101         (WebCore::RenderNamedFlowThread::addFlowChild):
2102         (WebCore::RenderNamedFlowThread::removeFlowChild):
2103         (WebCore::RenderNamedFlowThread::collectsGraphicsLayersUnderRegions):
2104         * rendering/RenderNamedFlowThread.h: m_flowThreadChildList is now allocated through an OwnPtr to keep the render
2105         arena under the size limit.
2106         * rendering/RenderRegion.cpp:
2107         (WebCore::RenderRegion::adjustRegionBoundsFromFlowThreadPortionRect):
2108         * rendering/RenderRegion.h:
2109         (WebCore::toRenderRegion):
2110         * rendering/RenderTreeAsText.cpp:
2111         (WebCore::writeLayers):
2112         * WebCore.exp.in: WebCore::RenderLayer::isFlowThreadCollectingGraphicsLayersUnderRegions
2113
2114 2013-10-21  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
2115
2116         Fixing mediastream debug build
2117         https://bugs.webkit.org/show_bug.cgi?id=123104
2118
2119         Reviewed by Andreas Kling.
2120
2121         No new tests needed.
2122
2123         * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
2124         (WebCore::RTCDTMFToneChangeEvent::create):
2125
2126 2013-10-21  Andreas Kling  <akling@apple.com>
2127
2128         Merge RenderListMarker::styleWillChange() into styleDidChange().
2129         <https://webkit.org/b/123098>
2130
2131         If the marker's list-style-type or list-style-position changed, we
2132         need to dirty the layout. Move this logic to styleDidChange() so we
2133         can get rid of one styleWillChange() overload.
2134
2135         Reviewed by Antti Koivisto.
2136
2137 2013-10-21  Mihai Maerean  <mmaerean@adobe.com>
2138
2139         [CSS Regions] Fix WHITESPACE issues in the CSS grammar.
2140         https://bugs.webkit.org/show_bug.cgi?id=123082
2141
2142         Reviewed by Andreas Kling.
2143
2144         This is a port of Rune Lillesveen's patch from https://codereview.chromium.org/25607005
2145
2146         Fix WHITESPACE issues in the CSS grammar.
2147
2148         A single WHITESPACE token consumes consecutive spaces, but does not consume
2149         spaces separated by comments. That means S* and S+ in CSS grammars need to
2150         accept multiple WHITESPACE tokens. Additionally, white spaces are not
2151         mandatory to separate an @-symbol and the rest of the prelude.
2152
2153         Use space non-terminal instead of WHITESPACE for S+ in calc expressions.
2154
2155         Use maybe_space non-terminal instead of WHITESPACE for S* after @-webkit-filter
2156         and @-webkit-region.
2157
2158         Tests: fast/css/calc-comments-allowed.html
2159                fast/regions/webkit-region-syntax-space.html
2160
2161         * css/CSSGrammar.y.in:
2162
2163 2013-10-21  Anton Obzhirov  <a.obzhirov@samsung.com>
2164
2165         [ATK] Use atk_object_notify_state_change instead of manually emitting signals
2166         https://bugs.webkit.org/show_bug.cgi?id=122968
2167
2168         Reviewed by Mario Sanchez Prada.
2169
2170         Refactor emitting "state-change" event to use atk_object_notify_state_change
2171         instead of using g_signal_emit_by_name.
2172
2173         * accessibility/atk/AXObjectCacheAtk.cpp:
2174         (WebCore::notifyChildrenSelectionChange):
2175         (WebCore::AXObjectCache::postPlatformNotification):
2176         (WebCore::AXObjectCache::frameLoadingEventPlatformNotification):
2177         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
2178         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2179         (webkitAccessibleDetach):
2180         * editing/atk/FrameSelectionAtk.cpp:
2181         (WebCore::maybeEmitTextFocusChange):
2182
2183 2013-10-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2184
2185         Make TYPE_CASTS_BASE more flexible
2186         https://bugs.webkit.org/show_bug.cgi?id=122951
2187
2188         Reviewed by Andreas Kling.
2189
2190         TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
2191         to be used by other type casts. For instance, CSSValue, Accessibility and so on.
2192         This patch modifies TYPE_CASTS_BASE which can support other type casts.
2193
2194         Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
2195
2196         No new tests, no behavior changes.
2197
2198         * dom/Document.h:
2199         * dom/Node.h:
2200
2201 2013-10-21  Santosh Mahto  <santosh.ma@samsung.com>
2202
2203         ASSERTION FAILED: !style->propertyIsImportant(propertyID) in WebCore::setTextDecorationProperty
2204         https://bugs.webkit.org/show_bug.cgi?id=122097
2205
2206         Reviewed by Ryosuke Niwa.
2207
2208         When remove format command is called we pushdown the ancestor style
2209         down to its children. Currently applying inline style to iframe
2210         while pushing down style which causes iframe to be reinserted in tree and
2211         triggres again subframe loading which repeats everytime and finally
2212         crash happens. So we should avoid applying inline style to iframe
2213         element as it doesnot reflect in its content while pushing down style
2214         on it.
2215
2216         And ASSERT call has been removed from setTextDecoration property as
2217         the scenario is perfectly valid case.
2218
2219         Test: editing/execCommand/remove-format-textdecoration-in-iframe.html
2220
2221         * editing/ApplyStyleCommand.cpp:
2222         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Return if
2223         element is iframe.
2224         * editing/EditingStyle.cpp:
2225         (WebCore::StyleChange::setTextDecorationProperty): Remove ASSERT.
2226
2227 2013-10-20  Sam Weinig  <sam@webkit.org>
2228
2229         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 5)
2230         https://bugs.webkit.org/show_bug.cgi?id=122969
2231
2232         Reviewed by Antti Koivisto.
2233
2234         - Move m_lineBoxes to RenderBlockFlow.
2235
2236         * accessibility/AccessibilityRenderObject.cpp:
2237         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2238         * rendering/HitTestResult.cpp:
2239         (WebCore::HitTestResult::innerTextIfTruncated):
2240         * rendering/RenderBlock.cpp:
2241         (WebCore::RenderBlock::RenderBlock):
2242         (WebCore::RenderBlock::willBeDestroyed):
2243         (WebCore::RenderBlock::deleteLineBoxTree):
2244         (WebCore::RenderBlock::isSelfCollapsingBlock):
2245         (WebCore::RenderBlock::removeFromDelayedUpdateScrollInfoSet):
2246         (WebCore::RenderBlock::paintContents):
2247         (WebCore::blockDirectionOffset):
2248         (WebCore::inlineDirectionOffset):
2249         (WebCore::RenderBlock::inlineSelectionGaps):
2250         (WebCore::RenderBlock::hitTestContents):
2251         (WebCore::positionForPointRespectingEditingBoundaries):
2252         (WebCore::RenderBlock::positionForPointWithInlineChildren):
2253         (WebCore::RenderBlock::firstLineBoxBaseline):
2254         (WebCore::RenderBlock::inlineBlockBaseline):
2255         (WebCore::RenderBlock::addFocusRingRectsForInlineChildren):
2256         (WebCore::RenderBlock::addFocusRingRects):
2257         (WebCore::RenderBlock::showLineTreeAndMark):
2258         * rendering/RenderBlock.h:
2259         (WebCore::RenderBlock::addOverflowFromInlineChildren):
2260         (WebCore::RenderBlock::hasInlineBoxChildren):
2261         (WebCore::RenderBlock::paintInlineChildren):
2262         (WebCore::RenderBlock::hitTestInlineChildren):
2263         * rendering/RenderBlockFlow.cpp:
2264         (WebCore::RenderBlockFlow::RenderBlockFlow):
2265         (WebCore::RenderBlockFlow::willBeDestroyed):
2266         (WebCore::RenderBlockFlow::deleteLineBoxTree):
2267         (WebCore::RenderBlockFlow::hitTestInlineChildren):
2268         (WebCore::RenderBlockFlow::adjustForBorderFit):
2269         (WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded):
2270         (WebCore::RenderBlockFlow::markLinesDirtyInBlockRange):
2271         (WebCore::RenderBlockFlow::firstLineBoxBaseline):
2272         (WebCore::RenderBlockFlow::inlineBlockBaseline):
2273         (WebCore::RenderBlockFlow::inlineSelectionGaps):
2274         (WebCore::RenderBlockFlow::positionForBox):
2275         (WebCore::RenderBlockFlow::positionForPointWithInlineChildren):
2276         (WebCore::RenderBlockFlow::addFocusRingRectsForInlineChildren):
2277         (WebCore::RenderBlockFlow::paintInlineChildren):
2278         (WebCore::RenderBlockFlow::relayoutForPagination):
2279         (WebCore::RenderBlockFlow::showLineTreeAndMark):
2280         * rendering/RenderBlockFlow.h:
2281         (WebCore::RenderBlockFlow::lineBoxes):
2282         (WebCore::RenderBlockFlow::firstLineBox):
2283         (WebCore::RenderBlockFlow::lastLineBox):
2284         (WebCore::RenderBlockFlow::firstRootBox):
2285         (WebCore::RenderBlockFlow::lastRootBox):
2286         * rendering/RenderBlockLineLayout.cpp:
2287         (WebCore::RenderBlockFlow::addOverflowFromInlineChildren):
2288         * rendering/RootInlineBox.cpp:
2289         (WebCore::RootInlineBox::selectionTopAdjustedForPrecedingBlock):
2290
2291 2013-10-20  Andreas Kling  <akling@apple.com>
2292
2293         Avoid unnecessary vector copy in AnimationController event dispatch.
2294         <https://webkit.org/b/122994>
2295
2296         Use Vector's move constructor instead of making a copy of the pending
2297         events queue and then clearing it.
2298
2299         Reviewed by Simon Fraser.
2300
2301 2013-10-19  Brady Eidson  <beidson@apple.com>
2302
2303         Add abstract IDBBackingStoreInterface, use it to get IDBDatabaseBackendLevelDB closer to going cross-platform
2304         https://bugs.webkit.org/show_bug.cgi?id=123074
2305
2306         Reviewed by Andreas Kling.
2307
2308         * Modules/indexeddb/IDBBackingStoreInterface.h: Added.
2309         (WebCore::IDBBackingStoreInterface::~IDBBackingStoreInterface):
2310         (WebCore::IDBBackingStoreInterface::Transaction::~Transaction):
2311
2312         * Modules/indexeddb/IDBTransactionBackendInterface.h:
2313
2314         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
2315         (WebCore::IDBBackingStoreLevelDB::updateIDBDatabaseIntVersion):
2316         (WebCore::IDBBackingStoreLevelDB::createObjectStore):
2317         (WebCore::IDBBackingStoreLevelDB::deleteObjectStore):
2318         (WebCore::IDBBackingStoreLevelDB::getRecord):
2319         (WebCore::IDBBackingStoreLevelDB::putRecord):
2320         (WebCore::IDBBackingStoreLevelDB::clearObjectStore):
2321         (WebCore::IDBBackingStoreLevelDB::deleteRecord):
2322         (WebCore::IDBBackingStoreLevelDB::getKeyGeneratorCurrentNumber):
2323         (WebCore::IDBBackingStoreLevelDB::maybeUpdateKeyGeneratorCurrentNumber):
2324         (WebCore::IDBBackingStoreLevelDB::keyExistsInObjectStore):
2325         (WebCore::IDBBackingStoreLevelDB::createIndex):
2326         (WebCore::IDBBackingStoreLevelDB::deleteIndex):
2327         (WebCore::IDBBackingStoreLevelDB::putIndexDataForRecord):
2328         (WebCore::IDBBackingStoreLevelDB::findKeyInIndex):
2329         (WebCore::IDBBackingStoreLevelDB::getPrimaryKeyViaIndex):
2330         (WebCore::IDBBackingStoreLevelDB::keyExistsInIndex):
2331         (WebCore::IDBBackingStoreLevelDB::openObjectStoreCursor):
2332         (WebCore::IDBBackingStoreLevelDB::openObjectStoreKeyCursor):
2333         (WebCore::IDBBackingStoreLevelDB::openIndexKeyCursor):
2334         (WebCore::IDBBackingStoreLevelDB::openIndexCursor):
2335         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
2336         (WebCore::IDBBackingStoreLevelDB::Transaction::reset):
2337         (WebCore::IDBBackingStoreLevelDB::Transaction::levelDBTransactionFrom):
2338
2339         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
2340         (WebCore::IDBCursorBackendLevelDB::deleteFunction):
2341         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
2342
2343         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
2344         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::verifyIndexKeys):
2345         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::writeIndexKeys):
2346         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::addingKeyAllowed):
2347         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
2348
2349         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
2350         (WebCore::IDBTransactionBackendLevelDB::backingStoreTransaction):
2351
2352         * WebCore.xcodeproj/project.pbxproj:
2353         * GNUmakefile.list.am:
2354
2355 2013-10-20  Andreas Kling  <akling@apple.com>
2356
2357         Use PassRef for StyleSheetContents.
2358         <https://webkit.org/b/123083>
2359
2360         Let functions that return newly-constructed StyleSheetContents
2361         objects vend PassRef<StyleSheetContents> instead of PassRefPtr.
2362
2363         Updated functions that take StyleSheetContents in arguments
2364         accordingly. And CSSStyleSheet now has a Ref internally. Woo!
2365
2366         Reviewed by Antti Koivisto.
2367
2368 2013-10-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
2369
2370         Removing "unused parameter" compiling warnings from WebKit2 and WebCore
2371         https://bugs.webkit.org/show_bug.cgi?id=123075
2372
2373         Reviewed by Andreas Kling.
2374
2375         No new tests needed.
2376
2377         * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
2378         (WebCore::RTCDTMFToneChangeEvent::create):
2379         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
2380         (lineAtPositionForAtkBoundary):
2381         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2382         (WebCore::MediaPlayerPrivateGStreamer::processTableOfContentsEntry):
2383
2384 2013-10-19  Andreas Kling  <akling@apple.com>
2385
2386         Use PassRef for constructing StyleRules.
2387         <https://webkit.org/b/123072>
2388
2389         Let functions that return newly-constructed StyleRuleFoo objects
2390         vend PassRef<StyleRuleFoo> instead of PassRefPtr.
2391
2392         Since StyleRuleBase::copy() has to return something, we can't rely
2393         on ASSERT_NOT_REACHED() + return nullptr anymore, so I've replaced
2394         those with CRASH(). No call sites actually handled null anyway.
2395
2396         Reviewed by Sam Weinig.
2397
2398 2013-10-19  Jer Noble  <jer.noble@apple.com>
2399
2400         Unreviewed roll out of r157695; broke Mac builds.
2401
2402         * Configurations/FeatureDefines.xcconfig:
2403
2404 2013-10-07  Jer Noble  <jer.noble@apple.com>
2405
2406         [MSE] [Mac] Enable MediaSource on the Mac
2407         https://bugs.webkit.org/show_bug.cgi?id=122484
2408
2409         Reviewed by Darin Adler.
2410
2411         Enable ENABLE_MEDIA_SOURCE.
2412
2413         * Configurations/FeatureDefines.xcconfig:
2414
2415 2013-10-19  Sam Weinig  <sam@webkit.org>
2416
2417         CTTE: Tighten up type usage around InputType::innerTextElement()
2418         https://bugs.webkit.org/show_bug.cgi?id=123078
2419
2420         Reviewed by Anders Carlsson.
2421
2422         * editing/TextIterator.cpp:
2423         (WebCore::TextIterator::handleReplacedElement):
2424         * html/HTMLElement.h:
2425         (WebCore::HTMLElement::isTextControlInnerTextElement):
2426         * html/HTMLInputElement.cpp:
2427         (WebCore::HTMLInputElement::innerTextElement):
2428         * html/HTMLInputElement.h:
2429         * html/HTMLTextAreaElement.cpp:
2430         (WebCore::HTMLTextAreaElement::innerTextElement):
2431         * html/HTMLTextAreaElement.h:
2432         * html/HTMLTextFormControlElement.cpp:
2433         (WebCore::hasVisibleTextArea):
2434         (WebCore::HTMLTextFormControlElement::selection):
2435         (WebCore::HTMLTextFormControlElement::innerTextValue):
2436         (WebCore::HTMLTextFormControlElement::valueWithHardLineBreaks):
2437         * html/HTMLTextFormControlElement.h:
2438         * html/InputType.h:
2439         (WebCore::InputType::innerTextElement):
2440         * html/TextFieldInputType.cpp:
2441         (WebCore::TextFieldInputType::forwardEvent):
2442         (WebCore::TextFieldInputType::innerTextElement):
2443         * html/TextFieldInputType.h:
2444         * html/shadow/TextControlInnerElements.cpp:
2445         (WebCore::TextControlInnerTextElement::renderer):
2446         * html/shadow/TextControlInnerElements.h:
2447         (WebCore::isTextControlInnerTextElement):
2448         * rendering/RenderObject.h:
2449         (WebCore::RenderObject::isTextControlInnerBlock):
2450         * rendering/RenderTextControl.cpp:
2451         (WebCore::RenderTextControl::innerTextElement):
2452         (WebCore::RenderTextControl::styleDidChange):
2453         (WebCore::RenderTextControl::textBlockLogicalWidth):
2454         (WebCore::RenderTextControl::updateFromElement):
2455         (WebCore::RenderTextControl::computeLogicalHeight):
2456         (WebCore::RenderTextControl::hitInnerTextElement):
2457         * rendering/RenderTextControl.h:
2458         * rendering/RenderTextControlSingleLine.cpp:
2459         (WebCore::RenderTextControlSingleLine::layout):
2460         (WebCore::RenderTextControlSingleLine::styleDidChange):
2461         (WebCore::RenderTextControlSingleLine::autoscroll):
2462         (WebCore::RenderTextControlSingleLine::scroll):
2463         (WebCore::RenderTextControlSingleLine::logicalScroll):
2464         * rendering/RenderTextControlSingleLine.h:
2465         (WebCore::toRenderTextControlInnerBlock):
2466
2467 2013-10-19  Sam Weinig  <sam@webkit.org>
2468
2469         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 4)
2470         https://bugs.webkit.org/show_bug.cgi?id=122969
2471
2472         Reviewed by Andreas Kling.
2473
2474         - Fix classes derived from RenderBlockFlow that were still calling
2475           up to RenderBlock rather than RenderBlockFlow.
2476
2477         * rendering/RenderDetailsMarker.cpp:
2478         (WebCore::RenderDetailsMarker::paint):
2479         * rendering/RenderFieldset.cpp:
2480         (WebCore::RenderFieldset::computePreferredLogicalWidths):
2481         (WebCore::RenderFieldset::paintBoxDecorations):
2482         (WebCore::RenderFieldset::paintMask):
2483         * rendering/RenderFileUploadControl.cpp:
2484         (WebCore::RenderFileUploadControl::paintObject):
2485         * rendering/RenderFlowThread.cpp:
2486         (WebCore::RenderFlowThread::styleDidChange):
2487         (WebCore::RenderFlowThread::layout):
2488         (WebCore::RenderFlowThread::nodeAtPoint):
2489         * rendering/RenderFullScreen.cpp:
2490         (RenderFullScreenPlaceholder::willBeDestroyed):
2491         * rendering/RenderListItem.cpp:
2492         (WebCore::RenderListItem::styleDidChange):
2493         * rendering/RenderMultiColumnBlock.cpp:
2494         (WebCore::RenderMultiColumnBlock::styleDidChange):
2495         (WebCore::RenderMultiColumnBlock::updateLogicalWidthAndColumnWidth):
2496         (WebCore::RenderMultiColumnBlock::addChild):
2497         * rendering/RenderProgress.cpp:
2498         (WebCore::RenderProgress::updateFromElement):
2499         * rendering/RenderRuby.cpp:
2500         (WebCore::RenderRubyAsBlock::styleDidChange):
2501         (WebCore::RenderRubyAsBlock::addChild):
2502         (WebCore::RenderRubyAsBlock::removeChild):
2503         * rendering/RenderRubyRun.cpp:
2504         (WebCore::RenderRubyRun::rubyBaseSafe):
2505         (WebCore::RenderRubyRun::addChild):
2506         (WebCore::RenderRubyRun::removeChild):
2507         (WebCore::RenderRubyRun::layout):
2508         * rendering/RenderRubyText.cpp:
2509         (WebCore::RenderRubyText::textAlignmentForLine):
2510         (WebCore::RenderRubyText::adjustInlineDirectionLineBounds):
2511         * rendering/RenderTableCaption.cpp:
2512         (WebCore::RenderTableCaption::willBeRemovedFromTree):
2513         * rendering/RenderTableCell.cpp:
2514         (WebCore::RenderTableCell::willBeRemovedFromTree):
2515         (WebCore::RenderTableCell::computePreferredLogicalWidths):
2516         (WebCore::RenderTableCell::offsetFromContainer):
2517         (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
2518         (WebCore::RenderTableCell::computeRectForRepaint):
2519         (WebCore::RenderTableCell::styleDidChange):
2520         (WebCore::RenderTableCell::borderLeft):
2521         (WebCore::RenderTableCell::borderRight):
2522         (WebCore::RenderTableCell::borderTop):
2523         (WebCore::RenderTableCell::borderBottom):
2524         (WebCore::RenderTableCell::borderStart):
2525         (WebCore::RenderTableCell::borderEnd):
2526         (WebCore::RenderTableCell::borderBefore):
2527         (WebCore::RenderTableCell::borderAfter):
2528         (WebCore::RenderTableCell::paint):
2529         * rendering/RenderTextControl.cpp:
2530         (WebCore::RenderTextControl::styleDidChange):
2531         * rendering/RenderTextControlSingleLine.cpp:
2532         (WebCore::RenderTextControlSingleLine::scrollWidth):
2533         (WebCore::RenderTextControlSingleLine::scrollHeight):
2534         (WebCore::RenderTextControlSingleLine::scrollLeft):
2535         (WebCore::RenderTextControlSingleLine::scrollTop):
2536         (WebCore::RenderTextControlSingleLine::scroll):
2537         (WebCore::RenderTextControlSingleLine::logicalScroll):
2538         * rendering/RenderTextTrackCue.cpp:
2539         (WebCore::RenderTextTrackCue::layout):
2540         * rendering/RenderView.cpp:
2541         (WebCore::RenderView::layoutContent):
2542         (WebCore::RenderView::addChild):
2543         (WebCore::RenderView::visualOverflowRect):
2544         (WebCore::RenderView::styleDidChange):
2545         * rendering/svg/RenderSVGBlock.cpp:
2546         (WebCore::RenderSVGBlock::setStyle):
2547         (WebCore::RenderSVGBlock::updateFromStyle):
2548         (WebCore::RenderSVGBlock::willBeDestroyed):
2549         (WebCore::RenderSVGBlock::styleWillChange):
2550         (WebCore::RenderSVGBlock::styleDidChange):
2551         * rendering/svg/SVGTextQuery.cpp:
2552         (WebCore::flowBoxForRenderer):
2553
2554 2013-10-19  Sam Weinig  <sam@webkit.org>
2555
2556         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 3)
2557         https://bugs.webkit.org/show_bug.cgi?id=122969
2558
2559         Reviewed by Andreas Kling.
2560
2561         - Move containsNonZeroBidiLevel to RenderBlockFlow.
2562
2563         * editing/Editor.cpp:
2564         (WebCore::Editor::hasBidiSelection):
2565         * rendering/RenderBlock.cpp:
2566         * rendering/RenderBlock.h:
2567         * rendering/RenderBlockFlow.cpp:
2568         (WebCore::RenderBlockFlow::containsNonZeroBidiLevel):
2569         * rendering/RenderBlockFlow.h:
2570
2571 2013-10-18  Sam Weinig  <sam@webkit.org>
2572
2573         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 2)
2574         https://bugs.webkit.org/show_bug.cgi?id=122969
2575
2576         Reviewed by Antti Koivisto.
2577
2578         - Move truncation (e.g. line clamp and ellipse) support to RenderBlockFlow.
2579
2580         * rendering/EllipsisBox.cpp:
2581         (WebCore::EllipsisBox::EllipsisBox):
2582         (WebCore::EllipsisBox::paint):
2583         (WebCore::EllipsisBox::markupBox):
2584         (WebCore::EllipsisBox::selectionRect):
2585         (WebCore::EllipsisBox::paintSelection):
2586         (WebCore::EllipsisBox::nodeAtPoint):
2587         * rendering/EllipsisBox.h:
2588         * rendering/RenderBlock.cpp:
2589         * rendering/RenderBlock.h:
2590         * rendering/RenderBlockFlow.cpp:
2591         (WebCore::shouldCheckLines):
2592         (WebCore::RenderBlockFlow::lineAtIndex):
2593         (WebCore::RenderBlockFlow::lineCount):
2594         (WebCore::getHeightForLineCount):
2595         (WebCore::RenderBlockFlow::heightForLineCount):
2596         (WebCore::RenderBlockFlow::clearTruncation):
2597         * rendering/RenderBlockFlow.h:
2598         * rendering/RenderDeprecatedFlexibleBox.cpp:
2599         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
2600         (WebCore::RenderDeprecatedFlexibleBox::clearLineClamp):
2601         * rendering/RootInlineBox.cpp:
2602         (WebCore::RootInlineBox::placeEllipsis):
2603
2604 2013-10-19  Andreas Kling  <akling@apple.com>
2605
2606         StyleResolver should deal in PassRef<RenderStyle> where possible.
2607         <https://webkit.org/b/123061>
2608
2609         Make StyleResolver functions that returned or took RenderStyles
2610         by PassRefPtr use PassRef instead where possible.
2611
2612         Reviewed by Anders Carlsson.
2613
2614 2013-10-19  Brady Eidson  <beidson@apple.com>
2615
2616         Global rename of the class "IDBBackingStore" to "IDBBackingStoreLevelDB"
2617
2618         Rubberstamped by Anders Carlsson (And Andreas Kling wanted to, but he wasn’t around)
2619
2620         * Modules/indexeddb/IDBTransactionBackendInterface.h:
2621         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
2622         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
2623         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
2624         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
2625         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
2626         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
2627         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
2628         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
2629         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
2630         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
2631         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
2632         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
2633         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
2634         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h:
2635
2636 2013-10-19  peavo@outlook.com  <peavo@outlook.com>
2637
2638         [WinCairo] Link fails.
2639         https://bugs.webkit.org/show_bug.cgi?id=123019
2640
2641         Reviewed by Darin Adler.
2642
2643         Added empty CertificateInfo implementation for Curl.
2644
2645         * WebCore.vcxproj/WebCore.vcxproj:
2646         * WebCore.vcxproj/WebCore.vcxproj.filters:
2647         * platform/network/curl/CertificateInfoCurl.cpp: Added.
2648         (WebCore::CertificateInfo::CertificateInfo):
2649         (WebCore::CertificateInfo::~CertificateInfo):
2650
2651 2013-10-19  Filip Pizlo  <fpizlo@apple.com>
2652
2653         libWebCoreTestSupport should have explicit exports
2654         https://bugs.webkit.org/show_bug.cgi?id=123053
2655
2656         Reviewed by Oliver Hunt.
2657
2658         No new tests because there is no change in behavior.
2659
2660         * Configurations/WebCoreTestSupport.xcconfig:
2661         * testing/js/WebCoreTestSupport.h:
2662
2663 2013-10-18  Andreas Kling  <akling@apple.com>
2664
2665         Start passing RenderStyle around with PassRef.
2666         <https://webkit.org/b/123051>
2667
2668         Made the RenderStyle::create methods return PassRef<RenderStyle>
2669         and RenderElement::setStyle take a PassRef<RenderStyle>.
2670
2671         Reviewed by Darin Adler.
2672
2673 2013-10-18  Sam Weinig  <sam@webkit.org>
2674
2675         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 1)
2676         https://bugs.webkit.org/show_bug.cgi?id=122969
2677
2678         Reviewed by Dan Bernstein.
2679
2680         - Make the RootInlineBox constructor take a RenderBlockFlow.
2681         - Move createRootInlineBox, and createAndAppendRootInlineBox to RenderBlockFlow.
2682
2683         * editing/VisibleUnits.cpp:
2684         (WebCore::absoluteLineDirectionPointToLocalPointInBlock):
2685         * rendering/InlineBox.cpp:
2686         (WebCore::InlineBox::locationIncludingFlipping):
2687         (WebCore::InlineBox::flipForWritingMode):
2688         * rendering/InlineFlowBox.cpp:
2689         (WebCore::InlineFlowBox::placeBoxRangeInInlineDirection):
2690         * rendering/RenderBlock.cpp:
2691         * rendering/RenderBlock.h:
2692         * rendering/RenderBlockFlow.h:
2693         * rendering/RenderBlockLineLayout.cpp:
2694         (WebCore::RenderBlockFlow::createRootInlineBox):
2695         (WebCore::RenderBlockFlow::createAndAppendRootInlineBox):
2696         (WebCore::createInlineBoxForRenderer):
2697         (WebCore::RenderBlockFlow::createLineBoxes):
2698         * rendering/RenderBox.cpp:
2699         (WebCore::RenderBox::positionLineBox):
2700         * rendering/RenderListMarker.cpp:
2701         (WebCore::RenderListMarker::localSelectionRect):
2702         * rendering/RenderReplaced.cpp:
2703         (WebCore::RenderReplaced::localSelectionRect):
2704         * rendering/RootInlineBox.cpp:
2705         (WebCore::RootInlineBox::RootInlineBox):
2706         (WebCore::RootInlineBox::rendererLineBoxes):
2707         (WebCore::RootInlineBox::placeEllipsis):
2708         (WebCore::RootInlineBox::containingRegion):
2709         (WebCore::RootInlineBox::setContainingRegion):
2710         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
2711         (WebCore::RootInlineBox::beforeAnnotationsAdjustment):
2712         (WebCore::RootInlineBox::lineSnapAdjustment):
2713         (WebCore::RootInlineBox::lineSelectionGap):
2714         (WebCore::RootInlineBox::computeCaretRect):
2715         (WebCore::RootInlineBox::selectionTop):
2716         (WebCore::RootInlineBox::selectionTopAdjustedForPrecedingBlock):
2717         (WebCore::RootInlineBox::selectionBottom):
2718         (WebCore::RootInlineBox::blockDirectionPointInLine):
2719         (WebCore::RootInlineBox::blockFlow):
2720         (WebCore::RootInlineBox::closestLeafChildForPoint):
2721         (WebCore::RootInlineBox::removeLineBoxFromRenderObject):
2722         (WebCore::RootInlineBox::extractLineBoxFromRenderObject):
2723         (WebCore::RootInlineBox::attachLineBoxToRenderObject):
2724         * rendering/RootInlineBox.h:
2725         * rendering/TrailingFloatsRootInlineBox.h:
2726         * rendering/svg/RenderSVGText.h:
2727         (WebCore::toRenderSVGText):
2728         * rendering/svg/SVGRootInlineBox.cpp:
2729         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
2730         (WebCore::SVGRootInlineBox::renderSVGText):
2731         (WebCore::SVGRootInlineBox::paint):
2732         (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation):
2733         (WebCore::SVGRootInlineBox::layoutRootBox):
2734         * rendering/svg/SVGRootInlineBox.h:
2735
2736 2013-10-18  Tim Horton  <timothy_horton@apple.com>
2737
2738         Remote Layer Tree: Double-buffering and minimization of repaints
2739         https://bugs.webkit.org/show_bug.cgi?id=123043
2740
2741         Reviewed by Simon Fraser.
2742
2743         No new tests, not yet testable.
2744
2745         * WebCore.exp.in:
2746         Export one version of drawLayerContents and Region::contains.
2747
2748         * WebCore.xcodeproj/project.pbxproj:
2749         Expose WebLayer.h as a private header.
2750
2751         * platform/graphics/mac/WebLayer.h:
2752         Clean up this header, and add a new drawLayerContents that can operate without a CALayer.
2753
2754         * platform/graphics/mac/WebLayer.mm:
2755         (WebCore::drawLayerContents):
2756         Split drawLayerContents into one method that acquires properties CALayer,
2757         and one that just does the painting.
2758
2759 2013-10-18  Anders Carlsson  <andersca@apple.com>
2760
2761         Try to fix the Lion build.
2762
2763         * bindings/objc/ObjCNodeFilterCondition.h:
2764
2765 2013-10-18  Daniel Bates  <dabates@apple.com>
2766
2767         [iOS] Upstream WebSafe{GCActivityCallback, IncrementalSweeper}IOS
2768         https://bugs.webkit.org/show_bug.cgi?id=123049
2769
2770         Reviewed by Mark Hahnenberg.
2771
2772         * WebCore.xcodeproj/project.pbxproj:
2773         * platform/ios/WebSafeGCActivityCallbackIOS.h: Added.
2774         * platform/ios/WebSafeIncrementalSweeperIOS.h: Added.
2775
2776 2013-10-18  Anders Carlsson  <andersca@apple.com>
2777
2778         Remove spaces between template angle brackets
2779         https://bugs.webkit.org/show_bug.cgi?id=123040
2780
2781         Reviewed by Andreas Kling.
2782
2783         * Modules/encryptedmedia/MediaKeySession.h:
2784         * Modules/encryptedmedia/MediaKeys.h:
2785         * Modules/geolocation/Geolocation.h:
2786         * Modules/geolocation/GeolocationController.cpp:
2787         (WebCore::GeolocationController::positionChanged):
2788         (WebCore::GeolocationController::errorOccurred):
2789         * Modules/geolocation/GeolocationController.h:
2790         * Modules/indexeddb/IDBCallbacks.h:
2791         * Modules/indexeddb/IDBDatabase.h:
2792         * Modules/indexeddb/IDBDatabaseBackendInterface.h:
2793         * Modules/indexeddb/IDBEventDispatcher.cpp:
2794         (WebCore::IDBEventDispatcher::dispatch):
2795         * Modules/indexeddb/IDBEventDispatcher.h:
2796         * Modules/indexeddb/IDBKey.h:
2797         * Modules/indexeddb/IDBObjectStore.h:
2798         * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
2799         * Modules/indexeddb/IDBRequest.cpp:
2800         (WebCore::IDBRequest::dispatchEvent):
2801         * Modules/indexeddb/IDBRequest.h:
2802         (WebCore::IDBRequest::onSuccessWithPrefetch):
2803         * Modules/indexeddb/IDBTransaction.cpp:
2804         (WebCore::IDBTransaction::dispatchEvent):
2805         * Modules/indexeddb/IDBTransaction.h:
2806         * Modules/mediacontrols/MediaControlsHost.cpp:
2807         (WebCore::MediaControlsHost::sortedTrackListForMenu):
2808         * Modules/mediacontrols/MediaControlsHost.h:
2809         * Modules/mediasource/MediaSource.cpp:
2810         (WebCore::MediaSource::activeRanges):
2811         * Modules/mediasource/MediaSource.h:
2812         * Modules/mediasource/MediaSourceBase.cpp:
2813         (WebCore::MediaSourceBase::buffered):
2814         * Modules/mediasource/MediaSourceBase.h:
2815         * Modules/mediasource/MediaSourceRegistry.cpp:
2816         (WebCore::MediaSourceRegistry::unregisterURL):
2817         * Modules/mediasource/MediaSourceRegistry.h:
2818         * Modules/mediasource/SourceBufferList.h:
2819         * Modules/mediasource/WebKitMediaSource.cpp:
2820         (WebCore::WebKitMediaSource::activeRanges):
2821         * Modules/mediasource/WebKitMediaSource.h:
2822         * Modules/mediasource/WebKitSourceBufferList.h:
2823         * Modules/mediastream/MediaStream.cpp:
2824         (WebCore::MediaStream::scheduledEventTimerFired):
2825         * Modules/mediastream/MediaStream.h:
2826         * Modules/mediastream/MediaStreamRegistry.h:
2827         * Modules/mediastream/MediaStreamTrack.h:
2828         * Modules/mediastream/RTCDTMFSender.cpp:
2829         (WebCore::RTCDTMFSender::scheduledEventTimerFired):
2830         * Modules/mediastream/RTCDTMFSender.h:
2831         * Modules/mediastream/RTCDataChannel.cpp:
2832         (WebCore::RTCDataChannel::scheduledEventTimerFired):
2833         * Modules/mediastream/RTCDataChannel.h:
2834         * Modules/mediastream/RTCPeerConnection.cpp:
2835         (WebCore::RTCPeerConnection::stop):
2836         (WebCore::RTCPeerConnection::scheduledEventTimerFired):
2837         * Modules/mediastream/RTCPeerConnection.h:
2838         * Modules/mediastream/RTCStatsResponse.h:
2839         (WebCore::RTCStatsResponse::result):
2840         * Modules/notifications/Notification.h:
2841         * Modules/notifications/NotificationCenter.h:
2842         * Modules/speech/SpeechSynthesis.cpp:
2843         (WebCore::SpeechSynthesis::getVoices):
2844         * Modules/speech/SpeechSynthesis.h:
2845         * Modules/webaudio/AudioBuffer.h:
2846         * Modules/webaudio/AudioNode.h:
2847         * Modules/webaudio/AudioNodeOutput.h:
2848         * Modules/webaudio/MediaStreamAudioSource.cpp:
2849         (WebCore::MediaStreamAudioSource::setAudioFormat):
2850         (WebCore::MediaStreamAudioSource::consumeAudio):
2851         * Modules/webaudio/PeriodicWave.h:
2852         * Modules/webaudio/ScriptProcessorNode.h:
2853         * Modules/webdatabase/AbstractDatabaseServer.h:
2854         * Modules/webdatabase/DatabaseBackend.h:
2855         * Modules/webdatabase/DatabaseManager.cpp:
2856         (WebCore::DatabaseManager::origins):
2857         * Modules/webdatabase/DatabaseManager.h:
2858         * Modules/webdatabase/DatabaseServer.cpp:
2859         (WebCore::DatabaseServer::origins):
2860         * Modules/webdatabase/DatabaseServer.h:
2861         * Modules/webdatabase/DatabaseThread.h:
2862         * Modules/webdatabase/DatabaseTracker.cpp:
2863         (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
2864         (WebCore::DatabaseTracker::origins):
2865         (WebCore::DatabaseTracker::getOpenDatabases):
2866         (WebCore::DatabaseTracker::deleteAllDatabases):
2867         (WebCore::DatabaseTracker::deleteDatabaseFile):
2868         * Modules/webdatabase/DatabaseTracker.h:
2869         * Modules/webdatabase/SQLStatementBackend.cpp:
2870         * Modules/webdatabase/SQLTransactionBackend.cpp:
2871         * Modules/webdatabase/SQLTransactionBackend.h:
2872         * Modules/webdatabase/SQLTransactionCoordinator.cpp:
2873         (WebCore::SQLTransactionCoordinator::shutdown):
2874         * Modules/webdatabase/SQLTransactionCoordinator.h:
2875         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
2876         (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
2877         (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
2878         (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback):
2879         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
2880         * Modules/websockets/WebSocket.cpp:
2881         (WebCore::WebSocket::didReceiveBinaryData):
2882         * Modules/websockets/WebSocket.h:
2883         * Modules/websockets/WebSocketChannel.cpp:
2884         (WebCore::WebSocketChannel::processFrame):
2885         * Modules/websockets/WebSocketChannel.h:
2886         * Modules/websockets/WebSocketChannelClient.h:
2887         (WebCore::WebSocketChannelClient::didReceiveBinaryData):
2888         * Modules/websockets/WebSocketExtensionDispatcher.h:
2889         * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
2890         (WebCore::workerGlobalScopeDidReceiveBinaryData):
2891         (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
2892         (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendArrayBuffer):
2893         (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
2894         * Modules/websockets/WorkerThreadableWebSocketChannel.h:
2895         * accessibility/AXObjectCache.cpp:
2896         (WebCore::AXObjectCache::~AXObjectCache):
2897         * accessibility/AXObjectCache.h:
2898         * accessibility/AccessibilityNodeObject.cpp:
2899         (WebCore::AccessibilityNodeObject::ariaLabeledByText):
2900         * accessibility/AccessibilityObject.h:
2901         (WebCore::AccessibilityText::AccessibilityText):
2902         * bindings/js/DOMWrapperWorld.h:
2903         * bindings/js/JSDOMBinding.h:
2904         (WebCore::toRefPtrNativeArray):
2905         * bindings/js/JSDOMGlobalObject.h:
2906         * bindings/js/JSMutationCallback.cpp:
2907         (WebCore::JSMutationCallback::call):
2908         * bindings/js/JSMutationCallback.h:
2909         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2910         (WebCore::JSWebGLRenderingContext::getAttachedShaders):
2911         * bindings/js/PageScriptDebugServer.h:
2912         * bindings/js/ScheduledAction.h:
2913         * bindings/js/ScriptController.cpp:
2914         (WebCore::ScriptController::collectIsolatedContexts):
2915         * bindings/js/ScriptController.h:
2916         * bindings/js/ScriptDebugServer.h:
2917         * bindings/js/ScriptProfile.cpp:
2918         (WebCore::buildInspectorObjectFor):
2919         * bindings/objc/ObjCNodeFilterCondition.h:
2920         * bridge/objc/objc_class.h:
2921         * bridge/runtime_root.cpp:
2922         (JSC::Bindings::RootObject::invalidate):
2923         * bridge/runtime_root.h:
2924         * css/BasicShapeFunctions.cpp:
2925         (WebCore::basicShapeForValue):
2926         * css/CSSBasicShapes.h:
2927         (WebCore::CSSBasicShapePolygon::values):
2928         * css/CSSComputedStyleDeclaration.cpp:
2929         (WebCore::ComputedStyleExtractor::valueForFilter):
2930         * css/CSSFontFace.h:
2931         * css/CSSFontFaceSource.h:
2932         * css/CSSFontSelector.cpp:
2933         (WebCore::CSSFontSelector::addFontFaceRule):
2934         (WebCore::CSSFontSelector::getFontFace):
2935         (WebCore::CSSFontSelector::beginLoadTimerFired):
2936         * css/CSSFontSelector.h:
2937         * css/CSSGroupingRule.h:
2938         * css/CSSImageGeneratorValue.h:
2939         * css/CSSParserValues.cpp:
2940         (WebCore::CSSParserSelector::adoptSelectorVector):
2941         * css/CSSParserValues.h:
2942         * css/CSSPropertySourceData.h:
2943         * css/CSSRuleList.h:
2944         (WebCore::StaticCSSRuleList::rules):
2945         * css/CSSSegmentedFontFace.cpp:
2946         (WebCore::CSSSegmentedFontFace::fontLoaded):
2947         * css/CSSSegmentedFontFace.h:
2948         * css/CSSSelectorList.cpp:
2949         (WebCore::CSSSelectorList::adoptSelectorVector):
2950         * css/CSSSelectorList.h:
2951         * css/CSSStyleSheet.h:
2952         * css/CSSValue.h:
2953         (WebCore::compareCSSValueVector):
2954         * css/CSSValuePool.h:
2955         * css/DocumentRuleSets.cpp:
2956         (WebCore::DocumentRuleSets::collectRulesFromUserStyleSheets):
2957         (WebCore::DocumentRuleSets::appendAuthorStyleSheets):
2958         * css/DocumentRuleSets.h:
2959         * css/ElementRuleCollector.cpp:
2960         (WebCore::ElementRuleCollector::matchedRuleList):
2961         * css/ElementRuleCollector.h:
2962         * css/FontLoader.h:
2963         * css/InspectorCSSOMWrappers.cpp:
2964         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetContents):
2965         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheets):
2966         * css/InspectorCSSOMWrappers.h:
2967         * css/MediaList.cpp:
2968         (WebCore::MediaQuerySet::parse):
2969         (WebCore::MediaList::item):
2970         (WebCore::reportMediaQueryWarningIfNeeded):
2971         * css/MediaList.h:
2972         (WebCore::MediaQuerySet::queryVector):
2973         * css/MediaQueryEvaluator.cpp:
2974         (WebCore::MediaQueryEvaluator::eval):
2975         * css/MediaQueryMatcher.h:
2976         * css/PropertySetCSSStyleDeclaration.cpp:
2977         (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM):
2978         * css/PropertySetCSSStyleDeclaration.h:
2979         * css/RuleSet.cpp:
2980         (WebCore::RuleSet::addToRuleSet):
2981         (WebCore::RuleSet::addRegionRule):
2982         (WebCore::RuleSet::addChildRules):
2983         (WebCore::RuleSet::addRulesFromSheet):
2984         * css/RuleSet.h:
2985         * css/SelectorFilter.h:
2986         * css/StyleInvalidationAnalysis.cpp:
2987         (WebCore::StyleInvalidationAnalysis::analyzeStyleSheet):
2988         * css/StylePropertySet.cpp:
2989         (WebCore::StylePropertySet::getLayeredShorthandValue):
2990         * css/StyleResolver.cpp:
2991         (WebCore::StyleResolver::appendAuthorStyleSheets):
2992         (WebCore::StyleResolver::keyframeStylesForAnimation):
2993         (WebCore::StyleResolver::styleRulesForElement):
2994         (WebCore::StyleResolver::pseudoStyleRulesForElement):
2995         (WebCore::StyleResolver::resolveVariables):
2996         (WebCore::StyleResolver::applyProperty):
2997         (WebCore::StyleResolver::loadPendingSVGDocuments):
2998         (WebCore::StyleResolver::loadPendingShaders):
2999         * css/StyleResolver.h:
3000         * css/StyleRule.cpp:
3001         (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorComponentCount):
3002         (WebCore::StyleRuleGroup::StyleRuleGroup):
3003         (WebCore::StyleRuleMedia::StyleRuleMedia):
3004         (WebCore::StyleRuleSupports::StyleRuleSupports):
3005         (WebCore::StyleRuleRegion::StyleRuleRegion):
3006         * css/StyleRule.h:
3007         (WebCore::StyleRule::parserAdoptSelectorVector):
3008         (WebCore::StyleRulePage::parserAdoptSelectorVector):
3009         (WebCore::StyleRuleGroup::childRules):
3010         (WebCore::StyleRuleMedia::create):
3011         (WebCore::StyleRuleSupports::create):
3012         (WebCore::StyleRuleRegion::create):
3013         (WebCore::StyleRuleHost::create):
3014         (WebCore::StyleRuleHost::StyleRuleHost):
3015         * css/StyleScopeResolver.h:
3016         * css/StyleSheetContents.cpp:
3017         (WebCore::StyleSheetContents::parserAppendRule):
3018         (WebCore::childRulesHaveFailedOrCanceledSubresources):
3019         * css/StyleSheetContents.h:
3020         (WebCore::StyleSheetContents::childRules):
3021         (WebCore::StyleSheetContents::importRules):
3022         * css/StyleSheetList.cpp:
3023         (WebCore::StyleSheetList::styleSheets):
3024         (WebCore::StyleSheetList::item):
3025         * css/StyleSheetList.h:
3026         * css/WebKitCSSKeyframesRule.h:
3027         (WebCore::StyleRuleKeyframes::keyframes):
3028         * dom/CheckedRadioButtons.h:
3029         * dom/ClientRectList.h:
3030         * dom/ContainerNode.h:
3031         (WebCore::ChildNodesLazySnapshot::nextNode):
3032         (WebCore::ChildNodesLazySnapshot::takeSnapshot):
3033         * dom/CrossThreadTask.h:
3034         * dom/Document.cpp:
3035         (WebCore::Document::webkitCancelFullScreen):
3036         (WebCore::Document::webkitExitFullscreen):
3037         (WebCore::Document::fullScreenChangeDelayTimerFired):
3038         (WebCore::Document::didAssociateFormControlsTimerFired):
3039         * dom/Document.h:
3040         * dom/DocumentMarkerController.cpp:
3041         (WebCore::DocumentMarkerController::removeMarkers):
3042         * dom/DocumentMarkerController.h:
3043         * dom/DocumentStyleSheetCollection.cpp:
3044         (WebCore::DocumentStyleSheetCollection::injectedUserStyleSheets):
3045         (WebCore::DocumentStyleSheetCollection::injectedAuthorStyleSheets):
3046         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
3047         (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
3048         (WebCore::styleSheetsUseRemUnits):
3049         (WebCore::filterEnabledNonemptyCSSStyleSheets):
3050         (WebCore::collectActiveCSSStyleSheetsFromSeamlessParents):
3051         (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
3052         * dom/DocumentStyleSheetCollection.h:
3053         * dom/Element.cpp:
3054         (WebCore::Element::attrNodeList):
3055         (WebCore::Element::webkitGetRegionFlowRanges):
3056         * dom/Element.h:
3057         * dom/EventListenerMap.h:
3058         * dom/EventSender.h:
3059         (WebCore::EventSender::timerFired):
3060         * dom/IdTargetObserverRegistry.h:
3061         * dom/MutationCallback.h:
3062         * dom/MutationObserver.cpp:
3063         (WebCore::MutationObserver::takeRecords):
3064         (WebCore::MutationObserver::deliver):
3065         (WebCore::MutationObserver::deliverAllMutations):
3066         * dom/MutationObserver.h:
3067         * dom/MutationObserverRegistration.h:
3068         * dom/NamedFlowCollection.cpp:
3069         (WebCore::NamedFlowCollection::namedFlows):
3070         * dom/NamedFlowCollection.h:
3071         * dom/Node.cpp:
3072         (WebCore::Node::didMoveToNewDocument):
3073         (WebCore::Node::mutationObserverRegistry):
3074         (WebCore::Node::registerMutationObserver):
3075         (WebCore::Node::unregisterMutationObserver):
3076         (WebCore::Node::notifyMutationObserversNodeWillDetach):
3077         * dom/Node.h:
3078         * dom/NodeRareData.h:
3079         * dom/Range.cpp:
3080         (WebCore::Range::processContents):
3081         (WebCore::Range::processNodes):
3082         (WebCore::Range::processAncestorsAndTheirSiblings):
3083         * dom/Range.h:
3084         * dom/ScopedEventQueue.h:
3085         * dom/ScriptExecutionContext.cpp:
3086         (WebCore::ScriptExecutionContext::reportException):
3087         * dom/ScriptExecutionContext.h:
3088         * dom/ScriptedAnimationController.h:
3089         * editing/ApplyStyleCommand.cpp:
3090         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3091         * editing/BreakBlockquoteCommand.cpp:
3092         (WebCore::BreakBlockquoteCommand::doApply):
3093         * editing/CompositeEditCommand.cpp:
3094         (WebCore::CompositeEditCommand::removeChildrenInRange):
3095         (WebCore::CompositeEditCommand::deleteInsignificantText):
3096         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
3097         * editing/CompositeEditCommand.h:
3098         * editing/EditingStyle.cpp:
3099         (WebCore::htmlElementEquivalents):
3100         (WebCore::EditingStyle::conflictsWithImplicitStyleOfElement):
3101         (WebCore::htmlAttributeEquivalents):
3102         (WebCore::EditingStyle::conflictsWithImplicitStyleOfAttributes):
3103         (WebCore::EditingStyle::extractConflictingImplicitStyleOfAttributes):
3104         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent):
3105         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement):
3106         (WebCore::styleFromMatchedRulesForElement):
3107         * editing/Editor.cpp:
3108         (WebCore::Editor::countMatchesForText):
3109         * editing/Editor.h:
3110         * editing/InsertParagraphSeparatorCommand.cpp:
3111         (WebCore::InsertParagraphSeparatorCommand::getAncestorsInsideBlock):
3112         (WebCore::InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock):
3113         (WebCore::InsertParagraphSeparatorCommand::doApply):
3114         * editing/InsertParagraphSeparatorCommand.h:
3115         * editing/MergeIdenticalElementsCommand.cpp:
3116         (WebCore::MergeIdenticalElementsCommand::doApply):
3117         (WebCore::MergeIdenticalElementsCommand::doUnapply):
3118         * editing/RemoveNodePreservingChildrenCommand.cpp:
3119         (WebCore::RemoveNodePreservingChildrenCommand::doApply):
3120         * editing/ReplaceSelectionCommand.cpp:
3121         (WebCore::ReplacementFragment::removeUnrenderedNodes):
3122         * editing/SimplifyMarkupCommand.cpp:
3123         (WebCore::SimplifyMarkupCommand::doApply):
3124         (WebCore::SimplifyMarkupCommand::pruneSubsequentAncestorsToRemove):
3125         * editing/SimplifyMarkupCommand.h:
3126         * editing/SpellChecker.h:
3127         * editing/SplitElementCommand.cpp:
3128         (WebCore::SplitElementCommand::executeApply):
3129         (WebCore::SplitElementCommand::doUnapply):
3130         * editing/WrapContentsInDummySpanCommand.cpp:
3131         (WebCore::WrapContentsInDummySpanCommand::executeApply):
3132         (WebCore::WrapContentsInDummySpanCommand::doUnapply):
3133         * editing/mac/AlternativeTextUIController.h:
3134         * fileapi/FileList.h:
3135         * history/BackForwardList.h:
3136         * history/HistoryItem.cpp:
3137         (WebCore::HistoryItem::setRedirectURLs):
3138         * history/HistoryItem.h:
3139         * history/mac/HistoryItemMac.mm:
3140         (WebCore::HistoryItem::setTransientProperty):
3141         * html/FormController.h:
3142         * html/HTMLAnchorElement.cpp:
3143         * html/HTMLCollection.cpp:
3144         (WebCore::HTMLCollection::append):
3145         * html/HTMLCollection.h:
3146         * html/HTMLFormControlElement.cpp:
3147         (WebCore::HTMLFormControlElement::checkValidity):
3148         * html/HTMLFormControlElement.h:
3149         * html/HTMLFormElement.cpp:
3150         (WebCore::HTMLFormElement::validateInteractively):
3151         (WebCore::HTMLFormElement::checkValidity):
3152         (WebCore::HTMLFormElement::checkInvalidControlsAndCollectUnhandled):
3153         * html/HTMLFormElement.h:
3154         * html/HTMLMediaElement.cpp:
3155         (WebCore::HTMLMediaElement::updateActiveTextTrackCues):
3156         (WebCore::HTMLMediaElement::platformTextTracks):
3157         (WebCore::HTMLMediaElement::configureTextTrackGroup):
3158         * html/HTMLMediaElement.h:
3159         * html/HTMLPlugInImageElement.cpp:
3160         * html/HTMLSelectElement.cpp:
3161         (WebCore::HTMLSelectElement::setLength):
3162         * html/MediaController.cpp:
3163         (MediaController::asyncEventTimerFired):
3164         * html/MediaController.h:
3165         * html/MediaFragmentURIParser.h:
3166         * html/ValidationMessage.h:
3167         * html/canvas/WebGLFramebuffer.h:
3168         * html/canvas/WebGLRenderingContext.cpp:
3169         (WebCore::WebGLRenderingContext::getAttachedShaders):
3170         * html/canvas/WebGLRenderingContext.h:
3171         * html/canvas/WebGLTexture.h:
3172         * html/parser/BackgroundHTMLParser.cpp:
3173         (WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
3174         * html/parser/BackgroundHTMLParser.h:
3175         (WebCore::BackgroundHTMLParser::create):
3176         * html/parser/HTMLDocumentParser.cpp:
3177         (WebCore::HTMLDocumentParser::startBackgroundParser):
3178         * html/parser/HTMLDocumentParser.h:
3179         * html/parser/HTMLMetaCharsetParser.h:
3180         * html/parser/HTMLPreloadScanner.cpp:
3181         (WebCore::TokenPreloadScanner::scan):
3182         (WebCore::TokenPreloadScanner::scanCommon):
3183         * html/parser/HTMLResourcePreloader.h:
3184         * html/parser/XSSAuditor.h:
3185         * html/shadow/ContentDistributor.cpp:
3186         (WebCore::ContentDistributor::ensureInsertionPointList):
3187         (WebCore::ContentDistributor::distribute):
3188         (WebCore::ContentDistributor::invalidate):
3189         * html/shadow/ContentDistributor.h:
3190         * html/shadow/MediaControlElements.cpp:
3191         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
3192         (WebCore::MediaControlTextTrackContainerElement::updateDisplay):
3193         * html/shadow/MediaControlElements.h:
3194         * html/track/InbandGenericTextTrack.h:
3195         * html/track/InbandWebVTTTextTrack.cpp:
3196         (WebCore::InbandWebVTTTextTrack::newCuesParsed):
3197         * html/track/LoadableTextTrack.cpp:
3198         (WebCore::LoadableTextTrack::newCuesAvailable):
3199         (WebCore::LoadableTextTrack::newRegionsAvailable):
3200         * html/track/TextTrackCueList.h:
3201         * html/track/TextTrackList.cpp:
3202         (TextTrackList::invalidateTrackIndexesAfterTrack):
3203         (TextTrackList::remove):
3204         (TextTrackList::contains):
3205         * html/track/TextTrackList.h:
3206         * html/track/TrackListBase.cpp:
3207         (TrackListBase::asyncEventTimerFired):
3208         * html/track/TrackListBase.h:
3209         * html/track/WebVTTParser.cpp:
3210         (WebCore::WebVTTParser::getNewCues):
3211         (WebCore::WebVTTParser::getNewRegions):
3212         * html/track/WebVTTParser.h:
3213         * inspector/ConsoleMessage.cpp:
3214         (WebCore::ConsoleMessage::addToFrontend):
3215         * inspector/ContentSearchUtils.cpp:
3216         (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines):
3217         (WebCore::ContentSearchUtils::lineEndings):
3218         (WebCore::ContentSearchUtils::searchInTextByLines):
3219         * inspector/ContentSearchUtils.h:
3220         * inspector/DOMPatchSupport.cpp:
3221         (WebCore::DOMPatchSupport::patchNode):
3222         (WebCore::DOMPatchSupport::diff):
3223         (WebCore::DOMPatchSupport::innerPatchChildren):
3224         * inspector/DOMPatchSupport.h:
3225         * inspector/InjectedScript.cpp:
3226         (WebCore::InjectedScript::getProperties):
3227         (WebCore::InjectedScript::getInternalProperties):
3228         (WebCore::InjectedScript::wrapCallFrames):
3229         * inspector/InjectedScript.h:
3230         * inspector/InjectedScriptHost.h:
3231         * inspector/InspectorAgent.cpp:
3232         (WebCore::InspectorAgent::enable):
3233         * inspector/InspectorApplicationCacheAgent.cpp:
3234         (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
3235         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
3236         * inspector/InspectorApplicationCacheAgent.h:
3237         * inspector/InspectorBaseAgent.h:
3238         * inspector/InspectorCSSAgent.cpp:
3239         (WebCore::SelectorProfile::toInspectorObject):
3240         (WebCore::UpdateRegionLayoutTask::onTimer):
3241         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
3242         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
3243         (WebCore::InspectorCSSAgent::getAllStyleSheets):
3244         (WebCore::InspectorCSSAgent::getSupportedCSSProperties):
3245         (WebCore::InspectorCSSAgent::getNamedFlowCollection):
3246         (WebCore::InspectorCSSAgent::buildArrayForRuleList):
3247         (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
3248         (WebCore::InspectorCSSAgent::buildArrayForRegions):
3249         (WebCore::InspectorCSSAgent::buildObjectForNamedFlow):
3250         * inspector/InspectorCSSAgent.h:
3251         * inspector/InspectorConsoleAgent.h:
3252         * inspector/InspectorDOMAgent.cpp:
3253         (WebCore::RevalidateStyleAttributeTask::onTimer):
3254         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
3255         (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
3256         (WebCore::InspectorDOMAgent::getEventListenersForNode):
3257         (WebCore::InspectorDOMAgent::performSearch):
3258         (WebCore::InspectorDOMAgent::getSearchResults):
3259         (WebCore::InspectorDOMAgent::getAttributes):
3260         (WebCore::InspectorDOMAgent::buildObjectForNode):
3261         (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
3262         (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
3263         (WebCore::InspectorDOMAgent::styleAttributeInvalidated):
3264         * inspector/InspectorDOMAgent.h:
3265         * inspector/InspectorDOMStorageAgent.cpp:
3266         (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
3267         * inspector/InspectorDOMStorageAgent.h:
3268         * inspector/InspectorDatabaseAgent.cpp:
3269         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
3270         * inspector/InspectorDatabaseAgent.h:
3271         * inspector/InspectorDebuggerAgent.cpp:
3272         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
3273         (WebCore::InspectorDebuggerAgent::searchInContent):
3274         (WebCore::InspectorDebuggerAgent::setScriptSource):
3275         (WebCore::InspectorDebuggerAgent::currentCallFrames):
3276         * inspector/InspectorDebuggerAgent.h:
3277         * inspector/InspectorHeapProfilerAgent.cpp:
3278         (WebCore::InspectorHeapProfilerAgent::getProfileHeaders):
3279         * inspector/InspectorHeapProfilerAgent.h:
3280         * inspector/InspectorHistory.h:
3281         * inspector/InspectorIndexedDBAgent.cpp:
3282         * inspector/InspectorLayerTreeAgent.cpp:
3283         (WebCore::InspectorLayerTreeAgent::layersForNode):
3284         (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderObjectHierarchy):
3285         (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderLayerHierarchy):
3286         * inspector/InspectorLayerTreeAgent.h:
3287         * inspector/InspectorMemoryAgent.h:
3288         * inspector/InspectorPageAgent.cpp:
3289         (WebCore::buildArrayForCookies):
3290         (WebCore::InspectorPageAgent::getCookies):
3291         (WebCore::InspectorPageAgent::searchInResource):
3292         (WebCore::InspectorPageAgent::searchInResources):
3293         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
3294         * inspector/InspectorPageAgent.h:
3295         * inspector/InspectorProfilerAgent.cpp:
3296         (WebCore::InspectorProfilerAgent::getProfileHeaders):
3297         * inspector/InspectorProfilerAgent.h:
3298         * inspector/InspectorResourceAgent.h:
3299         * inspector/InspectorRuntimeAgent.cpp:
3300         (WebCore::InspectorRuntimeAgent::getProperties):
3301         * inspector/InspectorRuntimeAgent.h:
3302         * inspector/InspectorState.h:
3303         * inspector/InspectorStyleSheet.cpp:
3304         (WebCore::asCSSRuleList):
3305         (WebCore::InspectorStyle::buildArrayForComputedStyle):
3306         (WebCore::InspectorStyle::styleWithProperties):
3307         (WebCore::selectorsFromSource):
3308         (WebCore::InspectorStyleSheet::buildObjectForSelectorList):
3309         (WebCore::InspectorStyleSheet::buildObjectForRule):
3310         (WebCore::InspectorStyleSheet::lineEndings):
3311         (WebCore::InspectorStyleSheet::buildArrayForRuleList):
3312         (WebCore::InspectorStyleSheetForInlineStyle::lineEndings):
3313         * inspector/InspectorStyleSheet.h:
3314         * inspector/InspectorValues.cpp:
3315         (WebCore::InspectorArrayBase::writeJSON):
3316         * inspector/InspectorValues.h:
3317         * inspector/PageRuntimeAgent.cpp:
3318         (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
3319         * inspector/ScriptCallStack.cpp:
3320         (WebCore::ScriptCallStack::buildInspectorArray):
3321         * inspector/ScriptCallStack.h:
3322         * loader/CrossOriginPreflightResultCache.h:
3323         * loader/DocumentLoader.cpp:
3324         (WebCore::cancelAll):
3325         (WebCore::setAllDefersLoading):
3326         (WebCore::DocumentLoader::getSubresources):
3327         * loader/DocumentLoader.h:
3328         * loader/FormState.h:
3329         * loader/FormSubmission.cpp:
3330         (WebCore::FormSubmission::create):
3331         * loader/ProgressTracker.h:
3332         * loader/ResourceLoadScheduler.h:
3333         * loader/TextTrackLoader.cpp:
3334         (WebCore::TextTrackLoader::getNewCues):
3335         (WebCore::TextTrackLoader::getNewRegions):
3336         * loader/TextTrackLoader.h:
3337         * loader/WorkerThreadableLoader.cpp:
3338         (WebCore::workerGlobalScopeDidReceiveData):
3339         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
3340         * loader/appcache/ApplicationCache.cpp:
3341         (WebCore::ApplicationCache::removeResource):
3342         (WebCore::ApplicationCache::dump):
3343         * loader/appcache/ApplicationCache.h:
3344         * loader/appcache/ApplicationCacheStorage.cpp:
3345         (WebCore::ApplicationCacheStorage::getOriginsWithCache):
3346         * loader/archive/Archive.cpp:
3347         (WebCore::Archive::clearAllSubframeArchives):
3348         (WebCore::Archive::clearAllSubframeArchivesImpl):
3349         * loader/archive/Archive.h:
3350         (WebCore::Archive::subresources):
3351         (WebCore::Archive::subframeArchives):
3352         * loader/archive/ArchiveResourceCollection.cpp:
3353         (WebCore::ArchiveResourceCollection::addAllResources):
3354         * loader/archive/ArchiveResourceCollection.h:
3355         * loader/archive/cf/LegacyWebArchive.cpp:
3356         (WebCore::LegacyWebArchive::createPropertyListRepresentation):
3357         (WebCore::LegacyWebArchive::create):
3358         (WebCore::LegacyWebArchive::createFromSelection):
3359         * loader/archive/cf/LegacyWebArchive.h:
3360         * loader/archive/mhtml/MHTMLParser.h:
3361         * loader/cache/CachedResource.h:
3362         * loader/cache/CachedResourceLoader.h:
3363         * loader/cache/MemoryCache.h:
3364         * loader/icon/IconDatabase.cpp:
3365         (WebCore::IconDatabase::notifyPendingLoadDecisions):
3366         * loader/icon/IconDatabase.h:
3367         * page/CaptionUserPreferencesMediaAF.cpp:
3368         (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
3369         * page/CaptionUserPreferencesMediaAF.h:
3370         * page/ChromeClient.h:
3371         (WebCore::ChromeClient::didAssociateFormControls):
3372         * page/Console.h:
3373         * page/ContentSecurityPolicy.h:
3374         * page/DOMWindow.cpp:
3375         (WebCore::DOMWindow::getMatchedCSSRules):
3376         * page/DeviceController.cpp:
3377         (WebCore::DeviceController::dispatchDeviceEvent):
3378         (WebCore::DeviceController::fireDeviceEvent):
3379         * page/DeviceController.h:
3380         * page/EditorClient.h:
3381         * page/EventHandler.cpp:
3382         (WebCore::EventHandler::handleTouchEvent):
3383         * page/EventHandler.h:
3384         * page/FrameView.cpp:
3385         (WebCore::FrameView::serviceScriptedAnimations):
3386         * page/Page.cpp:
3387         (WebCore::Page::findStringMatchingRanges):
3388         * page/Page.h:
3389         * page/PageGroup.h:
3390         * page/Performance.cpp:
3391         (WebCore::Performance::webkitGetEntriesByType):
3392         (WebCore::Performance::webkitGetEntriesByName):
3393         * page/Performance.h:
3394         * page/PerformanceEntryList.cpp:
3395         (WebCore::PerformanceEntryList::appendAll):
3396         * page/PerformanceEntryList.h:
3397         * page/SecurityOriginHash.h:
3398         * page/SecurityPolicy.cpp:
3399         * page/SpeechInputResult.h:
3400         * page/animation/AnimationController.cpp:
3401         (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
3402         * page/animation/AnimationControllerPrivate.h:
3403         * page/animation/CSSPropertyAnimation.cpp:
3404         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
3405         * page/animation/CompositeAnimation.h:
3406         * page/scrolling/ScrollingStateNode.cpp:
3407         (WebCore::ScrollingStateNode::appendChild):
3408         * page/scrolling/ScrollingStateNode.h:
3409         (WebCore::ScrollingStateNode::children):
3410         * page/scrolling/ScrollingThread.cpp:
3411         (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread):
3412         * page/scrolling/ScrollingThread.h:
3413         * page/scrolling/ScrollingTree.cpp:
3414         (WebCore::ScrollingTree::updateTreeFromStateNode):
3415         * page/scrolling/ScrollingTreeNode.cpp:
3416         (WebCore::ScrollingTreeNode::appendChild):
3417         * page/scrolling/ScrollingTreeNode.h:
3418         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
3419         (WebCore::ScrollingCoordinatorMac::syncChildPositions):
3420         * platform/CrossThreadCopier.cpp:
3421         * platform/CrossThreadCopier.h:
3422         * platform/DragData.h:
3423         * platform/MainThreadTask.h:
3424         * platform/PODFreeListArena.h:
3425         (WebCore::PODFreeListArena::freeObject):
3426         (WebCore::PODFreeListArena::allocate):
3427         * platform/PODIntervalTree.h:
3428         * platform/PODRedBlackTree.h:
3429         (WebCore::PODRedBlackTree::PODRedBlackTree):
3430         * platform/PlatformSpeechSynthesizer.cpp:
3431         (WebCore::PlatformSpeechSynthesizer::voiceList):
3432         * platform/PlatformSpeechSynthesizer.h:
3433         * platform/RunLoop.h:
3434         * platform/ScrollView.cpp:
3435         (WebCore::ScrollView::frameRectsChanged):
3436         (WebCore::ScrollView::clipRectChanged):
3437         (WebCore::ScrollView::setParentVisible):
3438         (WebCore::ScrollView::show):
3439         (WebCore::ScrollView::hide):
3440         * platform/ScrollView.h:
3441         * platform/SharedBuffer.h:
3442         * platform/Supplementable.h:
3443         (WebCore::Supplement::provideTo):
3444         (WebCore::Supplementable::provideSupplement):
3445         * platform/URL.cpp:
3446         (WebCore::findHostnamesInMailToURL):
3447         (WebCore::encodeHostnames):
3448         * platform/audio/AudioBus.h:
3449         * platform/audio/AudioDSPKernelProcessor.h:
3450         * platform/audio/AudioResampler.h:
3451         * platform/audio/DynamicsCompressor.h:
3452         * platform/audio/DynamicsCompressorKernel.h:
3453         * platform/audio/HRTFDatabase.h:
3454         * platform/audio/HRTFKernel.h:
3455         * platform/audio/MultiChannelResampler.h:
3456         * platform/audio/Reverb.h:
3457         * platform/audio/ReverbConvolver.h:
3458         * platform/cf/SharedBufferCF.cpp:
3459         (WebCore::SharedBuffer::copyBufferAndClear):
3460         (WebCore::SharedBuffer::copySomeDataFromDataArray):
3461         * platform/graphics/FloatPolygon.cpp:
3462         (WebCore::FloatPolygon::FloatPolygon):
3463         * platform/graphics/FloatPolygon.h:
3464         * platform/graphics/FontCache.cpp:
3465         (WebCore::FontCache::getCachedFontData):
34