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