17f1f94ad26d4c354826be7c378b44f580dac3b2
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-04-05  Kangil Han  <kangil.han@samsung.com>
2
3         Prefer prefix ++/-- operators for non-primitive types
4         https://bugs.webkit.org/show_bug.cgi?id=114033
5
6         Reviewed by Alexey Proskuryakov.
7
8         Post ++/-- creates a copy of current value and it is not necessary, so use prefix instead.
9
10         * bindings/js/Dictionary.cpp:
11         (WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
12         (WebCore::Dictionary::getOwnPropertyNames):
13         * bindings/js/ScriptCallStackFactory.cpp:
14         (WebCore::createScriptCallStack):
15         * dom/ContainerNode.cpp:
16         (WebCore::willRemoveChildren):
17         * dom/Range.cpp:
18         (WebCore::Range::processAncestorsAndTheirSiblings):
19         * loader/FrameLoader.cpp:
20         (WebCore::FrameLoader::detachChildren):
21         * platform/graphics/gpu/LoopBlinnPathProcessor.cpp:
22         (WebCore):
23         (WebCore::LoopBlinnPathProcessor::subdivideCurvesSlow):
24         * rendering/InlineTextBox.cpp:
25         (WebCore::InlineTextBox::paintDocumentMarkers):
26         * xml/XPathFunctions.cpp:
27         (WebCore::XPath::Function::setArguments):
28
29 2013-04-05  Hans Muller  <hmuller@adobe.com>
30
31         [CSS Exclusions] Add support for the simple case of shape-margin polygonal shape-outside
32         https://bugs.webkit.org/show_bug.cgi?id=113726
33
34         Reviewed by Dirk Schulze.
35
36         Add support for computing the shape-outside shape-margin boundary for a polygon.
37         This change is similar to the one added for padding polygons, see bug 112592.
38         The algorithm used for computing the margin boundary is is provisional. It works
39         correctly for convex polygons and will work correctly for non self-intersecting
40         polygons whose margin boundary is the same shape as the original polygon.
41
42         Tests: fast/exclusions/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html
43                fast/exclusions/shape-outside-floats/shape-outside-floats-left-margin-polygon.html
44                fast/exclusions/shape-outside-floats/shape-outside-floats-right-margin-polygon.html
45
46         * rendering/ExclusionPolygon.cpp:
47         (WebCore::appendArc): Generalized this method a little, to deal with margin and padding connecting arcs.
48         (WebCore::computeShapePaddingBounds): Pass the new appendArc() parameter.
49         (WebCore::computeShapeMarginBounds): Compute the margin boundary for a polygon, per the constraints summarized above.
50         (WebCore::ExclusionPolygon::getExcludedIntervals): Use the margin polygon for this computation.
51
52 2013-04-05  Andy Estes  <aestes@apple.com>
53
54         Returning NULL from willSendRequest should cancel a load from the memory cache
55         https://bugs.webkit.org/show_bug.cgi?id=114075
56
57         Reviewed by Darin Adler.
58
59         When a resource is loaded from the memory cache and the client does not
60         implement the didLoadResourceFromMemoryCache delegate method, WebKit
61         synthesizes the typical sequence of resource load callbacks. One of
62         these is willSendRequest, which gives the client the opportunity to
63         modify the request. We should respect these modifications.
64
65         Handling any arbitrary modification is difficult given where in the
66         loading process we check the memory cache (see <http://webkit.org/b/113251>),
67         but we can handle the common case where the client cancels the load by
68         returning a NULL request.
69
70         Test: fast/loader/willsendrequest-returns-null-for-memory-cache-load.html
71
72         * loader/FrameLoader.cpp:
73         (WebCore::FrameLoader::willLoadMediaElementURL): Passed request to sendRemainingDelegateMessages.
74         (WebCore::FrameLoader::commitProvisionalLoad): Ditto.
75         (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
76         (WebCore::FrameLoader::loadedResourceFromMemoryCache): Added an out
77         parameter to pass back a request potentially modified by
78         requestFromDelegate, which is also passed to sendRemainingDelegateMessages.
79         * loader/FrameLoader.h:
80         * loader/ResourceLoadNotifier.cpp:
81         (WebCore::ResourceLoadNotifier::dispatchDidFailLoading): Added a
82         function to dispatch didFailLoading and to call the correct InspectorInstrumentation.
83         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages): If the
84         request is NULL, call dispatchDidFailLoading and return. This matches
85         the delegate callback sequence of a non memory cache load that is
86         cancelled by willSendRequest.
87         * loader/ResourceLoadNotifier.h:
88         * loader/cache/CachedResourceLoader.cpp:
89         (WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache):
90         Return false if the memory cache load is cancelled by the client.
91         (WebCore::CachedResourceLoader::requestResource): Return early if
92         shouldContinueAfterNotifyingLoadedFromMemoryCache is false.
93
94 2013-04-05  Chris Fleizach  <cfleizach@apple.com>
95
96         AX: VoiceOver can't press on items
97         https://bugs.webkit.org/show_bug.cgi?id=114071
98
99         Reviewed by Tim Horton.
100
101         The AXScrollToVisibleAction should not be used on earlier Mac versions because
102         it confuses VoiceOver.
103
104         Updated existing tests.
105
106         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
107         (-[WebAccessibilityObjectWrapper accessibilityActionNames]):
108
109 2013-04-05  Anders Carlsson  <andersca@apple.com>
110
111         Stop building Objective-C bindings for the SVG DOM
112         https://bugs.webkit.org/show_bug.cgi?id=114076
113
114         Reviewed by Geoffrey Garen.
115
116         The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
117
118         * Configurations/FeatureDefines.xcconfig:
119         * Configurations/WebCore.xcconfig:
120         * WebCore.exp.in:
121         * WebCore.xcodeproj/project.pbxproj:
122         * bindings/objc/DOM.mm:
123         (WebCore::createElementClassMap):
124         (kitClass):
125         * bindings/objc/DOMCSS.mm:
126         (kitClass):
127         * bindings/objc/DOMEvents.mm:
128         * bindings/objc/DOMSVG.h: Removed.
129         * bindings/objc/DOMSVGException.h: Removed.
130         * bindings/objc/DOMSVGPathSegInternal.mm: Removed.
131         * bindings/objc/ExceptionHandlers.mm:
132         * html/HTMLEmbedElement.idl:
133         * html/HTMLFrameElement.idl:
134         * html/HTMLIFrameElement.idl:
135         * html/HTMLObjectElement.idl:
136
137 2013-04-05  Oliver Hunt  <oliver@apple.com>
138
139         Unify the many and varied stack trace mechanisms, and make the result sane.
140         https://bugs.webkit.org/show_bug.cgi?id=114072
141
142         Reviewed by Filip Pizlo.
143
144         Now that we've fleshed out the StackFrames from Interpreter::getStackTrace
145         WebCore can just ask us for a stack trace rather than implementing its own
146         stack walking.
147
148         * bindings/js/ScriptCallStackFactory.cpp:
149         (WebCore::createScriptCallStack):
150         * inspector/ScriptCallFrame.cpp:
151         (WebCore::ScriptCallFrame::isEqual):
152         * inspector/ScriptCallFrame.h:
153         (ScriptCallFrame):
154         (WebCore::ScriptCallFrame::columnNumber):
155
156 2013-04-05  Beth Dakin  <bdakin@apple.com>
157
158         Setting a header or footer should cause a relayout
159         https://bugs.webkit.org/show_bug.cgi?id=114070
160
161         Reviewed by Sam Weinig.
162
163         Mark the RenderView as needing layout in order to adjust everything for the new 
164         header/footer.
165
166         * page/FrameView.cpp:
167         (WebCore::FrameView::setHeaderHeight):
168         (WebCore::FrameView::setFooterHeight):
169
170 2013-04-05  Chris Fleizach  <cfleizach@apple.com>
171
172         AX: Make SVG Group containers accessible elements
173         https://bugs.webkit.org/show_bug.cgi?id=113939
174
175         Reviewed by Simon Fraser.
176
177         SVG group containers are currently not exposed in the AX tree. 
178         When an SVG element has a <title> child, that is not being used for the AX label.
179         When hit-testing, from Accessibility, SVG groups are never returned.
180
181         All these issues are fixed for Mac and iOS.
182         There are two tests because right now iOS skips all the top-level accessibility tests
183         due to fundamental architectural differences.
184
185         Tests: accessibility/svg-group-element-with-title.html
186                platform/iphone-simulator/accessibility/svg-group-element-with-title.html
187
188         * accessibility/AccessibilityNodeObject.cpp:
189         (WebCore::AccessibilityNodeObject::alternativeText):
190         (WebCore::AccessibilityNodeObject::accessibilityDescription):
191         * accessibility/AccessibilityRenderObject.cpp:
192         (WebCore::AccessibilityRenderObject::accessibilityHitTest):
193         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
194         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
195         (-[WebAccessibilityObjectWrapper isSVGGroupElement]):
196         (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]):
197         (-[WebAccessibilityObjectWrapper accessibilityClickPoint]):
198         * rendering/HitTestRequest.h:
199             Add a new option, AccessibilityHitTest, that will allow us to override normal behavior.
200         * rendering/svg/RenderSVGContainer.cpp:
201         (WebCore::RenderSVGContainer::nodeAtFloatPoint):
202            Allow a SVG group to be the node at a point, for accessibility hit tests.
203
204 2013-04-05  Chris Fleizach  <cfleizach@apple.com>
205
206         WebSpeech: event.elapsedTime is always 1364484608
207         https://bugs.webkit.org/show_bug.cgi?id=114045
208
209         Reviewed by Tim Horton.
210
211         We were calculating elapsed time incorrectly.
212
213         Test: platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html
214
215         * Modules/speech/SpeechSynthesis.cpp:
216         (WebCore::SpeechSynthesis::fireEvent):
217
218 2013-04-05  Chris Fleizach  <cfleizach@apple.com>
219
220         WebSpeech: crash at WebCore::SpeechSynthesis::speak
221         https://bugs.webkit.org/show_bug.cgi?id=113937
222
223         Reviewed by Tim Horton.
224
225         Protect against the case when invalid data is passed in.
226
227         Test: platform/mac/fast/speechsynthesis/speech-synthesis-crash-on-bad-utterance.html
228
229         * Modules/speech/SpeechSynthesis.cpp:
230         (WebCore::SpeechSynthesis::speak):
231         * Modules/speech/SpeechSynthesisUtterance.cpp:
232         (WebCore::SpeechSynthesisUtterance::setVoice):
233
234 2013-04-05  Antti Koivisto  <antti@apple.com>
235
236         Throttle compositing layer flushes during page loading
237         https://bugs.webkit.org/show_bug.cgi?id=113786
238
239         Reviewed by Simon Fraser.
240         
241         Page content can change rapidly during page loading triggering excessive layer flushes and repainting. We should avoid this unnecessary work.
242         
243         This patch reduces layer flushes (and painting) during loading by 50-70% on many popular pages.
244
245         * loader/FrameLoader.cpp:
246         (WebCore::FrameLoader::loadProgressingStatusChanged):        
247         * loader/FrameLoader.h:
248         * loader/ProgressTracker.cpp:
249         (WebCore::ProgressTracker::ProgressTracker):
250         (WebCore::ProgressTracker::reset):
251         (WebCore::ProgressTracker::progressStarted):
252         (WebCore::ProgressTracker::finalProgressComplete):
253         (WebCore::ProgressTracker::isLoadProgressing):
254         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
255         * loader/ProgressTracker.h:
256         
257             Track if the document load is progressing. This is done with a heartbeat timer that checks every 100ms if we have received more than 1k of data.
258             If four heartbeats pass without progress then we consider the load stalled.
259
260         * page/FrameView.cpp:
261         (WebCore::FrameView::resetDeferredRepaintDelay):
262         
263             Disable throttling temporary on user interaction so the page stays as responsive as possible even during loading.
264
265         (WebCore::FrameView::updateLayerFlushThrottling):
266         
267             Enable throttling when the load is progressing, disable otherwise.
268
269         * page/FrameView.h:
270         * platform/graphics/GraphicsLayer.h:
271         (WebCore::GraphicsLayer::canThrottleLayerFlush):
272         * platform/graphics/ca/GraphicsLayerCA.cpp:
273         (WebCore::GraphicsLayerCA::platformCALayerDidCreateTiles):
274         (WebCore::GraphicsLayerCA::canThrottleLayerFlush):
275         
276             Don't throttle if new tiles have been added by the tile controller. They may have stale content and need to be flushed immediately.
277
278         (WebCore::GraphicsLayerCA::noteLayerPropertyChanged):
279         
280             Set the new TilesAdded change flag.
281
282         * platform/graphics/ca/GraphicsLayerCA.h:
283         * rendering/RenderLayerBacking.cpp:
284         (WebCore::RenderLayerBacking::notifyFlushRequired):
285         * rendering/RenderLayerCompositor.cpp:
286         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
287         (WebCore::RenderLayerCompositor::notifyFlushRequired):
288         (WebCore::RenderLayerCompositor::scheduleLayerFlushNow):
289         
290             Factor the actual flush scheduling to private function.
291
292         (WebCore::RenderLayerCompositor::scheduleLayerFlush):
293         
294             Mark the compositor for flush and return without flushing if the flushes are currently being throttled.
295
296         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
297         
298             After a flush, start the throtting timer (currently 0.5s) coalescing the subsequent flushes.
299
300         (WebCore::RenderLayerCompositor::didChangeVisibleRect):
301         
302             Do immediately flush if needed.
303
304         (WebCore::RenderLayerCompositor::setLayerFlushThrottlingEnabled):
305         
306             Flush immediately if disabled.
307
308         (WebCore::RenderLayerCompositor::disableLayerFlushThrottlingTemporarilyForInteraction):
309         (WebCore::RenderLayerCompositor::isThrottlingLayerFlushes):
310         (WebCore::RenderLayerCompositor::startLayerFlushTimerIfNeeded):
311         (WebCore::RenderLayerCompositor::layerFlushTimerFired):
312         
313             Flush when the timer fires timer.
314
315         * rendering/RenderLayerCompositor.h:
316
317 2013-04-05  Benjamin Poulain  <benjamin@webkit.org>
318
319         Clean the chromium bits of WebCore's WebDatabase
320         https://bugs.webkit.org/show_bug.cgi?id=114010
321
322         Reviewed by Ryosuke Niwa.
323
324         * Modules/webdatabase/AbstractDatabaseServer.h:
325         * Modules/webdatabase/ChangeVersionWrapper.cpp:
326         (WebCore::ChangeVersionWrapper::performPreflight):
327         (WebCore::ChangeVersionWrapper::performPostflight):
328         * Modules/webdatabase/Database.cpp:
329         * Modules/webdatabase/Database.h:
330         (Database):
331         * Modules/webdatabase/DatabaseBackend.cpp:
332         (WebCore::DatabaseBackend::openAndVerifyVersion):
333         * Modules/webdatabase/DatabaseBackendBase.cpp:
334         (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
335         (WebCore::DatabaseBackendBase::performOpenAndVerify):
336         (WebCore::DatabaseBackendBase::getActualVersionForTransaction):
337         (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded):
338         * Modules/webdatabase/DatabaseBackendBase.h:
339         (DatabaseBackendBase):
340         * Modules/webdatabase/DatabaseBackendSync.cpp:
341         (WebCore::DatabaseBackendSync::openAndVerifyVersion):
342         * Modules/webdatabase/DatabaseContext.cpp:
343         (WebCore::DatabaseContext::databaseExceededQuota):
344         * Modules/webdatabase/DatabaseManager.cpp:
345         * Modules/webdatabase/DatabaseManager.h:
346         (DatabaseManager):
347         * Modules/webdatabase/DatabaseServer.cpp:
348         (WebCore::DatabaseServer::initialize):
349         (WebCore::DatabaseServer::setClient):
350         (WebCore::DatabaseServer::databaseDirectoryPath):
351         (WebCore::DatabaseServer::setDatabaseDirectoryPath):
352         (WebCore::DatabaseServer::openDatabase):
353         * Modules/webdatabase/DatabaseServer.h:
354         * Modules/webdatabase/DatabaseSync.cpp:
355         (WebCore::DatabaseSync::changeVersion):
356         * Modules/webdatabase/DatabaseTracker.cpp:
357         (WebCore::DatabaseTracker::canEstablishDatabase):
358         (WebCore::DatabaseTracker::retryCanEstablishDatabase):
359         * Modules/webdatabase/DatabaseTracker.h:
360         (WebCore):
361         (DatabaseTracker):
362         * Modules/webdatabase/SQLStatementBackend.cpp:
363         (WebCore::SQLStatementBackend::execute):
364         (WebCore::SQLStatementBackend::setDatabaseDeletedError):
365         (WebCore::SQLStatementBackend::setVersionMismatchedError):
366         (WebCore::SQLStatementBackend::setFailureDueToQuota):
367         * Modules/webdatabase/SQLStatementBackend.h:
368         (SQLStatementBackend):
369         * Modules/webdatabase/SQLTransaction.cpp:
370         (WebCore::SQLTransaction::deliverTransactionCallback):
371         (WebCore::SQLTransaction::deliverStatementCallback):
372         * Modules/webdatabase/SQLTransactionBackend.cpp:
373         (WebCore::SQLTransactionBackend::executeSQL):
374         (WebCore::SQLTransactionBackend::openTransactionAndPreflight):
375         (WebCore::SQLTransactionBackend::runCurrentStatementAndGetNextState):
376         (WebCore::SQLTransactionBackend::nextStateForCurrentStatementError):
377         (WebCore::SQLTransactionBackend::postflightAndCommit):
378         (WebCore::SQLTransactionBackend::acquireOriginLock):
379         (WebCore::SQLTransactionBackend::releaseOriginLockIfNeeded):
380         * Modules/webdatabase/SQLTransactionBackend.h:
381         (SQLTransactionBackend):
382         * Modules/webdatabase/SQLTransactionBackendSync.cpp:
383         (WebCore::SQLTransactionBackendSync::begin):
384         (WebCore::SQLTransactionBackendSync::commit):
385
386 2013-04-05  Geoffrey Garen  <ggaren@apple.com>
387
388         Made USE(JSC) unconditional
389         https://bugs.webkit.org/show_bug.cgi?id=114058
390
391         Reviewed by Anders Carlsson.
392
393         * Modules/webdatabase/Database.cpp:
394         * bindings/ScriptControllerBase.cpp:
395         (WebCore::ScriptController::executeIfJavaScriptURL):
396         * bindings/js/JavaScriptCallFrame.cpp:
397         * bindings/js/JavaScriptCallFrame.h:
398         * bindings/scripts/InFilesCompiler.pm:
399         (generateHeadersHeader):
400         * css/MediaQueryListListener.cpp:
401         (WebCore::MediaQueryListListener::queryChanged):
402         * dom/ContainerNode.cpp:
403         (WebCore::dispatchChildRemovalEvents):
404         * dom/EventListener.h:
405         (EventListener):
406         (WebCore::EventListener::visitJSFunction):
407         * dom/EventTarget.h:
408         (EventTarget):
409         (WebCore):
410         (WebCore::EventTarget::visitJSEventListeners):
411         * dom/Node.cpp:
412         * dom/Node.h:
413         * dom/ScriptExecutionContext.cpp:
414         (WebCore):
415         (WebCore::ScriptExecutionContext::globalData):
416         * dom/ScriptExecutionContext.h:
417         (ScriptExecutionContext):
418         * html/HTMLCanvasElement.cpp:
419         (WebCore::HTMLCanvasElement::createImageBuffer):
420         * html/HTMLImageLoader.cpp:
421         (WebCore::HTMLImageLoader::notifyFinished):
422         * inspector/InjectedScriptHost.h:
423         (InjectedScriptHost):
424         (WebCore::InjectedScriptHost::evaluateReturnsEvalFunction):
425         * inspector/InspectorInstrumentation.cpp:
426         (WebCore):
427         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
428         * page/Frame.cpp:
429         * page/Settings.cpp:
430         (WebCore):
431         (WebCore::Settings::shouldRespectPriorityInCSSAttributeSetters):
432         * page/Settings.h:
433         (Settings):
434         * plugins/PluginView.cpp:
435         (WebCore::PluginView::start):
436         (WebCore::PluginView::stop):
437         (WebCore::PluginView::performRequest):
438         (WebCore::PluginView::npObject):
439         (WebCore):
440         (WebCore::PluginView::bindingInstance):
441         (WebCore::PluginView::privateBrowsingStateChanged):
442         * plugins/PluginView.h:
443         (PluginView):
444         * plugins/PluginViewBase.h:
445         (PluginViewBase):
446         (WebCore::PluginViewBase::scriptObject):
447         * plugins/PluginViewNone.cpp:
448         (WebCore):
449         (WebCore::PluginView::bindingInstance):
450         * plugins/qt/PluginViewQt.cpp:
451         (WebCore::PluginView::dispatchNPEvent):
452         (WebCore::PluginView::setNPWindowIfNeeded):
453         * xml/XMLHttpRequest.cpp:
454         (WebCore::XMLHttpRequest::dropProtection):
455
456 2013-04-05  Roger Fong  <roger_fong@apple.com>
457
458         More VS2010 solution makefile fixes.
459         <rdar://problem/13588964>
460
461         * WebCore.vcxproj/WebCore.make:
462
463 2013-04-05  Ed Bartosh  <bartosh@gmail.com>
464
465         [EFL] --no-tiled-backing-store build fails because of not used #if USE(ACCELERATED_COMPOSITING)
466         https://bugs.webkit.org/show_bug.cgi?id=113627
467
468         Reviewed by Simon Fraser.
469
470        Wrapped code with #if USE(ACCELERATED_COMPOSITING) to make it compilable
471        with --no-tiled-backing-store build option:
472         * page/animation/ImplicitAnimation.cpp:
473         (WebCore::ImplicitAnimation::animate):
474         * page/animation/KeyframeAnimation.cpp:
475         (WebCore::KeyframeAnimation::animate):
476         * platform/graphics/TextTrackRepresentation.cpp:
477         (NullTextTrackRepresentation):
478         * platform/graphics/TextTrackRepresentation.h:
479         (TextTrackRepresentation):
480         * testing/Internals.cpp:
481         (WebCore::Internals::resetToConsistentState):
482         (WebCore::Internals::setHeaderHeight):
483         (WebCore::Internals::setFooterHeight):
484
485 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
486
487         Remove the remaining Chromium files from WebCore
488         https://bugs.webkit.org/show_bug.cgi?id=114055
489
490         Reviewed by Benjamin Poulain.
491
492         Removed.
493
494         * Resources/pagepopups/chromium: Removed.
495         * Resources/pagepopups/chromium/calendarPickerChromium.css: Removed.
496         * Resources/pagepopups/chromium/pickerCommonChromium.css: Removed.
497         * html/shadow/MediaControlsChromium.cpp: Removed.
498         * html/shadow/MediaControlsChromium.h: Removed.
499         * html/shadow/MediaControlsChromiumAndroid.cpp: Removed.
500         * html/shadow/MediaControlsChromiumAndroid.h: Removed.
501
502 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
503
504         Remove Chromium code from WebCore/css
505         https://bugs.webkit.org/show_bug.cgi?id=114052
506
507         Reviewed by Benjamin Poulain.
508
509         Removed.
510
511         * css/mediaControlsChromium.css: Removed.
512         * css/mediaControlsChromiumAndroid.css: Removed.
513         * css/themeChromium.css: Removed.
514         * css/themeChromiumAndroid.css: Removed.
515         * css/themeChromiumLinux.css: Removed.
516         * css/themeChromiumSkia.css: Removed.
517
518 2013-04-05  Brendan Long  <self@brendanlong.com>
519
520         [GStreamer] Segfault when attempting to install missing plugins
521         https://bugs.webkit.org/show_bug.cgi?id=114046
522         
523         gst_install_plugins_async expects a null terminated list, but we weren't
524         adding a null terminator.
525
526         Reviewed by Philippe Normand.
527
528         No new tests since this just fixes a segfault.
529
530         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
531         (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
532
533 2013-04-05  Benjamin Poulain  <benjamin@webkit.org>
534
535         Remove the chromium code for WebCore's indexeddb module
536         https://bugs.webkit.org/show_bug.cgi?id=114004
537
538         Reviewed by Ryosuke Niwa.
539
540         * Modules/indexeddb/IDBBackingStore.cpp:
541         (WebCore::IDBBackingStore::IDBBackingStore):
542         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
543         (WebCore::IDBDatabaseBackendImpl::openConnection):
544         (WebCore::IDBDatabaseBackendImpl::close):
545         * Modules/indexeddb/IDBFactoryBackendInterface.cpp:
546         * Modules/indexeddb/IDBTracing.h:
547
548 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
549
550         Cleanup after git svn left empty directories.
551
552         * loader/chromium: Removed.
553         * page/chromium: Removed.
554         * page/scrolling/chromium: Removed.
555         * plugins/chromium: Removed.
556
557 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
558
559         Actually delete platform/chromium.
560
561         * platform/chromium: Removed.
562
563 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
564
565         Remove Chromium code from WebCore/platform
566         https://bugs.webkit.org/show_bug.cgi?id=114014
567
568         Reviewed by Anders Carlsson.
569
570         Removed.
571
572         * platform/audio/chromium: Removed.
573         * platform/audio/chromium/AudioBusChromium.cpp: Removed.
574         * platform/audio/chromium/AudioDestinationChromium.cpp: Removed.
575         * platform/audio/chromium/AudioDestinationChromium.h: Removed.
576         * platform/audio/chromium/FFTFrameOpenMAXDLAndroid.cpp: Removed.
577         * platform/graphics/FontPlatformData.h:
578         * platform/graphics/chromium: Removed.
579         * platform/graphics/chromium/AnimationTranslationUtil.cpp: Removed.
580         * platform/graphics/chromium/AnimationTranslationUtil.h: Removed.
581         * platform/graphics/chromium/Canvas2DLayerBridge.cpp: Removed.
582         * platform/graphics/chromium/Canvas2DLayerBridge.h: Removed.
583         * platform/graphics/chromium/Canvas2DLayerManager.cpp: Removed.
584         * platform/graphics/chromium/Canvas2DLayerManager.h: Removed.
585         * platform/graphics/chromium/CrossProcessFontLoading.h: Removed.
586         * platform/graphics/chromium/CrossProcessFontLoading.mm: Removed.
587         * platform/graphics/chromium/DeferredImageDecoder.cpp: Removed.
588         * platform/graphics/chromium/DeferredImageDecoder.h: Removed.
589         * platform/graphics/chromium/DiscardablePixelRef.cpp: Removed.
590         * platform/graphics/chromium/DiscardablePixelRef.h: Removed.
591         * platform/graphics/chromium/DrawingBufferChromium.cpp: Removed.
592         * platform/graphics/chromium/Extensions3DChromium.h: Removed.
593         * platform/graphics/chromium/FontCacheAndroid.cpp: Removed.
594         * platform/graphics/chromium/FontCacheChromiumLinux.cpp: Removed.
595         * platform/graphics/chromium/FontCacheChromiumWin.cpp: Removed.
596         * platform/graphics/chromium/FontChromiumWin.cpp: Removed.
597         * platform/graphics/chromium/FontPlatformData.h: Removed.
598         * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp: Removed.
599         * platform/graphics/chromium/FontPlatformDataChromiumWin.h: Removed.
600         * platform/graphics/chromium/FontRenderStyle.h: Removed.
601         * platform/graphics/chromium/FontUtilsChromiumWin.cpp: Removed.
602         * platform/graphics/chromium/FontUtilsChromiumWin.h: Removed.
603         * platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp: Removed.
604         * platform/graphics/chromium/GraphicsLayerChromium.cpp: Removed.
605         * platform/graphics/chromium/GraphicsLayerChromium.h: Removed.
606         * platform/graphics/chromium/IconChromium.cpp: Removed.
607         * platform/graphics/chromium/IconChromiumAndroid.cpp: Removed.
608         * platform/graphics/chromium/ImageBufferDataSkia.h: Removed.
609         * platform/graphics/chromium/ImageChromium.cpp: Removed.
610         * platform/graphics/chromium/ImageDecodingStore.cpp: Removed.
611         * platform/graphics/chromium/ImageDecodingStore.h: Removed.
612         * platform/graphics/chromium/ImageFrameGenerator.cpp: Removed.
613         * platform/graphics/chromium/ImageFrameGenerator.h: Removed.
614         * platform/graphics/chromium/LayerPainterChromium.h: Removed.
615         * platform/graphics/chromium/LazyDecodingPixelRef.cpp: Removed.
616         * platform/graphics/chromium/LazyDecodingPixelRef.h: Removed.
617         * platform/graphics/chromium/MediaPlayerPrivateChromium.cpp: Removed.
618         * platform/graphics/chromium/MediaPlayerPrivateChromium.h: Removed.
619         * platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.cpp: Removed.
620         * platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.h: Removed.
621         * platform/graphics/chromium/PlatformIcon.h: Removed.
622         * platform/graphics/chromium/ScaledImageFragment.cpp: Removed.
623         * platform/graphics/chromium/ScaledImageFragment.h: Removed.
624         * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp: Removed.
625         * platform/graphics/chromium/SkSizeHash.h: Removed.
626         * platform/graphics/chromium/TextureUploader.h: Removed.
627         * platform/graphics/chromium/ThreadSafeDataTransport.cpp: Removed.
628         * platform/graphics/chromium/ThreadSafeDataTransport.h: Removed.
629         * platform/graphics/chromium/TransformSkMatrix44Conversions.cpp: Removed.
630         * platform/graphics/chromium/TransformSkMatrix44Conversions.h: Removed.
631         * platform/graphics/chromium/TransparencyWin.cpp: Removed.
632         * platform/graphics/chromium/TransparencyWin.h: Removed.
633         * platform/graphics/chromium/UniscribeHelper.cpp: Removed.
634         * platform/graphics/chromium/UniscribeHelper.h: Removed.
635         * platform/graphics/chromium/UniscribeHelperTextRun.cpp: Removed.
636         * platform/graphics/chromium/UniscribeHelperTextRun.h: Removed.
637         * platform/graphics/chromium/VDMXParser.cpp: Removed.
638         * platform/graphics/chromium/VDMXParser.h: Removed.
639         * platform/graphics/gpu/DrawingBuffer.cpp:
640         (WebCore):
641         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
642         (WebCore::SharedGraphicsContext3DImpl::getOrCreateContext):
643         * platform/mediastream/chromium: Removed.
644         * platform/mediastream/chromium/MediaStreamCenterChromium.cpp: Removed.
645         * platform/mediastream/chromium/MediaStreamCenterChromium.h: Removed.
646         * platform/mediastream/chromium/RTCDTMFSenderHandlerChromium.cpp: Removed.
647         * platform/mediastream/chromium/RTCDTMFSenderHandlerChromium.h: Removed.
648         * platform/mediastream/chromium/RTCDataChannelHandlerChromium.cpp: Removed.
649         * platform/mediastream/chromium/RTCDataChannelHandlerChromium.h: Removed.
650         * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp: Removed.
651         * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h: Removed.
652         * platform/network/chromium: Removed.
653         * platform/network/chromium/AuthenticationChallenge.h: Removed.
654         * platform/network/chromium/AuthenticationChallengeChromium.cpp: Removed.
655         * platform/network/chromium/BlobRegistryProxy.cpp: Removed.
656         * platform/network/chromium/BlobRegistryProxy.h: Removed.
657         * platform/network/chromium/CookieJarChromium.cpp: Removed.
658         * platform/network/chromium/DNSChromium.cpp: Removed.
659         * platform/network/chromium/ResourceError.h: Removed.
660         * platform/network/chromium/ResourceHandle.cpp: Removed.
661         * platform/network/chromium/ResourceHandleInternal.h: Removed.
662         * platform/network/chromium/ResourceRequest.cpp: Removed.
663         * platform/network/chromium/ResourceRequest.h: Removed.
664         * platform/network/chromium/ResourceResponse.cpp: Removed.
665         * platform/network/chromium/ResourceResponse.h: Removed.
666         * platform/network/chromium/SocketStreamError.h: Removed.
667         * platform/network/chromium/SocketStreamHandle.cpp: Removed.
668         * platform/network/chromium/SocketStreamHandle.h: Removed.
669         * platform/network/chromium/SocketStreamHandleInternal.h: Removed.
670         * platform/sql/chromium: Removed.
671         * platform/sql/chromium/SQLiteFileSystemChromium.cpp: Removed.
672         * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp: Removed.
673         * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp: Removed.
674         * platform/text/chromium: Removed.
675         * platform/text/chromium/Hyphenation.cpp: Removed.
676         * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp: Removed.
677
678 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
679
680         Remove Chromium code from WebCore/workers
681         https://bugs.webkit.org/show_bug.cgi?id=114050
682
683         Reviewed by Anders Carlsson.
684
685         Removed.
686
687         * workers/WorkerLoaderProxy.h:
688         (WorkerLoaderProxy):
689         * workers/chromium: Removed.
690
691 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
692
693         Remove Chromium code from WebCore/storage
694         https://bugs.webkit.org/show_bug.cgi?id=114049
695
696         Reviewed by Anders Carlsson.
697
698         Removed.
699
700         * storage/StorageNamespace.cpp:
701         * storage/chromium: Removed.
702
703 2013-04-05  Seokju Kwon  <seokju.kwon@gmail.com>
704
705         [SOUP] Remove unnecessary explicit keyword in SocketStreamError.h
706         https://bugs.webkit.org/show_bug.cgi?id=113913
707
708         Reviewed by Martin Robinson.
709
710         No new tests, just removing an unnecessary code.
711
712         * platform/network/soup/SocketStreamError.h:
713         (WebCore::SocketStreamError::SocketStreamError):
714
715 2013-04-05  Zan Dobersek  <zdobersek@igalia.com>
716
717         Remove WTF_USE_GOOGLEURL-guarded code
718         https://bugs.webkit.org/show_bug.cgi?id=114028
719
720         Reviewed by Ryosuke Niwa.
721
722         The only remaining usage of the USE(GOOGLEURL) guards is in LinkHashChromium.cpp that will
723         get removed when purging the Source/WebCore/platform/chromium directory.
724
725         * config.h: Remove the define that was Chromium-specific.
726         * platform/KURL.cpp:
727         (WebCore):
728         (WebCore::KURL::reportMemoryUsage):
729         (WebCore::KURL::isSafeToSendToAnotherThread):
730         * platform/KURL.h:
731         (KURL):
732         * platform/KURLGoogle.cpp: Removed.
733         * platform/KURLGooglePrivate.h: Removed.
734
735 2013-04-05  Bem Jones-Bey  <bjonesbe@adobe.com>
736
737         [regression] Security: Heap-use-after-free in WebCore::RenderBlock::logicalRightOffsetForLine
738         https://bugs.webkit.org/show_bug.cgi?id=111594
739
740         Reviewed by David Hyatt.
741
742         Swapping the bases was causing any floats in the right base to be
743         lost, so change the code so that it no longer swaps the bases.
744
745         Test: fast/ruby/float-object-doesnt-crash.html
746
747         * rendering/RenderRubyRun.cpp:
748         (WebCore::RenderRubyRun::removeChild): Don't swap the bases anymore.
749
750 2013-04-05  Anders Carlsson  <andersca@apple.com>
751
752         Remove dead code
753         https://bugs.webkit.org/show_bug.cgi?id=114043
754
755         Reviewed by Beth Dakin.
756
757         * platform/PublicSuffix.h:
758
759 2013-04-05  Anders Carlsson  <andersca@apple.com>
760
761         Remove dead Chromium code from WebCore/workers
762         https://bugs.webkit.org/show_bug.cgi?id=114039
763
764         Reviewed by Antti Koivisto.
765
766         * workers/WorkerContext.cpp:
767         (WebCore::WorkerContext::importScripts):
768         * workers/WorkerLoaderProxy.h:
769         * workers/WorkerMessagingProxy.cpp:
770         (WebCore::WorkerContextProxy::create):
771         * workers/WorkerScriptLoader.cpp:
772         (WebCore::WorkerScriptLoader::WorkerScriptLoader):
773         (WebCore::WorkerScriptLoader::createResourceRequest):
774         * workers/WorkerScriptLoader.h:
775         * workers/WorkerThread.cpp:
776         (WebCore::WorkerThread::workerThread):
777         * workers/chromium/WorkerContextProxyChromium.cpp: Removed.
778         * workers/chromium/WorkerContextProxyChromium.h: Removed.
779
780 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
781
782         Remove Chromium code from WebCore/plugins
783         https://bugs.webkit.org/show_bug.cgi?id=114015
784
785         Reviewed by Andreas Kling.
786
787         Removed.
788
789         * plugins/chromium: Removed.
790         * plugins/chromium/PluginDataChromium.cpp: Removed.
791         * plugins/chromium/PluginDataChromium.h: Removed.
792         * plugins/chromium/PluginListBuilder.cpp: Removed.
793         * plugins/chromium/PluginListBuilder.h: Removed.
794
795 2013-04-05  Simon Fraser  <simon.fraser@apple.com>
796
797         ASSERTION FAILED: m_repaintRect == renderer()->clippedOverflowRectForRepaint(renderer()->containerForRepaint()) after r135816
798         https://bugs.webkit.org/show_bug.cgi?id=103432
799
800         Reviewed by Allan Sandfeld Jensen.
801         
802         Remove optimization added in r99752 that attempted to avoid clip rect
803         updates for table cells. As the assertions show, this optimization
804         is not always correct, so remove it. Bug 108272 tracks adding it back in.
805
806         * rendering/RenderLayer.cpp:
807         (WebCore::RenderLayer::RenderLayer):
808         (WebCore::RenderLayer::updateLayerPositionsAfterScroll): Remove m_canSkipRepaintRectsUpdateOnScroll
809         check when updating clip rects.
810         * rendering/RenderLayer.h: Remove the m_canSkipRepaintRectsUpdateOnScroll bit.
811
812 2013-04-05  Bear Travis  <betravis@adobe.com>
813
814         [css exclusions] Dynamically removing shape-inside should cause relayout of child blocks' inline content
815         https://bugs.webkit.org/show_bug.cgi?id=111029
816
817         Reviewed by David Hyatt.
818
819         Preserve a removed ExclusionShapeInsideInfo for one additional layout pass
820         so that it can notify descendant inline content to relayout. This patch adds
821         a new 'needsRemoval' boolean to ExclusionShapeInsideInfo, which is set when
822         a style change removes but does not replace a shape-inside. When determining
823         whether a block needs to relayout inline children, ExclusionShapeInsideInfos with
824         the needsRemoval boolean set are included, but at other times (such as during
825         inline layout), they are ignored.
826
827         Added tests to the existing dynamic shape testfile
828         fast/exclusions/shape-inside/shape-inside-dynamic-nested.html
829
830         * rendering/ExclusionShapeInsideInfo.h:
831         (WebCore::ExclusionShapeInsideInfo::setNeedsRemoval): Get/Set the
832         needsRemoval boolean.
833         (WebCore::ExclusionShapeInsideInfo::needsRemoval): Ditto.
834         (ExclusionShapeInsideInfo):
835         (WebCore::ExclusionShapeInsideInfo::ExclusionShapeInsideInfo):
836         Initialize the needsRemoval boolean.
837         * rendering/LayoutState.cpp:
838         (WebCore::LayoutState::LayoutState): Propagate removed shape insides
839         for layout correctly. You only need to track one at a time, and a
840         removed shape inside should not take precedence over a set shape-inside.
841         * rendering/RenderBlock.cpp:
842         (WebCore::RenderBlock::updateExclusionShapeInsideInfoAfterStyleChange):
843         Set the ExclusionShapeInsideInfo needsRemoval boolean, rather than immediately
844         removing the info.
845         (WebCore::exclusionInfoRequiresRelayout): Account for the needsRemoval
846         boolean as another way of requiring relayout.
847         (WebCore::RenderBlock::updateRegionsAndExclusionsBeforeChildLayout):
848         Look up whether an ExclusionShapeInsideInfo has been removed.
849         (WebCore::RenderBlock::updateRegionsAndExclusionsAfterChildLayout):
850         Remove any ExclusionShapeInsides marked for removal after a layout pass.
851         (WebCore):
852         (WebCore::RenderBlock::layoutBlock): Call the new updateRegionsAndExclusions
853         Before/After methods.
854         * rendering/RenderBlock.h:
855         (WebCore::RenderBlock::exclusionShapeInsideInfo): Filter the result based
856         on whether it should include removed infos.
857         (RenderBlock):
858         * rendering/RenderBlockLineLayout.cpp:
859         (WebCore::RenderBlock::layoutExclusionShapeInsideInfo): Ditto.
860         * rendering/RenderDeprecatedFlexibleBox.cpp:
861         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock): 
862         Same as RenderBlock::layoutBlock.
863         * rendering/RenderFlexibleBox.cpp:
864         (WebCore::RenderFlexibleBox::layoutBlock): Ditto.
865         * rendering/RenderGrid.cpp:
866         (WebCore::RenderGrid::layoutBlock): Ditto.
867
868 2013-04-05  Mihai Maerean  <mmaerean@adobe.com>
869
870         [CSS Regions] Elements in a region should be assignable to a named flow
871         https://bugs.webkit.org/show_bug.cgi?id=74144
872
873         Reviewed by David Hyatt.
874
875         DOM children of a region must not be rendered as children of the region, but can be collected in flow threads.
876
877         NodeRenderingContext::parentRenderer now creates the parent render flow thread if it doesn't exist.
878
879         Element::moveToFlowThreadIsNeeded is a virtual method that is overriden in PseudoElement to return false and
880         in SVGElement so only svg root elements can directly be collected by a render flow thread.
881
882         RenderObject::canDOMChildrenHaveRenderParent exists to optimize the code so nodes inside regions (and maybe
883         other types of renderers in the future) can still have renderers if they need to be in a flow thread while the
884         rest of renderers that can't have children skip the new instructions.
885
886         Tests: fast/regions/flow-body-in-html.html . To test the duplicate bug #103685.
887                fast/regions/region-content-flown-into-region.html
888                fast/regions/universal-selector-children-to-the-same-region.html . To test the duplicate bug #103685.
889
890         * dom/Element.cpp:
891         (WebCore::Element::moveToFlowThreadIsNeeded):
892         * dom/Element.h:
893         * dom/NodeRenderingContext.cpp:
894         (WebCore::NodeRenderingContext::parentRenderer): the renderer that will be the parent for this node's renderer.
895         In the case of RenderFlowThreads, it may need to create it.
896         (WebCore::NodeRenderingContext::shouldCreateRenderer): In a region, only the children that need to be in a flow
897         thread should have a renderer.
898         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
899         (WebCore::NodeRenderingContext::moveToFlowThread):
900         * dom/NodeRenderingContext.h:
901         (NodeRenderingContext):
902         * dom/PseudoElement.h: pseudo-elements cannot be directly collected into a named flow.
903         * dom/Text.cpp:
904         (WebCore::Text::textRendererIsNeeded):
905         (WebCore::Text::updateTextRenderer): Because calling textRendererIsNeeded(NodeRenderingContext(...)) on a
906         non-const l-value NodeRenderingContext cannot be done on a temporary object on the stack.
907         * dom/Text.h:
908         * rendering/FlowThreadController.cpp:
909         (WebCore::FlowThreadController::isContentNodeRegisteredWithAnyNamedFlow):
910         * rendering/FlowThreadController.h:
911         * rendering/RenderObject.h:
912         (WebCore::RenderObject::canDOMChildrenHaveRenderParent): Even if this render object can't have render children,
913         the children in the DOM tree may have a render parent (that is different from this render object).
914         * rendering/RenderRegion.h:
915         * svg/SVGElement.cpp:
916         (WebCore::SVGElement::moveToFlowThreadIsNeeded): Allow only svg root elements to be directly collected by a
917         render flow thread.
918         * svg/SVGElement.h:
919         (SVGElement):
920
921 2013-04-05  Allan Sandfeld Jensen  <allan.jensen@digia.com>
922
923         Fix GCC with C++11 build
924         https://bugs.webkit.org/show_bug.cgi?id=111579
925
926         Reviewed by Anders Carlsson.
927
928         If the destructor is private, MemoryInstrumentation can not create an inherited class.
929
930         * css/PropertySetCSSStyleDeclaration.h:
931         (StyleRuleCSSStyleDeclaration):
932         * dom/ShadowRoot.h:
933         (ShadowRoot):
934         * loader/SubresourceLoader.h:
935         (SubresourceLoader):
936         * platform/Timer.h:
937
938 2013-03-28  Allan Sandfeld Jensen  <allan.jensen@digia.com>
939
940         [Qt] Create ShadowBlur on demand.
941         https://bugs.webkit.org/show_bug.cgi?id=113506
942
943         Reviewed by Noam Rosenthal.
944
945         This patch creates ShadowBlur objects on demand instead of keeping a single one alive for
946         each GraphicsContext. This matches what other platforms does and fixes the problem with 
947         an active shadowblur being affected by changing shadow settings on the GraphicsContext.
948
949         The method mustUseShadowBlur is moved from ShadowBlur to GraphcisContext, so that it can
950         be used to determine if a ShadowBlur object should even be generated.
951
952         * platform/graphics/GraphicsContext.cpp:
953         (WebCore::GraphicsContext::hasBlurredShadow):
954         (WebCore::GraphicsContext::mustUseShadowBlur):
955         * platform/graphics/GraphicsContext.h:
956         (GraphicsContext):
957         * platform/graphics/ShadowBlur.cpp:
958         (WebCore::ShadowBlur::ShadowBlur):
959         * platform/graphics/ShadowBlur.h:
960         * platform/graphics/cairo/FontCairo.cpp:
961         (WebCore::drawGlyphsShadow):
962         * platform/graphics/cg/GraphicsContextCG.cpp:
963         (WebCore::GraphicsContext::fillRect):
964         (WebCore::GraphicsContext::fillRoundedRect):
965         (WebCore::GraphicsContext::fillRectWithRoundedHole):
966         * platform/graphics/qt/FontQt.cpp:
967         (WebCore::drawQtGlyphRun):
968         * platform/graphics/qt/GraphicsContextQt.cpp:
969         (GraphicsContextPlatformPrivate):
970         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
971         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
972         (WebCore::GraphicsContext::restorePlatformState):
973         (WebCore::GraphicsContext::fillPath):
974         (WebCore::GraphicsContext::strokePath):
975         (WebCore::GraphicsContext::fillRect):
976         (WebCore::GraphicsContext::fillRoundedRect):
977         (WebCore::GraphicsContext::fillRectWithRoundedHole):
978         (WebCore::GraphicsContext::setPlatformShadow):
979         (WebCore::GraphicsContext::clearPlatformShadow):
980         * platform/graphics/qt/ImageQt.cpp:
981         (WebCore::BitmapImage::draw):
982         * platform/graphics/qt/StillImageQt.cpp:
983         (WebCore::StillImage::draw):
984
985 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
986
987         Remove Chromium code from WebCore/page
988         https://bugs.webkit.org/show_bug.cgi?id=114013
989
990         Reviewed by Anders Carlsson.
991
992         Removed.
993
994         * page/Console.cpp:
995         (WebCore::Console::time):
996         (WebCore::Console::timeEnd):
997         * page/EventHandler.cpp:
998         (WebCore::shouldGesturesTriggerActive):
999         (WebCore::EventHandler::handleMouseReleaseEvent):
1000         (WebCore):
1001         (WebCore::EventHandler::sendScrollEventToView):
1002         * page/FeatureObserver.cpp:
1003         (WebCore::FeatureObserver::updateMeasurements):
1004         * page/FrameView.cpp:
1005         (WebCore::FrameView::layout):
1006         (WebCore::FrameView::useSlowRepaints):
1007         * page/PageConsole.cpp:
1008         * page/PageGroup.cpp:
1009         (WebCore::PageGroup::isLinkVisited):
1010         (WebCore::PageGroup::addVisitedLink):
1011         * page/Settings.cpp:
1012         (WebCore):
1013         * page/android: Removed.
1014         * page/chromium: Removed.
1015         * page/chromium/ChromeClientChromium.h: Removed.
1016         * page/chromium/DragControllerChromium.cpp: Removed.
1017         * page/chromium/EventHandlerChromium.cpp: Removed.
1018         * page/scrolling/ScrollingCoordinator.cpp:
1019         (WebCore::ScrollingCoordinator::create):
1020         (WebCore):
1021         * page/scrolling/ScrollingCoordinator.h:
1022         (ScrollingCoordinator):
1023         * page/scrolling/ScrollingTree.cpp:
1024         (WebCore):
1025         * page/scrolling/ScrollingTree.h:
1026         (ScrollingTree):
1027         * page/scrolling/chromium: Removed.
1028         * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp: Removed.
1029         * page/scrolling/chromium/ScrollingCoordinatorChromium.h: Removed.
1030
1031 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
1032
1033         Remove Chromium code from WebCore/rendering
1034         https://bugs.webkit.org/show_bug.cgi?id=114017
1035
1036         Reviewed by Simon Fraser.
1037
1038         Removed.
1039
1040         * rendering/RenderBlockLineLayout.cpp:
1041         (WebCore::setLogicalWidthForTextRun):
1042         * rendering/RenderLayerBacking.cpp:
1043         (WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
1044         (WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
1045         (WebCore::RenderLayerBacking::requiresScrollCornerLayer):
1046         * rendering/RenderLayerCompositor.cpp:
1047         (WebCore::RenderLayerCompositor::paintContents):
1048         (WebCore::shouldCompositeOverflowControls):
1049         (WebCore::RenderLayerCompositor::requiresOverhangAreasLayer):
1050         * rendering/RenderMediaControlsChromium.cpp: Removed.
1051         * rendering/RenderMediaControlsChromium.h: Removed.
1052         * rendering/RenderObject.cpp:
1053         (WebCore::RenderObject::shouldRespectImageOrientation):
1054         * rendering/RenderText.cpp:
1055         (WebCore):
1056         (WebCore::RenderText::previousOffsetForBackwardDeletion):
1057         * rendering/RenderThemeChromiumAndroid.cpp: Removed.
1058         * rendering/RenderThemeChromiumAndroid.h: Removed.
1059         * rendering/RenderThemeChromiumCommon.cpp: Removed.
1060         * rendering/RenderThemeChromiumCommon.h: Removed.
1061         * rendering/RenderThemeChromiumDefault.cpp: Removed.
1062         * rendering/RenderThemeChromiumDefault.h: Removed.
1063         * rendering/RenderThemeChromiumFontProvider.cpp: Removed.
1064         * rendering/RenderThemeChromiumFontProvider.h: Removed.
1065         * rendering/RenderThemeChromiumFontProviderLinux.cpp: Removed.
1066         * rendering/RenderThemeChromiumFontProviderWin.cpp: Removed.
1067         * rendering/RenderThemeChromiumMac.h: Removed.
1068         * rendering/RenderThemeChromiumMac.mm: Removed.
1069         * rendering/RenderThemeChromiumSkia.cpp: Removed.
1070         * rendering/RenderThemeChromiumSkia.h: Removed.
1071         * rendering/RenderThemeChromiumWin.cpp: Removed.
1072         * rendering/RenderThemeChromiumWin.h: Removed.
1073         * rendering/RenderThemeMacShared.mm:
1074         (WebCore::RenderThemeMacShared::paintSliderThumb):
1075
1076 2013-04-05  Noam Rosenthal  <noam@webkit.org>
1077
1078         [Texmap] css3/filters/filter-animation-from-none-hw.html does not animate
1079         https://bugs.webkit.org/show_bug.cgi?id=114026
1080
1081         Reviewed by Allan Sandfeld Jensen.
1082
1083         Allow the filter's blending function to take place when animating from/to none.
1084
1085         * platform/graphics/GraphicsLayerAnimation.cpp:
1086         (WebCore::applyFilterAnimation):
1087
1088 2013-04-05  Noam Rosenthal  <noam@webkit.org>
1089
1090         [CoordGfx] Enable filter animations
1091         https://bugs.webkit.org/show_bug.cgi?id=114027
1092
1093         Reviewed by Allan Sandfeld Jensen.
1094
1095         Allow CoordinatedGraphicsLayer to serialize filter animations to the UI process.
1096
1097         Covered by animation tests in css3/filters.
1098
1099         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
1100         (WebCore::CoordinatedGraphicsLayer::addAnimation):
1101
1102 2013-04-05  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1103
1104         Avoid double hash table lookups in TextureMapperGL
1105         https://bugs.webkit.org/show_bug.cgi?id=114030
1106
1107         Reviewed by Noam Rosenthal.
1108
1109         Use Vector::add() and leverage its returned AddResult value instead of
1110         calling Vector::find() then Vector::set() if the key does not already
1111         exist in the map. This results in a single hash lookup instead of two
1112         in this case.
1113
1114         No new tests, no behavior change.
1115
1116         * platform/graphics/texmap/TextureMapperGL.cpp:
1117         (WebCore::TextureMapperGLData::SharedGLData::getShaderProgram):
1118         (WebCore::TextureMapperGLData::getStaticVBO):
1119         (WebCore::TextureMapperGL::drawUsingCustomFilter):
1120
1121 2013-04-05  Aivo Paas  <aivopaas@gmail.com>
1122
1123         Updating mouse cursor on style changes without emitting fake mousemove event
1124         https://bugs.webkit.org/show_bug.cgi?id=101857
1125
1126         Reviewed by Allan Sandfeld Jensen.
1127
1128         Mouse cursor changes in styles used to be reflected in UI through dispatching a fake
1129         mousemove event. The old approach has some flaws: it emits a mousemove event in
1130         javascript when there is no mouse movement involved (bug 85343); the fake mousemove
1131         event is cancelled while there is a mouse button held down - cursor won't change
1132         until mouse is moved or the button released (bug 53341).
1133
1134         The new approach does not use the fake mousemove event. Instead, it uses only the logic
1135         needed for the actual cursor change to happen.
1136
1137         EventHandler::selectCursor was refactored to not take a whole mouse event but instead work with
1138         HitTestResult so that EventHandler::updateCursor must not create a useless PlatformEvent.
1139
1140         Fixes: https://bugs.webkit.org/show_bug.cgi?id=85343 (mousemove event on cursor change)
1141                https://bugs.webkit.org/show_bug.cgi?id=53341 (no cursor change when mouse button down)
1142
1143         Tests: fast/events/mouse-cursor-change.html
1144                fast/events/mouse-cursor-no-mousemove.html
1145
1146         * page/EventHandler.cpp:
1147         (WebCore::EventHandler::EventHandler):
1148         (WebCore::EventHandler::clear):
1149         (WebCore::EventHandler::cursorUpdateTimerFired):
1150         (WebCore::EventHandler::updateCursor):
1151         (WebCore::EventHandler::selectCursor):
1152         (WebCore::EventHandler::handleMouseMoveEvent):
1153         (WebCore::EventHandler::scheduleCursorUpdate):
1154         * page/EventHandler.h:
1155         * page/FrameView.cpp:
1156         (WebCore::FrameView::shouldSetCursor):
1157         * page/FrameView.h:
1158         * page/MouseEventWithHitTestResults.cpp:
1159         (WebCore::MouseEventWithHitTestResults::isOverLink):
1160         * rendering/HitTestResult.cpp:
1161         (WebCore::HitTestResult::isOverLink):
1162         * rendering/HitTestResult.h:
1163         * rendering/RenderObject.cpp:
1164         (WebCore::RenderObject::styleDidChange):
1165
1166 2013-04-05  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
1167
1168         [Qt] PluginsX11: exposedRect offset is applied twice when painting windowless
1169         https://bugs.webkit.org/show_bug.cgi?id=114020
1170
1171         Reviewed by Simon Hausmann.
1172
1173         Both XGetImage and QPainter::drawImage would apply the offset.
1174         Since the XImage will only contain the exposed rect, no need to specify
1175         the source rect to drawImage.
1176
1177         * plugins/qt/PluginViewQt.cpp:
1178         (WebCore::PluginView::paintUsingXPixmap):
1179
1180 2013-04-05  Seokju Kwon  <seokju.kwon@gmail.com>
1181
1182         Web Inspector: crash in InspectorDOMAgent::innerHighlightQuad after r147566
1183         https://bugs.webkit.org/show_bug.cgi?id=113991
1184
1185         Reviewed by Joseph Pecoraro.
1186
1187         * inspector/InspectorDOMAgent.cpp:
1188         (WebCore::InspectorDOMAgent::innerHighlightQuad):
1189
1190 2013-04-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1191
1192         REGRESSION(r145279): Build fails while linking when MEDIA_STREAM is enabled
1193         https://bugs.webkit.org/show_bug.cgi?id=113294
1194
1195         Reviewed by Xan Lopez.
1196
1197         In r145279 NamedGetter extended attribute is added to
1198         RTCStatsResponse.idl which makes the code generator to add
1199         prototypes for JSRTCStatsResponse::nameGetter and
1200         JSRTCStatsResponse::canGetItemsForName to the generated
1201         JSRTCStatsResponse header, but they are not implemented
1202         anywhere. We need to provide a JSRTCStatsResponseCustom file with
1203         the implementation of both functions.
1204
1205         * GNUmakefile.list.am: Add JSRTCStatsResponseCustom.cpp to
1206         compilation.
1207         * Target.pri: Ditto.
1208         * UseJSC.cmake: Ditto.
1209         * WebCore.vcproj/WebCore.vcproj: Ditto.
1210         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
1211         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
1212         * bindings/js/JSRTCStatsResponseCustom.cpp: Added.
1213         (WebCore):
1214         (WebCore::JSRTCStatsResponse::canGetItemsForName):
1215         (WebCore::JSRTCStatsResponse::nameGetter):
1216
1217 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
1218
1219         Remove Chromium code from WebCore/loader
1220         https://bugs.webkit.org/show_bug.cgi?id=114011
1221
1222         Reviewed by Benjamin Poulain.
1223
1224         Removed.
1225
1226         * loader/DocumentLoader.cpp:
1227         (WebCore::DocumentLoader::responseReceived):
1228         * loader/DocumentThreadableLoader.h:
1229         * loader/FrameLoader.cpp:
1230         (WebCore::FrameLoader::FrameLoader):
1231         (WebCore::FrameLoader::defaultObjectContentType):
1232         (WebCore):
1233         * loader/FrameLoader.h:
1234         (FrameLoader):
1235         * loader/FrameLoaderClient.h:
1236         (FrameLoaderClient):
1237         * loader/PingLoader.cpp:
1238         (WebCore::PingLoader::loadImage):
1239         (WebCore::PingLoader::sendPing):
1240         (WebCore::PingLoader::sendViolationReport):
1241         * loader/ResourceLoadScheduler.cpp:
1242         (WebCore):
1243         (WebCore::ResourceLoadScheduler::ResourceLoadScheduler):
1244         (WebCore::ResourceLoadScheduler::scheduleLoad):
1245         * loader/ResourceLoader.h:
1246         * loader/SubresourceLoader.h:
1247         * loader/ThreadableLoaderClient.h:
1248         (ThreadableLoaderClient):
1249         * loader/ThreadableLoaderClientWrapper.h:
1250         (ThreadableLoaderClientWrapper):
1251         * loader/appcache/ApplicationCacheHost.h:
1252         (WebCore):
1253         (ApplicationCacheHost):
1254         * loader/cache/CachedRawResource.h:
1255         (CachedRawResource):
1256         (WebCore::CachedRawResourceClient::redirectReceived):
1257         * loader/cache/CachedResource.cpp:
1258         (WebCore):
1259         (WebCore::CachedResource::load):
1260         * loader/cache/CachedResource.h:
1261         (WebCore::CachedResource::didSendData):
1262         * loader/cache/CachedResourceLoader.cpp:
1263         (WebCore::CachedResourceLoader::requestResource):
1264         (WebCore::CachedResourceLoader::preload):
1265         * loader/chromium: Removed.
1266         * loader/chromium/CachedRawResourceChromium.cpp: Removed.
1267         * loader/chromium/DocumentThreadableLoaderChromium.cpp: Removed.
1268         * loader/chromium/ResourceLoaderChromium.cpp: Removed.
1269         * loader/chromium/SubresourceLoaderChromium.cpp: Removed.
1270
1271 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
1272
1273         Remove Chromium code from WebCore/editing
1274         https://bugs.webkit.org/show_bug.cgi?id=114008
1275
1276         Reviewed by Benjamin Poulain.
1277
1278         Removed.
1279
1280         * editing/EditingBehavior.h:
1281         (WebCore::EditingBehavior::shouldAllowSpellingSuggestionsWithoutSelection):
1282         * editing/FrameSelection.h:
1283         (WebCore):
1284         * editing/chromium: Removed.
1285         * editing/chromium/EditorChromium.cpp: Removed.
1286         * editing/chromium/FrameSelectionChromium.cpp: Removed.
1287
1288 2013-04-05  Benjamin Poulain  <benjamin@webkit.org>
1289
1290         Remove the chromium code from the filesystem module
1291         https://bugs.webkit.org/show_bug.cgi?id=114002
1292
1293         Reviewed by Ryosuke Niwa.
1294
1295         * Modules/filesystem/DOMFileSystemBase.cpp:
1296         (WebCore::DOMFileSystemBase::createFileSystemURL):
1297         * Modules/filesystem/FileSystemType.h:
1298         * Modules/filesystem/LocalFileSystem.cpp:
1299         * Modules/filesystem/LocalFileSystem.h:
1300         (LocalFileSystem):
1301
1302 2013-04-05  Ryosuke Niwa  <rniwa@webkit.org>
1303
1304         Remove Chromium code from Source/WebCore/dom
1305         https://bugs.webkit.org/show_bug.cgi?id=114007
1306
1307         Reviewed by Benjamin Poulain.
1308
1309         Removed.
1310
1311         * dom/Document.cpp:
1312         (WebCore::Document::recalcStyle):
1313         (WebCore::Document::implicitClose):
1314         (WebCore::Document::setFocusedNode):
1315         * dom/MessagePortChannel.h:
1316         (MessagePortChannel):
1317         * dom/ShadowRoot.cpp:
1318         (WebCore::ShadowRoot::ShadowRoot):
1319         * dom/default/chromium: Removed.
1320         * dom/default/chromium/PlatformMessagePortChannelChromium.cpp: Removed.
1321         * dom/default/chromium/PlatformMessagePortChannelChromium.h: Removed.
1322
1323 2013-04-05  Benjamin Poulain  <benjamin@webkit.org>
1324
1325         Remove the chromium directories from WebCore/Modules
1326         https://bugs.webkit.org/show_bug.cgi?id=114000
1327
1328         Reviewed by Ryosuke Niwa.
1329
1330         First step in cleaning the code: remove the chromium-specific files.
1331
1332         * Modules/filesystem/chromium/DOMFileSystemChromium.cpp: Removed.
1333         * Modules/filesystem/chromium/DataTransferItemFileSystemChromium.cpp: Removed.
1334         * Modules/filesystem/chromium/DraggedIsolatedFileSystem.cpp: Removed.
1335         * Modules/filesystem/chromium/DraggedIsolatedFileSystem.h: Removed.
1336         * Modules/indexeddb/chromium/IDBFactoryBackendInterfaceChromium.cpp: Removed.
1337         * Modules/indexeddb/chromium/IDBFactoryBackendInterfaceChromium.h: Removed.
1338         * Modules/speech/chromium/SpeechSynthesisChromium.cpp: Removed.
1339         * Modules/webdatabase/chromium/DatabaseObserver.h: Removed.
1340         * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp: Removed.
1341         * Modules/webdatabase/chromium/QuotaTracker.cpp: Removed.
1342         * Modules/webdatabase/chromium/QuotaTracker.h: Removed.
1343         * Modules/webdatabase/chromium/SQLTransactionClientChromium.cpp: Removed.
1344
1345 2013-04-04  Ryosuke Niwa  <rniwa@webkit.org>
1346
1347         Remove Chromium code from WebCore/accessibility
1348         https://bugs.webkit.org/show_bug.cgi?id=114001
1349
1350         Reviewed by Benjamin Poulain.
1351
1352         Removed.
1353
1354         * accessibility/AccessibilityObject.cpp:
1355         (WebCore::AccessibilityObject::AccessibilityObject):
1356         (WebCore::AccessibilityObject::detach):
1357         (WebCore::AccessibilityObject::isDetached):
1358         * accessibility/AccessibilityObject.h:
1359         (AccessibilityObject):
1360         * accessibility/chromium: Removed.
1361         * accessibility/chromium/AXObjectCacheChromium.cpp: Removed.
1362         * accessibility/chromium/AccessibilityObjectChromium.cpp: Removed.
1363
1364 2013-04-05  Benjamin Poulain  <bpoulain@apple.com>
1365
1366         Remove WTFURL from WebKit
1367         https://bugs.webkit.org/show_bug.cgi?id=113994
1368
1369         Reviewed by Ryosuke Niwa.
1370
1371         * GNUmakefile.list.am:
1372         * WebCore.exp.in:
1373         * WebCore.xcodeproj/project.pbxproj:
1374         * platform/KURL.cpp:
1375         (WebCore):
1376         (WebCore::KURL::reportMemoryUsage):
1377         (WebCore::KURL::isSafeToSendToAnotherThread):
1378         * platform/KURL.h:
1379         (KURL):
1380         (WebCore):
1381         * platform/KURLWTFURL.cpp: Removed.
1382         * platform/KURLWTFURLImpl.h: Removed.
1383         * platform/cf/KURLCFNet.cpp:
1384         (WebCore::KURL::KURL):
1385         (WebCore::KURL::createCFURL):
1386         (WebCore):
1387         * platform/mac/KURLMac.mm:
1388         (WebCore::KURL::KURL):
1389         (WebCore::KURL::createCFURL):
1390
1391 2013-04-04  peavo@outlook.com  <peavo@outlook.com>
1392
1393         WinCairo build fails to link.
1394         https://bugs.webkit.org/show_bug.cgi?id=113873
1395
1396         Reviewed by Brent Fulgham.
1397
1398         Removed double guards for USE(ACCELERATED_COMPOSITING),
1399         and moved methods out of USE(ACCELERATED_COMPOSITING) guard to fix linker errors. 
1400
1401         * page/FrameView.cpp:
1402         (WebCore::FrameView::setWantsLayerForTopOverHangArea):
1403         (WebCore::FrameView::setWantsLayerForBottomOverHangArea):
1404         (WebCore::FrameView::setWantsLayerForHeader):
1405         (WebCore::FrameView::setWantsLayerForFooter):
1406         (WebCore::FrameView::setHeaderHeight):
1407         (WebCore::FrameView::setFooterHeight):
1408
1409 2013-04-04  Ryosuke Niwa  <rniwa@webkit.org>
1410
1411         Remove code for 10.5 and earlier from Source/WebCore
1412         https://bugs.webkit.org/show_bug.cgi?id=113754
1413
1414         Reviewed by Benjamin Poulain.
1415
1416         Removed the code for 10.5 and removed if-def for 10.6.
1417
1418         * WebCore.xcodeproj/project.pbxproj:
1419         * page/ContextMenuController.cpp:
1420         (WebCore::ContextMenuController::populate):
1421         * platform/LocalizedStrings.cpp:
1422         (WebCore::imageTitle):
1423         * platform/graphics/cg/GraphicsContextCG.cpp:
1424         (WebCore::GraphicsContext::setAllowsFontSmoothing):
1425         * platform/graphics/cg/ImageCG.cpp:
1426         (WebCore::Image::drawPattern):
1427         * platform/graphics/cg/ImageSourceCG.cpp:
1428         (WebCore::ImageSource::clear):
1429         * platform/graphics/cg/PathCG.cpp:
1430         (WebCore::Path::boundingRect):
1431         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
1432         (WebCore):
1433         (WebCore::FontPlatformData::ctFont):
1434         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
1435         (WebCore::MediaPlayerPrivateGStreamerBase::supportsFullscreen):
1436         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
1437         * platform/graphics/mac/FontCacheMac.mm:
1438         (WebCore):
1439         (WebCore::fontCacheRegisteredFontsChangedNotificationCallback):
1440         (WebCore::FontCache::platformInit):
1441         * platform/graphics/mac/FontCustomPlatformData.cpp:
1442         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
1443         (WebCore::createFontCustomPlatformData):
1444         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1445         (WebCore::MediaPlayerPrivateQTKit::createQTMovie):
1446         (WebCore::MediaPlayerPrivateQTKit::supportsFullscreen):
1447         (WebCore::MediaPlayerPrivateQTKit::setClosedCaptionsVisible):
1448         (WebCore::MediaPlayerPrivateQTKit::cacheMovieScale):
1449         * platform/graphics/mac/SimpleFontDataMac.mm:
1450         (WebCore::SimpleFontData::platformInit):
1451         * platform/graphics/mac/WebLayer.h:
1452         * platform/mac/CursorMac.mm:
1453         (WebCore::Cursor::ensurePlatformCursor):
1454         * platform/mac/DisplaySleepDisabler.cpp:
1455         (WebCore::DisplaySleepDisabler::DisplaySleepDisabler):
1456         (WebCore):
1457         * platform/mac/DisplaySleepDisabler.h:
1458         (DisplaySleepDisabler):
1459         * platform/mac/EmptyProtocolDefinitions.h:
1460         * platform/mac/HTMLConverter.h:
1461         * platform/mac/HTMLConverter.mm:
1462         * platform/mac/PopupMenuMac.mm:
1463         (WebCore::PopupMenuMac::populate):
1464         * platform/mac/ScrollElasticityController.mm:
1465         (systemUptime):
1466         * platform/mac/SharedTimerMac.mm:
1467         (PowerObserver):
1468         (WebCore::PowerObserver::PowerObserver):
1469         (WebCore::PowerObserver::~PowerObserver):
1470         (WebCore::PowerObserver::didReceiveSystemPowerNotification):
1471         * platform/mac/SuddenTermination.mm:
1472         * platform/mac/WebCoreFullScreenWindow.mm:
1473         (-[WebCoreFullScreenWindow initWithContentRect:styleMask:backing:defer:]):
1474         * platform/mac/WebFontCache.mm:
1475         (+[WebFontCache getTraits:inFamily:]):
1476         (+[WebFontCache internalFontWithFamily:traits:weight:size:]):
1477         * platform/mac/WebVideoFullscreenController.mm:
1478         (SOFT_LINK_POINTER):
1479         (-[WebVideoFullscreenController updateMenuAndDockForFullscreen]):
1480         * platform/mac/WebVideoFullscreenHUDWindowController.mm:
1481         (createControlWithMediaUIControlType):
1482         (-[WebVideoFullscreenHUDWindowController windowDidLoad]):
1483         * platform/network/Credential.h:
1484         * platform/network/cf/DNSCFNet.cpp:
1485         (WebCore::DNSResolveQueue::platformProxyIsEnabledInSystemPreferences):
1486         * platform/network/cf/ProxyServerCFNet.cpp:
1487         (WebCore):
1488         (WebCore::proxyServersForURL):
1489         * platform/network/cf/SocketStreamHandleCFNet.cpp:
1490         (WebCore::SocketStreamHandle::chooseProxy):
1491         * platform/network/mac/AuthenticationMac.mm:
1492         (WebCore):
1493         * platform/network/mac/WebCoreURLResponse.mm:
1494         (WebCore::adjustMIMETypeIfNecessary):
1495         * platform/text/TextChecking.h:
1496         (WebCore):
1497
1498 2013-04-04  Ryosuke Niwa  <rniwa@webkit.org>
1499
1500         Qt build fix attempt after r147684.
1501
1502         * html/canvas/CanvasRenderingContext.cpp:
1503
1504 2013-04-04  Benjamin Poulain  <bpoulain@apple.com>
1505
1506         alternateFamilyName should return a null, not an empty value
1507         https://bugs.webkit.org/show_bug.cgi?id=113987
1508
1509         Reviewed by Anders Carlsson.
1510
1511         The string object corresponding semantically to "no-value" is
1512         a null string, not an empty string.
1513
1514         Fix alternateFamilyName() accordingly.
1515
1516         * platform/graphics/FontCache.cpp:
1517         (WebCore::alternateFamilyName):
1518         (WebCore::FontCache::getCachedFontPlatformData):
1519
1520 2013-04-04  Anders Carlsson  <andersca@apple.com>
1521
1522         Work around a bug in the bindings generation script.
1523
1524         * WebCore.xcodeproj/project.pbxproj:
1525
1526 2013-04-04  Dean Jackson  <dino@apple.com>
1527
1528         Don't dispatch delayed click if snapshotted plugin was triggered by a click on the label
1529         https://bugs.webkit.org/show_bug.cgi?id=113982
1530
1531         Reviewed by Tim Horton.
1532
1533         We regressed the way clicks were sent on to restarted plugins when we moved to a
1534         Shadow Root - we were always sending the click. We should only send the click
1535         on if the user clicked on the main plugin content, and not send it when you
1536         click directly on the label.
1537
1538         * html/HTMLPlugInImageElement.cpp:
1539         (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Keep a reference to the container and label.
1540         (WebCore::HTMLPlugInImageElement::partOfSnapshotLabel): New method that detects if a Node was part
1541             of the snapshot label.
1542         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Only record the event if you should forward it on.
1543         * html/HTMLPlugInImageElement.h:
1544         (HTMLPlugInImageElement): New parameter to userDidClickSnapshot and member variables for shadow content.
1545         * rendering/RenderSnapshottedPlugIn.cpp:
1546         (WebCore::RenderSnapshottedPlugIn::handleEvent): Ask the plugin if the clicked target was the snapshot label.
1547
1548 2013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1549
1550         Unreviewed EFL build fix.
1551
1552         Add missing include for FloatRect.h.
1553
1554         * platform/efl/PlatformScreenEfl.cpp:
1555
1556 2013-04-04  Tim Horton  <timothy_horton@apple.com>
1557
1558         Unreviewed build fix.
1559
1560         * platform/graphics/GlyphPageTreeNode.cpp:
1561
1562 2013-04-04  Anders Carlsson  <andersca@apple.com>
1563
1564         Another build fix.
1565
1566         * platform/graphics/FontCache.cpp:
1567         * platform/graphics/SimpleFontData.cpp:
1568
1569 2013-04-04  Anders Carlsson  <andersca@apple.com>
1570
1571         Fix build.
1572
1573         * WebCore.xcodeproj/project.pbxproj:
1574
1575 2013-04-04  Geoffrey Garen  <ggaren@apple.com>
1576
1577         Removed empty files from the build
1578         https://bugs.webkit.org/show_bug.cgi?id=113978
1579
1580         Reviewed by Anders Carlsson.
1581
1582         Anders made a list of all the empty files that are slowing down the Mac
1583         build, and I grepped them away.
1584
1585         * WebCore.xcodeproj/project.pbxproj:
1586
1587 2013-04-04  Anders Carlsson  <andersca@apple.com>
1588
1589         Prune unneeded header #includes
1590         https://bugs.webkit.org/show_bug.cgi?id=113973
1591
1592         Reviewed by Geoffrey Garen.
1593
1594         Reduce the amount of headers included by other headers by:
1595         - Moving implicit and explicit constructors and destructors into .cpp files so member variable constructors/destructors
1596           don't have to be declared.
1597         - Move CachedResourceClient subclasses out into separate headers so that their respective CachedResource subclasses don't
1598           have to be included by the classes that derive from those subclasses.
1599         - Remove headers that were never needed in the first place.
1600
1601         * Modules/webaudio/AudioContext.h:
1602         * WebCore.xcodeproj/project.pbxproj:
1603         * bindings/js/JSDOMWindowCustom.cpp:
1604         * css/CSSFontFaceSource.h:
1605         * html/canvas/CanvasPattern.cpp:
1606         (WebCore::CanvasPattern::create):
1607         (WebCore::CanvasPattern::CanvasPattern):
1608         (WebCore::CanvasPattern::~CanvasPattern):
1609         * html/canvas/CanvasPattern.h:
1610         (WebCore::CanvasPattern::pattern):
1611         (WebCore::CanvasPattern::originClean):
1612         * html/parser/HTMLScriptRunner.h:
1613         * loader/ImageLoader.h:
1614         * loader/LinkLoader.h:
1615         * loader/TextTrackLoader.h:
1616         * loader/cache/CachedFont.cpp:
1617         * loader/cache/CachedFont.h:
1618         * loader/cache/CachedFontClient.h: Added.
1619         (WebCore::CachedFontClient::~CachedFontClient):
1620         (WebCore::CachedFontClient::expectedType):
1621         (WebCore::CachedFontClient::resourceClientType):
1622         (WebCore::CachedFontClient::fontLoaded):
1623         * loader/cache/CachedResourceHandle.cpp:
1624         (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
1625         (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
1626         (WebCore::CachedResourceHandleBase::setResource):
1627         * loader/cache/CachedResourceHandle.h:
1628         (WebCore::CachedResourceHandleBase::get):
1629         (WebCore::CachedResourceHandleBase::operator!):
1630         (WebCore::CachedResourceHandleBase::operator UnspecifiedBoolType):
1631         (WebCore::CachedResourceHandleBase::operator=):
1632         (WebCore::CachedResourceHandle::CachedResourceHandle):
1633         (WebCore::CachedResourceHandle::get):
1634         (WebCore::CachedResourceHandle::operator->):
1635         (WebCore::CachedResourceHandle::operator=):
1636         (WebCore::CachedResourceHandle::operator==):
1637         (WebCore::CachedResourceHandle::operator!=):
1638         (WebCore::operator==):
1639         (WebCore::operator!=):
1640         * loader/cache/CachedSVGDocument.h:
1641         * loader/cache/CachedSVGDocumentReference.h:
1642         * loader/cache/CachedSVGDocumentClient.h: Added.
1643         (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
1644         (WebCore::CachedSVGDocumentClient::expectedType):
1645         (WebCore::CachedSVGDocumentClient::resourceClientType):
1646         * loader/cache/CachedStyleSheetClient.h:
1647         * platform/PlatformScreen.h:
1648         * platform/audio/HRTFElevation.cpp:
1649         * platform/audio/HRTFKernel.cpp:
1650         (WebCore::HRTFKernel::fftSize):
1651         * platform/audio/HRTFKernel.h:
1652         * platform/audio/ReverbConvolverStage.cpp:
1653         (WebCore::ReverbConvolverStage::~ReverbConvolverStage):
1654         * platform/audio/ReverbConvolverStage.h:
1655         * platform/graphics/FontPlatformData.h:
1656         * platform/graphics/GraphicsContext3D.h:
1657         * platform/graphics/Path.cpp:
1658         * platform/graphics/Path.h:
1659         * platform/graphics/Pattern.cpp:
1660         * platform/graphics/Pattern.h:
1661         * platform/graphics/filters/FilterOperation.cpp:
1662         (WebCore::ReferenceFilterOperation::ReferenceFilterOperation):
1663         (WebCore::ReferenceFilterOperation::~ReferenceFilterOperation):
1664         (WebCore::ReferenceFilterOperation::setCachedSVGDocumentReference):
1665         * platform/graphics/filters/FilterOperation.h:
1666         * platform/graphics/transforms/AffineTransform.h:
1667         * plugins/DOMMimeType.h:
1668         * rendering/RenderLayerFilterInfo.h:
1669         * rendering/style/StyleCachedShader.h:
1670         * svg/SVGFEImageElement.h:
1671         * svg/SVGFontFaceUriElement.h:
1672         * svg/SVGUseElement.h:
1673         * xml/parser/XMLDocumentParser.h:
1674
1675 2013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1676
1677         [Cairo] Stop passing raw pointers to BitmapImage::create()
1678         https://bugs.webkit.org/show_bug.cgi?id=113945
1679
1680         Reviewed by Martin Robinson.
1681
1682         BitmapImage::create() was updated in r147643 to take a PassRefPtr<cairo_surface_t>
1683         in argument instead of a cairo_surface_t*. This patch updates several call sites
1684         so that they now pass in a smart pointer instead of a raw one to avoid silent
1685         converting from cairo_surface_t* to PassRefPtr<cairo_surface_t>.
1686
1687         No new tests, no behavior change.
1688
1689         * platform/graphics/cairo/ImageBufferCairo.cpp:
1690         (WebCore::ImageBufferData::ImageBufferData): Use RefPtr to m_surface to avoid manual
1691         memory handling.
1692         (WebCore::ImageBuffer::ImageBuffer):
1693         (WebCore::ImageBuffer::~ImageBuffer):
1694         (WebCore::ImageBuffer::copyImage):
1695         (WebCore::ImageBuffer::clip):
1696         (WebCore::ImageBuffer::platformTransformColorSpace):
1697         (WebCore::getImageData):
1698         (WebCore::ImageBuffer::putByteArray):
1699         * platform/graphics/cairo/ImageBufferDataCairo.h:
1700         (ImageBufferData):
1701         * platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
1702         (ImageGStreamer::ImageGStreamer):
1703         * platform/graphics/gtk/ImageBufferGtk.cpp:
1704         (WebCore::ImageBuffer::toDataURL):
1705
1706 2013-04-04  Simon Fraser  <simon.fraser@apple.com>
1707
1708         Page content missing when flipping from an empty layer to a tiled layer
1709         https://bugs.webkit.org/show_bug.cgi?id=113977
1710         <rdar://problem/13444219>
1711
1712         Reviewed by Tim Horton.
1713         
1714         Some articles on USA Today were missing content on load, when a large GraphicsLayer
1715         which did not draw content needed to draw content (and become tiled in the process).
1716         
1717         The bug was an ordering dependency in GraphicsLayerCA::commitLayerChangesBeforeSublayers().
1718         swapFromOrToTiledLayer() sets some dirty flags, but for some properties which have
1719         already been committed in the current flush cycle.
1720         
1721         Fix by moving the swapFromOrToTiledLayer() to the top of the commit, which is
1722         safe since it only consults GraphicsLayer properties, not CALayer properties.
1723
1724         Test: compositing/tiling/empty-to-tiled.html
1725
1726         * platform/graphics/ca/GraphicsLayerCA.cpp:
1727         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
1728         (WebCore::GraphicsLayerCA::updateGeometry):
1729         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
1730         (WebCore::GraphicsLayerCA::updateContentsScale):
1731         * platform/graphics/ca/GraphicsLayerCA.h:
1732         (GraphicsLayerCA):
1733
1734 2013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1735
1736         Regression(r147639) Causes assertion hit in HashTable
1737         https://bugs.webkit.org/show_bug.cgi?id=113954
1738
1739         Reviewed by Benjamin Poulain.
1740
1741         Lookup the key in the hash table again after the recursive call to
1742         getCachedFontPlatformData() as it may have altered the hash map and
1743         invalidated the previous iterator we had.
1744
1745         No new tests, covered by existing tests.
1746
1747         * platform/graphics/FontCache.cpp:
1748         (WebCore::FontCache::getCachedFontPlatformData):
1749
1750 2013-04-04  Eric Carlson  <eric.carlson@apple.com>
1751
1752         [Mac] add "automatic" text track menu item
1753         https://bugs.webkit.org/show_bug.cgi?id=113822
1754
1755         Reviewed by Jer Noble.
1756
1757         No new tests, existing tests updated.
1758
1759         * English.lproj/Localizable.strings: Add new track menu item.
1760
1761         * html/HTMLMediaElement.cpp: 
1762         (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_captionDisplayMode.
1763         (WebCore::HTMLMediaElement::finishParsingChildren): LoadTextTrackResource -> ConfigureTextTracks.
1764         (WebCore::HTMLMediaElement::scheduleDelayedAction): Ditto.
1765         (WebCore::HTMLMediaElement::loadTimerFired): Ditto.
1766         (WebCore::HTMLMediaElement::loadInternal): Ditto. Flag the caption menu as invalid so it will
1767             be rebuilt again.
1768         (WebCore::HTMLMediaElement::mediaPlayerDidAddTrack): LoadTextTrackResource -> ConfigureTextTracks.
1769         (WebCore::HTMLMediaElement::didAddTrack): Ditto.
1770         (WebCore::HTMLMediaElement::configureTextTrackGroup): Deal with new track display modes.
1771         (WebCore::HTMLMediaElement::HTMLMediaElement::hasClosedCaptions): Minor cleanup.
1772         (WebCore::HTMLMediaElement::configureTextTrackGroup): Add some logging.
1773         (WebCore::HTMLMediaElement::configureTextTracks): Call updateActiveTextTrackCues so cue display
1774             is updated.
1775         (WebCore::HTMLMediaElement::captionPreferencesChanged): Deal with new track display modes.
1776         (WebCore::HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured): Add some logging.
1777         * html/HTMLMediaElement.h: Ditto.
1778
1779         * html/shadow/MediaControlElementTypes.cpp: Remove trackIndexAttributeName and trackListIndexForElement.
1780         * html/shadow/MediaControlElementTypes.h: Ditto.
1781
1782         * html/shadow/MediaControlElements.cpp:
1783         (WebCore::MediaControlClosedCaptionsTrackListElement::defaultEventHandler): Don't use track index,
1784             everything we need is in the track<->element map now.
1785         (WebCore::MediaControlClosedCaptionsTrackListElement::updateDisplay): Ditto. Always rebuild the 
1786             track list because clear the map each time the menu goes away because it refs every track.
1787         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu): Don't set the track
1788             index attribute on the menu items, just use the map.
1789         * html/shadow/MediaControlElements.h:
1790
1791         * html/shadow/MediaControlsApple.cpp:
1792         (WebCore::MediaControlsApple::changedClosedCaptionsVisibility): resetTrackListMenu is gone.
1793         (WebCore::MediaControlsApple::reset): Ditto.
1794         (WebCore::MediaControlsApple::closedCaptionTracksChanged): Ditto.
1795
1796         * html/track/TextTrack.cpp:
1797         (WebCore::TextTrack::captionMenuOffItem): New, static TextTrack used for the menu "Off" item.
1798         (WebCore::TextTrack::captionMenuAutomaticItem): New, static TextTrack used for the menu "Automatic" item.
1799         * html/track/TextTrack.h:
1800
1801         * page/CaptionUserPreferences.cpp:
1802         (WebCore::CaptionUserPreferences::shouldShowCaptions): Removed, we use captionDisplayMode instead.
1803         (WebCore::CaptionUserPreferences::captionDisplayMode): New.
1804         (WebCore::CaptionUserPreferences::setCaptionDisplayMode): New.
1805         (WebCore::CaptionUserPreferences::setPreferredLanguage): Make the parameter a const reference.
1806         (WebCore::CaptionUserPreferences::textTrackSelectionScore): Return 0 if the user doesn't want
1807             captions or subtitles.
1808         (WebCore::CaptionUserPreferences::textTrackLanguageSelectionScore): Take language as a parameter
1809             instead of assuming that it is always the entire language list.
1810         * page/CaptionUserPreferences.h:
1811
1812         * page/CaptionUserPreferencesMac.h:
1813         * page/CaptionUserPreferencesMac.mm:
1814         (WebCore::CaptionUserPreferencesMac::shouldShowCaptions): Removed, we use captionDisplayMode instead.
1815         (WebCore::CaptionUserPreferencesMac::captionDisplayMode): New.
1816         (WebCore::CaptionUserPreferencesMac::setCaptionDisplayMode): New.
1817         (WebCore::CaptionUserPreferencesMac::setPreferredLanguage): Make the parameter a const reference.
1818         (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): Deal with "Automatic" mode.
1819             captions or subtitles.
1820         (WebCore::CaptionUserPreferences::textTrackLanguageSelectionScore): Take language as a parameter
1821             instead of assuming that it is always the entire language list.
1822         (WebCore::CaptionUserPreferencesMac::sortedTrackListForMenu): Insert "Off" and "Automatic" items.
1823
1824         * platform/LocalizedStrings.cpp:
1825         (WebCore::textTrackAutomaticMenuItemText): New.
1826         * platform/LocalizedStrings.h:
1827
1828         * platform/graphics/MediaPlayer.cpp:
1829         (WebCore::MediaPlayer::languageOfPrimaryAudioTrack): New.
1830         * platform/graphics/MediaPlayer.h:
1831         * platform/graphics/MediaPlayerPrivate.h:
1832
1833         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1834         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1835         (WebCore::MediaPlayerPrivateAVFoundationObjC::languageOfPrimaryAudioTrack): Return the language
1836             of the main audio track.
1837
1838 2013-04-04  Alexey Proskuryakov  <ap@apple.com>
1839
1840         REGRESSION (r146580): Assertion using SecurityOrigin::create, URL string is not valid
1841         https://bugs.webkit.org/show_bug.cgi?id=113961
1842
1843         Reviewed by Geoff Garen.
1844
1845         * page/SecurityOrigin.cpp:
1846         (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
1847         (WebCore::SecurityOrigin::create):
1848         Don't use ParsedURLString, because http://host:80/ is normalized to http://host/,
1849         so it's not a parsed URL string.
1850
1851 2013-04-04  Sheriff Bot  <webkit.review.bot@gmail.com>
1852
1853         Unreviewed, rolling out r147662.
1854         http://trac.webkit.org/changeset/147662
1855         https://bugs.webkit.org/show_bug.cgi?id=113955
1856
1857         The change r147662  breaks fast/regions/fixed-pos-elem-in-
1858         region.html (Requested by benjaminp on #webkit).
1859
1860         * rendering/RenderBlockLineLayout.cpp:
1861         (WebCore::inlineLogicalWidth):
1862
1863 2013-04-04  Tim Horton  <timothy_horton@apple.com>
1864
1865         REGRESSION (r147373): Auto-sizing doesn't always respect minimum width changes
1866         https://bugs.webkit.org/show_bug.cgi?id=113947
1867         <rdar://problem/13579024>
1868
1869         Reviewed by Anders Carlsson.
1870
1871         Reset the FrameView size to the minimum auto-sizing size
1872         before performing auto-sizing. We were already resetting the height,
1873         but not the width, instead using the FrameView's current width.
1874
1875         This means that changing the minimum width without also manually
1876         resizing the FrameView will never see the width change.
1877
1878         Auto-sizing tests are not working on Mac yet.
1879
1880         * page/FrameView.cpp:
1881         (WebCore::FrameView::autoSizeIfEnabled):
1882
1883 2013-04-04  Martin Robinson  <mrobinson@igalia.com>
1884
1885         [GTK] Remove the gyp build
1886         https://bugs.webkit.org/show_bug.cgi?id=113942
1887
1888         Reviewed by Gustavo Noronha Silva.
1889
1890         * WebCore.gyp/WebCoreGTK.gyp: Removed.
1891
1892 2013-04-04  Robert Hogan  <robert@webkit.org>
1893
1894         REGRESSION(r142152): Text wraps in menu
1895         https://bugs.webkit.org/show_bug.cgi?id=113706
1896
1897         Reviewed by David Hyatt.
1898
1899         * rendering/RenderBlockLineLayout.cpp:
1900         (WebCore::inlineLogicalWidth): Empty inline elements add their inline border/padding/margin to the width of the
1901         line when we iterate through them in nextLineBreak(), so no need to add them again here when climbing back up
1902         from their first child looking for border/padding/margin to add. (An empty inline element can have floating children.)
1903
1904 2013-04-04  Ryosuke Niwa  <rniwa@webkit.org>
1905
1906         Changing typing style with font size delta overrides the previous font size delta
1907         https://bugs.webkit.org/show_bug.cgi?id=113923
1908
1909         Reviewed by Andreas Kling.
1910
1911         The bug was caused by a new font size delta value overriding the old one as
1912         opposed to being added to the old value. Fixed that in overrideWithStyle.
1913
1914         Also made overrideWithStyle share code with mergeStyle since there is already
1915         code to merge text-decorations there.
1916
1917         Unfortunately, adding a test for this fix proved to be hard because we don't
1918         expose any API to directly set typing style.
1919
1920         * editing/EditingStyle.cpp:
1921         (WebCore::EditingStyle::overrideWithStyle): Use mergeStyle.
1922         (WebCore::EditingStyle::mergeStyle): Add font size deltas as opposed to simply
1923         using the new value.
1924
1925 2013-04-04  Chris Fleizach  <cfleizach@apple.com>
1926
1927         AX:File upload button has wrong label
1928         https://bugs.webkit.org/show_bug.cgi?id=113924
1929
1930         Reviewed by David Kilzer.
1931
1932         Allow the label and value to be returned for file upload controls on iOS.
1933         Due to the different AX APIs, we can expose a bit more information on iOS.
1934
1935         Test: platform/iphone-simulator/accessibility/file-upload-button.html
1936
1937         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1938         (-[WebAccessibilityObjectWrapper stringValueShouldBeUsedInLabel]):
1939         (-[WebAccessibilityObjectWrapper fileUploadButtonReturnsValueInTitle]):
1940         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
1941         (-[WebAccessibilityObjectWrapperBase fileUploadButtonReturnsValueInTitle]):
1942         (-[WebAccessibilityObjectWrapperBase accessibilityTitle]):
1943
1944 2013-04-03  Dean Jackson  <dino@apple.com>
1945
1946         Expose settings to disable plugin snapshotting autostart and primary detection
1947         https://bugs.webkit.org/show_bug.cgi?id=113918
1948
1949         Reviewed by Tim Horton.
1950
1951         Three new settings:
1952         - snapshotAllPlugIns: Do not apply any heuristics - immediately snapshot a plugin.
1953         - primaryPlugInSnapshotDetectionEnabled: Toggle snapshotting the "main" plugin in the page.
1954         - autostartOriginPlugInSnapshottingEnabled: Toggle snapshotting based on URL origins.
1955
1956         * html/HTMLPlugInImageElement.cpp:
1957         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Don't tell the host that we've started
1958             if the autostartOriginPlugInSnapshottingEnabled is false.
1959         (WebCore::HTMLPlugInImageElement::setIsPrimarySnapshottedPlugIn): Don't restart a primary
1960             plugin if primaryPlugInSnapshotDetectionEnabled is false.
1961         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Snapshot immediately if
1962             snapshotAllPlugIns is true. Also, don't test for autostart if
1963             autostartOriginPlugInSnapshottingEnabled is false.
1964         * page/Settings.in: Three new settings values.
1965
1966 2013-04-04  Carlos Garcia Campos  <cgarcia@igalia.com>
1967
1968         [BlackBerry] Remove skia code from PluginViewBlackBerry
1969         https://bugs.webkit.org/show_bug.cgi?id=113936
1970
1971         Reviewed by Rob Buis.
1972
1973         Skia is not used anymore by the BlackBerry port.
1974
1975         * plugins/blackberry/PluginViewBlackBerry.cpp:
1976         (WebCore::PluginView::paint):
1977
1978 2013-04-04  Emil A Eklund  <eae@chromium.org>
1979
1980         Change RenderFrameSet::computeEdgeInfo to use m-rows/m_cols directly
1981         https://bugs.webkit.org/show_bug.cgi?id=113825
1982
1983         Reviewed by Eric Seidel.
1984
1985         Tests: fast/frames/invalid-frameset-compute-edge.html
1986
1987         * rendering/RenderFrameSet.cpp:
1988         (WebCore::RenderFrameSet::computeEdgeInfo):
1989
1990 2013-04-04  ChangSeok Oh  <changseok.oh@collabora.com>
1991
1992         [GTK][AC] Invalid clear ClutterContent of ClutterActor
1993         https://bugs.webkit.org/show_bug.cgi?id=113758
1994
1995         Reviewed by Gustavo Noronha Silva.
1996
1997         Using clutter_actor_set_content(actor, 0) is better to clear ClutterContent of ClutterActor.
1998         Actually the ClutterContent referece is cleared in the API if we set 0.
1999
2000         No new tests since no functionality changed.
2001
2002         * platform/graphics/clutter/GraphicsLayerActor.cpp:
2003         (graphicsLayerActorUpdateTexture):
2004
2005 2013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2006
2007         [Cairo] Fix canvas drawing of SVG-based patterns and remove NativeImageCairo
2008         https://bugs.webkit.org/show_bug.cgi?id=113929
2009
2010         Reviewed by Martin Robinson.
2011
2012         Make (Pass)NativeImagePtr typedefs to (Pass)RefPtr<cairo_surface_t> instead
2013         of NativeImageCairo*. Now that we switch to using smart pointers,
2014         NativeImageCairo is removed as it made no sense to make it ref counted when
2015         it merely held a single ref counted member.
2016
2017         Now that Cairo is using smart pointers for (Pass)NativeImagePtr, this patch
2018         also enables the implementation of SVGImage::nativeImageForCurrentFrame()
2019         for USE(CAIRO) as well. This effectively fixes canvas drawing of SVG-based
2020         patterns for Cairo-based ports.
2021
2022         No new tests, covered by svg/canvas/canvas-pattern-svg.html.
2023
2024         * GNUmakefile.list.am: Remove NativeImageCairo.* for GTK.
2025
2026         * PlatformEfl.cmake: Remove NativeImageCairo.* for EFL.
2027
2028         * WebCore.vcproj/WebCore.vcproj:
2029         * WebCore.vcxproj/WebCore.vcxproj:
2030         * WebCore.vcxproj/WebCore.vcxproj.filters:
2031         Remove NativeImageCairo.* for Win.
2032
2033         * platform/graphics/BitmapImage.cpp:
2034         (WebCore::FrameData::reportMemoryUsage):
2035         Update MemoryClassInfo::addRawBuffer() call now that m_frame is a RefPtr
2036         for USE(CAIRO).
2037
2038         * platform/graphics/BitmapImage.h:
2039         (BitmapImage):
2040         Remove factory method taking a cairo_surface_t* in argument. This is useless
2041         now that PassNativeImagePtr is a typedef to PassRefPtr<cairo_surface_t> and
2042         there is already a factory method taking a PassNativeImagePtr in argument.
2043
2044         * platform/graphics/NativeImagePtr.h:
2045         (WebCore):
2046         Make PassNativeImagePtr a typedef to PassRefPtr<cairo_surface_t> and
2047         NativeImagePtr a typedef to RefPtr<cairo_surface_t>, instead of
2048         NativeImageCairo*. Moving to smart pointers is needed to enable implementation
2049         of SVGImage::nativeImageForCurrentFrame() for Cairo.
2050
2051         * platform/graphics/cairo/BitmapImageCairo.cpp:
2052         (WebCore::BitmapImage::BitmapImage):
2053         (WebCore::BitmapImage::draw):
2054         (WebCore::BitmapImage::checkForSolidColor):
2055         (WebCore::FrameData::clear):
2056         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
2057         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
2058         * platform/graphics/cairo/ImageCairo.cpp:
2059         (WebCore::Image::drawPattern):
2060         Update Cairo graphics code to reflect the (Pass)NativeImagePtr type changes.
2061
2062         * platform/graphics/cairo/NativeImageCairo.cpp: Removed.
2063         * platform/graphics/cairo/NativeImageCairo.h: Removed.
2064
2065         * platform/graphics/cairo/PatternCairo.cpp:
2066         (WebCore::Pattern::createPlatformPattern):
2067         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
2068         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
2069         * platform/graphics/efl/ImageEfl.cpp:
2070         (WebCore::BitmapImage::getEvasObject):
2071         * platform/graphics/gtk/ImageGtk.cpp:
2072         (WebCore::BitmapImage::getGdkPixbuf):
2073         * platform/graphics/texmap/TextureMapperGL.cpp:
2074         (WebCore::BitmapTextureGL::updateContents):
2075         * platform/graphics/win/ImageCairoWin.cpp:
2076         (WebCore::BitmapImage::create):
2077         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
2078         * platform/gtk/DragImageGtk.cpp:
2079         (WebCore::createDragImageFromImage):
2080         * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
2081         (WebCore::ImageFrame::asNewNativeImage):
2082         * platform/win/DragImageCairoWin.cpp:
2083         (WebCore::createDragImageFromImage):
2084         Update code to reflect the (Pass)NativeImagePtr type changes.
2085
2086         * svg/graphics/SVGImage.cpp:
2087         (WebCore):
2088         * svg/graphics/SVGImage.h:
2089         Enable SVGImage::nativeImageForCurrentFrame() for USE(CAIRO).
2090
2091 2013-04-04  Ed Bartosh  <bartosh@gmail.com>
2092
2093         [EFL] --minimal build fails with 'error: unused variable'
2094         https://bugs.webkit.org/show_bug.cgi?id=113903
2095
2096         Reviewed by Gustavo Noronha Silva.
2097
2098         Moved variable definition under #if where it's used
2099         * platform/network/soup/ResourceHandleSoup.cpp:
2100         (WebCore::restartedCallback):
2101
2102 2013-04-04  Andreas Kling  <akling@apple.com>
2103
2104         Global FontPlatformData cache should use OwnPtr.
2105         <http://webkit.org/b/111939>
2106
2107         Reviewed by Anders Carlsson.
2108
2109         Let the global FontPlatformData use OwnPtr instead of raw pointers + deleteAllValues().
2110
2111         * platform/graphics/FontCache.cpp:
2112         (WebCore::FontCache::getCachedFontPlatformData):
2113         (WebCore::FontCache::purgeInactiveFontData):
2114         (WebCore::FontCache::invalidate):
2115
2116             Tweaked code for OwnPtr. Also made getCachedFontPlatformData() do one hash lookup
2117             instead of two.
2118
2119         * platform/graphics/FontCache.h:
2120         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
2121         (WebCore::FontCache::createFontPlatformData):
2122         * platform/graphics/chromium/FontCacheAndroid.cpp:
2123         (WebCore::FontCache::createFontPlatformData):
2124         * platform/graphics/freetype/FontCacheFreeType.cpp:
2125         (WebCore::FontCache::createFontPlatformData):
2126         * platform/graphics/mac/FontCacheMac.mm:
2127         (WebCore::FontCache::createFontPlatformData):
2128         * platform/graphics/qt/FontCacheQt.cpp:
2129         (WebCore::FontCache::createFontPlatformData):
2130         * platform/graphics/skia/FontCacheSkia.cpp:
2131         (WebCore::FontCache::createFontPlatformData):
2132         * platform/graphics/win/FontCacheWin.cpp:
2133         (WebCore::FontCache::createFontPlatformData):
2134         * platform/graphics/wince/FontCacheWinCE.cpp:
2135         (WebCore::FontCache::createFontPlatformData):
2136         * platform/graphics/wx/FontCacheWx.cpp:
2137         (WebCore::FontCache::createFontPlatformData):
2138
2139             FontCache::createFontPlatformData() now returns a PassOwnPtr.
2140
2141 2013-04-04  Andreas Kling  <akling@apple.com>
2142
2143         Render images with low-quality scaling while FrameView is being resized.
2144         <http://webkit.org/b/113764>
2145         <rdar://problem/13555154>
2146
2147         Reviewed by Antti Koivisto.
2148
2149         Have ImageQualityController ask the renderer's containing FrameView if it's currently in live
2150         resize, and if so, paint all images with low-quality scaling. A high-quality repaint will happen
2151         ~0.5 sec after live resizing ends, piggybacking on the same mechanism we use to do JS-animated
2152         resizing with low-quality scaling.
2153
2154         This reduces CPU time spent generating new tiles during live window resize, especially on Retina
2155         systems where a lot of upscaling happens on legacy web content.
2156
2157         * rendering/RenderBoxModelObject.cpp:
2158         (ImageQualityController):
2159
2160             Added an m_liveResizeOptimizationIsActive flag that tracks whether the ImageQualityController
2161             is painting everything in low quality due to live window resize. It gets unset when the HQ
2162             repaint timer fires and everything has been repainted properly.
2163
2164         (WebCore::ImageQualityController::highQualityRepaintTimerFired):
2165
2166             When the HQ repaint timer fires, check if the renderer's containing FrameView is still in
2167             live resize, and if so, abort HQ repaint for now and reschedule the timer.
2168
2169         (WebCore::ImageQualityController::ImageQualityController):
2170         (WebCore::ImageQualityController::objectDestroyed):
2171         (WebCore::ImageQualityController::shouldPaintAtLowQuality):
2172
2173 2013-04-04  Seokju Kwon  <seokju.kwon@gmail.com>
2174
2175         Web Inspector: fix closure compiler warnings in IndexedDBModel.js
2176         https://bugs.webkit.org/show_bug.cgi?id=113926
2177
2178         Reviewed by Alexander Pavlov.
2179
2180         No new tests: no change in behaviour.
2181
2182         * inspector/front-end/IndexedDBModel.js:
2183
2184 2013-04-04  Xidorn Quan  <quanxunzhen@gmail.com>
2185
2186         REGRESSION (r145870): Can't get insertion point to appear in some input and textareas on wordpress
2187         https://bugs.webkit.org/show_bug.cgi?id=113591
2188
2189         Reviewed by Simon Fraser.
2190
2191         Since a child node could overflow its ancestor, it is not wise to check
2192         one's radii boundary before checking whether the given point intersects
2193         its children. This patch moves the related code down to fix the bug.
2194
2195         Test: fast/borders/border-radius-child.html
2196
2197         * rendering/RenderBlock.cpp:
2198         (WebCore::RenderBlock::nodeAtPoint):
2199
2200 2013-04-04  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2201
2202         [GStreamer] Virtual modifier for MediaPlayer::simulateAudioInterruption must go
2203         https://bugs.webkit.org/show_bug.cgi?id=113851
2204
2205         Reviewed by Eric Carlson.
2206
2207         * platform/graphics/MediaPlayer.h:
2208         (MediaPlayer): Removed virtual modifier to
2209         simulateAudioInterruption.
2210
2211 2013-04-04  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2212
2213         [Qt] Support -webkit-font-smoothing
2214         https://bugs.webkit.org/show_bug.cgi?id=106009
2215
2216         Reviewed by Jocelyn Turcotte.
2217
2218         Remove false dependency on Qt 5.1 for the -webkit-font-smoothing property.
2219         For now we are still keeping the dependency on Font::shouldUseSmoothing().
2220
2221         * platform/graphics/qt/FontPlatformDataQt.cpp:
2222         (WebCore::FontPlatformData::FontPlatformData):
2223
2224 2013-04-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2225
2226         Regression(r142765) Broke Custom SVG cursors and SVG canvas drawing for Chromium
2227         https://bugs.webkit.org/show_bug.cgi?id=113420
2228
2229         Reviewed by Stephen White.
2230
2231         Introduce a PassNativeImagePtr typedef that is used in place of NativeImagePtr
2232         for method arguments and return values. This is needed as Skia now maps
2233         NativeImagePtr to RefPtr<NativeImageSkia> and PassNativeImagePtr to
2234         PassRefPtr<NativeImageSkia>. We move towards ref counted smart pointers so that
2235         SVGImage::nativeImageForCurrentFrame() can transfer ownership of the native
2236         image to the caller if needed (e.g. for SVGImage).
2237
2238         Provide nativeImageForCurrentFrame() implementation for SVGImage. SVGImage no
2239         longer holds the native image internally, to save memory. It is therefore created
2240         when nativeImageForCurrentFrame() is called and ownership is passed to the
2241         caller. For now, this implementation is only enabled for Skia as others are using
2242         raw pointers for PassNativeImagePtr.
2243
2244         Test: svg/canvas/canvas-pattern-svg.html
2245
2246         * loader/icon/IconDatabase.cpp:
2247         (WebCore::IconDatabase::synchronousNativeIconForPageURL):
2248         Return a PassNativeImagePtr instead of NativeImagePtr.
2249
2250         * loader/icon/IconDatabase.h:
2251         (IconDatabase):
2252         * loader/icon/IconDatabaseBase.h:
2253         (WebCore::IconDatabaseBase::synchronousNativeIconForPageURL):
2254         Return a PassNativeImagePtr instead of NativeImagePtr.
2255
2256         * platform/chromium/DragImageChromiumSkia.cpp:
2257         (WebCore::createDragImageFromImage):
2258         Store return value of nativeImageForCurrentFrame() in a RefPtr instead of a raw
2259         one.
2260
2261         * platform/chromium/PasteboardChromium.cpp:
2262         (WebCore::Pasteboard::writeImage):
2263         Store return value of nativeImageForCurrentFrame() in a RefPtr<NativeImageSkia>
2264         instead of a NativeImagePtr. While these are equivalent, the former is more
2265         readable in Skia-specific code.
2266
2267         * platform/graphics/BitmapImage.cpp:
2268         (WebCore::BitmapImage::frameAtIndex):
2269         Return a PassNativeImagePtr instead of a NativeImagePtr.
2270
2271         (WebCore::BitmapImage::nativeImageForCurrentFrame):
2272         Return a PassNativeImagePtr instead of a NativeImagePtr.
2273
2274         * platform/graphics/BitmapImage.h:
2275         (WebCore::BitmapImage::create):
2276         Take a PassNativeImagePtr in argument instead of a NativeImagePtr.
2277
2278         (BitmapImage): Ditto.
2279
2280         * platform/graphics/GraphicsContext.h:
2281         (GraphicsContext): Ditto.
2282
2283         * platform/graphics/GraphicsContext3D.h:
2284         (ImageExtractor):
2285         Keep NativeImageSkia in a RefPtr instead of OwnPtr, now that it is refcounted.
2286
2287         * platform/graphics/Image.h:
2288         (WebCore::Image::nativeImageForCurrentFrame):
2289         Return a PassNativeImagePtr instead of a NativeImagePtr.
2290
2291         * platform/graphics/ImageBuffer.h:
2292         (ImageBuffer):
2293         Have copyNativeImage() return a PassNativeImagePtr instead of a NativeImagePtr.
2294
2295         * platform/graphics/ImageSource.cpp:
2296         (WebCore::ImageSource::createFrameAtIndex):
2297         Return a PassNativeImagePtr instead of a NativeImagePtr.
2298
2299         * platform/graphics/ImageSource.h:
2300         Have createFrameAtIndex() return a PassNativeImagePtr instead of a NativeImagePtr.
2301
2302         * platform/graphics/NativeImagePtr.h:
2303         Map NativeImagePtr to a RefPtr<NativeImageSkia> instead of NativeImageSkia* for Skia.
2304         Introduce new PassNativeImagePtr that maps to PassRefPtr<NativeImageSkia> for Skia
2305         and is equivalent to NativeImagePtr for other ports. We now use smart pointers for
2306         the native image so that SVGImage::nativeImageForCurrentFrame() can pass ownership
2307         of the native image to the caller, unlike BitmapImage::nativeImageForCurrentFrame().
2308
2309         * platform/graphics/blackberry/ImageBlackBerry.cpp:
2310         (WebCore::ImageFrame::asNewNativeImage):
2311         Return a PassNativeImagePtr instead of a NativeImagePtr.
2312
2313         (WebCore::BitmapImage::BitmapImage):
2314         Take a PassNativeImagePtr instead of a NativeImagePtr in argument.
2315
2316         * platform/graphics/cg/GraphicsContextCG.cpp:
2317         (WebCore::GraphicsContext::drawNativeImage): Ditto.
2318
2319         * platform/graphics/cg/ImageBufferCG.cpp:
2320         (WebCore::ImageBuffer::copyNativeImage):
2321         Take a PassNativeImagePtr instead of a NativeImagePtr in argument.
2322
2323         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
2324         (WebCore::GraphicsLayerChromium::setContentsToImage):
2325         Store return value of nativeImageForCurrentFrame() in a RefPtr instead of a raw one.
2326
2327         * platform/graphics/filters/skia/FEBlendSkia.cpp:
2328         (WebCore::FEBlend::platformApplySkia): Ditto.
2329
2330         * platform/graphics/filters/skia/FEColorMatrixSkia.cpp:
2331         (WebCore::FEColorMatrix::platformApplySkia): Ditto.
2332
2333         * platform/graphics/filters/skia/FEComponentTransferSkia.cpp:
2334         (WebCore::FEComponentTransfer::platformApplySkia): Ditto.
2335
2336         * platform/graphics/filters/skia/FEDisplacementMapSkia.cpp:
2337         (WebCore::FEDisplacementMap::platformApplySkia): Ditto.
2338
2339         * platform/graphics/filters/skia/FELightingSkia.cpp:
2340         (WebCore::FELighting::platformApplySkia): Ditto.
2341
2342         * platform/graphics/qt/ImageDecoderQt.cpp:
2343         (WebCore::ImageFrame::asNewNativeImage):
2344         Return a PassNativeImagePtr instead of a NativeImagePtr.
2345
2346         * platform/graphics/qt/StillImageQt.cpp:
2347         (WebCore::StillImage::nativeImageForCurrentFrame):
2348         Return a PassNativeImagePtr instead of a NativeImagePtr.
2349
2350         * platform/graphics/qt/StillImageQt.h:
2351         (StillImage): Ditto.
2352
2353         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2354         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
2355         No longer need to adopt the return value of asNewNativeImage() now
2356         that it returns a PassRefPtr instead of a raw one.
2357
2358         * platform/graphics/skia/ImageBufferSkia.cpp:
2359         (WebCore::ImageBuffer::copyImage):
2360         (WebCore::ImageBuffer::draw):
2361         (WebCore::ImageBuffer::drawPattern):
2362         Call NativeImageSkia::create() factory method now that the constructor
2363         is private.
2364
2365         * platform/graphics/skia/ImageSkia.cpp:
2366         (WebCore::FrameData::clear):
2367         Just call clear() on m_frame instead of explicitely deleting it now
2368         that it is a RefPtr.
2369
2370         (WebCore::Image::drawPattern):
2371         Store return value of nativeImageForCurrentFrame() in a RefPtr instead
2372         of a raw one.
2373
2374         (WebCore::BitmapImage::BitmapImage):
2375         (WebCore::BitmapImage::checkForSolidColor):
2376         Store return value of frameAtIndex() in a RefPtr instead of a raw one.
2377
2378         (WebCore::BitmapImage::draw):
2379         Store return value of nativeImageForCurrentFrame() in a RefPtr instead
2380         of a raw one.
2381
2382         * platform/graphics/skia/NativeImageSkia.cpp:
2383         Add new constructor taking all members in argument. This is used for
2384         cloning a NativeImageSkia object.
2385
2386         (WebCore::NativeImageSkia::NativeImageSkia):
2387         (WebCore::NativeImageSkia::deepSkBitmapCopy):
2388         Add convenience function to make a deep copy of a SkBitmap.
2389
2390         * platform/graphics/skia/NativeImageSkia.h:
2391         (WebCore):
2392         (WebCore::NativeImageSkia::create):
2393         (NativeImageSkia):
2394         Make NativeImageSkia subclass RefCounted. Make the constructor private
2395         and add a factory method instead that returns a PassRefPtr.
2396
2397         (WebCore::NativeImageSkia::clone):
2398         Add a clone() method now that NativeImageSkia is refcounted and is no
2399         longer copyable.
2400
2401         * platform/graphics/skia/PatternSkia.cpp:
2402         (WebCore::Pattern::platformPattern):
2403         Store return value of nativeImageForCurrentFrame() in a RefPtr instead
2404         of a raw one.
2405
2406         * platform/graphics/wince/ImageWinCE.cpp:
2407         (WebCore::ImageFrame::asNewNativeImage):
2408         Return a PassNativeImagePtr instead of a NativeImagePtr.
2409
2410         * platform/image-decoders/ImageDecoder.h:
2411         (ImageFrame):
2412         Have asNewNativeImage() return a PassNativeImagePtr instead of a
2413         NativeImagePtr.
2414
2415         (WebCore::ImageFrame::getAddr):
2416         (WebCore::ImageFrame::setSkBitmap):
2417         (WebCore::ImageFrame::getSkBitmap):
2418         (WebCore::ImageFrame::width):
2419         (WebCore::ImageFrame::height):
2420         Update use of m_bitmap now that it is a pointer type and call
2421         NativeImageSkia::create() to construct a NativeImageSkia object now
2422         that the constructor is private.
2423
2424         * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
2425         (WebCore::ImageFrame::asNewNativeImage):
2426         Return a PassNativeImagePtr instead of a NativeImagePtr.
2427
2428         * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp:
2429         (WebCore::ImageFrame::asNewNativeImage): Ditto.
2430
2431         * platform/image-decoders/skia/ImageDecoderSkia.cpp:
2432         (WebCore::ImageFrame::ImageFrame):
2433         Initialize m_bitmap in the constructor now that it is a pointer
2434         type and we need NativeImageSkia's default constructor to be
2435         called.
2436
2437         (WebCore::ImageFrame::operator=):
2438         Call NativeImageSkia's new clone() method to copy m_bitmap as
2439         NativeImageSkia is now RefCounted and no longer copyable.
2440
2441         (WebCore::ImageFrame::clearPixelData):
2442         (WebCore::ImageFrame::zeroFillPixelData):
2443         (WebCore::ImageFrame::copyBitmapData):
2444         (WebCore::ImageFrame::setSize):
2445         Update use of m_bitmap now that it is a pointer type.
2446
2447         (WebCore::ImageFrame::asNewNativeImage):
2448         Return a PassNativeImagePtr instead of a NativeImagePtr.
2449         Call NativeImageSkia's clone method now that it is no longer
2450         copyable.
2451
2452         (WebCore::ImageFrame::setHasAlpha):
2453         (WebCore::ImageFrame::setStatus):
2454         Update use of m_bitmap now that it is a pointer type.
2455
2456         * platform/image-decoders/wx/ImageDecoderWx.cpp:
2457         (WebCore::ImageFrame::asNewNativeImage):
2458         Return a PassNativeImagePtr instead of a NativeImagePtr.
2459
2460         * svg/graphics/SVGImage.cpp:
2461         (WebCore):
2462         (WebCore::SVGImage::nativeImageForCurrentFrame):
2463         Add implementation of nativeImageForCurrentFrame() for SVGImage as
2464         it is needed for SVG custom cursor support and Canvas drawing of
2465         patterns containing SVG images. As SVGImage no longer keep the
2466         native image internally to save memory, the implementation creates
2467         the native image when nativeImageForCurrentFrame() and passes
2468         its ownership to the caller.
2469
2470         * svg/graphics/SVGImage.h:
2471         Override Image::nativeImageForCurrentFrame() and remove dummy
2472         implementation of frameAtIndex() as it is not needed / used.
2473
2474         * svg/graphics/SVGImageForContainer.cpp:
2475         (WebCore::SVGImageForContainer::nativeImageForCurrentFrame):
2476         Add implementation of nativeImageForCurrentFrame() which merely
2477         forwards the call to the Image being contained.
2478
2479         * svg/graphics/SVGImageForContainer.h:
2480         Override Image::nativeImageForCurrentFrame().
2481
2482 2013-04-04  Andrei Bucur  <abucur@adobe.com>
2483
2484         [CSSRegions] RenderFlowThread::renderRegionForLine should use a faster search method
2485         https://bugs.webkit.org/show_bug.cgi?id=66921
2486
2487         Reviewed by David Hyatt.
2488
2489         The RenderFlowThread::regionAtBlockOffset() function is a hot path for the code using
2490         flow threads because it translates from block coordinates to regions.
2491         Currently the method is O(n), using a linear search through the regions chain to find the
2492         region where a block offset lands.
2493         The patch improves this search by using an interval tree (PODIntervalTree). Before a flow
2494         thread is laid out, each region is updated to hold the size of the portion of the flow it
2495         will receive. This information is gathered inside the interval tree and used to speedup the
2496         search in RenderFlowThread::regionAtBlockOffset(). The algorithm uses a custom adapter
2497         simplified for looking up offsets inside the interval tree.
2498         For now, the interval tree is cleared every time the flow thread portions list is updated.
2499         The implementation can be improved but induces some cmplexity as we'd have to manually manage
2500         the life cycle of the tree's nodes. The performance gains are good enough as is to make this
2501         only optional.
2502         Another important change is now the flow thread portion rectangles will not overflow when
2503         using auto-height regions (or very large regions). The maximum size of the flow is set to
2504         LayoutUnit::max()/2. Any region forcing a greater size will be capped so the thread
2505         won't overflow.
2506
2507         Performance test results:
2508         /Layout/RegionsAuto:Time            ms 699.95   181.20  74.11% Better
2509         /Layout/RegionsAutoMaxHeight:Time   ms 2083.00  308.55  85.19% Better
2510         /Layout/RegionsFixed:Time           ms 726.10   223.65  69.20% Better
2511         /Layout/RegionsFixedShort:Time      ms 869.60   288.25  66.85% Better
2512
2513         Tests: See PerformanceTests/Layout/Regions*
2514
2515         * rendering/RenderFlowThread.cpp:
2516         (WebCore::RenderFlowThread::regionAtBlockOffset):
2517         (WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
2518         (WebCore::RenderFlowThread::RegionSearchAdapter::collectIfNeeded):
2519         (WebCore):
2520         * rendering/RenderFlowThread.h:
2521         (WebCore):
2522
2523 2013-04-04  Seokju Kwon  <seokju.kwon@gmail.com>
2524
2525         [Qt] WebSocket errors should be logged to console
2526         https://bugs.webkit.org/show_bug.cgi?id=113842
2527
2528         Reviewed by Jocelyn Turcotte.
2529
2530         Pass the reason of a failure to SocketStreamError instance
2531         and notify it via SocketStreamHandleClient::didFailSocketStream().
2532
2533         Test : http/tests/inspector/console-websocket-error.html
2534
2535         * platform/network/qt/SocketStreamError.h:
2536         (WebCore::SocketStreamError::SocketStreamError):
2537         * platform/network/qt/SocketStreamHandleQt.cpp:
2538         (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
2539         (WebCore::SocketStreamHandlePrivate::socketErrorCallback):
2540
2541 2013-04-04  Ed Bartosh  <bartosh@gmail.com>
2542
2543         [ATK] build fails when accessibility is turned off
2544         https://bugs.webkit.org/show_bug.cgi?id=113699
2545
2546         Reviewed by Gyuyoung Kim.
2547
2548         * editing/atk/FrameSelectionAtk.cpp: Wrapped accessibility code in #if HAVE(ACCESSIBILITY)
2549
2550 2013-04-04  Seokju Kwon  <seokju.kwon@gmail.com>
2551
2552         Web Inspector: fix closure compiler warnings in the profiler code HeapSnapshotDataGrids.js
2553         https://bugs.webkit.org/show_bug.cgi?id=113922
2554
2555         Reviewed by Yury Semikhatsky.
2556
2557         No new tests: no change in behaviour.
2558
2559         * inspector/front-end/HeapSnapshotDataGrids.js:
2560
2561 2013-04-03  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2562
2563         [EFL] Add a decoration image to search input field
2564         https://bugs.webkit.org/show_bug.cgi?id=113552
2565
2566         Reviewed by Laszlo Gombos.
2567
2568         Though EFL port has a decoration image for search input field, we didn't use it.
2569         Start to show it.
2570
2571         Tests: fast/forms/search-cancel-button-style-sharing.html
2572                fast/forms/search-rtl.html
2573                fast/css/input-search-padding.html
2574                fast/css/text-input-with-webkit-border-radius.html
2575                fast/css/text-overflow-input.html
2576                fast/forms/box-shadow-override.html
2577                fast/forms/control-restrict-line-height.html
2578                fast/forms/input-appearance-height.html
2579                fast/forms/placeholder-position.html
2580                fast/forms/placeholder-pseudo-style.html
2581                fast/forms/search-styled.html
2582                fast/forms/search-vertical-alignment.html
2583                fast/forms/searchfield-heights.html
2584                fast/repaint/search-field-cancel.html 
2585                fast/replaced/width100percent-searchfield.html
2586
2587         * platform/efl/RenderThemeEfl.cpp:
2588         (WebCore):
2589         (WebCore::RenderThemeEfl::supportsDataListUI):
2590         (WebCore::RenderThemeEfl::adjustSearchFieldDecorationStyle):
2591
2592 2013-04-03  Kent Tamura  <tkent@chromium.org>
2593
2594         Input value/placeholder is not redrawn when the input height grows
2595         https://bugs.webkit.org/show_bug.cgi?id=113845
2596
2597         Reviewed by Ojan Vafai.
2598
2599         Test: fast/forms/text/text-height-grow.html
2600
2601         * rendering/RenderTextControlSingleLine.cpp:
2602         (WebCore::RenderTextControlSingleLine::styleDidChange):
2603         We need relayout of the inner text element.
2604
2605 2013-04-03  Shawn Singh  <shawnsingh@chromium.org>
2606
2607         Add comment to clarify isStackingContext() in RenderLayer.h
2608         https://bugs.webkit.org/show_bug.cgi?id=113909
2609
2610         Reviewed by Simon Fraser.
2611
2612         It was not obvious how the implementation of isStackingContext()
2613         was correct, a comment is appropriate here for anyone who reads
2614         this code in the future.
2615
2616         Just a change in comment, no test needed.
2617
2618         * rendering/RenderLayer.h:
2619
2620 2013-04-03  Hans Muller  <hmuller@adobe.com>
2621
2622         [CSS Exclusions] Removed ExclusionShape dead code
2623         https://bugs.webkit.org/show_bug.cgi?id=113904
2624
2625         Reviewed by Dirk Schulze.
2626
2627         No new tests, just removing dead code.
2628
2629         * rendering/ExclusionShape.cpp:
2630         (WebCore::ExclusionShape::createExclusionShape):
2631         * rendering/ExclusionShape.h:
2632         (ExclusionShape):
2633
2634 2013-04-03  Otto Derek Cheung  <otcheung@rim.com>
2635
2636         [BlackBerry] Switch MediaPlayerPrivateBlackBerry.cpp's timer to use CLOCK_MONOTONIC
2637         https://bugs.webkit.org/show_bug.cgi?id=113900
2638
2639         Reviewed by Rob Buis.
2640         Internally Reviewed by Jeff Rogers.
2641
2642         Timers should use CLOCK_MONOTONIC to avoid undesirable effects when
2643         the user switches the system time.
2644
2645         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
2646         (WebCore::MediaPlayerPrivate::drawBufferingAnimation):
2647
2648 2013-04-03  Dave Michael  <dmichael@chromium.org>
2649
2650         Unable to focus on embedded plugins such as Flash via javascript focus()
2651         https://bugs.webkit.org/show_bug.cgi?id=32292
2652
2653         Reviewed by Ryosuke Niwa.
2654
2655         Make embed, object, and applet elements support focus() when
2656         appropriate. Prior to this patch, javascript focus() had no effect on
2657         embed, object, or applet elements unless tabindex or contenteditable is
2658         set. With this patch, focus() will focus the element unless the plugin
2659         content has failed to load (i.e., we are showing either fallback content
2660         or an unavailable plugin indicator).
2661
2662         Test: plugins/focus.html
2663               java/focus.html
2664
2665         * html/HTMLPlugInElement.cpp:
2666         (WebCore::HTMLPlugInElement::supportsFocus):
2667         Overridden to return true except when the plugin content has failed to load.
2668         * html/HTMLPlugInElement.h:
2669         (WebCore::HTMLPlugInElement::useFallbackContent):
2670         Moved up from HTMLPlugInImageElement.
2671         (WebCore::HTMLPlugInElement::supportsFocus):
2672         * html/HTMLPlugInElement.h:
2673         (WebCore::HTMLPlugInImageElement::useFallbackContent):
2674         Removed. Now the implementation is inherited from HTMLPlugInElement.
2675
2676 2013-04-03  Glenn Adams  <glenn@skynav.com>
2677
2678         Element boundaries prevent Japanese line break opportunities
2679         https://bugs.webkit.org/show_bug.cgi?id=105692
2680
2681         Reviewed by Darin Adler.
2682
2683         Introduce use of prior context when using text break iterators
2684         in non-ASCII path through nextBreakablePosition(). This enables
2685         the use of line break context across an element boundary for
2686         the non-ASCII path. Use of this context with the ASCII path was
2687         enabled by https://bugs.webkit.org/show_bug.cgi?id=17427.
2688
2689         Performance tests of line layout and html5 parsing show that this
2690         patch provides an approximately 4% improvement with Japanese and
2691         no statistically significant regression with ASCII path. Parsing
2692         (html5-full-render) performance is not significantly affected.
2693
2694         Tests: fast/text/line-break-between-text-nodes-cjk.html
2695                fast/text/line-break-between-text-nodes-latin1.html
2696
2697         Expect rebaselines will be needed due to different line breaks:
2698                fast/text/international/003.html
2699                fast/text/international/text-combine-image-test-expected.html
2700                fast/text/writing-mode/Kusa-Makura-background-canvas.html
2701
2702         * platform/text/TextBreakIterator.cpp:
2703         (WebCore::acquireLineBreakIterator): Pass prior context to non-ICU path.
2704         * platform/text/TextBreakIterator.h:
2705         (WebCore::LazyLineBreakIterator::priorContextLength): Added.
2706         (WebCore::LazyLineBreakIterator::get): Pass prior context to ICU path.
2707         (WebCore::LazyLineBreakIterator::resetStringAndReleaseIterator): Editorial.
2708         * platform/text/TextBreakIteratorICU.cpp:
2709         Use prior context from line break iterators. Requires
2710         adding new UTF16 (UChar*) text provider and reimplementing
2711         Latin1 (LChar*) text provider. Implementation is optimized
2712         by using generic functionality that applies to both string
2713         sources.
2714         (WebCore::textPinIndex): Added.
2715         (WebCore::textNativeLength): Added.
2716         (WebCore::textFixPointer): Added.
2717         (WebCore::textClone): Added.
2718         (WebCore::textExtract): Added.
2719         (WebCore::textClose): Added.
2720         (WebCore::textGetContext): Added.
2721         (WebCore::textLatin1GetCurrentContext): Added.
2722         (WebCore::textLatin1MoveInPrimaryContext): Added.
2723         (WebCore::textLatin1SwitchToPrimaryContext): Added.
2724         (WebCore::textLatin1MoveInPriorContext): Added.
2725         (WebCore::textLatin1SwitchToPriorContext): Added.
2726         (WebCore::textInChunkOrOutOfRange): Added.
2727         (WebCore::textLatin1Access): Added.
2728         (WebCore::textInit): Added.
2729         (WebCore::textOpenLatin1): Added.
2730         (WebCore::textUTF16GetCurrentContext): Added.
2731         (WebCore::textUTF16MoveInPrimaryContext): Added.
2732         (WebCore::textUTF16SwitchToPrimaryContext): Added.
2733         (WebCore::textUTF16MoveInPriorContext): Added.
2734         (WebCore::textUTF16SwitchToPriorContext): Added.
2735         (WebCore::textUTF16Access): Added.
2736         (WebCore::textOpenUTF16): Added.
2737         (WebCore::acquireLineBreakIterator): Use new text providers with prior context.
2738         * platform/text/wchar/TextBreakIteratorWchar.cpp:
2739         (WebCore::acquireLineBreakIterator): Pass prior context to non-ICU path.
2740         * rendering/break_lines.cpp:
2741         (WebCore::nextBreakablePosition): Use prior context in ICU path.
2742
2743 2013-04-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2744
2745         [Chromium] Bad cast from BitmapImageSingleFrameSkia to BitmapImage
2746         https://bugs.webkit.org/show_bug.cgi?id=113492
2747
2748         Reviewed by Stephen White.
2749
2750         Remove BitmapImageSingleFrameSkia and have ImageBufferSkia construct
2751         BitmapImage objects instead via an intermediate NativeImageSkia.
2752
2753         No new tests, covered by existing tests.
2754
2755         * WebCore.gypi:
2756         * platform/graphics/filters/skia/FEGaussianBlurSkia.cpp: Remove
2757         include for BitmapImageSingleFrameSkia.h header.
2758         * platform/graphics/skia/BitmapImageSingleFrameSkia.cpp: Removed.
2759         * platform/graphics/skia/BitmapImageSingleFrameSkia.h: Removed.
2760         * platform/graphics/skia/ImageBufferSkia.cpp: Construct BitmapImage
2761         objects instead of BitmapImageSingleFrameSkia ones.
2762         (WebCore::ImageBuffer::copyImage):
2763         (WebCore::drawNeedsCopy):
2764         (WebCore::ImageBuffer::draw):
2765         (WebCore::ImageBuffer::drawPattern):
2766         * platform/graphics/skia/ImageSkia.cpp:
2767         (WebCore::BitmapImage::BitmapImage): Implement BitmapImage constructor
2768         that takes an NativeImageSkia* in argument.
2769         (WebCore):
2770         (WebCore::BitmapImage::draw): Remove m_source.initialized() check as
2771         this will return false for BitmapImage objects constructed from a
2772         NativeImageSkia, due to the lack of decoder.
2773         * platform/graphics/skia/NativeImageSkia.cpp:
2774         (WebCore::NativeImageSkia::NativeImageSkia): Add parameter to the
2775         NativeImageSkia constructor so that the caller can request a deep copy
2776         instead of a shallow one. This is needed by the ImageBuffer.
2777         * platform/graphics/skia/NativeImageSkia.h:
2778         * platform/image-decoders/ImageDecoder.h:
2779         (WebCore::ImageFrame::setSkBitmap):
2780
2781 2013-04-03  David Vest  <davve@opera.com>
2782
2783         ASSERTION FAILED: resultAnimationElement->m_animatedType
2784         https://bugs.webkit.org/show_bug.cgi?id=93528
2785
2786         Reviewed by Philip Rogers.
2787
2788         When the order of animation elements change within an animation
2789         group, we can't assume that the resultElement is the same as it
2790         was when the animation was frozen. Make sure to reset the
2791         animation type for the resultElement before updating the
2792         animation.
2793
2794         Test: svg/animations/animation-dependency-crash.html
2795
2796         * svg/animation/SVGSMILElement.cpp:
2797         (WebCore::SVGSMILElement::progress):
2798
2799 2013-04-03  Timothy Hatcher  <timothy@apple.com>
2800
2801         Stop unconditionally enabling JavaScript execution when closing the Web Inspector.
2802
2803         https://webkit.org/b/113889
2804         rdar://problem/12281794
2805
2806         Reviewed by Joseph Pecoraro.
2807
2808         * inspector/InspectorPageAgent.cpp:
2809         (WebCore::InspectorPageAgent::InspectorPageAgent): Initialize m_originalScriptExecutionDisabled.
2810         (WebCore::InspectorPageAgent::enable): Populate m_originalScriptExecutionDisabled based on current setting.
2811         (WebCore::InspectorPageAgent::disable): Restore previous setting.
2812         * inspector/InspectorPageAgent.h:
2813         (InspectorPageAgent): Added m_originalScriptExecutionDisabled.
2814
2815 2013-04-03  Dean Jackson  <dino@apple.com>
2816
2817         Cross fade into restarted plugin
2818         https://bugs.webkit.org/show_bug.cgi?id=113868
2819
2820         Reviewed by Tim Horton.
2821
2822         Allow a restarted plugin to fade in over its snapshot, avoiding the abrupt
2823         flash of empty content. The WebCore part of this patch marks the plugin
2824         element as restarted, and draws the snapshot for a short amount of time
2825         as the plugin is restarting. After the plugin has reappeared, we stop drawing
2826         the snapshot.
2827
2828         There is a little bit of drive-by whitespace removal in HTMLPlugInImageElement.
2829
2830         * html/HTMLPlugInElement.h:
2831         (WebCore::HTMLPlugInElement::restartedPlugin): New method indicating if the plugin has been restarted.
2832         * html/HTMLPlugInImageElement.cpp:
2833         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): Initialise new timer and member variable.
2834         (WebCore::HTMLPlugInImageElement::setDisplayState): If we are moving into a restarting state, make sure
2835             to remember this and also start a timer so that we show the snapshot for while.
2836         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired): No need to draw the snapshot from here on.
2837         * html/HTMLPlugInImageElement.h:
2838         (HTMLPlugInImageElement): Member variable to remember if we've restarted.
2839         * rendering/RenderEmbeddedObject.cpp:
2840         (WebCore::RenderEmbeddedObject::paintContents): Only exit early from the paint if we're not a restarting
2841             plugin, otherwise we do want to draw the snapshot if there is one.
2842         * rendering/RenderLayerBacking.cpp:
2843         (WebCore::isRestartedPlugin): Detects a restarted plugin.
2844         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer): Don't become a simple container
2845             compositing layer if you're a restarted plugin.
2846
2847 2013-04-03  John Griggs  <jgriggs@blackberry.com>
2848
2849         [BlackBerry] Adjustments to media controls appearance.
2850         https://bugs.webkit.org/show_bug.cgi?id=113816
2851         https://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=316398
2852         https://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=316438
2853
2854         Updates to the BlackBerry media controls:
2855          - extend the timeline slider.
2856          - move the volume slider for audio elements up so it does not overlap the main panel.
2857          - upstream some other cosmetic changes to media controls that were not previously upstreamed.
2858
2859         Reviewed by Rob Buis.
2860
2861         BlackBerry-specific, cosmetic change; No new tests required.
2862
2863         * platform/blackberry/RenderThemeBlackBerry.cpp:
2864         (WebCore::RenderThemeBlackBerry::adjustMediaControlStyle):
2865         (WebCore::RenderThemeBlackBerry::paintMediaPlayButton):
2866         (WebCore::RenderThemeBlackBerry::paintMediaMuteButton):
2867         (WebCore::RenderThemeBlackBerry::paintMediaSliderTrack):
2868         (WebCore::RenderThemeBlackBerry::paintMediaVolumeSliderTrack):
2869         (WebCore::RenderThemeBlackBerry::paintMediaVolumeSliderThumb):
2870
2871 2013-04-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2872
2873         [Gstreamer] Use gst_buffer_extract() in copyGstreamerBuffersToAudioChannel()
2874         https://bugs.webkit.org/show_bug.cgi?id=113880
2875
2876         Reviewed by Philippe Normand.
2877
2878         copyGstreamerBuffersToAudioChannel() was mapping the GstBuffer content to memcpy
2879         it to the AudioChannel buffer. This patch leverages gst_buffer_extract() to
2880         simplify the code as it does exactly what we need: gst_buffer_map, memcpy,
2881         gst_buffer_unmap and error handling.
2882
2883         Also replace GstBuffer NULL check by an assertion as we already make sure they
2884         are not NULL before adding them to the list. Additionally, we now call
2885         audioChannel->mutableData() only once instead of once per iteration. It is
2886         a bit better as the getter does some work internally.
2887
2888         No new tests, no behavior change.
2889
2890         * platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:
2891         (WebCore::copyGstreamerBuffersToAudioChannel):
2892
2893 2013-04-03  Antoine Quint  <graouts@apple.com>
2894
2895         Web Inspector: DOM.highlightRect() and DOM.highlightQuad() should allow for page coordinates
2896         https://bugs.webkit.org/show_bug.cgi?id=113869
2897
2898         Add a new "usePageCoordinates" parameter to DOM.highlightRect() and DOM.highlightQuad()
2899         allowing to specify that the rect or quad to highlight should be converted to page
2900         coordinates instead of using the default viewport coordinates.
2901
2902         Reviewed by Timothy Hatcher.
2903
2904         * inspector/Inspector.json:
2905         * inspector/InspectorDOMAgent.cpp:
2906         (WebCore::InspectorDOMAgent::highlightRect):
2907         (WebCore::InspectorDOMAgent::highlightQuad):
2908         (WebCore::InspectorDOMAgent::innerHighlightQuad):
2909         Store the "usePageCoordinates" parameter obtained from the protocol calls onto the
2910         highlight configuration object so that it may be used within the InspectorOverlay.
2911
2912         * inspector/InspectorDOMAgent.h:
2913         (InspectorDOMAgent):
2914         * inspector/InspectorOverlay.cpp:
2915         (WebCore::InspectorOverlay::highlightQuad):
2916         Check the highlight configuration for the "usePageCoordinates" parameter and
2917         apply the inverse of the page's scroll offset to the quad if it's true.
2918
2919         * inspector/InspectorOverlay.h:
2920         (HighlightConfig):
2921         (WebCore::Highlight::setDataFromConfig):
2922         (Highlight):
2923
2924 2013-04-03  Kangil Han  <kangil.han@samsung.com>
2925
2926         Add omitted reference operator of VisiblePosition in AccessibilityObject
2927         https://bugs.webkit.org/show_bug.cgi?id=113879
2928
2929         Reviewed by Darin Adler.
2930
2931         Seems reference operator has been omitted in startOfStyleRange function, so add it.
2932
2933         * accessibility/AccessibilityObject.cpp:
2934         (WebCore::startOfStyleRange):
2935
2936 2013-04-03  Jessie Berlin  <jberlin@apple.com>
2937
2938         Update the localizable strings file.
2939
2940         Rubber-stamped by Michael Saboff.
2941
2942         * English.lproj/Localizable.strings:
2943
2944 2013-04-03  David Kilzer  <ddkilzer@apple.com>
2945
2946         BUILD FIX (r147493): Fix number of arguments to AudioDestinationIOS constructor
2947
2948         Fixes the following build failures:
2949
2950             Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp:84:25: error: no matching constructor for initialization of 'WebCore::AudioDestinationIOS'
2951                 return adoptPtr(new AudioDestinationIOS(callback, sampleRate));
2952                                     ^                   ~~~~~~~~~~~~~~~~~~~~
2953             In file included from Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp:36:
2954             Source/WebCore/platform/audio/ios/AudioDestinationIOS.h:44:5: note: candidate constructor not viable: requires 3 arguments, but 2 were provided
2955                 AudioDestinationIOS(AudioIOCallback&, unsigned numberOfOutputChannels, double sampleRate);
2956                 ^
2957             Source/WebCore/platform/audio/ios/AudioDestinationIOS.h:42:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
2958             class AudioDestinationIOS : public AudioDestination, public AudioSessionListener {
2959                   ^
2960             Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp:101:22: error: out-of-line definition of 'AudioDestinationIOS' does not match any declaration in 'WebCore::AudioDestinationIOS'
2961             AudioDestinationIOS::AudioDestinationIOS(AudioIOCallback& callback, double sampleRate)
2962                                  ^~~~~~~~~~~~~~~~~~~
2963             2 errors generated.
2964
2965         * platform/audio/ios/AudioDestinationIOS.h:
2966         (AudioDestinationIOS): Remove numberOfOutputChannels argument.
2967
2968 2013-04-03  David Kilzer  <ddkilzer@apple.com>
2969
2970         BUILD FIX (r147494): -[AVAudioSession setCategory:error:] takes NSError**
2971
2972         Fixes the following build failure:
2973
2974             Source/WebCore/platform/audio/ios/AudioSessionIOS.mm:151:71: error: cannot initialize a parameter of type 'NSError **' with an lvalue of type 'NSError *'
2975                 [[AVAudioSession sharedInstance] setCategory:categoryString error:error];
2976                                                                                   ^~~~~
2977
2978         * platform/audio/ios/AudioSessionIOS.mm:
2979         (WebCore::AudioSession::setCategory): Add '&' operator.
2980
2981 2013-04-03  Felipe Zimmerle  <felipe@zimmerle.org>
2982
2983         CSP blocks inline style when cloning a node
2984         https://bugs.webkit.org/show_bug.cgi?id=112270
2985
2986         Reviewed by Adam Barth.
2987
2988         Checks if the Element is being cloned, if so, the application of the
2989         style is allowed otherwise it relies on default permission mechanism.
2990
2991         Test: http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html
2992
2993         * dom/Element.cpp:
2994         (WebCore::Element::attributeChanged): Added parameter
2995         AttributeModificationReason to the method signature.
2996         (WebCore::Element::cloneAttributesFromElement): It is now calling 
2997         attributeChanged with AttributeModificationReason parameter. In this scope
2998         it is always set to ModifiedByCloning.
2999         (WebCode::Element::attributeChangedFromParserOrByCloning):
3000         Added parameter AttributeModificationReason.
3001         * dom/Element.h: Added AttributeModificationReason enum. Used to specify
3002         whenever an attribute was set by a cloned oject or directly.
3003         AttributeModificationReason added to attributeChanged with the default
3004         value set to ModifiedDirectly. 
3005         * dom/StyledElement.cpp: 
3006         (WebCore::StyledElement::attributeChanged): Added
3007         AttributeModificationReason to the method signature.
3008         (WebCore::StyledElement::styleAttributeChanged): Now it is checking the
3009         reason of the update, if the reason is ModifiedDirectly check CSP
3010         before set. If ModifiedByCloning set the attribute ignoring the CSP
3011         policy.
3012         * dom/StyledElement.h:
3013         (StyledElement): Added AttributeModificationReason parameter to the methods:
3014         attributeChanged and styleAttributeChanged, attributeChanged has
3015         ModifiedDirectly as default value.
3016         * svg/SVGElement.cpp: 
3017         (WebCore::SVGElement::attributeChanged): Added AttributeModificationReason
3018         parameter to the method signature.
3019         * svg/SVGElement.h: 
3020         (SVGElement): Added AttributeModificationReason parameter to the
3021         attributeChanged signature with the default value set to:
3022         ModifiedDirectly.
3023
3024 2013-04-03  Csaba Osztrogonác  <ossy@webkit.org>
3025
3026         Unreviewed 32bit buildfix after r147542.
3027
3028         * Modules/websockets/WebSocket.cpp:
3029         (WebCore::WebSocket::didReceiveBinaryData):
3030
3031 2013-04-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3032
3033         [Gstreamer] Avoid calls to g_slist_nth_data in webKitWebAudioSrcLoop()
3034         https://bugs.webkit.org/show_bug.cgi?id=113875
3035
3036         Reviewed by Philippe Normand.
3037
3038         webKitWebAudioSrcLoop() was iterating over 2 GSLists by using a counter and then
3039         calling g_slist_nth_data() to get the element of each GSList. This is inefficient
3040         because calling g_slist_nth_data() will iterate the GSList up until index 'n'.
3041
3042         This patch improves this by keeping pointers to the current element of each list
3043         while iterating, so that we can simply use g_slist_next() to iterate instead
3044         of g_slist_nth_data().
3045
3046         No new tests, no behavior change.
3047
3048         * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
3049         (webKitWebAudioSrcLoop):
3050
3051 2013-04-03  Keishi Hattori  <keishi@webkit.org>
3052
3053         Actions that require user gesture don't work in window.showModalDialog in Chromium
3054         https://bugs.webkit.org/show_bug.cgi?id=113777
3055
3056         Reviewed by Jochen Eisinger.
3057
3058         In Chromium the window for showModalDialog is not modal which causes the
3059         UserGestureIndicator to block actions in the sub window. We introduce a
3060         RAII that saves the UserGestureIndicator and state, then resets it before
3061         runModalDialog, and restore it when it's done.
3062
3063         No new tests. Can't cause user gesture inside modal dialog.
3064
3065         * dom/UserGestureIndicator.cpp:
3066         (WebCore::UserGestureIndicatorDisabler::UserGestureIndicatorDisabler): Saves and resets the topmost indicator and state.
3067         (WebCore):
3068         (WebCore::UserGestureIndicatorDisabler::~UserGestureIndicatorDisabler): Restores topmost indicator and state.
3069         * dom/UserGestureIndicator.h:
3070         (WebCore):
3071         (UserGestureIndicatorDisabler): RAII to temporarily disable UserGestureIndicator.
3072         (UserGestureIndicator): Allow access to UserGestureIndicatorDisabler.
3073         * page/DOMWindow.cpp:
3074         (WebCore::DOMWindow::showModalDialog): Disable UserGestureIndicator while runModalDialog.
3075
3076 2013-04-03  Zeno Albisser  <zeno@webkit.org>
3077
3078         [Qt] Fail gracefully if an OpenGL context could not be created.
3079         https://bugs.webkit.org/show_bug.cgi?id=113784
3080
3081         In case we fail to create or adopt a valid platform OpenGL context
3082         we do not want to provide a GraphicsContext3D instance.
3083         Otherwise we would crash as soon as the instance is being used.
3084
3085         Reviewed by Jocelyn Turcotte.
3086
3087         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3088         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
3089         (WebCore::GraphicsContext3D::GraphicsContext3D):
3090
3091 2013-04-03  ChangSeok Oh  <changseok.oh@collabora.com>
3092
3093         [GTK][AC] Implement matrix keyframe animations with clutter ac backend
3094         https://bugs.webkit.org/show_bug.cgi?id=110314
3095
3096         Reviewed by Gustavo Noronha Silva.
3097
3098         Clutter 1.12 doesn't support additive transform animations yet, So clutter ac backend
3099         uses matrix animations for the case. This patch follows changeset 143369, 143343
3100         to support matrix keyframe animations. I believe this change is easy if you understand
3101         above two changesets.
3102
3103         Covered by existing animation tests.
3104
3105         * platform/graphics/clutter/PlatformClutterAnimation.cpp:
3106         (WebCore::PlatformClutterAnimation::setValues):
3107         (WebCore::PlatformClutterAnimation::addClutterKeyframeTransitionForProperty):
3108         (WebCore):
3109         (WebCore::PlatformClutterAnimation::addTransformTransition):
3110         * platform/graphics/clutter/PlatformClutterAnimation.h:
3111         (PlatformClutterAnimation):
3112
3113 2013-04-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
3114
3115         Should close select popup when the element loses focus
3116         https://bugs.webkit.org/show_bug.cgi?id=113220
3117
3118         Reviewed by Kent Tamura.
3119
3120         Test: fast/forms/select-popup-closes-on-blur.html
3121
3122         * html/HTMLSelectElement.cpp:
3123         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): handle the blur event, closing
3124         the popup menu if any.
3125         * testing/Internals.cpp:
3126         (WebCore::Internals::isSelectPopupVisible): utility to query the select node renderer to
3127         find out whether the popup is open or closed.
3128         (WebCore):
3129         * testing/Internals.h: add the new method definition.
3130         * testing/Internals.idl: ditto.
3131
3132 2013-03-28  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3133
3134         [Qt] Switch ContextMenu implementation to CROSS_PLATFORM_CONTEXT_MENU
3135         https://bugs.webkit.org/show_bug.cgi?id=113535
3136
3137         Reviewed by Simon Hausmann.
3138
3139         Now Qt uses the CROSS_PLATFORM_CONTEXT_MENUS
3140         USE flag. This flag provides a full cross-platform
3141         representation of a ContextMenu and a ContextMenuItem.
3142         The embedder can then decide how to show this, so neither
3143         WebCore nor WebCore/platform need to know any platform
3144         specifics about menus.
3145
3146         No new tests, no behavior changes.
3147
3148         * Target.pri:
3149         * platform/ContextMenu.h:
3150         (ContextMenu):
3151         * platform/ContextMenuItem.h:
3152         * platform/qt/ContextMenuItemQt.cpp:
3153         (WebCore::ContextMenuItem::platformContextMenuItem):
3154         * platform/qt/ContextMenuQt.cpp:
3155         (WebCore::ContextMenu::ContextMenu):
3156         (WebCore::ContextMenu::getContextMenuItems):
3157         (WebCore::ContextMenu::createPlatformContextMenuFromItems):
3158         (WebCore::ContextMenu::platformContextMenu):
3159
3160 2013-04-03  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3161
3162         [Qt] Monospace font does not render in proper sizes
3163         https://bugs.webkit.org/show_bug.cgi?id=93263
3164
3165         Reviewed by Jocelyn Turcotte.
3166
3167         Remove this patch's artificial dependency on Qt 5.1.
3168
3169         * platform/graphics/qt/FontPlatformDataQt.cpp:
3170         (WebCore::FontPlatformData::FontPlatformData):
3171
3172 2013-04-03  Takeshi Yoshino  <tyoshino@chromium.org>
3173
3174         Refine LOG messages in WebSocket related components
3175         https://bugs.webkit.org/show_bug.cgi?id=113852
3176
3177         Reviewed by Kent Tamura.
3178
3179         Refine LOG messages by
3180         - Make them contain method names to ease identifying where the event occurred.
3181         - For consistency, make all messages print the pointer of the origin instance.
3182         - Quote UTF8 data in LOG messages.
3183         - For overloaded methods, add the type to clarify which one is run
3184
3185         * Modules/websockets/WebSocket.cpp:
3186         (WebCore::WebSocket::connect):
3187         (WebCore::WebSocket::send):
3188         (WebCore::WebSocket::close):
3189         (WebCore::WebSocket::contextDestroyed):
3190         (WebCore::WebSocket::didConnect):
3191         (WebCore::WebSocket::didReceiveMessage):
3192         (WebCore::WebSocket::didReceiveBinaryData):
3193         (WebCore::WebSocket::didReceiveMessageError):
3194         (WebCore::WebSocket::didUpdateBufferedAmount):
3195         (WebCore::WebSocket::didStartClosingHandshake):
3196         (WebCore::WebSocket::didClose):
3197         * Modules/websockets/WebSocketChannel.cpp:
3198         (WebCore::WebSocketChannel::connect):
3199         (WebCore::WebSocketChannel::subprotocol):
3200         (WebCore::WebSocketChannel::extensions):
3201         (WebCore::WebSocketChannel::send):
3202         (WebCore::WebSocketChannel::bufferedAmount):
3203         (WebCore::WebSocketChannel::close):
3204         (WebCore::WebSocketChannel::fail):
3205         (WebCore::WebSocketChannel::disconnect):
3206         (WebCore::WebSocketChannel::willOpenSocketStream):
3207         (WebCore::WebSocketChannel::didOpenSocketStream):
3208         (WebCore::WebSocketChannel::didCloseSocketStream):
3209         (WebCore::WebSocketChannel::didReceiveSocketStreamData):
3210         (WebCore::WebSocketChannel::didFailSocketStream):
3211         (WebCore::WebSocketChannel::didStartLoading):
3212         (WebCore::WebSocketChannel::didReceiveData):
3213         (WebCore::WebSocketChannel::didFinishLoading):
3214         (WebCore::WebSocketChannel::didFail):
3215         (WebCore::WebSocketChannel::appendToBuffer):
3216         (WebCore::WebSocketChannel::processBuffer):
3217         (WebCore::WebSocketChannel::startClosingHandshake):
3218         (WebCore::WebSocketChannel::closingTimerFired):
3219         * Modules/websockets/WebSocketDeflater.cpp:
3220         (WebCore::WebSocketDeflater::~WebSocketDeflater):
3221         (WebCore::WebSocketInflater::~WebSocketInflater):
3222         * Modules/websockets/WebSocketHandshake.cpp:
3223         (WebCore::WebSocketHandshake::readServerHandshake):
3224         * platform/network/chromium/SocketStreamHandle.cpp:
3225         (WebCore::SocketStreamHandleInternal::connect):
3226         (WebCore::SocketStreamHandleInternal::send):
3227         (WebCore::SocketStreamHandleInternal::close):
3228         (WebCore::SocketStreamHandleInternal::didOpenStream):
3229         (WebCore::SocketStreamHandleInternal::didSendData):
3230         (WebCore::SocketStreamHandleInternal::didReceiveData):
3231         (WebCore::SocketStreamHandleInternal::didClose):
3232         (WebCore::SocketStreamHandleInternal::didFail):
3233
3234 2013-04-03  Tor Arne Vestbø  <tor.arne.vestbo@digia.com>
3235
3236         [Qt] Update QMAKE_MAC_SDK check for Qt 5.1
3237
3238         Relies on QMAKE_MAC_SDK_VERSION set in features.prf
3239
3240         Reviewed by Simon Hausmann.
3241
3242         * WebCore.pri:
3243
3244 2013-04-03  Kristof Provost  <kristof@codepro.be>
3245
3246         [Qt] assignToHTMLImageElement no longer exists in Qt5
3247         https://bugs.webkit.org/show_bug.cgi?id=113639
3248
3249         Reviewed by Simon Hausmann.
3250
3251         No new tests: covered by ./Source/WebKit/qt/tests/hybridPixmap/test.html
3252
3253         * bridge/qt/qt_pixmapruntime.cpp:
3254         (JSC::Bindings::QtPixmapRuntime::getClassRef):
3255
3256 2013-04-03  Antoine Quint  <graouts@apple.com>
3257
3258         Web Inspector: crash in WebCore::InspectorLayerTreeAgent::buildObjectForLayer if a layer is created for an anonymous RenderObject (:first-letter)
3259         https://bugs.webkit.org/show_bug.cgi?id=113768
3260
3261         The InspectorLayerTreeAgent now knows how to deal with anonymous RenderObjects
3262         for the :first-letter and :first-line pseudo-elements.
3263
3264         Reviewed by Timothy Hatcher.
3265
3266         Test: inspector-protocol/layers/layers-anonymous.html
3267
3268         * inspector/Inspector.json:
3269         Change the Layer type in the LayerTree domain to have more accurate terminology
3270         (pseudo-element vs. pseudo-class) and a new optional isAnonymous flag for layers
3271         associated to anonymous RenderObjects.
3272
3273         * inspector/InspectorLayerTreeAgent.cpp:
3274         (WebCore::InspectorLayerTreeAgent::buildObjectForLayer):
3275         Check for anonymous RenderObjects and set the parent renderer's node as the node
3276         for this layer since anonymous renderers have the Document as their node and this
3277         would not be satisfactory to show in a front-end. We also check for anonymous
3278         RenderObjects for the :first-letter and :first-line pseudo-elements and set them
3279         in the pseudoElement property of the Layer object created such that a front-end
3280         could correctly identify what type of pseudo-element for the associated node
3281         yielded this layer.
3282
3283         (WebCore::InspectorLayerTreeAgent::idForNode):
3284         Here we fix the actual crash by first checking if the node provided is null and
3285         returning 0 if there's no such node. This ensures that any scenario where there
3286         is no node associated with the RenderObject simply informs of the front-end that
3287         no such node exists and we do not crash.
3288
3289 2013-04-03  Alexander Pavlov  <apavlov@chromium.org>
3290
3291         Web Inspector: [REGRESSION(r147117)][Elements] Copy/paste keyboard shortcuts broken in "Edit as HTML"
3292         https://bugs.webkit.org/show_bug.cgi?id=113798
3293
3294         Reviewed by Yury Semikhatsky.
3295
3296         Stop propagation of "copy" event from the multiline editor's
3297         CodeMirror host element so that it is not handled by
3298         WebInspector.documentCopy().
3299
3300         * inspector/front-end/UIUtils.js:
3301         (.consumeCopy):
3302         (.cleanUpAfterEditing):
3303         * inspector/front-end/inspector.js:
3304         (WebInspector.addMainEventListeners):
3305
3306 2013-04-03  Takashi Sakamoto  <tasak@google.com>
3307
3308         With borders of differing alpha, the corners become squared off
3309         https://bugs.webkit.org/show_bug.cgi?id=113744
3310
3311         Reviewed by Simon Fraser.
3312
3313         paintTranslucentBorderSides should pick up borders with common color
3314         in order: top, bottom, left and right (not top, right, bottom and
3315         left), because willBeOverdrawn depends on the assumption, borders are
3316         drawn in order: top, bottom, left and right.
3317
3318         Test: fast/borders/border-left-right-same-bottom-different-color.html
3319
3320         * rendering/RenderBoxModelObject.cpp:
3321         (WebCore::RenderBoxModelObject::paintTranslucentBorderSides):
3322
3323 2013-04-03  Mihnea Ovidenie  <mihnea@adobe.com>
3324
3325         [New Multicolumn]Remove assert in RenderMultiColumnFlowThread::createAnonymous
3326         https://bugs.webkit.org/show_bug.cgi?id=113855
3327
3328         Reviewed by Antti Koivisto.
3329
3330         Remove CSSRegions specific assert from new multicolumn implementation.
3331         No change in functionality, no new tests.
3332
3333         * rendering/RenderMultiColumnFlowThread.cpp:
3334         (WebCore::RenderMultiColumnFlowThread::createAnonymous):
3335
3336 2013-04-03  Mike West  <mkwst@chromium.org>
3337
3338         X-Frame-Options: Blocked frames should not inherit their parent's SecurityOrigin.
3339         https://bugs.webkit.org/show_bug.cgi?id=112903
3340
3341         Reviewed by Adam Barth.
3342
3343         This change brings WebKit in line with IE and Gecko's behavior, both of
3344         which treat the blocked frame as being cross-origin for the purposes of
3345         access checks ('[frame].contentWindow.location.href' is inaccessible,
3346         for example).
3347
3348         * dom/Document.cpp:
3349         (WebCore::Document::processHttpEquiv):
3350             Rather than redirecting to 'about:blank', redirect to a URL which
3351             does not inherit the SecurityOrigin of the parent.
3352         * loader/DocumentLoader.cpp:
3353         (WebCore::DocumentLoader::responseReceived):
3354             Before calling cancelMainResourceLoad, ensure that the frame's
3355             document is sandboxed into a unique origin so that it doesn't inherit
3356             the parent's SecurityOrigin.
3357
3358 2013-04-03  Mikhail Naganov  <mnaganov@chromium.org>
3359
3360         [Chromium] Implement target-densityDpi viewport property emulation
3361         https://bugs.webkit.org/show_bug.cgi?id=110835
3362
3363         The value is only used in the Chromium port, when the corresponding
3364         setting is enabled.
3365
3366         This is needed for supporting existing WebView-based applications
3367         that rely on this property.
3368
3369         Reviewed by Adam Barth.
3370
3371         * dom/ViewportArguments.cpp:
3372         (WebCore::findTargetDensityDPIValue):
3373         (WebCore):
3374         (WebCore::setViewportFeature):
3375         * dom/ViewportArguments.h:
3376         (WebCore::ViewportArguments::ViewportArguments):
3377         (ViewportArguments):
3378         (WebCore::ViewportArguments::operator==):
3379
3380 2013-04-03  Mike West  <mkwst@chromium.org>
3381
3382         Extract URL that doesn't inherit a parent's SecurityOrigin out into a constant.
3383         https://bugs.webkit.org/show_bug.cgi?id=113780
3384
3385         Reviewed by Jochen Eisinger.
3386
3387         We're scheduling navigations to 'data:text/html,' in XSSAuditor in
3388         order to end up on a page that doesn't inherit its parent's
3389         SecurityOrigin. We'll be reusing this mechainsm to solve
3390         http://wkbug.com/112903
3391
3392         This patch makes us more explicit about what we're doing and why.
3393         It doesn't change any behavior: XSSAuditor tests should still pass.
3394
3395         * html/parser/XSSAuditorDelegate.cpp:
3396         (WebCore::XSSAuditorDelegate::didBlockScript):
3397             Use SecurityOrigin::urlWithUniqueSecurityOrigin rather than a
3398             literal string to make our intentions clear.
3399         * page/SecurityOrigin.cpp:
3400         (WebCore::SecurityOrigin::urlWithUniqueSecurityOrigin):
3401         * page/SecurityOrigin.h:
3402             Add the new static method.
3403
3404 2013-04-02  Chris Fleizach  <cfleizach@apple.com>
3405
3406         clean up static casts in WebAccessibilityObjectWrapperMac.mm to methods like toAccessibilityList()
3407         https://bugs.webkit.org/show_bug.cgi?id=113828
3408
3409         Reviewed by Tim Horton.
3410
3411         static_cast changed to toAccessibilityList().
3412
3413         * accessibility/AccessibilityList.h:
3414         (WebCore::toAccessibilityList):
3415         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3416         (-[WebAccessibilityObjectWrapper subrole]):
3417         (-[WebAccessibilityObjectWrapper roleDescription]):
3418
3419 2013-04-02  Sheriff Bot  <webkit.review.bot@gmail.com>
3420
3421         Unreviewed, rolling out r147370.
3422         http://trac.webkit.org/changeset/147370
3423         https://bugs.webkit.org/show_bug.cgi?id=113850
3424
3425         This patch is causing crashes in video tests on all Mac bots.
3426         (Requested by jernoble_ on #webkit).
3427
3428         * html/HTMLMediaElement.cpp:
3429         (WebCore::HTMLMediaElement::~HTMLMediaElement):
3430
3431 2013-04-02  James Craig  <james@cookiecrook.com>
3432
3433         AXRoleDescripton for DL is "list"; should be "description list"
3434         https://bugs.webkit.org/show_bug.cgi?id=111665
3435
3436         Reviewed by Chris Fleizach.
3437
3438         Defining the role and description strings, and accessors for DL.
3439         This previously relied on getting the role and description from the platform API.
3440
3441         Updated existing test coverage.
3442
3443         * English.lproj/Localizable.strings:
3444         * accessibility/AccessibilityObject.h:
3445         * accessibility/AccessibilityRenderObject.cpp:
3446         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
3447         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3448         (createAccessibilityRoleMap):
3449         (-[WebAccessibilityObjectWrapper subrole]):
3450         (-[WebAccessibilityObjectWrapper roleDescription]):
3451         * platform/LocalizedStrings.cpp:
3452         (WebCore::AXDescriptionListText):
3453         (WebCore):
3454         * platform/LocalizedStrings.h:
3455         (WebCore):
3456         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
3457         (WebCore::AXDescriptionListText):
3458         (WebCore):
3459         *