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