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