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