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