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