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