Clean up ScriptExecutionContext::Task and subclasses
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-10-07  Anders Carlsson  <andersca@apple.com>
2
3         Clean up ScriptExecutionContext::Task and subclasses
4         https://bugs.webkit.org/show_bug.cgi?id=122469
5
6         Reviewed by Andreas Kling.
7
8         * Modules/webdatabase/Database.cpp:
9         (WebCore::DerefContextTask::DerefContextTask):
10         (WebCore::Database::~Database):
11         (WebCore::DeliverPendingCallbackTask::DeliverPendingCallbackTask):
12         (WebCore::Database::scheduleTransactionCallback):
13         * Modules/webdatabase/DatabaseManager.cpp:
14         (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
15         (WebCore::DatabaseManager::openDatabase):
16         * Modules/webdatabase/SQLCallbackWrapper.h:
17         (WebCore::SQLCallbackWrapper::clear):
18         (WebCore::SQLCallbackWrapper::SafeReleaseTask::SafeReleaseTask):
19         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
20         (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
21         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
22         * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
23         (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
24         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
25         * bindings/js/JSCallbackData.h:
26         (WebCore::DeleteCallbackDataTask::DeleteCallbackDataTask):
27         * bindings/js/JSDOMGlobalObjectTask.h:
28         * bindings/js/JSDOMWindowBase.cpp:
29         (WebCore::JSDOMWindowBase::queueTaskToEventLoop):
30         * bindings/js/JSWorkerGlobalScopeBase.cpp:
31         (WebCore::JSWorkerGlobalScopeBase::queueTaskToEventLoop):
32         * bindings/scripts/CodeGeneratorJS.pm:
33         (GenerateCallbackImplementation):
34         * dom/CrossThreadTask.h:
35         (WebCore::createCallbackTask):
36         * dom/Document.cpp:
37         (WebCore::Document::addConsoleMessage):
38         (WebCore::Document::addMessage):
39         (WebCore::PerformTaskContext::PerformTaskContext):
40         (WebCore::Document::postTask):
41         (WebCore::Document::pendingTasksTimerFired):
42         * dom/Document.h:
43         * dom/ScriptExecutionContext.cpp:
44         (WebCore::ProcessMessagesSoonTask::ProcessMessagesSoonTask):
45         (WebCore::ScriptExecutionContext::processMessagePortMessagesSoon):
46         * dom/ScriptExecutionContext.h:
47         * dom/StringCallback.cpp:
48         (WebCore::StringCallback::scheduleCallback):
49         * loader/appcache/ApplicationCacheGroup.cpp:
50         (WebCore::CallCacheListenerTask::CallCacheListenerTask):
51         (WebCore::ApplicationCacheGroup::postListenerTask):
52         * workers/DefaultSharedWorkerRepository.cpp:
53         (WebCore::SharedWorkerProxy::postTaskToLoader):
54         (WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
55         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
56         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
57         * workers/WorkerEventQueue.cpp:
58         (WebCore::WorkerEventQueue::enqueueEvent):
59         * workers/WorkerGlobalScope.cpp:
60         (WebCore::WorkerGlobalScope::close):
61         (WebCore::WorkerGlobalScope::postTask):
62         (WebCore::WorkerGlobalScope::addConsoleMessage):
63         (WebCore::WorkerGlobalScope::addMessage):
64         * workers/WorkerGlobalScope.h:
65         * workers/WorkerLoaderProxy.h:
66         * workers/WorkerMessagingProxy.cpp:
67         (WebCore::WorkerMessagingProxy::postMessageToWorkerObject):
68         (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
69         (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
70         (WebCore::WorkerMessagingProxy::postTaskToLoader):
71         (WebCore::WorkerMessagingProxy::postExceptionToWorkerObject):
72         (WebCore::WorkerMessagingProxy::workerThreadCreated):
73         (WebCore::WorkerMessagingProxy::notifyNetworkStateChange):
74         (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
75         (WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
76         (WebCore::WorkerMessagingProxy::postMessageToPageInspector):
77         (WebCore::WorkerMessagingProxy::confirmMessageFromWorkerObject):
78         (WebCore::WorkerMessagingProxy::reportPendingActivity):
79         * workers/WorkerMessagingProxy.h:
80         * workers/WorkerRunLoop.cpp:
81         (WebCore::WorkerRunLoop::postTask):
82         (WebCore::WorkerRunLoop::postTaskAndTerminate):
83         (WebCore::WorkerRunLoop::postTaskForMode):
84         (WebCore::WorkerRunLoop::Task::Task):
85         * workers/WorkerRunLoop.h:
86         * workers/WorkerThread.cpp:
87         (WebCore::WorkerThreadShutdownFinishTask::WorkerThreadShutdownFinishTask):
88         (WebCore::WorkerThreadShutdownStartTask::performTask):
89         (WebCore::WorkerThread::stop):
90         (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
91
92 2013-10-07  Sam Weinig  <sam@webkit.org>
93
94         CTTE: Use references in and around DragController
95         https://bugs.webkit.org/show_bug.cgi?id=122427
96
97         Reviewed by Andreas Kling.
98
99         Use references to indicate non-nullness of DragController related
100         objects.
101
102 2013-10-07  Tim Horton  <timothy_horton@apple.com>
103
104         Animated images are not restarted when page visibility changes
105         https://bugs.webkit.org/show_bug.cgi?id=122464
106         <rdar://problem/14293474>
107
108         Reviewed by Simon Fraser.
109
110         Always kickstart animated images when the page visibility changes,
111         which can occur via window occlusion, and which is independent of in-window
112         state, which we were previously using to advance animation.
113
114         No new tests; attempts to make a test have resulted only in a flaky, timing-dependent test.
115
116         * page/Frame.cpp:
117         (WebCore::Frame::resumeActiveDOMObjectsAndAnimations):
118         Move this call to resumeAnimatingImages() up to Page.
119
120         * page/FrameView.cpp:
121         (WebCore::FrameView::setIsInWindow):
122         Move this call to resumeAnimatingImages() up to Page.
123
124         * WebCore.exp.in
125         * page/FrameView.h:
126         * page/Page.h:
127         Move resumeAnimatingImages() itself up to Page.
128
129         * page/Page.cpp:
130         (WebCore::Page::setIsInWindow):
131         Resume animated images when we move in-window.
132
133         (WebCore::Page::setVisibilityState):
134         Resume animated images when we become visible.
135         This is the one we were previously missing.
136
137         (WebCore::Page::resumeActiveDOMObjectsAndAnimations):
138         Resume animated images when we're told to.
139
140         (WebCore::Page::resumeAnimatingImages):
141         Kickstart any animated images in all frames.
142
143 2013-10-07  Jer Noble  <jer.noble@apple.com>
144
145         [Mac] Drawing video into canvas doesn't work on the first attempt
146         https://bugs.webkit.org/show_bug.cgi?id=122404
147
148         Reviewed by Eric Carlson.
149
150         Test: media/video-canvas-drawing.html
151
152         If creating and painting from an AVPlayerItemVideoOutput fails, fall back
153         to the (much slower) AVAssetImageGenerator path. Make sure to revert to the
154         AVPlayerItemVideoOutput path when that object begins to have available
155         images, however.
156
157         To do so, remove the "__MAC_OS_X_VERSION_MIN_REQUIRED < 1080" check around
158         the AVAssetImageGenerator code, and allow both the image generator and video
159         output to exist simultaneously.
160
161         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
162         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
163         (WebCore::MediaPlayerPrivateAVFoundationObjC::hasContextRenderer):
164         (WebCore::MediaPlayerPrivateAVFoundationObjC::destroyContextVideoRenderer):
165         (WebCore::MediaPlayerPrivateAVFoundationObjC::destroyImageGenerator):
166         (WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext):
167         (WebCore::MediaPlayerPrivateAVFoundationObjC::videoOutputHasAvailableFrame):
168         (WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):
169
170 2013-10-07  Jer Noble  <jer.noble@apple.com>
171
172         URLMediaSource.idl and URLMediaStream.idl are wrong
173         https://bugs.webkit.org/show_bug.cgi?id=122301
174
175         Reviewed by Philippe Normand.
176
177         Rename URLMediaSource and URLMediaStream to DOMURLMediaSource and DOMURLMediaStream,
178         respectively.
179
180         Update the build files:
181         * CMakeLists.txt: Rename URL -> DOMURL.
182         * DerivedSources.make: Ditto.
183         * GNUmakefile.list.am: Ditto.
184         * WebCore.xcodeproj/project.pbxproj: Ditto.
185
186         Rename the .idl and implementation files:
187         * Modules/mediasource/DOMURLMediaSource.cpp: Renamed from Source/WebCore/Modules/mediasource/URLMediaSource.cpp.
188         (WebCore::DOMURLMediaSource::createObjectURL):
189         * Modules/mediasource/DOMURLMediaSource.h: Renamed from Source/WebCore/Modules/mediasource/URLMediaSource.h.
190         * Modules/mediasource/DOMURLMediaSource.idl: Renamed from Source/WebCore/Modules/mediasource/URLMediaSource.idl.
191         * Modules/mediastream/DOMURLMediaStream.cpp: Renamed from Source/WebCore/Modules/mediastream/URLMediaStream.cpp.
192         (WebCore::DOMURLMediaStream::createObjectURL):
193         * Modules/mediastream/DOMURLMediaStream.h: Renamed from Source/WebCore/Modules/mediastream/URLMediaStream.h.
194         * Modules/mediastream/DOMURLMediaStream.idl: Renamed from Source/WebCore/Modules/mediastream/URLMediaStream.idl.
195
196 2013-10-07  Philippe Normand  <pnormand@igalia.com>
197
198         Conditional support in bindings code generator for overloaded functions
199         https://bugs.webkit.org/show_bug.cgi?id=122443
200
201         Reviewed by Darin Adler.
202
203         * bindings/scripts/CodeGeneratorJS.pm: 
204         (GenerateOverloadedFunction): Generate conditional for overloaded
205         function, if it's present in the idl.
206         (GenerateImplementation): Close the last overloaded function
207         conditional before generating the distpatch function.
208         * bindings/scripts/test/JS/JSTestObj.cpp:
209         (WebCore::jsTestObjConstructorFunctionOverloadedMethod1):
210         Rebaseline overloaded function tests.
211
212 2013-10-07  Tim Horton  <timothy_horton@apple.com>
213
214         -webkit-cross-fade paints SVGs at full opacity during cross-fade
215         https://bugs.webkit.org/show_bug.cgi?id=122441
216         <rdar://problem/13973162>
217
218         Reviewed by Simon Fraser.
219
220         Test: css3/images/cross-fade-svg-with-opacity.html
221
222         * platform/graphics/CrossfadeGeneratedImage.cpp:
223         (WebCore::drawCrossfadeSubimage):
224         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
225         Factor the image painting out into a function.
226         Conditionally use a transparency layer around painting if the image
227         we're drawing is an SVG (SVGImage is the only Image subclass that will
228         not respect the context's opacity).
229
230 2013-10-06  Anders Carlsson  <andersca@apple.com>
231
232         Add OVERRIDE and virtual where appropriate
233         https://bugs.webkit.org/show_bug.cgi?id=122439
234
235         Reviewed by Antti Koivisto.
236
237         * Modules/encryptedmedia/MediaKeys.h:
238         * Modules/webaudio/AnalyserNode.h:
239         * Modules/webaudio/AudioBasicInspectorNode.h:
240         * Modules/webaudio/AudioBasicProcessorNode.h:
241         * Modules/webaudio/AudioBufferSourceNode.h:
242         * Modules/webaudio/AudioContext.h:
243         * Modules/webaudio/AudioDestinationNode.h:
244         * Modules/webaudio/AudioProcessingEvent.h:
245         * Modules/webaudio/BiquadDSPKernel.h:
246         * Modules/webaudio/BiquadProcessor.h:
247         * Modules/webaudio/ChannelMergerNode.h:
248         * Modules/webaudio/ChannelSplitterNode.h:
249         * Modules/webaudio/ConvolverNode.h:
250         * Modules/webaudio/DelayDSPKernel.h:
251         * Modules/webaudio/DelayProcessor.h:
252         * Modules/webaudio/DynamicsCompressorNode.h:
253         * Modules/webaudio/GainNode.h:
254         * Modules/webaudio/MediaElementAudioSourceNode.h:
255         * Modules/webaudio/OfflineAudioCompletionEvent.h:
256         * Modules/webaudio/OfflineAudioDestinationNode.h:
257         * Modules/webaudio/OscillatorNode.h:
258         * Modules/webaudio/PannerNode.h:
259         * Modules/webaudio/ScriptProcessorNode.h:
260         * Modules/webaudio/WaveShaperProcessor.h:
261         * accessibility/AccessibilityARIAGrid.h:
262         * accessibility/AccessibilityARIAGridCell.h:
263         * accessibility/AccessibilityARIAGridRow.h:
264         * accessibility/AccessibilityImageMapLink.h:
265         * accessibility/AccessibilityList.h:
266         * accessibility/AccessibilityListBox.h:
267         * accessibility/AccessibilityListBoxOption.h:
268         * accessibility/AccessibilityMediaControls.h:
269         * accessibility/AccessibilityMenuList.h:
270         * accessibility/AccessibilityMenuListOption.h:
271         * accessibility/AccessibilityMenuListPopup.h:
272         * accessibility/AccessibilityMockObject.h:
273         * accessibility/AccessibilityNodeObject.h:
274         * accessibility/AccessibilityProgressIndicator.h:
275         * accessibility/AccessibilityRenderObject.h:
276         * accessibility/AccessibilitySVGRoot.h:
277         * accessibility/AccessibilityScrollView.h:
278         * accessibility/AccessibilityScrollbar.h:
279         * accessibility/AccessibilitySlider.h:
280         * accessibility/AccessibilitySpinButton.h:
281         * accessibility/AccessibilityTable.h:
282         * accessibility/AccessibilityTableCell.h:
283         * accessibility/AccessibilityTableColumn.h:
284         * accessibility/AccessibilityTableHeaderContainer.h:
285         * accessibility/AccessibilityTableRow.h:
286         * bindings/js/JSEventListener.h:
287         * bindings/js/WebCoreTypedArrayController.h:
288         * bridge/c/c_class.h:
289         * bridge/c/c_instance.h:
290         * bridge/c/c_runtime.h:
291         * bridge/runtime_root.h:
292         * css/CSSBasicShapes.h:
293         * css/CSSComputedStyleDeclaration.h:
294         * css/CSSStyleSheet.h:
295         * dom/Attr.h:
296         * dom/BeforeTextInsertedEvent.h:
297         * dom/CDATASection.h:
298         * dom/ChildNodeList.h:
299         * dom/DatasetDOMStringMap.h:
300         * dom/Document.h:
301         * dom/DocumentEventQueue.h:
302         * dom/DocumentFragment.h:
303         * dom/Element.h:
304         * dom/ErrorEvent.h:
305         * dom/KeyboardEvent.h:
306         * dom/Node.h:
307         * dom/PageTransitionEvent.h:
308         * dom/ProgressEvent.h:
309         * dom/PseudoElement.h:
310         * dom/ScriptExecutionContext.h:
311         * dom/ShadowRoot.h:
312         * dom/StyledElement.h:
313         * dom/TagNodeList.h:
314         * dom/Text.h:
315         * dom/TextEvent.h:
316         * dom/TransitionEvent.h:
317         * dom/UIEvent.h:
318         * dom/WebKitAnimationEvent.h:
319         * dom/WebKitTransitionEvent.h:
320         * editing/ApplyBlockElementCommand.h:
321         * editing/ApplyStyleCommand.h:
322         * editing/BreakBlockquoteCommand.h:
323         * editing/CompositeEditCommand.h:
324         * editing/SpellingCorrectionCommand.h:
325         * fileapi/File.h:
326         * fileapi/FileThreadTask.h:
327         * history/BackForwardList.h:
328         * html/BaseCheckableInputType.h:
329         * html/HTMLAnchorElement.h:
330         * html/HTMLAreaElement.h:
331         * html/HTMLCanvasElement.h:
332         * html/HTMLCollection.h:
333         * html/HTMLElement.h:
334         * html/HTMLFieldSetElement.h:
335         * html/HTMLFormControlElement.h:
336         * html/HTMLFormControlElementWithState.h:
337         * html/HTMLFormElement.h:
338         * html/HTMLFrameElementBase.h:
339         * html/HTMLImageElement.h:
340         * html/HTMLImageLoader.h:
341         * html/HTMLInputElement.h:
342         * html/HTMLLabelElement.h:
343         * html/HTMLLegendElement.h:
344         * html/HTMLMediaElement.h:
345         * html/HTMLMeterElement.h:
346         * html/HTMLOptGroupElement.h:
347         * html/HTMLOptionElement.h:
348         * html/HTMLPlugInElement.h:
349         * html/HTMLPlugInImageElement.h:
350         * html/HTMLProgressElement.h:
351         * html/HTMLSelectElement.h:
352         * html/HTMLTableElement.h:
353         * html/HTMLTextAreaElement.h:
354         * html/HTMLTextFormControlElement.h:
355         * html/HTMLVideoElement.h:
356         * html/canvas/CanvasRenderingContext2D.cpp:
357         * html/shadow/MediaControlElementTypes.h:
358         * html/shadow/MediaControlElements.h:
359         * html/shadow/SpinButtonElement.h:
360         * html/shadow/TextControlInnerElements.h:
361         * html/track/AudioTrackList.h:
362         * html/track/TextTrackList.h:
363         * html/track/TrackListBase.h:
364         * inspector/InspectorValues.h:
365         * loader/EmptyClients.h:
366         * loader/ImageLoader.h:
367         * loader/ResourceLoader.h:
368         * loader/SubresourceLoader.h:
369         * loader/appcache/ApplicationCacheGroup.cpp:
370         * loader/appcache/ApplicationCacheGroup.h:
371         * loader/appcache/DOMApplicationCache.h:
372         * loader/archive/cf/LegacyWebArchive.h:
373         * loader/cache/CachedCSSStyleSheet.h:
374         * loader/cache/CachedFont.h:
375         * loader/cache/CachedFontClient.h:
376         * loader/cache/CachedImageClient.h:
377         * loader/cache/CachedSVGDocumentClient.h:
378         * loader/cache/CachedStyleSheetClient.h:
379         * loader/cache/CachedXSLStyleSheet.h:
380         * page/Chrome.h:
381         * page/DOMWindow.h:
382         * page/FrameView.h:
383         * page/animation/ImplicitAnimation.h:
384         * platform/PODIntervalTree.h:
385         * platform/PODRedBlackTree.h:
386         * platform/ScrollView.h:
387         * platform/Scrollbar.h:
388         * platform/Timer.h:
389         * platform/animation/TimingFunction.h:
390         (WebCore::LinearTimingFunction::~LinearTimingFunction):
391         (WebCore::CubicBezierTimingFunction::~CubicBezierTimingFunction):
392         (WebCore::StepsTimingFunction::~StepsTimingFunction):
393         * platform/audio/AudioDSPKernelProcessor.h:
394         * platform/audio/HRTFPanner.h:
395         * platform/audio/mac/AudioDestinationMac.h:
396         * platform/graphics/SimpleFontData.h:
397         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
398         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
399         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
400         * platform/graphics/filters/FilterOperation.h:
401         * platform/network/ResourceHandle.h:
402         * rendering/AutoTableLayout.h:
403         * rendering/ClipPathOperation.h:
404         * rendering/InlineFlowBox.h:
405         * rendering/RenderBlock.h:
406         * rendering/RenderBox.h:
407         * rendering/RenderBoxModelObject.h:
408         * rendering/RenderButton.h:
409         * rendering/RenderFieldset.h:
410         * rendering/RenderFileUploadControl.h:
411         * rendering/RenderFlexibleBox.h:
412         * rendering/RenderFlowThread.h:
413         * rendering/RenderFullScreen.h:
414         * rendering/RenderImage.h:
415         * rendering/RenderLayer.h:
416         * rendering/RenderLineBreak.h:
417         * rendering/RenderListBox.h:
418         * rendering/RenderListItem.h:
419         * rendering/RenderListMarker.h:
420         * rendering/RenderMenuList.h:
421         * rendering/RenderMeter.h:
422         * rendering/RenderObject.h:
423         * rendering/RenderReplaced.h:
424         * rendering/RenderSlider.h:
425         * rendering/RenderTable.h:
426         * rendering/RenderTableCell.h:
427         * rendering/RenderText.h:
428         * rendering/RenderTextControl.h:
429         * rendering/RenderTextControlSingleLine.h:
430         * rendering/RenderTextFragment.h:
431         * rendering/RenderView.h:
432         * rendering/RootInlineBox.h:
433         * rendering/mathml/RenderMathMLBlock.h:
434         * rendering/mathml/RenderMathMLFraction.h:
435         * rendering/mathml/RenderMathMLOperator.h:
436         * rendering/style/BasicShapes.h:
437         * rendering/svg/RenderSVGModelObject.h:
438         * rendering/svg/RenderSVGShape.h:
439         * svg/SVGAnimatedBoolean.h:
440         * svg/SVGAnimatedString.h:
441         * svg/SVGAnimatedTransformList.h:
442         * svg/SVGDocument.h:
443         * svg/SVGElement.h:
444         * svg/SVGElementInstance.h:
445         * svg/SVGFontElement.h:
446         * svg/SVGGElement.h:
447         * svg/SVGGraphicsElement.h:
448         * svg/SVGTransformable.h:
449         * svg/properties/SVGAnimatedListPropertyTearOff.h:
450         * svg/properties/SVGAnimatedPropertyMacros.h:
451         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
452         * svg/properties/SVGListPropertyTearOff.h:
453         * svg/properties/SVGPropertyTearOff.h:
454         * workers/WorkerGlobalScope.h:
455
456 2013-10-07  Philippe Normand  <pnormand@igalia.com>
457
458         URLMediaStream is unguarded by ENABLE(MEDIA_STREAM)
459         https://bugs.webkit.org/show_bug.cgi?id=122444
460
461         Reviewed by Martin Robinson.
462
463         * Modules/mediastream/URLMediaStream.cpp: Added missing
464         conditional guards.
465         * Modules/mediastream/URLMediaStream.h: Ditto.
466
467 2013-10-07  Philippe Normand  <pnormand@igalia.com>
468
469         [GTK] webkit_dom_html_style_element_{s,g}et_scoped was removed
470         https://bugs.webkit.org/show_bug.cgi?id=122446
471
472         Reviewed by Martin Robinson.
473
474         Added skeleton functions warning of removed functionality for
475         the <style scoped> GObject DOM binding.
476
477         * bindings/gobject/WebKitDOMCustom.cpp:
478         * bindings/gobject/WebKitDOMCustom.h:
479         * bindings/gobject/WebKitDOMCustom.symbols:
480
481 2013-10-07  Csaba Osztrogon√°c  <ossy@webkit.org>
482
483         Unreviewed buildfix for GCC 4.6.
484
485         Changed override to OVERRIDE and final to FINAL.
486
487         * page/PageSerializer.cpp:
488         * workers/AbstractWorker.h:
489         * workers/SharedWorker.h:
490         * workers/Worker.h:
491
492 2013-10-07  Chris Fleizach  <cfleizach@apple.com>
493
494         AX: Facebook wrapped a file upload button in an unfocusable ARIA button, which doesn't work with AXPress.
495         https://bugs.webkit.org/show_bug.cgi?id=122252
496
497         Reviewed by Mario Sanchez Prada.
498
499         When an author uses a control-type ARIA role (like button), but then hides a native control-type inside,
500         AXPress needs to operate on the inside node if possible.
501
502         Test: accessibility/axpress-on-aria-button.html
503
504         * accessibility/AccessibilityNodeObject.cpp:
505         (WebCore::isNodeActionElement):
506         (WebCore::nativeActionElement):
507         (WebCore::AccessibilityNodeObject::actionElement):
508
509 2013-10-07  Zan Dobersek  <zdobersek@igalia.com>
510
511         Unreviewed debug build fix for ports enabling the <template> element support.
512
513         * html/HTMLTagNames.in: Generate type helpers for the <template> element as they're required
514         by the assertions in the Element type casts for HTMLTemplateElement.
515
516 2013-10-07  Ryuan Choi  <ryuan.choi@samsung.com>
517
518         [EFL] Build fix after r157002
519         https://bugs.webkit.org/show_bug.cgi?id=122434
520
521         Reviewed by Sam Weinig.
522
523         * editing/markup.cpp: Changed override to OVERRIDE.
524
525 2013-10-04  Philippe Normand  <pnormand@igalia.com>
526
527         MediaStreamTrack can't be FINAL
528         https://bugs.webkit.org/show_bug.cgi?id=122322
529
530         Reviewed by Darin Adler.
531
532         Marked the MediaStreamTrack subclasses as final.
533
534         * Modules/mediastream/AudioStreamTrack.h:
535         * Modules/mediastream/MediaStreamTrack.h:
536         * Modules/mediastream/VideoStreamTrack.h:
537
538 2013-10-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
539
540         Generate toCSSFooValue() for CSSCursorImageValue, CSSCubicBezierTimingFunctionValue, CSSStepsTimingFunctionValue and CSSUnicodeRangeValue
541         https://bugs.webkit.org/show_bug.cgi?id=122408
542
543         Reviewed by Andreas Kling.
544
545         As a step to use toCSSFooValue, this patch generates toCSSFooValue() for CSSCursorImageValue,
546         CSSCubicBezierTimingFunctionValue, CSSStepsTimingFunctionValue and CSSUnicodeRangeValue.
547         This will help to detect bad type cast.
548
549         No new tests, no behavior changes.
550
551         * css/CSSCursorImageValue.h:
552         * css/CSSTimingFunctionValue.h:
553         * css/CSSToStyleMap.cpp:
554         (WebCore::CSSToStyleMap::mapAnimationTimingFunction):
555         * css/CSSUnicodeRangeValue.h:
556         * css/CSSValue.cpp:
557         (WebCore::CSSValue::destroy):
558         * css/DeprecatedStyleBuilder.cpp:
559         (WebCore::ApplyPropertyCursor::applyValue):
560         * css/StyleResolver.cpp:
561         (WebCore::StyleResolver::styleImage):
562         (WebCore::StyleResolver::styleShader):
563         * rendering/style/StylePendingImage.h:
564         (WebCore::StylePendingImage::cssCursorImageValue):
565
566 2013-10-06  Andreas Kling  <akling@apple.com>
567
568         Range constructors should take a Document&.
569         <https://webkit.org/b/122435>
570
571         Reviewed by Sam Weinig.
572
573         Make all Range constructors take Document& instead of a PassRefPtr.
574         This removes one null check at every call site.
575
576         Also use a Ref<Document> for storage in Range.
577
578 2013-10-06  Antti Koivisto  <antti@apple.com>
579
580         Factor text paint style computation out from InlineTextBox
581         https://bugs.webkit.org/show_bug.cgi?id=122433
582
583         Reviewed by Andreas Kling.
584
585         Move it to TextPaintStyle.h/cpp. Other parts of the code may use it in the future.
586
587 2013-10-06  Darin Adler  <darin@apple.com>
588
589         [GTK] Get rid of use of deleteAllValues in GtkDragAndDropHelper
590         https://bugs.webkit.org/show_bug.cgi?id=122417
591
592         Reviewed by Andreas Kling.
593
594         * platform/gtk/GtkDragAndDropHelper.cpp: Removed unneeded typedefs.
595         (WebCore::GtkDragAndDropHelper::~GtkDragAndDropHelper): Removed call to
596         deleteAllValues.
597         (WebCore::GtkDragAndDropHelper::handleDragEnd): Use remove directly instead
598         of using find then remove. I believe this fixes a storage leak.
599         (WebCore::GtkDragAndDropHelper::handleGetDragData): Use get instead of find.
600         (WebCore::GtkDragAndDropHelper::handleDragLeaveLater): Remove the explicit
601         delete since remove will automatically delete.
602         (WebCore::GtkDragAndDropHelper::handleDragLeave): Use get instead of find.
603         (WebCore::GtkDragAndDropHelper::handleDragMotion): Use add instead of a
604         combination of find and set. Also user nullptr instead of 0.
605         (WebCore::GtkDragAndDropHelper::handleDragDataReceived): Use get instead of find.
606         (WebCore::GtkDragAndDropHelper::handleDragDrop): Use get instead of find.
607
608         * platform/gtk/GtkDragAndDropHelper.h: Use nullptr instead of 0. Change value
609         type of m_droppingContexts to be a std::unique_ptr.
610
611 2013-10-06  Andreas Kling  <akling@apple.com>
612
613         Windows build fix attempt.
614
615         * page/win/DragControllerWin.cpp:
616         (WebCore::DragController::declareAndWriteDragImage):
617
618 2013-10-06  Antti Koivisto  <antti@apple.com>
619
620         Move paint() to RenderElement
621         https://bugs.webkit.org/show_bug.cgi?id=122371
622
623         Reviewed by Darin Adler.
624
625         RenderText does not paint itself (text is painted by line boxes). We can move paint() down
626         to RenderElement.
627         
628         This also requires some type tightening elsewhere in the code.
629
630 2013-10-06  Antti Koivisto  <antti@apple.com>
631
632         Don't try to dispatch resize events for SVG images
633         https://bugs.webkit.org/show_bug.cgi?id=122410
634
635         Reviewed by Darin Adler.
636
637         Tested by avoiding assertion in svg/custom/large-image-pattern-crash.html
638
639         * page/FrameView.cpp:
640         (WebCore::FrameView::sendResizeEventIfNeeded):
641         
642             Bail out for SVG images. They have scripting disabled so the event wouldn't do anything anyway.
643             Use of FrameView mechanisms is just an implementation detail for SVG images, they are not
644             meant to act like real frames.
645
646         * rendering/svg/RenderSVGResourcePattern.cpp:
647         (WebCore::RenderSVGResourcePattern::createTileImage):
648         
649             Switch to Element iterator. This will take NoEventDispatchAssertion verifying the change.
650
651 2013-10-06  Andreas Kling  <akling@apple.com>
652
653         Element ancestor iterator should have a first() for convenience.
654         <https://webkit.org/b/122425>
655
656         Reviewed by Antti Koivisto.
657
658         Added an easy way to get the first element ancestor of a certain type
659         and put it to use in a few places.
660
661 2013-10-06  Andreas Kling  <akling@apple.com>
662
663         CTTE: FrameLoader::notifier() should return a reference.
664         <https://webkit.org/b/122424>
665
666         Reviewed by Anders Carlsson.
667
668         It was just returning the address of an inline member, so we should
669         use a reference instead. Also made the backpointer to Frame in
670         ResourceLoadNotifier a reference.
671
672 2013-10-06  Andreas Kling  <akling@apple.com>
673
674         Avoid layout in window.scroll{Y,X} when at topmost/leftmost position.
675         <https://webkit.org/b/122423>
676
677         Reviewed by Antti Koivisto.
678
679         Add a fast path for these properties to skip synchronous layout when
680         we are just going to return 0 anyway.
681
682         * page/DOMWindow.cpp:
683         (WebCore::DOMWindow::scrollX):
684         (WebCore::DOMWindow::scrollY):
685
686 2013-10-06  Anders Carlsson  <andersca@apple.com>
687
688         Clean up ContentData
689         https://bugs.webkit.org/show_bug.cgi?id=122421
690
691         Reviewed by Andreas Kling.
692
693         Replace uses of OwnPtr with std::unique_ptr and get rid of the ContentData::create overloads.
694
695         * css/StyleResolver.cpp:
696         (WebCore::StyleResolver::applyProperty):
697         * rendering/style/ContentData.cpp:
698         (WebCore::ContentData::clone):
699         * rendering/style/ContentData.h:
700         (WebCore::ContentData::setNext):
701         * rendering/style/RenderStyle.cpp:
702         (WebCore::RenderStyle::appendContent):
703         (WebCore::RenderStyle::setContent):
704         * rendering/style/RenderStyle.h:
705         * rendering/style/StyleRareNonInheritedData.h:
706
707 2013-10-06  Sam Weinig  <sam@webkit.org>
708
709         Be a bit shouty about final classes while we look into why the bots don't like it.
710
711         * dom/Comment.h:
712         * dom/ProcessingInstruction.h:
713         * editing/markup.cpp:
714         * page/PageSerializer.cpp:
715         * workers/SharedWorker.h:
716         * workers/Worker.h:
717
718 2013-10-06  Sam Weinig  <sam@webkit.org>
719
720         Fix windows build.
721
722         * platform/win/ClipboardUtilitiesWin.cpp:
723         (WebCore::fragmentFromCFHTML):
724         (WebCore::fragmentFromHTML):
725         * platform/win/PasteboardWin.cpp:
726         (WebCore::Pasteboard::writeRangeToDataObject):
727         (WebCore::Pasteboard::writeSelection):
728
729 2013-10-05  Sam Weinig  <sam@webkit.org>
730
731         CTTE: Thread references through markup.h
732         https://bugs.webkit.org/show_bug.cgi?id=122403
733
734         Reviewed by Darin Adler and Andreas Kling.
735
736         Highlights:
737         - Removed createFragmentFromMarkupWithContext(), it was unused.
738         - Moved createFragmentFromNodes() into its one caller (in WebKit/mac)
739         - Add a bunch more toFoo() overloads.
740
741 2013-10-06  Zan Dobersek  <zdobersek@igalia.com>
742
743         [WebIDL] Annotate IDL interfaces under Source/WebCore/Modules/ with the OperationsNotDeletable attribute
744         https://bugs.webkit.org/show_bug.cgi?id=122281
745
746         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
747         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
748         doesn't have any effect, but will keep the operations not configurable after the generator is modified
749         to preserve the original behavior. The attribute will be removed from each interface after checking
750         conformity with other browsers (in terms of configurability of operations of that interface) and the
751         WebKit's existing test suites.
752
753         This patch covers IDL interfaces under Source/WebCore/Modules/.
754
755         * Modules/battery/BatteryManager.idl:
756         * Modules/encryptedmedia/MediaKeySession.idl:
757         * Modules/encryptedmedia/MediaKeys.idl:
758         * Modules/gamepad/GamepadList.idl:
759         * Modules/geolocation/Geolocation.idl:
760         * Modules/indexeddb/IDBCursor.idl:
761         * Modules/indexeddb/IDBDatabase.idl:
762         * Modules/indexeddb/IDBFactory.idl:
763         * Modules/indexeddb/IDBIndex.idl:
764         * Modules/indexeddb/IDBKeyRange.idl:
765         * Modules/indexeddb/IDBObjectStore.idl:
766         * Modules/indexeddb/IDBTransaction.idl:
767         * Modules/indexeddb/IDBVersionChangeEvent.idl:
768         * Modules/mediacontrols/MediaControlsHost.idl:
769         * Modules/mediasource/MediaSource.idl:
770         * Modules/mediasource/SourceBuffer.idl:
771         * Modules/mediasource/SourceBufferList.idl:
772         * Modules/mediasource/WebKitMediaSource.idl:
773         * Modules/mediasource/WebKitSourceBuffer.idl:
774         * Modules/mediasource/WebKitSourceBufferList.idl:
775         * Modules/mediastream/MediaStream.idl:
776         * Modules/mediastream/MediaStreamTrack.idl:
777         * Modules/mediastream/RTCDTMFSender.idl:
778         * Modules/mediastream/RTCDataChannel.idl:
779         * Modules/mediastream/RTCPeerConnection.idl:
780         * Modules/mediastream/RTCStatsReport.idl:
781         * Modules/mediastream/RTCStatsResponse.idl:
782         * Modules/networkinfo/NetworkInfoConnection.idl:
783         * Modules/notifications/Notification.idl:
784         * Modules/notifications/NotificationCenter.idl:
785         * Modules/proximity/DeviceProximityEvent.idl:
786         * Modules/quota/StorageInfo.idl:
787         * Modules/quota/StorageQuota.idl:
788         * Modules/speech/SpeechGrammarList.idl:
789         * Modules/speech/SpeechRecognition.idl:
790         * Modules/speech/SpeechRecognitionResult.idl:
791         * Modules/speech/SpeechRecognitionResultList.idl:
792         * Modules/speech/SpeechSynthesis.idl:
793         * Modules/webaudio/AnalyserNode.idl:
794         * Modules/webaudio/AudioBuffer.idl:
795         * Modules/webaudio/AudioBufferSourceNode.idl:
796         * Modules/webaudio/AudioContext.idl:
797         * Modules/webaudio/AudioListener.idl:
798         * Modules/webaudio/AudioNode.idl:
799         * Modules/webaudio/AudioParam.idl:
800         * Modules/webaudio/BiquadFilterNode.idl:
801         * Modules/webaudio/OscillatorNode.idl:
802         * Modules/webaudio/PannerNode.idl:
803         * Modules/webdatabase/Database.idl:
804         * Modules/webdatabase/DatabaseSync.idl:
805         * Modules/webdatabase/SQLResultSetRowList.idl:
806         * Modules/webdatabase/SQLTransaction.idl:
807         * Modules/webdatabase/SQLTransactionSync.idl:
808         * Modules/websockets/WebSocket.idl:
809
810 2013-10-06  Andreas Kling  <akling@apple.com>
811
812         Tighten AbstractWorker and subclasses a bit.
813         <https://webkit.org/b/122402>
814
815         Reviewed by Darin Adler.
816
817         - Make the Worker and SharedWorker classes final.
818         - Have constructors take ScriptExecutionContext by reference.
819         - Remove unnecessary AbstractWorker::contextDestroyed() override.
820         - Make eventTargetInterface() inline.
821
822         Inlining eventTargetInterface() is quite neat - since we only ever
823         call this on tightly typed pointers from generated code, combining
824         final and inline turns the virtual call into a compile-time constant.
825
826 2013-10-06  Zan Dobersek  <zdobersek@igalia.com>
827
828         [WebIDL] Annotate IDL interfaces under Source/WebCore/html/ with the OperationsNotDeletable attribute
829         https://bugs.webkit.org/show_bug.cgi?id=122280
830
831         Reviewed by Darin Adler.
832
833         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
834         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
835         doesn't have any effect, but will keep the operations not configurable after the generator is modified
836         to preserve the original behavior. The attribute will be removed from each interface after checking
837         conformity with other browsers (in terms of configurability of operations of that interface) and the
838         WebKit's existing test suites.
839
840         This patch covers IDL interfaces under Source/WebCore/html/.
841
842         * html/DOMFormData.idl:
843         * html/DOMSettableTokenList.idl:
844         * html/DOMTokenList.idl:
845         * html/DOMURL.idl:
846         * html/HTMLAllCollection.idl:
847         * html/HTMLAnchorElement.idl:
848         * html/HTMLButtonElement.idl:
849         * html/HTMLCanvasElement.idl:
850         * html/HTMLCollection.idl:
851         * html/HTMLDocument.idl:
852         * html/HTMLElement.idl:
853         * html/HTMLEmbedElement.idl:
854         * html/HTMLFieldSetElement.idl:
855         * html/HTMLFormControlsCollection.idl:
856         * html/HTMLFormElement.idl:
857         * html/HTMLFrameElement.idl:
858         * html/HTMLIFrameElement.idl:
859         * html/HTMLInputElement.idl:
860         * html/HTMLKeygenElement.idl:
861         * html/HTMLMarqueeElement.idl:
862         * html/HTMLMediaElement.idl:
863         * html/HTMLObjectElement.idl:
864         * html/HTMLOptionsCollection.idl:
865         * html/HTMLOutputElement.idl:
866         * html/HTMLSelectElement.idl:
867         * html/HTMLTableElement.idl:
868         * html/HTMLTableRowElement.idl:
869         * html/HTMLTableSectionElement.idl:
870         * html/HTMLTextAreaElement.idl:
871         * html/HTMLVideoElement.idl:
872         * html/MediaController.idl:
873         * html/RadioNodeList.idl:
874         * html/TimeRanges.idl:
875         * html/canvas/CanvasGradient.idl:
876         * html/canvas/CanvasRenderingContext2D.idl:
877         * html/canvas/DOMPath.idl:
878         * html/canvas/EXTDrawBuffers.idl:
879         * html/canvas/OESVertexArrayObject.idl:
880         * html/canvas/WebGLDebugShaders.idl:
881         * html/canvas/WebGLLoseContext.idl:
882         * html/canvas/WebGLRenderingContext.idl:
883         * html/track/AudioTrackList.idl:
884         * html/track/TextTrack.idl:
885         * html/track/TextTrackCue.idl:
886         * html/track/TextTrackCueList.idl:
887         * html/track/TextTrackList.idl:
888         * html/track/TextTrackRegionList.idl:
889         * html/track/VideoTrackList.idl:
890
891 2013-10-06  Zan Dobersek  <zdobersek@igalia.com>
892
893         [WebIIDL] Annotate IDL interfaces under Source/WebCore/svg/ with the OperationsNotDeletable attribute
894         https://bugs.webkit.org/show_bug.cgi?id=122279
895
896         Reviewed by Darin Adler.
897
898         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
899         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
900         doesn't have any effect, but will keep the operations not configurable after the generator is modified
901         to preserve the original behavior. The attribute will be removed from each interface after checking
902         conformity with other browsers (in terms of configurability of operations of that interface) and the
903         WebKit's existing test suites.
904
905         This patch covers IDL interfaces under Source/WebCore/svg/.
906
907         * svg/SVGAngle.idl:
908         * svg/SVGAnimationElement.idl:
909         * svg/SVGColor.idl:
910         * svg/SVGCursorElement.idl:
911         * svg/SVGDocument.idl:
912         * svg/SVGElement.idl:
913         * svg/SVGElementInstanceList.idl:
914         * svg/SVGException.idl:
915         * svg/SVGFEDropShadowElement.idl:
916         * svg/SVGFEGaussianBlurElement.idl:
917         * svg/SVGFEMorphologyElement.idl:
918         * svg/SVGFilterElement.idl:
919         * svg/SVGGraphicsElement.idl:
920         * svg/SVGLength.idl:
921         * svg/SVGLengthList.idl:
922         * svg/SVGMarkerElement.idl:
923         * svg/SVGMaskElement.idl:
924         * svg/SVGMatrix.idl:
925         * svg/SVGNumberList.idl:
926         * svg/SVGPaint.idl:
927         * svg/SVGPathElement.idl:
928         * svg/SVGPathSegList.idl:
929         * svg/SVGPatternElement.idl:
930         * svg/SVGPoint.idl:
931         * svg/SVGPointList.idl:
932         * svg/SVGSVGElement.idl:
933         * svg/SVGStringList.idl:
934         * svg/SVGTests.idl:
935         * svg/SVGTextContentElement.idl:
936         * svg/SVGTransform.idl:
937         * svg/SVGTransformList.idl:
938
939 2013-10-06  Zan Dobersek  <zdobersek@igalia.com>
940
941         [WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the OperationsNotDeletable attribute
942         https://bugs.webkit.org/show_bug.cgi?id=122278
943
944         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
945         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
946         doesn't have any effect, but will keep the operations not configurable after the generator is modified
947         to preserve the original behavior. The attribute will be removed from each interface after checking
948         conformity with other browsers (in terms of configurability of operations of that interface) and the
949         WebKit's existing test suites.
950
951         This patch covers IDL interfaces under Source/WebCore/page/.
952
953         * page/Console.idl:
954         * page/Crypto.idl:
955         * page/DOMSecurityPolicy.idl:
956         * page/DOMSelection.idl:
957         * page/DOMWindow.idl:
958         * page/EventSource.idl:
959         * page/History.idl:
960         * page/Location.idl:
961         * page/Navigator.idl:
962         * page/Performance.idl:
963         * page/PerformanceEntryList.idl:
964         * page/SpeechInputResultList.idl:
965         * page/WindowBase64.idl:
966         * page/WindowTimers.idl:
967
968 2013-10-06  Darin Adler  <darin@apple.com>
969
970         * rendering/RenderButton.cpp:
971         (WebCore::RenderButton::setupInnerStyle): Added a comment possibly relevant
972         to current failures seen on Windows bot.
973
974 2013-10-06  Commit Queue  <commit-queue@webkit.org>
975
976         Unreviewed, rolling out r156988.
977         http://trac.webkit.org/changeset/156988
978         https://bugs.webkit.org/show_bug.cgi?id=122415
979
980         Broke debug build (Requested by ap on #webkit).
981
982         * css/CSSCursorImageValue.h:
983         * css/CSSTimingFunctionValue.h:
984         * css/CSSToStyleMap.cpp:
985         (WebCore::CSSToStyleMap::mapAnimationTimingFunction):
986         * css/CSSUnicodeRangeValue.h:
987         * css/CSSValue.cpp:
988         (WebCore::CSSValue::destroy):
989         * css/DeprecatedStyleBuilder.cpp:
990         (WebCore::ApplyPropertyCursor::applyValue):
991         * css/StyleResolver.cpp:
992         (WebCore::StyleResolver::styleImage):
993         (WebCore::StyleResolver::styleShader):
994         * rendering/style/StylePendingImage.h:
995         (WebCore::StylePendingImage::cssCursorImageValue):
996
997 2013-10-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
998
999         Add *CSS* prefix to ShadowValue to generate toCSSShadowValue
1000         https://bugs.webkit.org/show_bug.cgi?id=122409
1001
1002         Reviewed by Darin Adler.
1003
1004         To generate toCSSShadowValue(), we need to add *CSS* prefix to ShadowValue.
1005         It is also to be sync with a naming rule of CSS child value.  
1006
1007         No new tests, no behavior changes.
1008
1009         * CMakeLists.txt:
1010         * GNUmakefile.list.am:
1011         * WebCore.vcxproj/WebCore.vcxproj:
1012         * WebCore.vcxproj/WebCore.vcxproj.filters:
1013         * WebCore.xcodeproj/project.pbxproj:
1014         * css/CSSComputedStyleDeclaration.cpp:
1015         (WebCore::ComputedStyleExtractor::valueForShadow):
1016         * css/CSSParser.cpp:
1017         (WebCore::ShadowParseContext::commitValue):
1018         * css/CSSShadowValue.cpp: Renamed from Source/WebCore/css/ShadowValue.cpp.
1019         (WebCore::CSSShadowValue::CSSShadowValue):
1020         (WebCore::CSSShadowValue::customCSSText):
1021         (WebCore::CSSShadowValue::equals):
1022         * css/CSSShadowValue.h: Renamed from Source/WebCore/css/ShadowValue.h.
1023         (WebCore::CSSShadowValue::create):
1024         * css/CSSValue.cpp:
1025         (WebCore::CSSValue::equals):
1026         (WebCore::CSSValue::cssText):
1027         (WebCore::CSSValue::destroy):
1028         * css/SVGCSSStyleSelector.cpp:
1029         (WebCore::StyleResolver::applySVGProperty):
1030         * css/StyleResolver.cpp:
1031         (WebCore::StyleResolver::applyProperty):
1032         (WebCore::StyleResolver::createFilterOperations):
1033
1034 2013-10-06  Darin Adler  <darin@apple.com>
1035
1036         Remove unneeded ScriptGCEvent class
1037         https://bugs.webkit.org/show_bug.cgi?id=122390
1038
1039         Reviewed by Anders Carlsson.
1040
1041         * GNUmakefile.list.am: Removed ScriptGCEvent files.
1042         * Target.pri: Ditto.
1043         * UseJSC.cmake: Ditto.
1044         * WebCore.exp.in: Ditto.
1045         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
1046         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
1047         * WebCore.xcodeproj/project.pbxproj: Ditto.
1048         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
1049         * bindings/js/ScriptGCEvent.cpp: Removed.
1050         * bindings/js/ScriptGCEvent.h: Removed.
1051
1052         * inspector/InspectorMemoryAgent.cpp: Removed include.
1053
1054         * inspector/InspectorTimelineAgent.cpp:
1055         (WebCore::InspectorTimelineAgent::start): Removed GC event listening.
1056         Some day we might add it back, but for now it is dead code.
1057         (WebCore::InspectorTimelineAgent::stop): Ditto.
1058         (WebCore::usedHeapSize): Renamed from getUsedHeapSize and put the
1059         implementation here instead of indirecting through ScriptGCEvent.
1060         (WebCore::InspectorTimelineAgent::setDOMCounters): Updated for above changes.
1061         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord): Ditto.
1062         (WebCore::InspectorTimelineAgent::pushCurrentRecord): Ditto.
1063
1064         * inspector/InspectorTimelineAgent.h: Removed include.
1065
1066         * inspector/ScriptGCEventListener.h: Removed.
1067
1068         * testing/MemoryInfo.h: Updated to get heap capacity and size directly
1069         instead of going through ScriptGCEvent.
1070
1071 2013-10-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1072
1073         Generate toCSSFooValue() for CSSCursorImageValue, CSSCubicBezierTimingFunctionValue, CSSStepsTimingFunctionValue and CSSUnicodeRangeValue
1074         https://bugs.webkit.org/show_bug.cgi?id=122408
1075
1076         Reviewed by Darin Adler.
1077
1078         As a step to use toCSSFooValue, this patch generates toCSSFooValue() for CSSCursorImageValue,
1079         CSSCubicBezierTimingFunctionValue, CSSStepsTimingFunctionValue and CSSUnicodeRangeValue.
1080         This will help to detect bad type cast.
1081
1082         No new tests, no behavior changes.
1083
1084         * css/CSSCursorImageValue.h:
1085         * css/CSSTimingFunctionValue.h:
1086         * css/CSSToStyleMap.cpp:
1087         (WebCore::CSSToStyleMap::mapAnimationTimingFunction):
1088         * css/CSSUnicodeRangeValue.h:
1089         * css/CSSValue.cpp:
1090         (WebCore::CSSValue::destroy):
1091         * css/DeprecatedStyleBuilder.cpp:
1092         (WebCore::ApplyPropertyCursor::applyValue):
1093         * css/StyleResolver.cpp:
1094         (WebCore::StyleResolver::styleImage):
1095         (WebCore::StyleResolver::styleShader):
1096         * rendering/style/StylePendingImage.h:
1097         (WebCore::StylePendingImage::cssCursorImageValue):
1098
1099 2013-10-05  Andreas Kling  <akling@apple.com>
1100
1101         CTTE: Teach CompositeEditCommand that link Nodes are always Elements.
1102         <https://webkit.org/b/122400>
1103
1104         Reviewed by Sam Weinig.
1105
1106         Make pushAnchorElementDown() take an Element& instead of a Node* and
1107         tweak the surrounding code a tiny bit.
1108
1109 2013-10-06  Andreas Kling  <akling@apple.com>
1110
1111         CTTE: Node::enclosingLinkEventParentOrSelf() should return an Element.
1112         <https://webkit.org/b/122401>
1113
1114         Reviewed by Sam Weinig.
1115
1116         Only Elements are ever linked, so make enclosingLinkEventParentOrSelf()
1117         return an Element* instead of a Node*. The only call site was already
1118         doing toElement() on the return value without checking, so this makes
1119         things look a bit nicer.
1120
1121 2013-10-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1122
1123         Add *CSS* prefix to FontFeatureValue to generate toCSSFontFeatureValue(), and use it
1124         https://bugs.webkit.org/show_bug.cgi?id=122204
1125
1126         Reviewed by Darin Adler.
1127
1128         *CSS* prefix needs to be added to FontFeatureValue class in order to generate toCSSFontFeatureValue().
1129         static_cast<FontFeatureValue*> is changed with toCSSFontFeatureValue() by using this change.
1130
1131         No new tests, no behavior changes.
1132
1133         * CMakeLists.txt:
1134         * GNUmakefile.list.am:
1135         * Target.pri:
1136         * WebCore.vcxproj/WebCore.vcxproj:
1137         * WebCore.vcxproj/WebCore.vcxproj.filters:
1138         * WebCore.xcodeproj/project.pbxproj:
1139         * css/CSSComputedStyleDeclaration.cpp:
1140         (WebCore::ComputedStyleExtractor::propertyValue):
1141         * css/CSSFontFeatureValue.cpp: Renamed from Source/WebCore/css/FontFeatureValue.cpp.
1142         (WebCore::CSSFontFeatureValue::CSSFontFeatureValue):
1143         (WebCore::CSSFontFeatureValue::customCSSText):
1144         (WebCore::CSSFontFeatureValue::equals):
1145         * css/CSSFontFeatureValue.h: Renamed from Source/WebCore/css/FontFeatureValue.h.
1146         (WebCore::CSSFontFeatureValue::create):
1147         (WebCore::CSSFontFeatureValue::tag):
1148         (WebCore::CSSFontFeatureValue::value):
1149         * css/CSSParser.cpp:
1150         (WebCore::CSSParser::parseFontFeatureTag):
1151         * css/CSSValue.cpp:
1152         (WebCore::CSSValue::equals):
1153         (WebCore::CSSValue::cssText):
1154         (WebCore::CSSValue::destroy):
1155         * css/StyleResolver.cpp:
1156         (WebCore::StyleResolver::applyProperty):
1157
1158 2013-10-05  Andreas Kling  <akling@apple.com>
1159
1160         FrameSelection: Remove two unused member functions.
1161
1162         Rubber-stamped by Anders Carlsson.
1163
1164         - rootEditableElementOrTreeScopeRootNode()
1165         - rootEditableElementRespectingShadowTree()
1166
1167 2013-10-05  Andreas Kling  <akling@apple.com>
1168
1169         CTTE: Node::treeScope() should return a reference.
1170         <https://webkit.org/b/122399>
1171
1172         Reviewed by Superlative Sam.
1173
1174         Every Node belongs to a TreeScope. To enforce this, I've made
1175         treeScope() return a TreeScope&, and setTreeScope() now takes a
1176         TreeScope& so there is no way to clear it.
1177
1178 2013-10-05  Sam Weinig  <sam@webkit.org>
1179
1180         CTTE: Use references more for the Document parser
1181         https://bugs.webkit.org/show_bug.cgi?id=122398
1182
1183         Reviewed by Andreas Kling.
1184
1185         Clarify the construction semantics of Document parsers.
1186
1187 2013-10-05  Daniel Bates  <dabates@apple.com>
1188
1189         [iOS] Default initialize Settings::setFixedPositionCreatesStackingContext() to true
1190         https://bugs.webkit.org/show_bug.cgi?id=122338
1191         <rdar://problem/14908151>
1192
1193         Reviewed by Darin Adler.
1194
1195         On iOS we always want an element with a fixed position to create a stacking context.
1196         See <rdar://problem/9813262> for more details.
1197
1198         * page/Settings.cpp: Define constant defaultFixedPositionCreatesStackingContext to
1199         be true when building for iOS and false otherwise.
1200         * page/Settings.in: Initialize the setting fixedPositionCreatesStackingContext with
1201         the value of the constant defaultFixedPositionCreatesStackingContext.
1202
1203 2013-10-05  Sam Weinig  <sam@webkit.org>
1204
1205         CTTE: Pass DocumentWriter around as a reference
1206         https://bugs.webkit.org/show_bug.cgi?id=122396
1207
1208         Reviewed by Andreas Kling.
1209
1210         * bindings/js/ScriptController.cpp:
1211         (WebCore::ScriptController::executeIfJavaScriptURL):
1212         * dom/DecodedDataDocumentParser.cpp:
1213         (WebCore::DecodedDataDocumentParser::appendBytes):
1214         (WebCore::DecodedDataDocumentParser::flush):
1215         * dom/DecodedDataDocumentParser.h:
1216         * dom/DocumentParser.h:
1217         * dom/RawDataDocumentParser.h:
1218         (WebCore::RawDataDocumentParser::flush):
1219         * html/ImageDocument.cpp:
1220         (WebCore::ImageDocumentParser::appendBytes):
1221         * html/MediaDocument.cpp:
1222         (WebCore::MediaDocumentParser::appendBytes):
1223         (WebCore::MediaDocument::replaceMediaElementTimerFired):
1224         * html/PluginDocument.cpp:
1225         (WebCore::PluginDocumentParser::createDocumentStructure):
1226         (WebCore::PluginDocumentParser::appendBytes):
1227         * inspector/InspectorOverlay.cpp:
1228         (WebCore::InspectorOverlay::overlayPage):
1229         * loader/DocumentLoader.h:
1230         (WebCore::DocumentLoader::writer):
1231         * loader/DocumentWriter.cpp:
1232         (WebCore::DocumentWriter::addData):
1233         (WebCore::DocumentWriter::end):
1234         * loader/FrameLoader.cpp:
1235         (WebCore::FrameLoader::transitionToCommitted):
1236         * loader/SinkDocument.cpp:
1237         (WebCore::SinkDocumentParser::appendBytes):
1238         * svg/graphics/SVGImage.cpp:
1239         (WebCore::SVGImage::dataChanged):
1240
1241 2013-10-05  Andreas Kling  <akling@apple.com>
1242
1243         FrameView: Remove code for disabling repaints.
1244         <https://webkit.org/b/122393>
1245
1246         Reviewed by Sam Weinig.
1247
1248         Nobody uses this mode for anything so let's just remove it.
1249
1250         It was added back in r110469 to fix an issue with SVGImageCache
1251         and its only user disappeard in the cache overhaul in r142765.
1252
1253 2013-10-05  Andreas Kling  <akling@apple.com>
1254
1255         Remove IFrameShimSupport, it was only used by dead ports.
1256
1257         Rubber-stamped by Anders Carlsson.
1258
1259         * plugins/IFrameShimSupport.cpp: Removed.
1260         * plugins/IFrameShimSupport.h: Removed.
1261
1262 2013-10-05  Anders Carlsson  <andersca@apple.com>
1263
1264         Clean up MessageQueue.h
1265         https://bugs.webkit.org/show_bug.cgi?id=122392
1266
1267         Reviewed by Andreas Kling.
1268
1269         Update for changes to MessageQueue, mostly changing create functions to return std::unique_ptr.
1270         I intentionally avoided using std::make_unique in a couple of places because I didn't want to make nested classes
1271         public, and I believe that we can change some of this code to use std::function.
1272
1273         * Modules/webaudio/AsyncAudioDecoder.cpp:
1274         (WebCore::AsyncAudioDecoder::decodeAsync):
1275         (WebCore::AsyncAudioDecoder::runLoop):
1276         (WebCore::AsyncAudioDecoder::DecodingTask::create):
1277         * Modules/webaudio/AsyncAudioDecoder.h:
1278         * Modules/webdatabase/Database.cpp:
1279         (WebCore::Database::markAsDeletedAndClose):
1280         (WebCore::Database::tableNames):
1281         * Modules/webdatabase/DatabaseBackend.cpp:
1282         (WebCore::DatabaseBackend::openAndVerifyVersion):
1283         (WebCore::DatabaseBackend::scheduleTransaction):
1284         (WebCore::DatabaseBackend::scheduleTransactionStep):
1285         * Modules/webdatabase/DatabaseTask.h:
1286         (WebCore::DatabaseBackend::DatabaseOpenTask::create):
1287         (WebCore::DatabaseBackend::DatabaseCloseTask::create):
1288         (WebCore::DatabaseBackend::DatabaseTransactionTask::create):
1289         (WebCore::DatabaseBackend::DatabaseTableNamesTask::create):
1290         * Modules/webdatabase/DatabaseThread.cpp:
1291         (WebCore::DatabaseThread::databaseThread):
1292         (WebCore::DatabaseThread::scheduleTask):
1293         (WebCore::DatabaseThread::scheduleImmediateTask):
1294         (WebCore::SameDatabasePredicate::operator()):
1295         * Modules/webdatabase/DatabaseThread.h:
1296         * dom/default/PlatformMessagePortChannel.cpp:
1297         (WebCore::PlatformMessagePortChannel::EventData::create):
1298         (WebCore::MessagePortChannel::tryGetMessageFromRemote):
1299         * dom/default/PlatformMessagePortChannel.h:
1300         (WebCore::PlatformMessagePortChannel::MessagePortQueue::tryGetMessage):
1301         (WebCore::PlatformMessagePortChannel::MessagePortQueue::appendAndCheckEmpty):
1302         * fileapi/FileThread.cpp:
1303         (WebCore::FileThread::postTask):
1304         (WebCore::SameInstancePredicate::operator()):
1305         (WebCore::FileThread::runLoop):
1306         * fileapi/FileThread.h:
1307         * fileapi/FileThreadTask.h:
1308         (WebCore::createFileThreadTask):
1309         * storage/StorageThread.cpp:
1310         (WebCore::StorageThread::threadEntryPoint):
1311         (WebCore::StorageThread::dispatch):
1312         (WebCore::StorageThread::terminate):
1313         * workers/WorkerRunLoop.cpp:
1314         (WebCore::ModePredicate::operator()):
1315         (WebCore::WorkerRunLoop::runInMode):
1316         (WebCore::WorkerRunLoop::runCleanupTasks):
1317         (WebCore::WorkerRunLoop::Task::create):
1318         * workers/WorkerRunLoop.h:
1319
1320 2013-10-04  Dean Jackson  <dino@apple.com>
1321
1322         [WebGL] program should not be able to link if a bad shader is attached
1323         https://bugs.webkit.org/show_bug.cgi?id=94036
1324
1325         Reviewed by Darin Adler.
1326
1327         If you attempt to link a program when bad shaders are attached, the
1328         link should fail. WebGL also requires that the previously linked
1329         program should remain intact. We were doing the former, but not
1330         the latter.
1331
1332         Fix this by not calling glLinkProgram if we know we have bad
1333         shaders, and synthesize a bad link status instead.
1334
1335         Test: WebGL conformance test conformance/programs/program-test.html
1336         (found in LayoutTests/webgl)
1337
1338         * html/canvas/WebGLRenderingContext.cpp:
1339         (WebCore::WebGLRenderingContext::compileShader): Mark a shader as valid
1340         if it compiled ok.
1341         (WebCore::WebGLRenderingContext::linkProgram): Don't call into GraphicsContext3D::linkProgram
1342         if we know that we don't have valid shaders.
1343         * html/canvas/WebGLShader.cpp:
1344         (WebCore::WebGLShader::WebGLShader): Initialize m_isValid.
1345         * html/canvas/WebGLShader.h:
1346         (WebCore::WebGLShader::isValid): New member variable getter and setter.
1347         (WebCore::WebGLShader::setValid):
1348
1349 2013-10-05  Dean Jackson  <dino@apple.com>
1350
1351         Undo texture unit code refactoring - it is ok to bind a texture to multiple locations
1352         https://bugs.webkit.org/show_bug.cgi?id=122369
1353         <rdar://problem/15158465>
1354
1355         Reviewed by Darin Adler.
1356
1357         The optimisation in r152351 (http://webkit.org/b/117868) incorrectly
1358         assumes that a texture cannot be bound to more than one location.
1359         That's true only within the same program object. It's legal to
1360         address TEXTURE_BINDING_2D and TEXTURE_BINDING_CUBE_MAP with the
1361         same texture in different programs.
1362
1363         See https://github.com/KhronosGroup/WebGL/pull/391 for more information.
1364
1365         This change reverts the optimisation, but also does some minor
1366         cleanup (0 -> nullptr, class -> struct).
1367
1368         Covered by the following Khronos WebGL 1.0.1 tests, which
1369         now pass:
1370         - conformance/more/functions/texImage2DHTML.html
1371         - conformance/more/functions/texSubImage2D.html
1372         - conformance/more/functions/texSubImage2DHTML.html
1373
1374         * html/canvas/WebGLRenderingContext.cpp:
1375         (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
1376         (WebCore::WebGLRenderingContext::reshape):
1377         (WebCore::WebGLRenderingContext::bindTexture):
1378         (WebCore::WebGLRenderingContext::deleteTexture):
1379         (WebCore::WebGLRenderingContext::getParameter):
1380         (WebCore::WebGLRenderingContext::handleNPOTTextures):
1381         (WebCore::WebGLRenderingContext::validateTextureBinding):
1382         (WebCore::WebGLRenderingContext::restoreCurrentTexture2D):
1383         * html/canvas/WebGLRenderingContext.h:
1384
1385 2013-10-05  Anders Carlsson  <andersca@apple.com>
1386
1387         Remove createOwned
1388         https://bugs.webkit.org/show_bug.cgi?id=122388
1389
1390         Reviewed by Darin Adler.
1391
1392         * dom/Document.cpp:
1393         (WebCore::Document::Document):
1394         (WebCore::Document::~Document):
1395         (WebCore::Document::createRenderTree):
1396         (WebCore::Document::destroyRenderTree):
1397         * dom/Document.h:
1398         * page/Frame.cpp:
1399         (WebCore::Frame::Frame):
1400         * page/Frame.h:
1401         * page/animation/AnimationController.cpp:
1402         (WebCore::AnimationController::AnimationController):
1403         * page/animation/AnimationController.h:
1404         * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.h:
1405         * platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.h:
1406         * platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
1407         (WebCore::AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC):
1408         (WebCore::AudioTrackPrivateAVFObjC::setPlayerItemTrack):
1409         * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp:
1410         (WebCore::VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC):
1411         (WebCore::VideoTrackPrivateAVFObjC::setPlayerItemTrack):
1412         * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h:
1413         * rendering/svg/RenderSVGResourceClipper.cpp:
1414         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
1415         * rendering/svg/RenderSVGResourceClipper.h:
1416         * rendering/svg/RenderSVGResourceFilter.cpp:
1417         (WebCore::RenderSVGResourceFilter::applyResource):
1418         * rendering/svg/RenderSVGResourceFilter.h:
1419         * rendering/svg/RenderSVGResourceMasker.cpp:
1420         (WebCore::RenderSVGResourceMasker::applyResource):
1421         * rendering/svg/RenderSVGResourceMasker.h:
1422
1423 2013-10-05  Darin Adler  <darin@apple.com>
1424
1425         Remove COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) since it's required now
1426         https://bugs.webkit.org/show_bug.cgi?id=122387
1427
1428         Reviewed by Anders Carlsson.
1429
1430         * html/canvas/CanvasStyle.h: Take out conditionals.
1431
1432 2013-10-05  Darin Adler  <darin@apple.com>
1433
1434         Add AtomicString::number and use it
1435         https://bugs.webkit.org/show_bug.cgi?id=122384
1436
1437         Reviewed by Anders Carlsson.
1438
1439         * css/CSSGrammar.y.in: Use AtomicString::number instead of String::number since
1440         we are creating an AtomicString. This can save a memory allocation if the string
1441         happens to already be in the atomic string table.
1442         * dom/Element.cpp:
1443         (WebCore::Element::setIntegralAttribute): Ditto.
1444         (WebCore::Element::setUnsignedIntegralAttribute): Ditto.
1445         * editing/BreakBlockquoteCommand.cpp:
1446         (WebCore::BreakBlockquoteCommand::doApply): Ditto.
1447         * html/HTMLBodyElement.cpp:
1448         (WebCore::HTMLBodyElement::insertedInto): Use setIntegralAttribute instead of
1449         a local homegrown equivalent.
1450         * html/HTMLCanvasElement.cpp:
1451         (WebCore::HTMLCanvasElement::setHeight): Ditto.
1452         (WebCore::HTMLCanvasElement::setWidth): Ditto.
1453         * html/HTMLElement.cpp:
1454         (WebCore::HTMLElement::setTabIndex): Ditto.
1455         * html/HTMLImageElement.cpp:
1456         (WebCore::HTMLImageElement::setHeight): Ditto.
1457         (WebCore::HTMLImageElement::setWidth): Ditto.
1458         * html/HTMLInputElement.cpp:
1459         (WebCore::HTMLInputElement::setMaxLength): Ditto.
1460         (WebCore::HTMLInputElement::setSize): Same, but setUnsignedIntegralAttribute.
1461         (WebCore::HTMLInputElement::setHeight): Ditto.
1462         (WebCore::HTMLInputElement::setWidth): Ditto.
1463         * html/HTMLMediaElement.cpp:
1464         (WebCore::HTMLMediaElement::mediaPlayerSetSize): Ditto.
1465         * html/HTMLMeterElement.cpp:
1466         (WebCore::HTMLMeterElement::setMin): More of the same.
1467         (WebCore::HTMLMeterElement::setMax): Ditto.
1468         (WebCore::HTMLMeterElement::setValue): Ditto.
1469         (WebCore::HTMLMeterElement::setLow): Ditto.
1470         (WebCore::HTMLMeterElement::setHigh): Ditto.
1471         (WebCore::HTMLMeterElement::setOptimum): Ditto.
1472         * html/HTMLOListElement.cpp:
1473         (WebCore::HTMLOListElement::setStart): Ditto.
1474         * html/HTMLProgressElement.cpp:
1475         (WebCore::HTMLProgressElement::setValue): Ditto.
1476         (WebCore::HTMLProgressElement::setMax): Ditto.
1477         * html/HTMLSelectElement.cpp:
1478         (WebCore::HTMLSelectElement::parseAttribute): Ditto.
1479         (WebCore::HTMLSelectElement::setSize): Ditto.
1480         * html/HTMLTableCellElement.cpp:
1481         (WebCore::HTMLTableCellElement::setColSpan): Ditto.
1482         (WebCore::HTMLTableCellElement::setRowSpan): Ditto.
1483         * html/HTMLTableColElement.cpp:
1484         (WebCore::HTMLTableColElement::setSpan): Ditto.
1485         * html/HTMLTextAreaElement.cpp:
1486         (WebCore::HTMLTextAreaElement::setMaxLength): Ditto.
1487         (WebCore::HTMLTextAreaElement::setCols): Ditto.
1488         (WebCore::HTMLTextAreaElement::setRows): Ditto.
1489         * html/shadow/MediaControlElements.cpp:
1490         (WebCore::MediaControlTimelineElement::setDuration): Ditto.
1491
1492 2013-10-05  Darin Adler  <darin@apple.com>
1493
1494         Cut down on use of String::number
1495         https://bugs.webkit.org/show_bug.cgi?id=122382
1496
1497         Reviewed by Anders Carlsson.
1498
1499         * css/CSSGradientValue.cpp:
1500         (WebCore::CSSLinearGradientValue::customCSSText): Use StringBuilder::appendNumber,
1501         instead of creating a string and then appending it.
1502         (WebCore::CSSRadialGradientValue::customCSSText): Ditto.
1503         * css/CSSParser.cpp:
1504         (WebCore::CSSParser::createKeyframe): Ditto.
1505         * editing/DeleteButtonController.cpp:
1506         (WebCore::DeleteButtonController::createDeletionUI): Use ASCII literals instead of
1507         converting numeric constants to strings at runtime with String::number.
1508         (WebCore::DeleteButtonController::show): Ditto.
1509         * svg/SVGNumberList.cpp:
1510         (WebCore::SVGNumberList::valueAsString): Use StringBuilder::appendNumber.
1511         * svg/SVGPointList.cpp:
1512         (WebCore::SVGPointList::valueAsString): Ditto.
1513         * svg/SVGRect.h: Ditto.
1514
1515 2013-10-05  Anders Carlsson  <andersca@apple.com>
1516
1517         Test the waters and begin using lambdas
1518         https://bugs.webkit.org/show_bug.cgi?id=121809
1519
1520         Reviewed by Andreas Kling.
1521
1522         Use lambdas instead of static functions and function objects.
1523         
1524         * css/MediaQuery.cpp:
1525         (WebCore::MediaQuery::MediaQuery):
1526         * dom/MutationObserver.cpp:
1527         (WebCore::MutationObserver::deliverAllMutations):
1528         * page/CaptionUserPreferences.cpp:
1529         (WebCore::CaptionUserPreferences::sortedTrackListForMenu):
1530
1531 2013-10-05  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1532
1533         Add *CSS* prefix to FontValue to generate toCSSFontValue() 
1534         https://bugs.webkit.org/show_bug.cgi?id=122201
1535
1536         Reviewed by Darin Adler.
1537
1538         *CSS* prefix needs to be added to FontValue class in order to generate toCSSFontValue().
1539         static_cast<FontValue*> is changed with toCSSFontValue() by this change.
1540
1541         No new tests, no behavior changes.
1542
1543         * CMakeLists.txt:
1544         * GNUmakefile.list.am:
1545         * Target.pri:
1546         * WebCore.vcxproj/WebCore.vcxproj:
1547         * WebCore.vcxproj/WebCore.vcxproj.filters:
1548         * WebCore.xcodeproj/project.pbxproj:
1549         * css/CSSComputedStyleDeclaration.cpp:
1550         (WebCore::ComputedStyleExtractor::propertyValue):
1551         * css/CSSFontValue.cpp: Renamed from Source/WebCore/css/FontValue.cpp.
1552         (WebCore::CSSFontValue::customCSSText):
1553         (WebCore::CSSFontValue::equals):
1554         * css/CSSFontValue.h: Renamed from Source/WebCore/css/FontValue.h.
1555         (WebCore::CSSFontValue::create):
1556         (WebCore::CSSFontValue::CSSFontValue):
1557         * css/CSSParser.cpp:
1558         * css/CSSValue.cpp:
1559         (WebCore::CSSValue::equals):
1560         (WebCore::CSSValue::cssText):
1561         (WebCore::CSSValue::destroy):
1562         * css/StyleResolver.cpp:
1563         (WebCore::StyleResolver::applyProperty):
1564
1565 2013-10-05  Commit Queue  <commit-queue@webkit.org>
1566
1567         Unreviewed, rolling out r156952.
1568         http://trac.webkit.org/changeset/156952
1569         https://bugs.webkit.org/show_bug.cgi?id=122381
1570
1571         Made svg/custom/large-image-pattern-crash.html assert
1572         (Requested by ap on #webkit).
1573
1574         * rendering/InlineBox.cpp:
1575         (WebCore::InlineBox::paint):
1576         * rendering/InlineBox.h:
1577         * rendering/InlineFlowBox.cpp:
1578         (WebCore::InlineFlowBox::paintBoxDecorations):
1579         (WebCore::InlineFlowBox::paintMask):
1580         * rendering/InlineTextBox.cpp:
1581         (WebCore::InlineTextBox::paint):
1582         * rendering/PaintInfo.h:
1583         (WebCore::PaintInfo::shouldPaintWithinRoot):
1584         * rendering/RenderBlock.cpp:
1585         (WebCore::RenderBlock::paint):
1586         * rendering/RenderBox.cpp:
1587         (WebCore::RenderBox::paint):
1588         (WebCore::RenderBox::paintBoxDecorations):
1589         (WebCore::RenderBox::paintMask):
1590         * rendering/RenderBox.h:
1591         * rendering/RenderElement.h:
1592         * rendering/RenderFieldset.cpp:
1593         (WebCore::RenderFieldset::paintBoxDecorations):
1594         * rendering/RenderFrameSet.cpp:
1595         (WebCore::RenderFrameSet::paint):
1596         * rendering/RenderLineBreak.h:
1597         * rendering/RenderObject.cpp:
1598         (WebCore::RenderObject::paint):
1599         * rendering/RenderObject.h:
1600         * rendering/RenderReplaced.cpp:
1601         (WebCore::RenderReplaced::paint):
1602         (WebCore::RenderReplaced::shouldPaint):
1603         * rendering/RenderTable.cpp:
1604         (WebCore::RenderTable::paintObject):
1605         (WebCore::RenderTable::paintBoxDecorations):
1606         * rendering/RenderTableCell.cpp:
1607         (WebCore::RenderTableCell::paintCollapsedBorders):
1608         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1609         (WebCore::RenderTableCell::paintBoxDecorations):
1610         * rendering/RenderTableCol.h:
1611         * rendering/RenderText.h:
1612         * rendering/RenderView.cpp:
1613         (WebCore::RenderView::paint):
1614         (WebCore::RenderView::paintBoxDecorations):
1615         * rendering/RootInlineBox.cpp:
1616         (WebCore::RootInlineBox::paintEllipsisBox):
1617         (WebCore::RootInlineBox::paintCustomHighlight):
1618         * rendering/svg/RenderSVGContainer.cpp:
1619         (WebCore::RenderSVGContainer::paint):
1620         * rendering/svg/RenderSVGGradientStop.h:
1621         * rendering/svg/RenderSVGResourceClipper.cpp:
1622         (WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage):
1623         * rendering/svg/RenderSVGResourceMasker.cpp:
1624         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
1625         * rendering/svg/RenderSVGResourcePattern.cpp:
1626         (WebCore::RenderSVGResourcePattern::createTileImage):
1627         * rendering/svg/RenderSVGRoot.cpp:
1628         (WebCore::RenderSVGRoot::paintReplaced):
1629         * rendering/svg/SVGInlineTextBox.cpp:
1630         (WebCore::SVGInlineTextBox::paintSelectionBackground):
1631         (WebCore::SVGInlineTextBox::paint):
1632         * rendering/svg/SVGRenderingContext.cpp:
1633         (WebCore::SVGRenderingContext::renderSubtreeToImageBuffer):
1634         * rendering/svg/SVGRenderingContext.h:
1635         * svg/SVGUseElement.cpp:
1636         (WebCore::SVGUseElement::rendererClipChild):
1637         * svg/SVGUseElement.h:
1638         * svg/graphics/filters/SVGFEImage.cpp:
1639         (WebCore::FEImage::platformApplySoftware):
1640
1641 2013-10-05  Darin Adler  <darin@apple.com>
1642
1643         Need to check if some HTML child elements are HTMLUnknownElement
1644         https://bugs.webkit.org/show_bug.cgi?id=120297
1645
1646         Reviewed by Andreas Kling.
1647
1648         Test: fast/media/media-disable-crash.html
1649
1650         * dom/make_names.pl:
1651         (printConstructorInterior): Added additional comments about the
1652         wrapperOnlyIfMediaIsAvailable feature.
1653         (printTypeHelpers): Added an isHTMLUnknownElement check to the check helper
1654         functions for tags with the wrapperOnlyIfMediaIsAvailable feature.
1655         (printWrapperFunctions): Instead of redoing the media player check and the
1656         settings check, and possibly making a wrapper of the wrong type, call
1657         isHTMUnknownElement, guaranteeing that the wrapper will match the element
1658         it is wrapping.
1659
1660         * html/HTMLElement.h: Move HTMLElementTypeHelpers.h to the bottom of the
1661         file so that functions from that file can be use the HTMLElement class and
1662         other things defined in this file.
1663
1664         * html/HTMLMediaElement.cpp:
1665         (WebCore::HTMLMediaElement::paused): Added an assertion that made the regression
1666         test reliably assert, rather than intermittently (for me, non-reproducibly) crash.
1667
1668 2013-10-04  Antti Koivisto  <antti@apple.com>
1669
1670         Move paint() to RenderElement
1671         https://bugs.webkit.org/show_bug.cgi?id=122371
1672
1673         Reviewed by Darin Adler.
1674
1675         RenderText does not paint itself (text is painted by line boxes). We can move paint() down
1676         to RenderElement.
1677         
1678         This also requires some type tightening elsewhere in the code.
1679
1680 2013-10-04  Ryosuke Niwa  <rniwa@webkit.org>
1681
1682         Fix an assertion failure introduced in r156925.
1683
1684         Add HTMLImageElement to the document-wide map only if it's in the document.
1685
1686         * html/HTMLImageElement.cpp:
1687         (WebCore::HTMLImageElement::parseAttribute):
1688
1689 2013-10-04  Darin Adler  <darin@apple.com>
1690
1691         text-transform: lowercase is not lang-dependent (Turkish languages : tr,az)
1692         https://bugs.webkit.org/show_bug.cgi?id=21312
1693
1694         Reviewed by Ryosuke Niwa.
1695
1696         Test: fast/text/text-transform-turkish-and-azeri.html
1697
1698         This patch covers text-transform: uppercase and text-transform: lowercase.
1699         More changes will be needed to cover text-transform: capitalize.
1700
1701         * inspector/DOMPatchSupport.cpp:
1702         (WebCore::DOMPatchSupport::patchNode): Use String::upper instead of String::makeUpper.
1703         * page/EventHandler.cpp:
1704         (WebCore::findDropZone): Use String::lower instead of String::makeLower.
1705         * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
1706         (WebCore::HarfBuzzShaper::shapeHarfBuzzRuns): Use String::upper instead of String::makeUpper.
1707         * platform/network/blackberry/rss/RSS10Parser.cpp: [Seriously, how is an RSS parser
1708         part of WebKit's networking layer? Where are the tests that cover this? Seems wrong
1709         to have this code in the project.]
1710         (WebCore::RSS10Parser::parseXmlDoc): Use lower instead of makeLower.
1711         (WebCore::RSS10Parser::parseItem): Ditto.
1712         (WebCore::RSS10Parser::parseFeed): Ditto.
1713         * platform/network/blackberry/rss/RSS20Parser.cpp:
1714         (WebCore::RSS20Parser::parseXmlDoc): Ditto.
1715         (WebCore::RSS20Parser::parseItem): Ditto.
1716         (WebCore::RSS20Parser::parseFeed): Ditto.
1717         (WebCore::RSS20Parser::parseEnclosure): Ditto.
1718         * platform/network/blackberry/rss/RSSAtomParser.cpp:
1719         (WebCore::RSSAtomParser::parseXmlDoc): Ditto.
1720         (WebCore::RSSAtomParser::parseItem): Ditto.
1721         (WebCore::RSSAtomParser::parseFeed): Ditto.
1722         (WebCore::RSSAtomParser::parseLink): Ditto.
1723         (WebCore::RSSAtomParser::parseContent): Ditto.
1724         (WebCore::RSSAtomParser::parseAuthor): Ditto.
1725         (WebCore::RSSAtomParser::parseCategory): Ditto.
1726         * platform/text/win/LocaleWin.cpp:
1727         (WebCore::convertLocaleNameToLCID): Use String::lower instead of String::makeLower.
1728         * rendering/RenderText.cpp:
1729         (WebCore::applyTextTransform): Use String::upper and String::lower instead of
1730         String::makeUpper and String::makeLower, and also pass in the locale to each.
1731         * xml/XMLHttpRequest.cpp:
1732         (WebCore::XMLHttpRequest::uppercaseKnownHTTPMethod): Changed this so it doesn't call
1733         upper just to return an already known string constant.
1734
1735 2013-10-04  Alexey Proskuryakov  <ap@apple.com>
1736
1737         Roll out r156930 and r156937, they caused 34 assertion failures on bots.
1738
1739         * css/mathml.css:
1740         * mathml/MathMLTextElement.cpp:
1741         * mathml/MathMLTextElement.h:
1742         * rendering/RenderFlexibleBox.h:
1743         * rendering/mathml/RenderMathMLBlock.cpp:
1744         * rendering/mathml/RenderMathMLBlock.h:
1745         * rendering/mathml/RenderMathMLFenced.cpp:
1746         * rendering/mathml/RenderMathMLOperator.cpp:
1747         * rendering/mathml/RenderMathMLOperator.h:
1748         * rendering/mathml/RenderMathMLRoot.cpp:
1749         * rendering/mathml/RenderMathMLRoot.h:
1750         * rendering/mathml/RenderMathMLRow.cpp:
1751         * rendering/mathml/RenderMathMLRow.h:
1752
1753 2013-10-04  Anders Carlsson  <andersca@apple.com>
1754
1755         FramePolicyFunction should be an std::function
1756         https://bugs.webkit.org/show_bug.cgi?id=122362
1757
1758         Reviewed by Darin Adler.
1759
1760         This makes policy callback handling simpler inside WebKit.
1761
1762         * loader/EmptyClients.cpp:
1763         (WebCore::EmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1764         (WebCore::EmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1765         (WebCore::EmptyFrameLoaderClient::dispatchWillSubmitForm):
1766         * loader/EmptyClients.h:
1767         * loader/FrameLoader.cpp:
1768         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
1769         * loader/FrameLoaderClient.h:
1770         * loader/PolicyChecker.cpp:
1771         (WebCore::PolicyChecker::checkNavigationPolicy):
1772         (WebCore::PolicyChecker::checkNewWindowPolicy):
1773         (WebCore::PolicyChecker::checkContentPolicy):
1774
1775 2013-10-04  Andreas Kling  <akling@apple.com>
1776
1777         CTTE: IconController and IconLoader should have Frame& backpointer.
1778         <https://webkit.org/b/122372>
1779
1780         Reviewed by Anders Carlsson.
1781
1782         Also slap IconLoader with FINAL glove.
1783
1784 2013-10-04  Andreas Kling  <akling@apple.com>
1785
1786         CTTE: RenderScrollbar DOM owner is always an Element.
1787         <https://webkit.org/b/122348>
1788
1789         Reviewed by Antti Koivisto.
1790
1791         When RenderScrollbar is owned by a DOM node, it's always Element.
1792         Tighten the code a bit with this knowledge.
1793
1794         Also marked the class FINAL and beat it with the OVERRIDE stick.
1795
1796 2013-10-04  Andreas Kling  <akling@apple.com>
1797
1798         TypingCommand helpers should take Document&.
1799         <https://webkit.org/b/122370>
1800
1801         Reviewed by Anders Carlsson.
1802
1803         Instead of taking a Document* and immediately asserting that it's
1804         non-null, just take Document&.
1805
1806 2013-10-04  Ryosuke Niwa  <rniwa@webkit.org>
1807
1808         Use more references instead of pointers in DocumentOrderedMap
1809         https://bugs.webkit.org/show_bug.cgi?id=122368
1810
1811         Reviewed by Andreas Kling.
1812
1813         Use AtomicStringImpl& instead of AtomicString* or AtomicString& to eliminate
1814         assertions and nullity checks.
1815
1816         * bindings/js/JSDOMWindowCustom.cpp:
1817         (WebCore::namedItemGetter):
1818         (WebCore::JSDOMWindow::getOwnPropertySlot):
1819         (WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
1820         * bindings/js/JSHTMLDocumentCustom.cpp:
1821         (WebCore::JSHTMLDocument::canGetItemsForName):
1822         (WebCore::JSHTMLDocument::nameGetter):
1823         * dom/Document.cpp:
1824         (WebCore::Document::addImageElementByLowercasedUsemap):
1825         (WebCore::Document::removeImageElementByLowercasedUsemap):
1826         (WebCore::Document::imageElementByLowercasedUsemap):
1827         * dom/Document.h:
1828         * dom/DocumentOrderedMap.cpp:
1829         (WebCore::keyMatchesId):
1830         (WebCore::keyMatchesName):
1831         (WebCore::keyMatchesMapName):
1832         (WebCore::keyMatchesLowercasedMapName):
1833         (WebCore::keyMatchesLowercasedUsemap):
1834         (WebCore::keyMatchesLabelForAttribute):
1835         (WebCore::keyMatchesWindowNamedItem):
1836         (WebCore::keyMatchesDocumentNamedItem):
1837         (WebCore::DocumentOrderedMap::add):
1838         (WebCore::DocumentOrderedMap::remove):
1839         (WebCore::DocumentOrderedMap::get):
1840         (WebCore::DocumentOrderedMap::getElementById):
1841         (WebCore::DocumentOrderedMap::getElementByName):
1842         (WebCore::DocumentOrderedMap::getElementByMapName):
1843         (WebCore::DocumentOrderedMap::getElementByLowercasedMapName):
1844         (WebCore::DocumentOrderedMap::getElementByLowercasedUsemap):
1845         (WebCore::DocumentOrderedMap::getElementByLabelForAttribute):
1846         (WebCore::DocumentOrderedMap::getElementByWindowNamedItem):
1847         (WebCore::DocumentOrderedMap::getElementByDocumentNamedItem):
1848         (WebCore::DocumentOrderedMap::getAllElementsById):
1849         * dom/DocumentOrderedMap.h:
1850         (WebCore::DocumentOrderedMap::containsSingle):
1851         (WebCore::DocumentOrderedMap::contains):
1852         (WebCore::DocumentOrderedMap::containsMultiple):
1853         * dom/Element.cpp:
1854         (WebCore::Element::updateNameForTreeScope):
1855         (WebCore::Element::updateNameForDocument):
1856         (WebCore::Element::updateIdForTreeScope):
1857         (WebCore::Element::updateIdForDocument):
1858         (WebCore::Element::updateLabel):
1859         * dom/IdTargetObserverRegistry.cpp:
1860         (WebCore::IdTargetObserverRegistry::notifyObserversInternal):
1861         * dom/IdTargetObserverRegistry.h:
1862         (WebCore::IdTargetObserverRegistry::notifyObservers):
1863         * dom/TreeScope.cpp:
1864         (WebCore::TreeScope::getElementById):
1865         (WebCore::TreeScope::getAllElementsById):
1866         (WebCore::TreeScope::addElementById):
1867         (WebCore::TreeScope::removeElementById):
1868         (WebCore::TreeScope::getElementByName):
1869         (WebCore::TreeScope::addElementByName):
1870         (WebCore::TreeScope::removeElementByName):
1871         (WebCore::TreeScope::addImageMap):
1872         (WebCore::TreeScope::removeImageMap):
1873         (WebCore::TreeScope::getImageMap):
1874         (WebCore::TreeScope::addLabel):
1875         (WebCore::TreeScope::removeLabel):
1876         (WebCore::TreeScope::labelElementForId):
1877         * dom/TreeScope.h:
1878         (WebCore::TreeScope::hasElementWithId):
1879         (WebCore::TreeScope::containsMultipleElementsWithId):
1880         (WebCore::TreeScope::hasElementWithName):
1881         (WebCore::TreeScope::containsMultipleElementsWithName):
1882         * html/HTMLCollection.cpp:
1883         (WebCore::HTMLCollection::namedItem):
1884         * html/HTMLDocument.cpp:
1885         (WebCore::HTMLDocument::addDocumentNamedItem):
1886         (WebCore::HTMLDocument::removeDocumentNamedItem):
1887         (WebCore::HTMLDocument::addWindowNamedItem):
1888         (WebCore::HTMLDocument::removeWindowNamedItem):
1889         * html/HTMLDocument.h:
1890         (WebCore::HTMLDocument::documentNamedItem):
1891         (WebCore::HTMLDocument::hasDocumentNamedItem):
1892         (WebCore::HTMLDocument::documentNamedItemContainsMultipleElements):
1893         (WebCore::HTMLDocument::windowNamedItem):
1894         (WebCore::HTMLDocument::hasWindowNamedItem):
1895         (WebCore::HTMLDocument::windowNamedItemContainsMultipleElements):
1896         * html/HTMLImageElement.cpp:
1897         (WebCore::HTMLImageElement::parseAttribute):
1898         (WebCore::HTMLImageElement::insertedInto):
1899         (WebCore::HTMLImageElement::removedFrom):
1900         * html/HTMLMapElement.cpp:
1901         (WebCore::HTMLMapElement::imageElement):
1902         (WebCore::HTMLMapElement::parseAttribute):
1903         (WebCore::HTMLMapElement::insertedInto):
1904         (WebCore::HTMLMapElement::removedFrom):
1905         * html/HTMLObjectElement.cpp:
1906         (WebCore::HTMLObjectElement::updateDocNamedItem):
1907
1908 2013-10-04  Andreas Kling  <akling@apple.com>
1909
1910         CTTE: PolicyChecker backpointer to Frame should be a reference.
1911         <https://webkit.org/b/122354>
1912
1913         Reviewed by Anders Carlsson.
1914
1915         PolicyChecker is tied to the lifetime of FrameLoader, which in turn
1916         is tied to the lifetime of Frame.
1917
1918 2013-10-04  Andreas Kling  <akling@apple.com>
1919
1920         Editor should use reference-getting document() internally.
1921         <https://webkit.org/b/122364>
1922
1923         Reviewed by Darin Adler.
1924
1925         Instead of grabbing at Editor::m_frame.document(), use the nice
1926         Editor::document() helper that always returns a Document&.
1927
1928         Calling Editor methods on a Frame's editor() while there is no
1929         Document in the Frame is a programming error and this is covered
1930         by an assertion in document().
1931
1932         This removes a bunch of null checks and enables further cleanup.
1933
1934 2013-10-04  Martin Robinson  <mrobinson@igalia.com>
1935
1936         Try to fix the Windows build after r156930.
1937
1938         * rendering/mathml/RenderMathMLOperator.cpp:
1939         (WebCore::RenderMathMLOperator::paintCharacter): Use ceilf and floorf to avoid issues
1940         with overload collisions and implicit casts of LayoutUnits.
1941
1942 2013-10-04  Mark Lam  <mark.lam@apple.com>
1943
1944         Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
1945         https://bugs.webkit.org/show_bug.cgi?id=121969.
1946
1947         Reviewed by Geoffrey Garen.
1948
1949         Tests: inspector-protocol/debugger/call-frame-function-name.html
1950                inspector-protocol/debugger/call-frame-this-host.html
1951                inspector-protocol/debugger/call-frame-this-nonstrict.html
1952                inspector-protocol/debugger/call-frame-this-strict.html
1953
1954         1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
1955            DebuggerCallFrame now tracks whether it is valid instead of needing
1956            JavaScriptCallFrame do it.
1957         2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
1958            just before it pauses and calls back to its client, and then invalidates
1959            it immediately when the callback returns. Every subsequent callback to
1960            the client will use a new instance of the DebuggerCallFrame.
1961         3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
1962            it "pauses".
1963         4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
1964            it is needed i.e. when the client calls callerFrame(). Similarly,
1965            JavaScriptCallFrame only creates its caller when it's requested.
1966         5. DebuggerCallFrame's line() and column() now returns a base-zero int.
1967         6. WebScriptDebugDelegate now only caches the functionName of the frame
1968            instead of the entire DebuggerCallFrame because that is all that is
1969            needed.
1970         7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
1971
1972         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
1973         (WebCore::JSJavaScriptCallFrame::thisObject):
1974         * bindings/js/JavaScriptCallFrame.cpp:
1975         (WebCore::JavaScriptCallFrame::JavaScriptCallFrame):
1976         (WebCore::JavaScriptCallFrame::caller):
1977         * bindings/js/JavaScriptCallFrame.h:
1978         (WebCore::JavaScriptCallFrame::create):
1979         (WebCore::JavaScriptCallFrame::sourceID):
1980         (WebCore::JavaScriptCallFrame::position):
1981         (WebCore::JavaScriptCallFrame::line):
1982         (WebCore::JavaScriptCallFrame::column):
1983         (WebCore::JavaScriptCallFrame::functionName):
1984         (WebCore::JavaScriptCallFrame::type):
1985         (WebCore::JavaScriptCallFrame::scopeChain):
1986         (WebCore::JavaScriptCallFrame::dynamicGlobalObject):
1987         (WebCore::JavaScriptCallFrame::thisValue):
1988         (WebCore::JavaScriptCallFrame::evaluate):
1989         * bindings/js/ScriptDebugServer.cpp:
1990         (WebCore::DebuggerCallFrameScope::DebuggerCallFrameScope):
1991         (WebCore::DebuggerCallFrameScope::~DebuggerCallFrameScope):
1992         (WebCore::ScriptDebugServer::ScriptDebugServer):
1993         (WebCore::ScriptDebugServer::setBreakpoint):
1994         (WebCore::ScriptDebugServer::removeBreakpoint):
1995         (WebCore::ScriptDebugServer::hasBreakpoint):
1996         (WebCore::ScriptDebugServer::evaluateBreakpointAction):
1997         (WebCore::ScriptDebugServer::breakProgram):
1998         (WebCore::ScriptDebugServer::stepOverStatement):
1999         (WebCore::ScriptDebugServer::stepOutOfFunction):
2000         (WebCore::ScriptDebugServer::currentDebuggerCallFrame):
2001         (WebCore::ScriptDebugServer::dispatchDidPause):
2002         (WebCore::ScriptDebugServer::updateCallFrame):
2003         (WebCore::ScriptDebugServer::updateCallFrameAndPauseIfNeeded):
2004         (WebCore::ScriptDebugServer::pauseIfNeeded):
2005         (WebCore::ScriptDebugServer::callEvent):
2006         (WebCore::ScriptDebugServer::returnEvent):
2007         (WebCore::ScriptDebugServer::willExecuteProgram):
2008         (WebCore::ScriptDebugServer::didExecuteProgram):
2009         * bindings/js/ScriptDebugServer.h:
2010         * bindings/js/WorkerScriptDebugServer.cpp:
2011         (WebCore::WorkerScriptDebugServer::willExecuteProgram):
2012
2013 2013-10-04  Andreas Kling  <akling@apple.com>
2014
2015         Ref-ify more stack guards.
2016         <https://webkit.org/b/122360>
2017
2018         Reviewed by Anders Carlsson.
2019
2020         Make another pass turning RefPtr<T> into Ref<T> where possible.
2021
2022 2013-10-04  Ojan Vafai  <ojan@chromium.org> and Martin Robinson  <mrobinson@igalia.com>
2023
2024         [MathML] Remove RenderTree modification during layout and refactor the StretchyOp code
2025         https://bugs.webkit.org/show_bug.cgi?id=121416
2026
2027         Reviewed by David Hyatt.
2028
2029         Tests: mathml/presentation/mo-minus.html
2030                mathml/presentation/mo-stacked-glyphs.html
2031                mathml/presentation/mo-stretchy-vertical-bar.html
2032                mathml/very-large-stretchy-operators.html
2033
2034         MathML stretched operators by both modifying the width of the operator
2035         and adding children to the operator node in the render tree.
2036
2037         Instead we make the operator width equal to the widest glyph possible that we use
2038         to represent the operator.  Additionally instead of rendering stretchy glyphs via
2039         stacked operator pieces in separate render tree nodes, keep only one node for the
2040         glyph, and use a custom paint method to paint the stacked representation.
2041
2042         With this patch, rendering seems roughly equivalent on Mac and markedly better
2043         on Linux.
2044
2045         * css/mathml.css:
2046         Not sure what this line-height:0 was here for, but it caused bugs with the new code
2047
2048         * mathml/MathMLTextElement.cpp:
2049         (WebCore::MathMLTextElement::attach):
2050         (WebCore):
2051         (WebCore::MathMLTextElement::childrenChanged):
2052         Need to update the anonymous render tree below <mo> elements when their
2053         children change or when the renderer is first attached.
2054
2055         * mathml/MathMLTextElement.h:
2056         (MathMLTextElement):
2057         * rendering/mathml/RenderMathMLBlock.cpp:
2058         (WebCore::RenderMathMLBlock::RenderMathMLBlock):
2059         * rendering/mathml/RenderMathMLBlock.h:
2060         Now that the preferred width doesn't depend on the height, we don't
2061         need to override computePreferredLogicalWidths at all.
2062
2063         * rendering/mathml/RenderMathMLFenced.cpp:
2064         (WebCore::RenderMathMLFenced::makeFences):
2065         (WebCore::RenderMathMLFenced::styleDidChange):
2066         Need to update the anonymous renderers for the anonymous RenderMathMLOperators.
2067
2068         * rendering/mathml/RenderMathMLOperator.cpp:
2069         (WebCore::RenderMathMLOperator::expandedStretchHeight):
2070         Store the non-expanded stretch height so that we can detect when the height
2071         actually changed.
2072
2073         (WebCore::RenderMathMLOperator::stretchToHeight):
2074         Only update the style on the anonymous render tree since this is called
2075         from RenderMathMLRow::layout
2076
2077         (WebCore::RenderMathMLOperator::styleDidChange):
2078         (WebCore::RenderMathMLOperator::glyphBoundsForCharacter): A helper to get glyph boundaries.
2079         (WebCore::RenderMathMLOperator::glyphHeightForCharacter): Ditto for glyph width.
2080         (WebCore::RenderMathMLOperator::advanceForCharacter): The advance is different from the width,
2081         and we want the width of the operator to be the advance instead of the tight bounding width.
2082         (WebCore::RenderMathMLOperator::computePreferredLogicalWidths): Use the max of all possible glyphs
2083         we can use to render this operator.
2084         (WebCore::RenderMathMLOperator::updateFromElement): We add a child for rendering the non-scaled
2085         version of the glyph.
2086         (WebCore::RenderMathMLOperator::firstCharacterForStretching): Helper to figure out what character
2087         is the character used for stretching operations.
2088         (WebCore::RenderMathMLOperator::findAcceptableStretchyCharacter): Helper to find an acceptable set
2089         of glyph pieces for stretching characters.
2090         (WebCore::RenderMathMLOperator::updateStyle): Resize the operator to the appropriate height and hide
2091         the child if we are using the stretchy style.
2092         (WebCore::RenderMathMLOperator::firstLineBoxBaseline):
2093         (WebCore::RenderMathMLOperator::paintCharacter): Helper to paint a single character component of the
2094         stretchy glyph.
2095         (WebCore::RenderMathMLOperator::fillWithExtensionGlyph): Helper to paint the extender glue between
2096         features of the stretchy glyph.
2097         (WebCore::RenderMathMLOperator::paint): Properly paint stretchy glyphs.
2098         * rendering/mathml/RenderMathMLOperator.h: Update method declarations.
2099
2100 2013-10-04  Ryosuke Niwa  <rniwa@webkit.org>
2101
2102         Build fix after r156925. It collided with r156903.
2103
2104         * html/HTMLImageElement.cpp:
2105         (WebCore::HTMLImageElement::insertedInto):
2106         (WebCore::HTMLImageElement::removedFrom):
2107
2108 2013-10-04  Andreas Kling  <akling@apple.com>
2109
2110         Clean out some FrameLoaderClient hooks that no ports were using.
2111         <https://webkit.org/b/122356>
2112
2113         Reviewed by Anders Carlsson.
2114
2115         Removed the following hooks that were leftovers from dead ports:
2116
2117             - didExhaustMemoryAvailableForScript
2118             - didNotAllowScript
2119             - didNotAllowPlugins
2120             - willCheckAndDispatchMessageEvent
2121             - didChangeName
2122             - dispatchWillInsertBody
2123             - dispatchDidChangeResourcePriority
2124
2125 2013-10-03  Ryosuke Niwa  <rniwa@webkit.org>
2126
2127         FocusController::advanceFocus spends a lot of time in HTMLMapElement::imageElement
2128         https://bugs.webkit.org/show_bug.cgi?id=122313
2129
2130         Reviewed by Andreas Kling.
2131
2132         The bug was caused by HTMLMapElement::imageElement traversing the entire document to look for
2133         the image element associated with a given map element. Because HTMLCollection used to find the
2134         image element is not cached, it traversed the entire document on every area element we visit,
2135         resulting in O(n^2) behavior.
2136
2137         Fixed the bug by adding the name-to-image-element map on document to avoid the traversal in
2138         HTMLMapElement::imageElement.
2139
2140         * dom/Document.cpp:
2141         (WebCore::Document::addImageElementByLowercasedUsemap): Added.
2142         (WebCore::Document::removeImageElementByLowercasedUsemap): Added.
2143         (WebCore::Document::imageElementByLowercasedUsemap): Added.
2144
2145         * dom/Document.h: Added m_imagesByUsemap.
2146
2147         * dom/DocumentOrderedMap.cpp:
2148         (WebCore::keyMatchesLowercasedUsemap): Added.
2149         (WebCore::DocumentOrderedMap::getElementByLowercasedUsemap): Added.
2150
2151         * dom/DocumentOrderedMap.h:
2152         * html/HTMLImageElement.cpp:
2153         (WebCore::HTMLImageElement::parseAttribute): Update the name-to-usemap map. The code to parse
2154         the usemap attribute and strip # was moved from HTMLMapElement::imageElement.
2155         (WebCore::HTMLImageElement::insertedInto): Ditto.
2156         (WebCore::HTMLImageElement::removedFrom): Ditto.
2157         (WebCore::HTMLImageElement::matchesLowercasedUsemap): Added; called by DocumentOrderedMap.
2158
2159         * html/HTMLImageElement.h:
2160
2161         * html/HTMLMapElement.cpp:
2162         (WebCore::HTMLMapElement::imageElement): Call Document::imageElementByUsemap instead of
2163         looking through all image elements in the document.
2164
2165 2013-10-04  Sam Weinig  <sam@webkit.org>
2166
2167         Unify rubberband control
2168         https://bugs.webkit.org/show_bug.cgi?id=122341
2169
2170         Reviewed by Tim Horton.
2171
2172         - Consolidates the two ways we were passing state about whether
2173           to rubber-band on a particular edge down to one.
2174
2175         * WebCore.exp.in:
2176         * page/Page.cpp:
2177         * page/Page.h:
2178         * page/scrolling/ScrollingCoordinator.h:
2179         (WebCore::ScrollingCoordinator::isRubberBandInProgress):
2180         * page/scrolling/ScrollingTree.cpp:
2181         (WebCore::ScrollingTree::ScrollingTree):
2182         (WebCore::ScrollingTree::setCanRubberBandState):
2183         (WebCore::ScrollingTree::rubberBandsAtLeft):
2184         (WebCore::ScrollingTree::rubberBandsAtRight):
2185         (WebCore::ScrollingTree::rubberBandsAtBottom):
2186         (WebCore::ScrollingTree::rubberBandsAtTop):
2187         (WebCore::ScrollingTree::willWheelEventStartSwipeGesture):
2188         * page/scrolling/ScrollingTree.h:
2189         * page/scrolling/mac/ScrollingCoordinatorMac.h:
2190         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
2191         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2192         (WebCore::ScrollingTreeScrollingNodeMac::shouldRubberBandInDirection):
2193
2194 2013-10-04  Andreas Kling  <akling@apple.com>
2195
2196         CTTE: SubframeLoader backpointer to Frame should be a reference.
2197         <https://webkit.org/b/122350>
2198
2199         Reviewed by Anders Carlsson.
2200
2201         SubframeLoader is tied to the lifetime of FrameLoader, which in turn
2202         is tied to the lifetime of Frame.
2203
2204 2013-10-04  Anders Carlsson  <andersca@apple.com>
2205
2206         Remove some unneeded code from WidgetMac
2207         https://bugs.webkit.org/show_bug.cgi?id=122355
2208
2209         Reviewed by Dan Bernstein.
2210
2211         Remove code to manage the visible rect, it's not needed anymore.
2212
2213         * platform/Widget.h:
2214         * platform/mac/WidgetMac.mm:
2215         (WebCore::Widget::~Widget):
2216         (WebCore::Widget::setFrameRect):
2217         (WebCore::Widget::setPlatformWidget):
2218
2219 2013-10-04  Daniel Bates  <dabates@apple.com>
2220
2221         [iOS] Upstream disk image cache
2222         https://bugs.webkit.org/show_bug.cgi?id=121985
2223
2224         Reviewed by Joseph Pecoraro.
2225
2226         * WebCore.exp.in:
2227         * WebCore.xcodeproj/project.pbxproj:
2228         * loader/ResourceBuffer.cpp:
2229         (WebCore::ResourceBuffer::isUsingDiskImageCache):
2230         * loader/ResourceBuffer.h:
2231         * loader/cache/CachedImage.cpp:
2232         (WebCore::CachedImage::canUseDiskImageCache): Added.
2233         (WebCore::CachedImage::useDiskImageCache): Added.
2234         * loader/cache/CachedImage.h:
2235         * loader/cache/CachedResource.cpp:
2236         (WebCore::CachedResource::isSafeToMakePurgeable):
2237         (WebCore::CachedResource::isUsingDiskImageCache): Added.
2238         * loader/cache/CachedResource.h:
2239         (WebCore::CachedResource::canUseDiskImageCache): Added.
2240         (WebCore::CachedResource::useDiskImageCache): Added.
2241         * loader/cache/MemoryCache.cpp:
2242         (WebCore::MemoryCache::flushCachedImagesToDisk): Added.
2243         (WebCore::MemoryCache::TypeStatistic::addResource):
2244         (WebCore::MemoryCache::dumpStats):
2245         (WebCore::MemoryCache::dumpLRULists):
2246         * loader/cache/MemoryCache.h:
2247         (WebCore::MemoryCache::TypeStatistic::TypeStatistic):
2248         * loader/ios/DiskImageCacheClientIOS.h: Added.
2249         * loader/ios/DiskImageCacheIOS.h: Added.
2250         * loader/ios/DiskImageCacheIOS.mm: Added.
2251         * platform/Logging.h:
2252         * platform/SharedBuffer.cpp:
2253         (WebCore::SharedBuffer::SharedBuffer):
2254         (WebCore::SharedBuffer::~SharedBuffer):
2255         (WebCore::SharedBuffer::isAllowedToBeMemoryMapped): Added.
2256         (WebCore::SharedBuffer::allowToBeMemoryMapped): Added.
2257         (WebCore::SharedBuffer::failedMemoryMap): Added.
2258         (WebCore::SharedBuffer::markAsMemoryMapped): Added.
2259         (WebCore::SharedBuffer::memoryMappedNotificationCallbackData): Added.
2260         (WebCore::SharedBuffer::memoryMappedNotificationCallback): Added.
2261         (WebCore::SharedBuffer::setMemoryMappedNotificationCallback): Added.
2262         (WebCore::SharedBuffer::data):
2263         (WebCore::SharedBuffer::append):
2264         (WebCore::SharedBuffer::buffer):
2265         (WebCore::SharedBuffer::getSomeData):
2266         * platform/SharedBuffer.h:
2267         (WebCore::SharedBuffer::isMemoryMapped): Added.
2268         * platform/cf/SharedBufferCF.cpp:
2269         (WebCore::SharedBuffer::SharedBuffer):
2270
2271 2013-10-04  Bear Travis  <betravis@adobe.com>
2272
2273         [CSS Shapes] Basic shapes should be animatable for shape-outside
2274         https://bugs.webkit.org/show_bug.cgi?id=122343
2275
2276         Reviewed by Dirk Schulze.
2277
2278         Test: fast/shapes/shape-outside-floats/shape-outside-animation.html
2279
2280         Add shape outside to the list of animatable properties. The infrastructure
2281         is already in place for animating basic shapes on shape-inside and clipping
2282         paths. See https://bugs.webkit.org/show_bug.cgi?id=101854.
2283
2284         * page/animation/CSSPropertyAnimation.cpp:
2285         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2286
2287 2013-10-04  Andreas Kling  <akling@apple.com>
2288
2289         Tighten typing in some RenderLayer code.
2290         <https://webkit.org/b/122342>
2291
2292         Reviewed by Antti Koivisto.
2293
2294         Use tighter types instead of Node and RenderObject inside RenderLayer
2295         where applicable.
2296
2297 2013-10-04  Ralph Thomas  <ralpht@gmail.com>
2298
2299         Inserting a JS generated keyframe animation shouldn't trigger a whole document style recalc
2300         https://bugs.webkit.org/show_bug.cgi?id=119479
2301
2302         Reviewed by Antti Koivisto.
2303
2304         Change CSSStyleSheet::didMutateRules to not invalidate all node's styles when inserting a
2305         @-webkit-keyframes rule, and to instead insert the rule directly into the StyleResolver.
2306
2307         Test: animation/keyframes-dynamic.html: adds and removes keyframe rules using JavaScript and
2308         validates that the correct elements are animated.
2309
2310         * css/CSSStyleSheet.cpp:
2311         (WebCore::CSSStyleSheet::didMutateRules):
2312         (WebCore::CSSStyleSheet::insertRule):
2313         * css/CSSStyleSheet.h:
2314
2315 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2316
2317         [WebIDL] Annotate IDL interfaces under Source/WebCore/fileapi/ with the OperationsNotDeletable attribute
2318         https://bugs.webkit.org/show_bug.cgi?id=122275
2319
2320         Reviewed by Darin Adler.
2321
2322         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2323         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2324         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2325         to preserve the original behavior. The attribute will be removed from each interface after checking
2326         conformity with other browsers (in terms of configurability of operations of that interface) and the
2327         WebKit's existing test suites.
2328
2329         This patch covers IDL interfaces under Source/WebCore/fileapi/.
2330
2331         * fileapi/Blob.idl:
2332         * fileapi/FileException.idl:
2333         * fileapi/FileList.idl:
2334         * fileapi/FileReader.idl:
2335         * fileapi/FileReaderSync.idl:
2336
2337 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2338
2339         [WebIDL] Annotate IDL interfaces under Source/WebCore/dom/ with the OperationsNotDeletable attribute
2340         https://bugs.webkit.org/show_bug.cgi?id=122271
2341
2342         Reviewed by Darin Adler.
2343
2344         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2345         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2346         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2347         to preserve the original behavior. The attribute will be removed from each interface after checking
2348         conformity with other browsers (in terms of configurability of operations of that interface) and the
2349         WebKit's existing test suites.
2350
2351         This patch covers IDL interfaces under Source/WebCore/dom/.
2352
2353         * dom/CharacterData.idl:
2354         * dom/ChildNode.idl:
2355         * dom/ClientRectList.idl:
2356         * dom/Clipboard.idl:
2357         * dom/CompositionEvent.idl:
2358         * dom/CustomEvent.idl:
2359         * dom/DOMCoreException.idl:
2360         * dom/DOMImplementation.idl:
2361         * dom/DOMNamedFlowCollection.idl:
2362         * dom/DOMStringList.idl:
2363         * dom/DOMStringMap.idl:
2364         * dom/DataTransferItem.idl:
2365         * dom/DataTransferItemList.idl:
2366         * dom/DeviceMotionEvent.idl:
2367         * dom/DeviceOrientationEvent.idl:
2368         * dom/Document.idl:
2369         * dom/DocumentFragment.idl:
2370         * dom/DocumentType.idl:
2371         * dom/Element.idl:
2372         * dom/Event.idl:
2373         * dom/EventException.idl:
2374         * dom/EventListener.idl:
2375         * dom/EventTarget.idl:
2376         * dom/KeyboardEvent.idl:
2377         * dom/MessageEvent.idl:
2378         * dom/MessagePort.idl:
2379         * dom/MouseEvent.idl:
2380         * dom/MutationEvent.idl:
2381         * dom/MutationObserver.idl:
2382         * dom/NamedNodeMap.idl:
2383         * dom/Node.idl:
2384         * dom/NodeFilter.idl:
2385         * dom/NodeIterator.idl:
2386         * dom/NodeList.idl:
2387         * dom/Range.idl:
2388         * dom/RangeException.idl:
2389         * dom/ShadowRoot.idl:
2390         * dom/Text.idl:
2391         * dom/TextEvent.idl:
2392         * dom/TouchEvent.idl:
2393         * dom/TouchList.idl:
2394         * dom/TreeWalker.idl:
2395         * dom/UIEvent.idl:
2396         * dom/WebKitNamedFlow.idl:
2397         * dom/WheelEvent.idl:
2398
2399 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2400
2401         [WebIDL] Annotate IDL interfaces under Source/WebCore/xml/ with the OperationsNotDeletable attribute
2402         https://bugs.webkit.org/show_bug.cgi?id=122269
2403
2404         Reviewed by Darin Adler.
2405
2406         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2407         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2408         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2409         to preserve the original behavior. The attribute will be removed from each interface after checking
2410         conformity with other browsers (in terms of configurability of operations of that interface) and the
2411         WebKit's existing test suites.
2412
2413         This patch covers IDL interfaces under Source/WebCore/xml/.
2414
2415         * xml/DOMParser.idl:
2416         * xml/XMLHttpRequest.idl:
2417         * xml/XMLHttpRequestException.idl:
2418         * xml/XMLHttpRequestUpload.idl:
2419         * xml/XMLSerializer.idl:
2420         * xml/XPathEvaluator.idl:
2421         * xml/XPathException.idl:
2422         * xml/XPathExpression.idl:
2423         * xml/XPathNSResolver.idl:
2424         * xml/XPathResult.idl:
2425         * xml/XSLTProcessor.idl:
2426
2427 2013-10-04  Bear Travis  <betravis@adobe.com>
2428
2429         [CSS Shapes] Shape Outside should relayout when set dynamically
2430         https://bugs.webkit.org/show_bug.cgi?id=122197
2431
2432         Reviewed by Alexandru Chiculita.
2433
2434         Tests: fast/shapes/shape-outside-floats/shape-outside-dynamic-shape.html
2435                fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-overhang.html
2436
2437         When shape outside is modified, dependent content needs to relayout. This patch
2438         removes the float from the float lists and marks dependents for layout using
2439         RenderBox::removeFloatingOrPositionedChildFromBlockLists(). This is the same
2440         method used when switching from float: left to float: right and vice versa
2441         (see RenderElement::styleWillChange).
2442
2443         * rendering/RenderBox.cpp:
2444         (WebCore::RenderBox::updateShapeOutsideInfoAfterStyleChange): Mark shape-outside dependents
2445         for layout.
2446         * rendering/RenderBox.h:
2447         (WebCore::RenderBox::markShapeOutsideDependentsForLayout): Mark all the items that may be
2448         affected by this shape-outside for relayout.
2449
2450 2013-10-04  Antti Koivisto  <antti@apple.com>
2451
2452         Tighten markContainingBlocksForLayout
2453         https://bugs.webkit.org/show_bug.cgi?id=122326
2454
2455         Reviewed by Anders Carlsson.
2456
2457 2013-10-04  Andreas Kling  <akling@apple.com>
2458
2459         Node: removedFrom() and insertedInto() should use references.
2460         <https://webkit.org/b/122315>
2461
2462         Reviewed by Anders Carlsson.
2463
2464         ContainerNode* -> ContainerNode&
2465
2466 2013-10-04  Romain Perier  <romain.perier@gmail.com>
2467
2468         Optimize strings copies in srcset parser
2469         https://bugs.webkit.org/show_bug.cgi?id=121899
2470
2471         Reviewed by Alexey Proskuryakov.
2472
2473         No new tests, covered by existing ones.
2474
2475         * html/parser/HTMLParserIdioms.cpp:
2476         (WebCore::parseImagesWithScaleFromSrcsetAttribute): Don't copy
2477         image.imageURL at each loop iteration, save indexes instead.
2478         (WebCore::bestFitSourceForImageAttributes): Make a String for
2479         the URL only when the corresponding candidate is chosen
2480         by the selection algorithm. It reduces the number of copies
2481         significantly and improves performance
2482         (around 30% with the "Release" profile and 60% with the "Debug" one).
2483
2484 2013-10-04  Alexey Proskuryakov  <ap@apple.com>
2485
2486         Add svn:ignore to *.pyc files in inspector/Scripts directory, so that they don't
2487         show up as unversioned all the time.
2488
2489         * inspector/Scripts: Added property svn:ignore.
2490
2491 2013-10-04  peavo@outlook.com  <peavo@outlook.com>
2492
2493         [Win][WebGL] Crash on exit
2494         https://bugs.webkit.org/show_bug.cgi?id=120764
2495
2496         Reviewed by Martin Robinson.
2497
2498         On exit, libGLESv2.dll is detached from the process and relevant memory is released
2499         before the atexit GL context cleanup handler is called, causing a NULL pointer crash.
2500         The GL context cleanup code was originally written to avoid a X server crash on exit,
2501         so it's only needed for PLATFORM(X11).
2502
2503         * platform/graphics/GLContext.cpp: Only clean up active GL contexts on exit for PLATFORM(X11).
2504         (WebCore::GLContext::cleanupSharedX11Display):
2505         (WebCore::GLContext::cleanupActiveContextsAtExit):
2506         (WebCore::GLContext::GLContext):
2507         (WebCore::GLContext::~GLContext):
2508
2509 2013-10-04  Mihnea Ovidenie  <mihnea@adobe.com>
2510
2511         [CSSRegions] Regions as stacking contexts should paint over positioned sibling
2512         https://bugs.webkit.org/show_bug.cgi?id=122321
2513
2514         Reviewed by Alexandru Chiculita.
2515
2516         Test: fast/regions/layers/region-normalflow-stacking-context.html
2517
2518         Since regions are stacking contexts, they should not be in normal flow list of layers.
2519         More clean-up after https://bugs.webkit.org/show_bug.cgi?id=117365 and https://bugs.webkit.org/show_bug.cgi?id=121828
2520         which enabled the layers.
2521
2522         * rendering/RenderLayer.cpp:
2523         (WebCore::RenderLayer::shouldBeNormalFlowOnly):
2524         (WebCore::RenderLayer::shouldBeSelfPaintingLayer):
2525
2526 2013-10-04  Krzysztof Wolanski  <k.wolanski@samsung.com>
2527
2528         [EFL] Enable correct behaviour for deleting regional indicator symbols
2529         https://bugs.webkit.org/show_bug.cgi?id=122209
2530
2531         Reviewed by Gyuyoung Kim.
2532
2533         Regional indicator symbols that are combined should behave as a single character when deleting.
2534         Removed unused variable initialState.
2535
2536         * rendering/RenderText.cpp:
2537         (WebCore::RenderText::previousOffsetForBackwardDeletion):
2538
2539 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2540
2541         [WebIDL] Annotate IDL interfaces under Source/WebCore/css/ with the OperationsNotDeletable attribute
2542         https://bugs.webkit.org/show_bug.cgi?id=122276
2543
2544         Reviewed by Darin Adler.
2545
2546         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2547         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2548         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2549         to preserve the original behavior. The attribute will be removed from each interface after checking
2550         conformity with other browsers (in terms of configurability of operations of that interface) and the
2551         WebKit's existing test suites.
2552
2553         This patch covers IDL interfaces under Source/WebCore/css/.
2554
2555         * css/CSSHostRule.idl:
2556         * css/CSSMediaRule.idl:
2557         * css/CSSPrimitiveValue.idl:
2558         * css/CSSRuleList.idl:
2559         * css/CSSStyleDeclaration.idl:
2560         * css/CSSStyleSheet.idl:
2561         * css/CSSSupportsRule.idl:
2562         * css/CSSValueList.idl:
2563         * css/DOMWindowCSS.idl:
2564         * css/FontLoader.idl:
2565         * css/MediaList.idl:
2566         * css/MediaQueryList.idl:
2567         * css/MediaQueryListListener.idl:
2568         * css/StyleMedia.idl:
2569         * css/StyleSheet.idl:
2570         * css/StyleSheetList.idl:
2571         * css/WebKitCSSFilterValue.idl:
2572         * css/WebKitCSSKeyframesRule.idl:
2573         * css/WebKitCSSMatrix.idl:
2574         * css/WebKitCSSTransformValue.idl:
2575
2576 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2577
2578         [WebIDL] Annotate IDL interfaces under Source/WebCore/loader/appcache/ with the OperationsNotDeletable attribute
2579         https://bugs.webkit.org/show_bug.cgi?id=122274
2580
2581         Reviewed by Darin Adler.
2582
2583         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2584         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2585         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2586         to preserve the original behavior. The attribute will be removed from each interface after checking
2587         conformity with other browsers (in terms of configurability of operations of that interface) and the
2588         WebKit's existing test suites.
2589
2590         This patch covers IDL interfaces under Source/WebCore/loader/appcache/.
2591
2592         * loader/appcache/DOMApplicationCache.idl:
2593
2594 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2595
2596         [WebIDL] Annotate IDL interfaces under Source/WebCore/plugins/ with the OperationsNotDeletable attribute
2597         https://bugs.webkit.org/show_bug.cgi?id=122273
2598
2599         Reviewed by Darin Adler.
2600
2601         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2602         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2603         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2604         to preserve the original behavior. The attribute will be removed from each interface after checking
2605         conformity with other browsers (in terms of configurability of operations of that interface) and the
2606         WebKit's existing test suites.
2607
2608         This patch covers IDL interfaces under Source/WebCore/plugins/.
2609
2610         * plugins/DOMMimeTypeArray.idl:
2611         * plugins/DOMPlugin.idl:
2612         * plugins/DOMPluginArray.idl:
2613
2614 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2615
2616         [WebIDL] Annotate IDL interfaces under Source/WebCore/storage/ with the OperationsNotDeletable attribute
2617         https://bugs.webkit.org/show_bug.cgi?id=122272
2618
2619         Reviewed by Darin Adler.
2620
2621         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2622         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2623         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2624         to preserve the original behavior. The attribute will be removed from each interface after checking
2625         conformity with other browsers (in terms of configurability of operations of that interface) and the
2626         WebKit's existing test suites.
2627
2628         This patch covers IDL interfaces under Source/WebCore/storage/.
2629
2630         * storage/Storage.idl:
2631         * storage/StorageEvent.idl:
2632
2633 2013-10-04  Zan Dobersek  <zdobersek@igalia.com>
2634
2635         [WebIDL] Annotate IDL interfaces under Source/WebCore/workers/ with the OperationsNotDeletable attribute
2636         https://bugs.webkit.org/show_bug.cgi?id=122270
2637
2638         Reviewed by Darin Adler.
2639
2640         Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
2641         interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
2642         doesn't have any effect, but will keep the operations not configurable after the generator is modified
2643         to preserve the original behavior. The attribute will be removed from each interface after checking
2644         conformity with other browsers (in terms of configurability of operations of that interface) and the
2645         WebKit's existing test suites.
2646
2647         This patch covers IDL interfaces under Source/WebCore/workers/.
2648
2649         * workers/DedicatedWorkerGlobalScope.idl:
2650         * workers/Worker.idl:
2651         * workers/WorkerGlobalScope.idl:
2652         * workers/WorkerLocation.idl:
2653
2654 2013-10-04  Andrei Bucur  <abucur@adobe.com>
2655
2656         [CSS Regions] Infinite loop when computing widows
2657         https://bugs.webkit.org/show_bug.cgi?id=122215
2658
2659         Reviewed by David Hyatt.
2660
2661         The patch ensures it's not possible to relayout a block indefinitely because of widows contraints. You can't
2662         break a block more than once to account for widows. This can happen if, for example, some lines are moved
2663         to the next container and there the content breaks in another container again without respecting the widows property.
2664         This is in line with the idea of not leaving empty fragmentation containers during layout.
2665
2666         Test: fast/regions/regions-widows-stack-overflow.html
2667
2668         * rendering/RenderBlockFlow.cpp:
2669         (WebCore::RenderBlockFlow::adjustLinePositionForPagination):
2670         (WebCore::RenderBlockFlow::setBreakAtLineToAvoidWidow):
2671         (WebCore::RenderBlockFlow::setDidBreakAtLineToAvoidWidow):
2672         (WebCore::RenderBlockFlow::clearDidBreakAtLineToAvoidWidow):
2673         (WebCore::RenderBlockFlow::clearShouldBreakAtLineToAvoidWidow):
2674
2675         * rendering/RenderBlockFlow.h:
2676         (WebCore::RenderBlockFlow::RenderBlockFlowRareData::RenderBlockFlowRareData): Rename the m_shouldBreakAtLineToAvoidWidow
2677         flag to m_didBreakAtLineToAvoidWidow.
2678
2679         (WebCore::RenderBlockFlow::shouldBreakAtLineToAvoidWidow): Use the line index to determine if it should break or not.
2680         (WebCore::RenderBlockFlow::didBreakAtLineToAvoidWidow): Use to determine if a break already happened because of widows.
2681
2682         * rendering/RenderBlockLineLayout.cpp:
2683         (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
2684
2685 2013-10-03  Anders Carlsson  <andersca@apple.com>
2686
2687         Assert that we don't try to index past the end of the m_coreTextIndices array
2688         https://bugs.webkit.org/show_bug.cgi?id=122308
2689
2690         Reviewed by Dan Bernstein.
2691
2692         Because an assertion failure is better than a random crash.
2693
2694         * platform/graphics/mac/ComplexTextController.cpp:
2695         (WebCore::ComplexTextController::ComplexTextRun::indexAt):
2696
2697 2013-10-03  Antti Koivisto  <antti@apple.com>
2698
2699         Move setting of some layout bits to RenderElement
2700         https://bugs.webkit.org/show_bug.cgi?id=122256
2701
2702         Reviewed by Andreas Kling.
2703         
2704         These bits never apply to RenderText nodes:
2705         
2706         normalChildNeedsLayout
2707         posChildNeedsLayout
2708         needsSimplifiedNormalFlowLayout
2709         normalChildNeedsLayout
2710         positionedMovementLayout
2711
2712         The code for setting them can be moved to RenderElement.
2713
2714         Also separated the code paths for setting and clearing the bits and uninlined
2715         everything that is not massively popular.
2716
2717 2013-10-03  Sam Weinig  <sam@webkit.org>
2718
2719         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2720         https://bugs.webkit.org/show_bug.cgi?id=122309
2721
2722         Reviewed by Andreas Kling.
2723
2724         * loader/EmptyClients.h:
2725         * page/ChromeClient.h:
2726         * page/FrameView.cpp:
2727         * page/FrameView.h:
2728         * platform/ScrollableArea.h:
2729         * platform/mac/ScrollAnimatorMac.mm:
2730         (WebCore::ScrollAnimatorMac::shouldRubberBandInDirection):
2731
2732 2013-10-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2733
2734         Fix the HTMLSelectElement.prototype.remove() method
2735         https://bugs.webkit.org/show_bug.cgi?id=121586
2736
2737         Reviewed by Darin Adler.
2738
2739         Fix the HTMLSelectElement.prototype.remove() method so that it behaves like
2740         Element.remove() if no argument is passed (from ChildNode). This behavior
2741         is consistent with Firefox and Blink.
2742
2743         See https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720 for more
2744         information.
2745
2746         Tests: js/dom/select-options-remove.html
2747
2748         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
2749         (WebCore::JSHTMLOptionsCollection::remove):
2750         Stop calling JSHTMLSelectElement::remove() blindly as it is dangerous, especially
2751         now that calling it without argument now detaches the element. Instead, have the
2752         bindings call the corresponding methods on the HTMLOptionsCollection implementation
2753         object, as it should.
2754
2755         * bindings/js/JSHTMLSelectElementCustom.cpp:
2756         (WebCore::JSHTMLSelectElement::remove):
2757         Call Element::remove() if no argument is given.
2758
2759         * html/HTMLOptionsCollection.cpp:
2760         (WebCore::HTMLOptionsCollection::remove):
2761         * html/HTMLOptionsCollection.h:
2762         * html/HTMLSelectElement.cpp:
2763         * html/HTMLSelectElement.h:
2764         Rename remove(int) to removeByIndex(int) to avoid conflict with
2765         Node::remove(ExceptionCode&).
2766
2767 2013-10-03  Samuel White  <samuel_white@apple.com>
2768
2769         Regression: AX: <table><caption> no longer exposed as AXTitle.
2770         https://bugs.webkit.org/show_bug.cgi?id=121977
2771
2772         Reviewed by Darin Adler.
2773
2774         Some cleanup of accessibilityText. Notably, subclasses were unnecessarily redeclaring this method as both private and
2775         protected. Added OVERRIDE keyword to these subclasses as needed. Moved titleElementText to virtual so we can do subclass
2776         overrides in cases like this bug. That is, AccessibilityTable can leverage the existing machinery for alternativeText,
2777         visibleText, and helpText, but we do some custom work ONLY in titleElementText.
2778
2779         Test: accessibility/table-title.html
2780
2781         * accessibility/AccessibilityImageMapLink.h:
2782         * accessibility/AccessibilityMediaControls.h:
2783         * accessibility/AccessibilityNodeObject.cpp:
2784         (WebCore::AccessibilityNodeObject::titleElementText):
2785         * accessibility/AccessibilityNodeObject.h:
2786         * accessibility/AccessibilityTable.cpp:
2787         (WebCore::AccessibilityTable::titleElementText):
2788         * accessibility/AccessibilityTable.h:
2789
2790 2013-10-03  Anders Carlsson  <andersca@apple.com>
2791
2792         Ignore deprecation warnings
2793         https://bugs.webkit.org/show_bug.cgi?id=122302
2794
2795         Reviewed by Mark Rowe.
2796
2797         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2798         (-[WebAccessibilityObjectWrapper convertPointToScreenSpace:]):
2799         * bindings/objc/DOMHTML.mm:
2800         (-[DOMHTMLInputElement _rectOnScreen]):
2801         * page/mac/EventHandlerMac.mm:
2802         (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
2803         * page/mac/FrameSnapshottingMac.mm:
2804         (WebCore::imageFromRect):
2805         * platform/graphics/mac/IconMac.mm:
2806         (WebCore::Icon::Icon):
2807         * platform/mac/DragImageMac.mm:
2808         (WebCore::scaleDragImage):
2809         * platform/mac/PlatformEventFactoryMac.mm:
2810         (WebCore::globalPoint):
2811         * platform/mac/ScrollViewMac.mm:
2812         (WebCore::ScrollView::platformContentsToScreen):
2813         (WebCore::ScrollView::platformScreenToContents):
2814
2815 2013-10-03  Hans Muller  <hmuller@adobe.com>
2816
2817         [CSS Shapes] Support the shape-image-threshold property
2818         https://bugs.webkit.org/show_bug.cgi?id=122254
2819
2820         Reviewed by Andreas Kling.
2821
2822         Replace the hardwired 0 Shape::createShape() threshold parameter with the style's
2823         shapeImageThreshold() value (which has been clamped to [0,1]).
2824
2825         Tests: fast/shapes/shape-outside-floats/shape-outside-floats-image-threshold-001.html
2826                fast/shapes/shape-outside-floats/shape-outside-floats-image-threshold-002.html
2827
2828         * rendering/shapes/ShapeInfo.cpp:
2829         (WebCore::::computedShape):
2830
2831 2013-10-03  Mihai Maerean  <mmaerean@adobe.com>
2832
2833         [CSS Regions] Follow-up code style change after bug #121828 All regions have layers
2834         https://bugs.webkit.org/show_bug.cgi?id=122265
2835
2836         Reviewed by Darin Adler.
2837
2838         Comments moved to the cpp file, as requested in the review of bug #121828 All regions have layers.
2839
2840         No new tests, no behavior change.
2841
2842         * rendering/RenderMultiColumnSet.cpp:
2843         (WebCore::RenderMultiColumnSet::requiresLayer):
2844         * rendering/RenderMultiColumnSet.h:
2845         * rendering/RenderRegion.cpp:
2846         (WebCore::RenderRegion::requiresLayer):
2847         * rendering/RenderRegion.h:
2848
2849 2013-10-03  Alejandro G. Castro  <alex@igalia.com>
2850
2851         [cairo] Initialize the m_compositorTexture in GraphicsContext3DCairo.cpp
2852         https://bugs.webkit.org/show_bug.cgi?id=122285
2853
2854         Reviewed by Noam Rosenthal.
2855
2856         Initialize to the default texture to avoid the random texture name
2857         and generate the texture name.
2858
2859         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
2860         (WebCore::GraphicsContext3D::GraphicsContext3D): Initialize
2861         m_compositorTexture.
2862         (WebCore::GraphicsContext3D::~GraphicsContext3D): Delete the
2863         generated textures names.
2864         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
2865         (WebCore::GraphicsContext3D::reshapeFBOs): Generate the texture
2866         names for m_compositorTexture and m_texture.
2867
2868 2013-10-03  Zoltan Horvath  <zoltan@webkit.org>
2869
2870         [CSS Shapes] Support block content with inline content around floats in shape-inside
2871         https://bugs.webkit.org/show_bug.cgi?id=121616
2872
2873         Reviewed by David Hyatt.
2874
2875         In r156022 and r156364, I added support for floats inside shape-inside with inline content. This change extends
2876         the existing implementation to support block content with inline content (paragraphs). I added an extra text for
2877         positioning a float inside shape-inside without text content around it.
2878
2879         Tests: fast/shapes/shape-inside/shape-inside-left-float-in-lower-left-triangle-block-content.html
2880                fast/shapes/shape-inside/shape-inside-left-float-in-lower-right-triangle-block-content.html
2881                fast/shapes/shape-inside/shape-inside-left-float-in-lower-right-triangle.html
2882                fast/shapes/shape-inside/shape-inside-left-float-in-upper-left-triangle-block-content.html
2883                fast/shapes/shape-inside/shape-inside-left-float-in-upper-right-triangle-block-content.html
2884
2885         * rendering/FloatingObjects.h:
2886         (WebCore::FloatingObject::logicalSize): Add new function to return the FloatingObject logical size.
2887         * rendering/LineWidth.cpp:
2888         (WebCore::LineWidth::fitBelowFloats): When the lineBreaker code pushes down the content below the floating object,
2889         we need to update the segments if we are in a shape-inside.
2890         * rendering/RenderBlock.cpp:
2891         (WebCore::RenderBlock::computeLogicalLocationForFloat): Do the positioning based on the float actual size, and use the
2892         recent shapeInsideInfo. (Calling layoutShapeInsideInfo which deals with the layoutStates also instead of shapeInsideInfo.)
2893         * rendering/RenderBlock.h:
2894         * rendering/RenderBlockLineLayout.cpp:
2895         (WebCore::RenderBlock::adjustLogicalLineTopAndLogicalHeightIfNeeded): If we don't have inline content we still need to positionize
2896         our float content in a shape-inside.
2897         (WebCore::updateSegmentsForShapes): Use the right coordinates for block content with inline content.
2898
2899 2013-10-03  Brady Eidson  <beidson@apple.com>
2900
2901         Move IDBFactoryBackend creation to DatabaseStrategy.
2902         https://bugs.webkit.org/show_bug.cgi?id=122284
2903
2904         Reviewed by Alexey Proskuryakov.
2905
2906         * WebCore.exp.in:
2907         * WebCore.xcodeproj/project.pbxproj:
2908
2909         * Modules/indexeddb/IDBFactory.h:
2910         * Modules/indexeddb/IDBFactoryBackendInterface.cpp:
2911         (WebCore::IDBFactoryBackendInterface::create):
2912
2913         * platform/DatabaseStrategy.cpp:
2914         (WebCore::DatabaseStrategy::createIDBFactoryBackend): Implement a default.
2915         * platform/DatabaseStrategy.h:
2916
2917 2013-10-03  peavo@outlook.com  <peavo@outlook.com>
2918
2919         [WinCairo] Compile error with VIDEO disabled.
2920         https://bugs.webkit.org/show_bug.cgi?id=122266
2921
2922         Reviewed by Brent Fulgham.
2923
2924         * dom/Document.cpp:
2925         (WebCore::Document::dispatchFullScreenChangeOrErrorEvent): Protect with ENABLE(VIDEO) guard.
2926
2927 2013-10-03  Hans Muller  <hmuller@adobe.com>
2928
2929         [CSS Shapes] add shape-margin support for image valued shapes
2930         https://bugs.webkit.org/show_bug.cgi?id=121619
2931
2932         Reviewed by Alexandru Chiculita.
2933
2934         Add support for computing the shape-margin boundary for a shape-outside whose
2935         value is an image.
2936
2937         Tests: fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-001.html
2938                fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-002.html
2939                fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-003.html
2940
2941         * rendering/shapes/RasterShape.cpp:
2942         (WebCore::MarginIntervalGenerator::MarginIntervalGenerator): Internal utility that generates the margin intervals for the image interval specified with set().
2943         (WebCore::MarginIntervalGenerator::set):
2944         (WebCore::MarginIntervalGenerator::intervalAt):
2945         (WebCore::findInsertionPoint): Find the insertion point index for the the specified X value, within a vector of intervals sorted by X1.
2946         (WebCore::RasterShapeIntervals::uniteMarginInterval): Destructively unite one interval with an existing one, or append it.
2947         (WebCore::RasterShapeIntervals::computeShapeMarginIntervals):
2948         (WebCore::RasterShape::marginIntervals): Return the lazily computed value, or create it with computeShapeMarginIntervals().
2949         * rendering/shapes/RasterShape.h:
2950         (WebCore::RasterShapeIntervals::getIntervals):
2951         (WebCore::RasterShape::RasterShape):
2952         (WebCore::RasterShapeIntervals::uniteMarginInterval):
2953         * WTF/wtf/MathExtras.h: Added clampToUnsigned() inline.
2954
2955 2013-10-03  Mihnea Ovidenie  <mihnea@adobe.com>
2956
2957         [CSSRegions] Remove unused RenderLayerModelObject::updateLayerIfNeeded
2958         https://bugs.webkit.org/show_bug.cgi?id=122262
2959
2960         Reviewed by Alexandru Chiculita.
2961
2962         All regions have layers by default therefore there is no need for this function.
2963         No tests needed, just a minor cleanup.
2964
2965         * rendering/RenderLayerModelObject.cpp:
2966         * rendering/RenderLayerModelObject.h:
2967
2968 2013-10-02  Mario Sanchez Prada  <mario.prada@samsung.com>
2969
2970         [ATK] Expose aria-invalid as a text attribute (not object attribute)
2971         https://bugs.webkit.org/show_bug.cgi?id=122015
2972
2973         Reviewed by Chris Fleizach.
2974
2975         Expose the aria-invalid attribute correctly through a text
2976         attribute (through the AtkText interface) instead of using an
2977         object, according to what the WAI-ARIA specs says.
2978         http://www.w3.org/TR/wai-aria-implementation/#mapping_state-property
2979
2980         This will be tested by accesibility/aria-invalid.html, which should
2981         keep passing after thanks to the changes done in the DRT and WKTR.
2982
2983         * accessibility/AccessibilityObject.cpp:
2984         (WebCore::AccessibilityObject::invalidStatus): Update this method
2985         to only return values recognized by the WAI-ARIA specification.
2986
2987         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
2988         (getAttributeSetForAccessibilityObject): Expose aria-invalid as a
2989         custom text attribute 'invalid', following the lead of Firefox.
2990         Also register that custom attribute as a AtkTextAttribute.
2991         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2992         (webkitAccessibleGetAttributes): Remove exposure of aria-invalid
2993         as an object attribute from here.
2994
2995 2013-10-03  Zan Dobersek  <zdobersek@igalia.com>
2996
2997         Add the NotDeletable, OperationsNotDeletable IDL attributes
2998         https://bugs.webkit.org/show_bug.cgi?id=122217
2999
3000         Reviewed by Darin Adler.
3001
3002         Before adjusting the JSC bindings generator to enforce configurable operations and thus conform to the
3003         WebIDL specification in this regard, two no-op attributes are introduced that will preserve the current
3004         behavior of operations being non-configurable.
3005
3006         All the relevant interfaces will be annotated with the OperationsNotDeletable attribute first. After the
3007         generator is properly modified, this attribute will be removed from the interfaces after checking that
3008         the operations' configurability also matches the configurability of operations in other browser engines
3009         and that the change introduces no regressions in tests.
3010
3011         The NotDeletable attribute will be used as required to annotate operations that should stay
3012         non-configurable for backwards compatibility or cross-browser compatibility.
3013
3014         * bindings/scripts/IDLAttributes.txt:
3015
3016 2013-10-03  Ryosuke Niwa  <rniwa@webkit.org>
3017
3018         Remove preDispatchEventHandler and postDispatchEventHandler,
3019         functions that are supposed to be removed in the previous commit (r156825).
3020
3021         * dom/Node.h:
3022
3023 2013-10-02  Ryosuke Niwa  <rniwa@webkit.org>
3024
3025         Get rid of Node::preDispatchEventHandler and Node::postDispatchEventHandler
3026         https://bugs.webkit.org/show_bug.cgi?id=122144
3027
3028         Reviewed by Darin Adler.
3029
3030         Get rid of pre/post event dispatch callbacks preDispatchEventHandler and postDispatchEventHandler since
3031         the former was only called by HTMLMediaElement and HTMLInputElement and the latter was only called by
3032         HTMLInputElement.
3033
3034         Explicitly call HTMLMediaElement's willDispatchFullScreenChangeEvent in fullScreenChangeDelayTimerFired
3035         of Document since this is the only place that fires the fullscreenchange event.
3036
3037         Also add an explicit call to willDispatchEvent and didDispatchClickEvent in EventDispatcher::dispatch.
3038         This also allows us to stack-allocate InputElementClickHandlingState instead of having willDispatchEvent
3039         heap-allocate it and pass it around as void*.
3040
3041         * WebCore.order:
3042         * dom/Document.cpp:
3043         (WebCore::Document::fullScreenChangeDelayTimerFired):
3044         (WebCore::Document::dispatchFullScreenChangeOrErrorEvent):
3045         * dom/Document.h:
3046         * dom/EventContext.cpp:
3047         * dom/EventDispatcher.cpp:
3048         (WebCore::EventDispatcher::dispatch):
3049         (WebCore::EventDispatcher::callWillDispatchEventOnInputElement):
3050         (WebCore::EventDispatcher::dispatchEventPostProcess):
3051         * dom/EventDispatcher.h:
3052         * html/CheckboxInputType.cpp:
3053         (WebCore::CheckboxInputType::willDispatchClick):
3054         * html/CheckboxInputType.h:
3055         * html/HTMLInputElement.cpp:
3056         (WebCore::HTMLInputElement::willDispatchEvent):
3057         (WebCore::HTMLInputElement::didDispatchClickEvent):
3058         * html/HTMLInputElement.h:
3059         * html/HTMLMediaElement.cpp:
3060         * html/HTMLMediaElement.h:
3061         (WebCore::HTMLMediaElement::willDispatchFullScreenChangeEvent): Renamed from preDispatchEventHandler.
3062         * html/HTMLTextFormControlElement.h:
3063         * html/InputType.cpp:
3064         (WebCore::InputType::willDispatchClick):
3065         * html/InputType.h:
3066         * html/RadioInputType.cpp:
3067         (WebCore::RadioInputType::willDispatchClick):
3068         * html/RadioInputType.h:
3069
3070 2013-10-02  Ryosuke Niwa  <rniwa@webkit.org>
3071
3072         Update binding test results after r156808 for r156769.
3073
3074         * bindings/scripts/test/JS/JSattribute.cpp:
3075         (WebCore::JSattributeOwner::finalize):
3076         * bindings/scripts/test/JS/JSattribute.h:
3077         (WebCore::wrapperOwner):
3078         (WebCore::wrapperContext):
3079         * bindings/scripts/test/JS/JSreadonly.cpp:
3080         (WebCore::JSreadonlyOwner::finalize):
3081         * bindings/scripts/test/JS/JSreadonly.h:
3082         (WebCore::wrapperOwner):
3083         (WebCore::wrapperContext):
3084
3085 2013-10-02  Commit Queue  <commit-queue@webkit.org>
3086
3087         Unreviewed, rolling out r156816.
3088         http://trac.webkit.org/changeset/156816
3089         https://bugs.webkit.org/show_bug.cgi?id=122259
3090
3091         broke 8 tests (Requested by kling on #webkit).
3092
3093         * html/HTMLFrameSetElement.cpp:
3094         (WebCore::HTMLFrameSetElement::willRecalcStyle):
3095         * html/RangeInputType.cpp:
3096         (WebCore::RangeInputType::listAttributeTargetChanged):
3097         * html/shadow/SliderThumbElement.cpp:
3098         (WebCore::RenderSliderContainer::layout):
3099         (WebCore::SliderThumbElement::setPositionFromValue):
3100         (WebCore::SliderThumbElement::setPositionFromPoint):
3101         (WebCore::SliderThumbElement::stopDragging):
3102         * page/FrameView.cpp:
3103         (WebCore::FrameView::setHeaderHeight):
3104         (WebCore::FrameView::setFooterHeight):
3105         (WebCore::FrameView::layout):
3106         (WebCore::FrameView::setViewportConstrainedObjectsNeedLayout):
3107         (WebCore::FrameView::scheduleRelayout):
3108         (WebCore::FrameView::setNeedsLayout):
3109         * page/Page.cpp:
3110         (WebCore::Page::setPageScaleFactor):
3111         * rendering/FlowThreadController.h:
3112         (WebCore::FlowThreadController::setIsRenderNamedFlowThreadOrderDirty):
3113         * rendering/RenderBlock.cpp:
3114         (WebCore::RenderBlock::relayoutShapeDescendantIfMoved):
3115         (WebCore::RenderBlock::markShapeInsideDescendantsForLayout):
3116         (WebCore::RenderBlock::layoutBlock):
3117         (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout):
3118         (WebCore::RenderBlock::dirtyForLayoutFromPercentageHeightDescendants):
3119         (WebCore::RenderBlock::simplifiedNormalFlowLayout):
3120         (WebCore::RenderBlock::simplifiedLayout):
3121         (WebCore::RenderBlock::markFixedPositionObjectForLayoutIfNeeded):
3122         (WebCore::RenderBlock::layoutPositionedObjects):
3123         (WebCore::RenderBlock::markPositionedObjectsForLayout):
3124         (WebCore::RenderBlock::markForPaginationRelayoutIfNeeded):
3125         (WebCore::RenderBlock::removePositionedObjects):
3126         (WebCore::RenderBlock::insertFloatingObject):
3127         (WebCore::RenderBlock::positionNewFloats):
3128         (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
3129         (WebCore::RenderBlock::getClearDelta):
3130         * rendering/RenderBlockFlow.cpp:
3131         (WebCore::RenderBlockFlow::layoutBlock):
3132         (WebCore::RenderBlockFlow::layoutBlockChild):
3133         (WebCore::RenderBlockFlow::adjustPositionedBlock):
3134         (WebCore::RenderBlockFlow::adjustBlockChildForPagination):
3135         * rendering/RenderBlockLineLayout.cpp:
3136         (WebCore::RenderBlock::layoutRunsAndFloats):
3137         (WebCore::RenderBlockFlow::layoutInlineChildren):
3138         (WebCore::RenderBlock::positionNewFloatOnLine):
3139         * rendering/RenderBox.cpp:
3140         (WebCore::RenderBox::styleWillChange):
3141         (WebCore::RenderBox::styleDidChange):
3142         (WebCore::RenderBox::layout):
3143         (WebCore::RenderBox::positionLineBox):
3144         * rendering/RenderDeprecatedFlexibleBox.cpp:
3145         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
3146         (WebCore::gatherFlexChildrenInfo):
3147         (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
3148         (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
3149         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
3150         (WebCore::RenderDeprecatedFlexibleBox::clearLineClamp):
3151         * rendering/RenderElement.cpp:
3152         (WebCore::RenderElement::insertChildInternal):
3153         * rendering/RenderElement.h:
3154         (WebCore::RenderElement::setAncestorLineBoxDirty):
3155         (WebCore::RenderObject::setNeedsLayout):
3156         * rendering/RenderEmbeddedObject.cpp:
3157         (WebCore::RenderEmbeddedObject::layout):
3158         * rendering/RenderFieldset.cpp:
3159         (WebCore::RenderFieldset::layoutSpecialExcludedChild):
3160         * rendering/RenderFlexibleBox.cpp:
3161         (WebCore::RenderFlexibleBox::styleDidChange):
3162         (WebCore::RenderFlexibleBox::layoutBlock):
3163         (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild):
3164         (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout):
3165         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
3166         (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild):
3167         * rendering/RenderFlowThread.cpp:
3168         (WebCore::RenderFlowThread::invalidateRegions):
3169         (WebCore::RenderFlowThread::markAutoLogicalHeightRegionsForLayout):
3170         * rendering/RenderFrameBase.cpp:
3171         (WebCore::RenderFrameBase::layoutWithFlattening):
3172         * rendering/RenderFrameSet.cpp:
3173         (WebCore::RenderFrameSet::layout):
3174         (WebCore::RenderFrameSet::positionFrames):
3175         (WebCore::RenderFrameSet::positionFramesWithFlattening):
3176         (WebCore::RenderFrameSet::continueResizing):
3177         * rendering/RenderGrid.cpp:
3178         (WebCore::RenderGrid::layoutBlock):
3179         (WebCore::RenderGrid::logicalContentHeightForChild):
3180         (WebCore::RenderGrid::layoutGridItems):
3181         * rendering/RenderHTMLCanvas.cpp:
3182         (WebCore::RenderHTMLCanvas::canvasSizeChanged):
3183         * rendering/RenderIFrame.cpp:
3184         (WebCore::RenderIFrame::layout):
3185         * rendering/RenderImage.cpp:
3186         (WebCore::RenderImage::imageDimensionsChanged):
3187         * rendering/RenderInline.cpp:
3188         (WebCore::RenderInline::styleDidChange):
3189         * rendering/RenderLayer.cpp:
3190         (WebCore::RenderLayer::updateScrollbarsAfterLayout):
3191         * rendering/RenderLayerModelObject.cpp:
3192         (WebCore::RenderLayerModelObject::styleDidChange):
3193         * rendering/RenderListMarker.cpp:
3194         (WebCore::RenderListMarker::layout):
3195         * rendering/RenderMarquee.cpp:
3196         (WebCore::RenderMarquee::updateMarqueeStyle):
3197         * rendering/RenderMedia.cpp:
3198         (WebCore::RenderMedia::layout):
3199         * rendering/RenderMultiColumnBlock.cpp:
3200         (WebCore::RenderMultiColumnBlock::relayoutForPagination):
3201         (WebCore::RenderMultiColumnBlock::layoutSpecialExcludedChild):
3202         * rendering/RenderObject.cpp:
3203         (WebCore::RenderObject::markContainingBlocksForLayout):
3204         (WebCore::RenderObject::layout):
3205         * rendering/RenderObject.h:
3206         (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
3207         (WebCore::RenderObject::setNeedsPositionedMovementLayout):
3208         (WebCore::RenderObject::setNormalChildNeedsLayout):
3209         (WebCore::RenderObject::setPosChildNeedsLayout):
3210         (WebCore::RenderObject::setNeedsSimplifiedNormalFlowLayout):
3211         (WebCore::RenderObject::setChildNeedsLayout):
3212         * rendering/RenderReplaced.cpp:
3213         (WebCore::RenderReplaced::layout):
3214         * rendering/RenderReplica.cpp:
3215         (WebCore::RenderReplica::layout):
3216         * rendering/RenderRubyRun.cpp:
3217         (WebCore::RenderRubyRun::layoutSpecialExcludedChild):
3218         * rendering/RenderScrollbar.cpp:
3219         (WebCore::RenderScrollbar::updateScrollbarParts):
3220         * rendering/RenderScrollbarPart.cpp:
3221         (WebCore::RenderScrollbarPart::layout):
3222         * rendering/RenderTable.cpp:
3223         (WebCore::RenderTable::layout):
3224         * rendering/RenderTable.h:
3225         (WebCore::RenderTable::setNeedsSectionRecalc):
3226         * rendering/RenderTableCell.cpp:
3227         (WebCore::RenderTableCell::computeIntrinsicPadding):
3228         (WebCore::RenderTableCell::setCellLogicalWidth):
3229         (WebCore::RenderTableCell::layout):
3230         * rendering/RenderTableRow.cpp:
3231         (WebCore::RenderTableRow::styleDidChange):
3232         (WebCore::RenderTableRow::layout):
3233         * rendering/RenderTableSection.cpp:
3234         (WebCore::RenderTableSection::calcRowLogicalHeight):
3235         (WebCore::RenderTableSection::layout):
3236         (WebCore::RenderTableSection::layoutRows):
3237         (WebCore::RenderTableSection::recalcCells):
3238         * rendering/RenderTextControl.cpp:
3239         (WebCore::RenderTextControl::layoutSpecialExcludedChild):
3240         * rendering/RenderTextControlSingleLine.cpp:
3241         (WebCore::setNeedsLayoutOnAncestors):
3242         (WebCore::RenderTextControlSingleLine::layout):
3243         (WebCore::RenderTextControlSingleLine::styleDidChange):
3244         * rendering/RenderVideo.cpp:
3245         (WebCore::RenderVideo::updateIntrinsicSize):
3246         * rendering/RenderView.cpp:
3247         (WebCore::RenderView::layout):
3248         * rendering/RenderWidget.cpp:
3249         (WebCore::RenderWidget::layout):
3250         * rendering/mathml/RenderMathMLBlock.cpp:
3251         (WebCore::RenderMathMLBlock::computeChildrenPreferredLogicalHeights):
3252         * rendering/mathml/RenderMathMLScripts.cpp:
3253         (WebCore::RenderMathMLScripts::layout):
3254         * rendering/svg/RenderSVGContainer.cpp:
3255         (WebCore::RenderSVGContainer::layout):
3256         * rendering/svg/RenderSVGGradientStop.cpp:
3257         (WebCore::RenderSVGGradientStop::layout):
3258         * rendering/svg/RenderSVGHiddenContainer.cpp:
3259         (WebCore::RenderSVGHiddenContainer::layout):
3260         * rendering/svg/RenderSVGImage.cpp:
3261         (WebCore::RenderSVGImage::layout):
3262         * rendering/svg/RenderSVGResource.cpp:
3263         (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
3264         * rendering/svg/RenderSVGResourceContainer.cpp:
3265         (WebCore::RenderSVGResourceContainer::registerResource):
3266         * rendering/svg/RenderSVGRoot.cpp:
3267         (WebCore::RenderSVGRoot::layout):
3268         * rendering/svg/RenderSVGShape.cpp:
3269         (WebCore::RenderSVGShape::layout):
3270         * rendering/svg/RenderSVGText.cpp:
3271         (WebCore::RenderSVGText::layout):
3272         * rendering/svg/SVGRenderSupport.cpp:
3273         (WebCore::SVGRenderSupport::layoutChildren):
3274         * svg/SVGClipPathElement.cpp:
3275         (WebCore::SVGClipPathElement::svgAttributeChanged):
3276         (WebCore::SVGClipPathElement::childrenChanged):
3277         * svg/SVGFilterElement.cpp:
3278         (WebCore::SVGFilterElement::setFilterRes):
3279         (WebCore::SVGFilterElement::svgAttributeChanged):
3280         (WebCore::SVGFilterElement::childrenChanged):
3281         * svg/SVGGradientElement.cpp:
3282         (WebCore::SVGGradientElement::svgAttributeChanged):
3283         (WebCore::SVGGradientElement::childrenChanged):
3284         * svg/SVGLinearGradientElement.cpp:
3285         (WebCore::SVGLinearGradientElement::svgAttributeChanged):
3286         * svg/SVGMarkerElement.cpp:
3287         (WebCore::SVGMarkerElement::svgAttributeChanged):
3288         (WebCore::SVGMarkerElement::childrenChanged):
3289         * svg/SVGMaskElement.cpp:
3290         (WebCore::SVGMaskElement::svgAttributeChanged):
3291         (WebCore::SVGMaskElement::childrenChanged):
3292         * svg/SVGPatternElement.cpp:
3293         (WebCore::SVGPatternElement::svgAttributeChanged):
3294         (WebCore::SVGPatternElement::childrenChanged):
3295         * svg/SVGRadialGradientElement.cpp:
3296         (WebCore::SVGRadialGradientElement::svgAttributeChanged):
3297         * svg/SVGSVGElement.cpp:
3298         (WebCore::SVGSVGElement::updateCurrentTranslate):
3299
3300 2013-10-02  Andreas Kling  <akling@apple.com>
3301
3302         Keep SVGElementRareData in an SVGElement member instead of a hashmap.
3303         <https://webkit.org/b/122253>
3304
3305         Reviewed by Antti Koivisto.
3306
3307         Free up another Node flag by moving SVGElement's SVG-specific rare data
3308         to a member variable instead of tracking them in a hashmap on the side.
3309
3310         This grows SVGElement by one pointer, but I will make up for this in
3311         subsequent patches.
3312
3313 2013-10-02  Antti Koivisto  <antti@apple.com>
3314
3315         Move setting of some layout bits to RenderElement
3316         https://bugs.webkit.org/show_bug.cgi?id=122256
3317
3318         Reviewed by Andreas Kling.
3319         
3320         These bits never apply to RenderText nodes:
3321         
3322         normalChildNeedsLayout
3323         posChildNeedsLayout
3324         needsSimplifiedNormalFlowLayout
3325         normalChildNeedsLayout
3326         positionedMovementLayout
3327
3328         The code for setting them can be moved to RenderElement.
3329
3330         Also separated the code paths for setting and clearing the bits and uninlined
3331         everything that is not massively popular.
3332
3333 2013-10-02  Andreas Kling  <akling@apple.com>
3334
3335         CTTE: Drag events are only dispatched on Elements.
3336         <https://webkit.org/b/122250>
3337
3338         Reviewed by Antti Koivisto.
3339
3340         We never dispatch drag events on non-Element nodes so tighten up the
3341         code to operate on Elements instead.
3342
3343 2013-10-02  Hans Muller  <hmuller@adobe.com>
3344
3345         [CSS Shapes] Implement the shape-image-threshold property
3346         https://bugs.webkit.org/show_bug.cgi?id=122216
3347
3348         Reviewed by Andreas Kling.
3349
3350         Added support for the CSS shape-image-threshold property. This change
3351         just enables parsing the property, it's not connected to the
3352         Shapes code yet.
3353
3354         The number valued shape-image-threshold property is defined here:
3355         http://dev.w3.org/csswg/css-shapes-1/#shape-image-threshold-property
3356         Its computed value is clamped to the range [0, 1].
3357
3358         Test: fast/shapes/parsing/parsing-shape-image-threshold.html
3359
3360         * css/CSSComputedStyleDeclaration.cpp:
3361         (WebCore::ComputedStyleExtractor::propertyValue):
3362         * css/CSSParser.cpp:
3363         (WebCore::CSSParser::parseValue):
3364         * css/CSSPropertyNames.in:
3365         * css/DeprecatedStyleBuilder.cpp:
3366         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
3367         * css/StyleResolver.cpp:
3368         (WebCore::StyleResolver::applyProperty):
3369         * rendering/style/RenderStyle.h:
3370         * rendering/style/StyleRareNonInheritedData.cpp:
3371         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3372         (WebCore::StyleRareNonInheritedData::operator==):
3373         * rendering/style/StyleRareNonInheritedData.h:
3374
3375 2013-10-02  Andreas Kling  <akling@apple.com>
3376
3377         Remove Qt-specific code in WebCore/plugins.
3378         <https://webkit.org/b/122247>
3379
3380         Reviewed by Anders Carlsson.
3381
3382         Purge PLATFORM(QT) blocks and Qt-specific files.
3383
3384 2013-10-02  Eric Carlson  <eric.carlson@apple.com>
3385
3386         IDL parser should remove a leading "_" from identifier names
3387         https://bugs.webkit.org/show_bug.cgi?id=122239
3388
3389         Reviewed by Jer Noble.
3390
3391         No new tests, updated bindings tests and results.
3392
3393         * bindings/scripts/IDLParser.pm:
3394         (identifierRemoveNullablePrefix): Remove leading "_".
3395         (parseInterface): Call identifierRemoveNullablePrefix.
3396         (parseException): Ditto.
3397         (parseEnum): Ditto.
3398         (parseConst): Ditto.
3399         (parseAttributeRest): Ditto.
3400         (parseOperationRest): Ditto.
3401         (parseOptionalOrRequiredArgument): Ditto.
3402         (parseExceptionField): Ditto.
3403         (parseNonAnyType): Ditto.
3404
3405         Update tests and results.
3406         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
3407         * bindings/scripts/test/CPP/WebDOMTestObj.h:
3408         * bindings/scripts/test/CPP/WebDOMattribute.cpp: Added.
3409         * bindings/scripts/test/CPP/WebDOMattribute.h: Added.
3410         * bindings/scripts/test/CPP/WebDOMreadonly.cpp: Added.
3411         * bindings/scripts/test/CPP/WebDOMreadonly.h: Added.
3412         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
3413         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
3414         * bindings/scripts/test/GObject/WebKitDOMTestObj.symbols:
3415         * bindings/scripts/test/GObject/WebKitDOMattribute.cpp: Added.
3416         * bindings/scripts/test/GObject/WebKitDOMattribute.h: Added.
3417         * bindings/scripts/test/GObject/WebKitDOMattribute.symbols: Added.
3418         * bindings/scripts/test/GObject/WebKitDOMattributePrivate.h: Added.
3419         * bindings/scripts/test/GObject/WebKitDOMreadonly.cpp: Added.
3420         * bindings/scripts/test/GObject/WebKitDOMreadonly.h: Added.
3421         * bindings/scripts/test/GObject/WebKitDOMreadonly.symbols: Added.
3422         * bindings/scripts/test/GObject/WebKitDOMreadonlyPrivate.h: Added.
3423         * bindings/scripts/test/JS/JSTestObj.cpp:
3424         * bindings/scripts/test/JS/JSTestObj.h:
3425         * bindings/scripts/test/JS/JSattribute.cpp: Added.
3426         * bindings/scripts/test/JS/JSattribute.h: Added.
3427         * bindings/scripts/test/JS/JSreadonly.cpp: Added.
3428         * bindings/scripts/test/JS/JSreadonly.h: Added.
3429         * bindings/scripts/test/ObjC/DOMTestObj.h:
3430         * bindings/scripts/test/ObjC/DOMTestObj.mm:
3431         * bindings/scripts/test/ObjC/DOMattribute.h: Added.
3432         * bindings/scripts/test/ObjC/DOMattribute.mm: Added.
3433         * bindings/scripts/test/ObjC/DOMattributeInternal.h: Added.
3434         * bindings/scripts/test/ObjC/DOMreadonly.h: Added.
3435         * bindings/scripts/test/ObjC/DOMreadonly.mm: Added.
3436         * bindings/scripts/test/ObjC/DOMreadonlyInternal.h: Added.
3437         * bindings/scripts/test/TestException.idl:
3438         * bindings/scripts/test/TestInterface.idl:
3439         * bindings/scripts/test/TestObj.idl:
3440
3441 2013-10-02  Andreas Kling  <akling@apple.com>
3442
3443         Remove Qt-specific code in WebCore/{bindings,bridge,loader,icon,testing}.
3444         <https://webkit.org/b/122242>
3445
3446         Reviewed by Anders Carlsson.
3447
3448         Purge PLATFORM(QT) blocks and Qt-specific files.
3449
3450 2013-10-02  Andreas Kling  <akling@apple.com>
3451
3452         Remove Qt-specific code in WebCore/{page,accessibility}.
3453         <https://webkit.org/b/122222>
3454
3455         Reviewed by Anders Carlsson.
3456
3457         Purge PLATFORM(QT) blocks and FooBarQt.* files.
3458
3459 2013-10-02  Zoltan Horvath  <zoltan@webkit.org>
3460
3461         [CSS Shapes] Move ShapeInsideInfo::updateSegmentsForLine implementations into the cpp
3462         https://bugs.webkit.org/show_bug.cgi?id=122236
3463
3464         Reviewed by Oliver Hunt.
3465
3466         There is no reason for updateSegmentsForLine methods to be inline. I moved them to the cpp.
3467
3468         No new tests, no behavior change.