478d81b6a5ff24b1e18af98cfb8eda6181deee27
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-16  Andy Estes  <aestes@apple.com>
2
3         Fix the iOS build after r162150.
4
5         * platform/graphics/cg/GraphicsContextCG.cpp:
6         (WebCore::GraphicsContext::platformInit):
7
8 2014-01-16  Dean Jackson  <dino@apple.com>
9
10         glReadPixels should use UNSIGNED_BYTE on iOS
11         https://bugs.webkit.org/show_bug.cgi?id=127148
12
13         Reviewed by Benjamin Poulain.
14
15         We were incorrectly mapping GL_UNSIGNED_INT_8_8_8_8_REV to
16         GL_RGBA on iOS. It's only used in glReadPixels, so should
17         be GL_UNSIGNED_BYTE.
18
19         This is covered by lots of tests in the Khronos test suite,
20         that now pass on iOS.
21
22         * platform/graphics/ios/GraphicsContext3DIOS.h:
23
24 2014-01-16  Anders Carlsson  <andersca@apple.com>
25
26         Change all uses of FINAL to final now that all our compilers support it
27         https://bugs.webkit.org/show_bug.cgi?id=127142
28
29         Reviewed by Benjamin Poulain.
30
31         * Modules/encryptedmedia/MediaKeySession.h:
32         * Modules/indexeddb/IDBCursorBackendOperations.h:
33         * Modules/indexeddb/IDBDatabase.h:
34         * Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
35         * Modules/indexeddb/IDBRequest.h:
36         * Modules/indexeddb/IDBTransaction.h:
37         * Modules/indexeddb/IDBTransactionBackendOperations.h:
38         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
39         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
40         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
41         * Modules/mediasource/MediaSource.h:
42         * Modules/mediasource/MediaSourceRegistry.h:
43         * Modules/mediasource/SourceBuffer.h:
44         * Modules/mediasource/SourceBufferList.h:
45         * Modules/mediastream/AudioStreamTrack.h:
46         * Modules/mediastream/MediaStream.h:
47         * Modules/mediastream/MediaStreamRegistry.h:
48         * Modules/mediastream/MediaStreamTrack.h:
49         * Modules/mediastream/RTCDTMFSender.h:
50         * Modules/mediastream/RTCDataChannel.h:
51         * Modules/mediastream/RTCPeerConnection.h:
52         * Modules/mediastream/UserMediaRequest.h:
53         * Modules/mediastream/VideoStreamTrack.h:
54         * Modules/notifications/Notification.h:
55         * Modules/speech/SpeechSynthesisUtterance.h:
56         * Modules/webaudio/AudioContext.h:
57         * Modules/webaudio/AudioNode.h:
58         * Modules/websockets/WebSocket.h:
59         * accessibility/AccessibilityList.h:
60         * accessibility/AccessibilityListBoxOption.h:
61         * accessibility/AccessibilityNodeObject.h:
62         * accessibility/AccessibilitySearchFieldButtons.h:
63         * accessibility/AccessibilitySlider.h:
64         * bindings/js/JSCryptoAlgorithmBuilder.h:
65         * bindings/js/JSCryptoKeySerializationJWK.h:
66         * bindings/js/JSDOMGlobalObjectTask.cpp:
67         * bindings/js/JSDOMGlobalObjectTask.h:
68         * bindings/js/JSLazyEventListener.h:
69         * bindings/js/ScriptDebugServer.h:
70         * bindings/js/WorkerScriptDebugServer.h:
71         * crypto/algorithms/CryptoAlgorithmAES_CBC.h:
72         * crypto/algorithms/CryptoAlgorithmAES_KW.h:
73         * crypto/algorithms/CryptoAlgorithmHMAC.h:
74         * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h:
75         * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h:
76         * crypto/algorithms/CryptoAlgorithmRSA_OAEP.h:
77         * crypto/algorithms/CryptoAlgorithmSHA1.h:
78         * crypto/algorithms/CryptoAlgorithmSHA224.h:
79         * crypto/algorithms/CryptoAlgorithmSHA256.h:
80         * crypto/algorithms/CryptoAlgorithmSHA384.h:
81         * crypto/algorithms/CryptoAlgorithmSHA512.h:
82         * crypto/keys/CryptoKeyAES.h:
83         * crypto/keys/CryptoKeyDataOctetSequence.h:
84         * crypto/keys/CryptoKeyDataRSAComponents.h:
85         * crypto/keys/CryptoKeyHMAC.h:
86         * crypto/keys/CryptoKeyRSA.h:
87         * crypto/keys/CryptoKeySerializationRaw.h:
88         * crypto/parameters/CryptoAlgorithmAesCbcParams.h:
89         * crypto/parameters/CryptoAlgorithmAesKeyGenParams.h:
90         * crypto/parameters/CryptoAlgorithmHmacKeyParams.h:
91         * crypto/parameters/CryptoAlgorithmHmacParams.h:
92         * crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h:
93         * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
94         * crypto/parameters/CryptoAlgorithmRsaOaepParams.h:
95         * crypto/parameters/CryptoAlgorithmRsaSsaParams.h:
96         * css/CSSCanvasValue.h:
97         * css/CSSFontSelector.h:
98         * css/CSSStyleSheet.h:
99         * dom/Attr.h:
100         * dom/BeforeUnloadEvent.h:
101         * dom/CDATASection.h:
102         * dom/CharacterData.h:
103         * dom/ChildNodeList.h:
104         * dom/Clipboard.cpp:
105         * dom/Comment.h:
106         * dom/DatasetDOMStringMap.h:
107         * dom/Document.h:
108         * dom/DocumentEventQueue.cpp:
109         * dom/DocumentEventQueue.h:
110         * dom/DocumentType.h:
111         * dom/Element.h:
112         * dom/EntityReference.h:
113         * dom/EventContext.h:
114         * dom/EventTarget.h:
115         * dom/FocusEvent.h:
116         * dom/LiveNodeList.h:
117         * dom/MessagePort.h:
118         * dom/MouseEvent.h:
119         * dom/Node.h:
120         * dom/Notation.h:
121         * dom/ProcessingInstruction.h:
122         * dom/PseudoElement.h:
123         * dom/ShadowRoot.h:
124         * dom/StaticNodeList.h:
125         * dom/StyledElement.h:
126         * dom/TemplateContentDocumentFragment.h:
127         * dom/Text.h:
128         * dom/WebKitNamedFlow.h:
129         * editing/ios/EditorIOS.mm:
130         * editing/mac/EditorMac.mm:
131         * editing/markup.cpp:
132         * fileapi/Blob.cpp:
133         * fileapi/FileReader.h:
134         * html/ClassList.h:
135         * html/DOMSettableTokenList.h:
136         * html/FTPDirectoryDocument.cpp:
137         * html/FormAssociatedElement.cpp:
138         * html/FormAssociatedElement.h:
139         * html/HTMLAllCollection.h:
140         * html/HTMLAnchorElement.h:
141         * html/HTMLAppletElement.h:
142         * html/HTMLAreaElement.h:
143         * html/HTMLAudioElement.h:
144         * html/HTMLBDIElement.h:
145         * html/HTMLBRElement.h:
146         * html/HTMLBaseElement.h:
147         * html/HTMLBaseFontElement.h:
148         * html/HTMLBodyElement.h:
149         * html/HTMLButtonElement.h:
150         * html/HTMLCanvasElement.h:
151         * html/HTMLDListElement.h:
152         * html/HTMLDataListElement.h:
153         * html/HTMLDetailsElement.h:
154         * html/HTMLDirectoryElement.h:
155         * html/HTMLDocument.h:
156         * html/HTMLElement.h:
157         * html/HTMLEmbedElement.h:
158         * html/HTMLFieldSetElement.h:
159         * html/HTMLFontElement.h:
160         * html/HTMLFormControlElement.h:
161         * html/HTMLFormElement.h:
162         * html/HTMLFrameElement.h:
163         * html/HTMLFrameSetElement.h:
164         * html/HTMLHRElement.h:
165         * html/HTMLHeadElement.h:
166         * html/HTMLHeadingElement.h:
167         * html/HTMLHtmlElement.h:
168         * html/HTMLIFrameElement.h:
169         * html/HTMLImageElement.h:
170         * html/HTMLInputElement.h:
171         * html/HTMLKeygenElement.cpp:
172         * html/HTMLKeygenElement.h:
173         * html/HTMLLIElement.h:
174         * html/HTMLLabelElement.h:
175         * html/HTMLLegendElement.h:
176         * html/HTMLLinkElement.h:
177         * html/HTMLMapElement.h:
178         * html/HTMLMarqueeElement.h:
179         * html/HTMLMenuElement.h:
180         * html/HTMLMetaElement.h:
181         * html/HTMLMeterElement.h:
182         * html/HTMLModElement.h:
183         * html/HTMLNameCollection.h:
184         * html/HTMLOListElement.h:
185         * html/HTMLObjectElement.h:
186         * html/HTMLOptGroupElement.h:
187         * html/HTMLOptionElement.h:
188         * html/HTMLOptionsCollection.h:
189         * html/HTMLOutputElement.h:
190         * html/HTMLParagraphElement.h:
191         * html/HTMLParamElement.h:
192         * html/HTMLPlugInElement.h:
193         * html/HTMLPreElement.h:
194         * html/HTMLProgressElement.h:
195         * html/HTMLQuoteElement.h:
196         * html/HTMLScriptElement.h:
197         * html/HTMLSelectElement.h:
198         * html/HTMLSourceElement.h:
199         * html/HTMLStyleElement.h:
200         * html/HTMLSummaryElement.h:
201         * html/HTMLTableCaptionElement.h:
202         * html/HTMLTableCellElement.h:
203         * html/HTMLTableColElement.h:
204         * html/HTMLTableElement.h:
205         * html/HTMLTableRowElement.h:
206         * html/HTMLTableRowsCollection.h:
207         * html/HTMLTableSectionElement.h:
208         * html/HTMLTemplateElement.h:
209         * html/HTMLTextAreaElement.h:
210         * html/HTMLTextFormControlElement.h:
211         * html/HTMLTitleElement.h:
212         * html/HTMLTrackElement.h:
213         * html/HTMLUListElement.h:
214         * html/HTMLUnknownElement.h:
215         * html/HTMLVideoElement.h:
216         * html/HTMLViewSourceDocument.h:
217         * html/ImageDocument.cpp:
218         * html/ImageDocument.h:
219         * html/LabelableElement.h:
220         * html/LabelsNodeList.h:
221         * html/MediaController.h:
222         * html/MediaDocument.cpp:
223         * html/MediaDocument.h:
224         * html/MediaFragmentURIParser.h:
225         * html/PluginDocument.cpp:
226         * html/PluginDocument.h:
227         * html/RangeInputType.h:
228         * html/TextDocument.h:
229         * html/parser/TextDocumentParser.h:
230         * html/parser/TextViewSourceParser.h:
231         * html/shadow/DetailsMarkerControl.h:
232         * html/shadow/MediaControlElementTypes.h:
233         * html/shadow/MediaControlElements.h:
234         * html/shadow/MeterShadowElement.h:
235         * html/shadow/ProgressShadowElement.h:
236         * html/shadow/SliderThumbElement.h:
237         * html/shadow/SpinButtonElement.h:
238         * html/shadow/TextControlInnerElements.h:
239         * html/shadow/YouTubeEmbedShadowElement.h:
240         * html/track/TextTrack.h:
241         * html/track/TextTrackCue.h:
242         * html/track/TextTrackCueGeneric.cpp:
243         * html/track/TextTrackCueGeneric.h:
244         * html/track/TrackListBase.h:
245         * html/track/WebVTTElement.h:
246         * inspector/CommandLineAPIModule.h:
247         * inspector/InjectedScriptCanvasModule.h:
248         * inspector/InspectorConsoleAgent.cpp:
249         * inspector/InspectorController.h:
250         * inspector/InspectorDebuggerAgent.h:
251         * inspector/PageConsoleAgent.cpp:
252         * inspector/PageInjectedScriptHost.h:
253         * inspector/PageInjectedScriptManager.h:
254         * inspector/WorkerInspectorController.h:
255         * loader/SinkDocument.cpp:
256         * loader/SinkDocument.h:
257         * loader/appcache/DOMApplicationCache.h:
258         * loader/cache/CachedCSSStyleSheet.h:
259         * loader/cache/CachedFont.h:
260         * loader/cache/CachedRawResource.h:
261         * loader/cache/CachedSVGDocument.h:
262         * loader/cache/CachedScript.h:
263         * loader/cache/CachedShader.h:
264         * loader/cache/CachedTextTrack.h:
265         * loader/cache/CachedXSLStyleSheet.h:
266         * loader/icon/IconLoader.h:
267         * mathml/MathMLSelectElement.h:
268         * page/DOMTimer.h:
269         * page/DOMWindow.h:
270         * page/EventSource.h:
271         * page/Frame.h:
272         * page/FrameView.h:
273         * page/MainFrame.h:
274         * page/PageDebuggable.h:
275         * page/PageSerializer.cpp:
276         * page/Performance.h:
277         * page/SuspendableTimer.h:
278         * page/animation/KeyframeAnimation.h:
279         * page/scrolling/ScrollingStateFixedNode.h:
280         * page/scrolling/ScrollingStateScrollingNode.h:
281         * page/scrolling/ScrollingStateStickyNode.h:
282         * platform/ClockGeneric.h:
283         * platform/efl/ScrollbarThemeEfl.h:
284         * platform/graphics/BitmapImage.h:
285         * platform/graphics/CrossfadeGeneratedImage.h:
286         * platform/graphics/GradientImage.h:
287         * platform/graphics/SimpleFontData.h:
288         * platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.h:
289         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
290         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
291         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
292         * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h:
293         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.h:
294         * platform/graphics/ca/mac/PlatformCALayerMac.h:
295         * platform/graphics/ca/win/PlatformCALayerWin.h:
296         * platform/graphics/cg/PDFDocumentImage.h:
297         * platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h:
298         * platform/graphics/gstreamer/MediaSourceGStreamer.h:
299         * platform/graphics/gstreamer/SourceBufferPrivateGStreamer.h:
300         * platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h:
301         * platform/ios/WebSafeGCActivityCallbackIOS.h:
302         * platform/ios/WebSafeIncrementalSweeperIOS.h:
303         * platform/mac/PlatformClockCA.h:
304         * platform/mac/PlatformClockCM.h:
305         * platform/mac/ScrollAnimatorMac.h:
306         * platform/mediastream/MediaStreamTrackPrivate.h:
307         * platform/mediastream/mac/MediaStreamCenterMac.h:
308         * platform/mock/MockMediaStreamCenter.h:
309         * platform/mock/RTCDataChannelHandlerMock.h:
310         * platform/mock/RTCPeerConnectionHandlerMock.h:
311         * platform/mock/mediasource/MockBox.h:
312         * platform/mock/mediasource/MockMediaSourcePrivate.h:
313         * platform/mock/mediasource/MockSourceBufferPrivate.cpp:
314         * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.h:
315         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.h:
316         * platform/text/LocaleNone.cpp:
317         * platform/text/PlatformLocale.cpp:
318         * rendering/EllipsisBox.h:
319         * rendering/FilterEffectRenderer.h:
320         * rendering/InlineElementBox.h:
321         * rendering/InlineFlowBox.h:
322         * rendering/InlineTextBox.h:
323         * rendering/RenderBlock.h:
324         * rendering/RenderBlockFlow.h:
325         * rendering/RenderBox.cpp:
326         (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
327         (WebCore::RenderBox::computePositionedLogicalHeightReplaced):
328         * rendering/RenderBox.h:
329         * rendering/RenderButton.h:
330         * rendering/RenderCombineText.h:
331         * rendering/RenderCounter.h:
332         * rendering/RenderDeprecatedFlexibleBox.h:
333         * rendering/RenderDetailsMarker.h:
334         * rendering/RenderElement.h:
335         * rendering/RenderEmbeddedObject.h:
336         * rendering/RenderFieldset.h:
337         * rendering/RenderFileUploadControl.h:
338         * rendering/RenderFlexibleBox.h:
339         * rendering/RenderFlowThread.h:
340         * rendering/RenderFrame.h:
341         * rendering/RenderFrameSet.h:
342         * rendering/RenderFullScreen.cpp:
343         * rendering/RenderFullScreen.h:
344         * rendering/RenderGrid.h:
345         * rendering/RenderHTMLCanvas.h:
346         * rendering/RenderIFrame.h:
347         * rendering/RenderImage.h:
348         * rendering/RenderInline.h:
349         * rendering/RenderLayer.h:
350         * rendering/RenderLayerFilterInfo.h:
351         * rendering/RenderLineBreak.h:
352         * rendering/RenderListBox.h:
353         * rendering/RenderListItem.h:
354         * rendering/RenderListMarker.h:
355         * rendering/RenderMedia.h:
356         * rendering/RenderMediaControlElements.h:
357         * rendering/RenderMenuList.h:
358         * rendering/RenderMeter.h:
359         * rendering/RenderMultiColumnBlock.h:
360         * rendering/RenderMultiColumnFlowThread.h:
361         * rendering/RenderMultiColumnSet.h:
362         * rendering/RenderNamedFlowFragment.h:
363         * rendering/RenderNamedFlowThread.h:
364         * rendering/RenderProgress.h:
365         * rendering/RenderQuote.h:
366         * rendering/RenderRegion.h:
367         * rendering/RenderRegionSet.h:
368         * rendering/RenderReplaced.h:
369         * rendering/RenderReplica.h:
370         * rendering/RenderRuby.h:
371         * rendering/RenderRubyBase.h:
372         * rendering/RenderRubyRun.h:
373         * rendering/RenderRubyText.h:
374         * rendering/RenderScrollbar.h:
375         * rendering/RenderScrollbarPart.h:
376         * rendering/RenderSearchField.h:
377         * rendering/RenderSlider.h:
378         * rendering/RenderSnapshottedPlugIn.h:
379         * rendering/RenderTable.h:
380         * rendering/RenderTableCaption.h:
381         * rendering/RenderTableCell.h:
382         * rendering/RenderTableCol.h:
383         * rendering/RenderTableRow.h:
384         * rendering/RenderTableSection.h:
385         * rendering/RenderText.h:
386         * rendering/RenderTextControl.h:
387         * rendering/RenderTextControlMultiLine.h:
388         * rendering/RenderTextControlSingleLine.h:
389         * rendering/RenderTextFragment.h:
390         * rendering/RenderTextTrackCue.h:
391         * rendering/RenderVideo.h:
392         * rendering/RenderView.h:
393         * rendering/RenderWidget.h:
394         * rendering/RootInlineBox.h:
395         * rendering/TrailingFloatsRootInlineBox.h:
396         * rendering/mathml/RenderMathMLBlock.h:
397         * rendering/mathml/RenderMathMLFenced.h:
398         * rendering/mathml/RenderMathMLFraction.h:
399         * rendering/mathml/RenderMathMLMath.h:
400         * rendering/mathml/RenderMathMLOperator.h:
401         * rendering/mathml/RenderMathMLRoot.h:
402         * rendering/mathml/RenderMathMLRow.h:
403         * rendering/mathml/RenderMathMLScripts.h:
404         * rendering/mathml/RenderMathMLSpace.h:
405         * rendering/mathml/RenderMathMLSquareRoot.h:
406         * rendering/shapes/ShapeInsideInfo.h:
407         * rendering/shapes/ShapeOutsideInfo.h:
408         * rendering/style/ContentData.h:
409         * rendering/style/StyleCachedImage.h:
410         * rendering/style/StyleCachedImageSet.h:
411         * rendering/style/StyleGeneratedImage.h:
412         * rendering/svg/RenderSVGBlock.h:
413         * rendering/svg/RenderSVGContainer.h:
414         * rendering/svg/RenderSVGEllipse.h:
415         * rendering/svg/RenderSVGForeignObject.h:
416         * rendering/svg/RenderSVGGradientStop.h:
417         * rendering/svg/RenderSVGHiddenContainer.h:
418         * rendering/svg/RenderSVGImage.h:
419         * rendering/svg/RenderSVGInline.h:
420         * rendering/svg/RenderSVGInlineText.h:
421         * rendering/svg/RenderSVGModelObject.h:
422         * rendering/svg/RenderSVGPath.h:
423         * rendering/svg/RenderSVGRect.h:
424         * rendering/svg/RenderSVGResourceClipper.h:
425         * rendering/svg/RenderSVGResourceContainer.h:
426         * rendering/svg/RenderSVGResourceFilter.h:
427         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
428         * rendering/svg/RenderSVGResourceGradient.h:
429         * rendering/svg/RenderSVGResourceLinearGradient.h:
430         * rendering/svg/RenderSVGResourceMarker.h:
431         * rendering/svg/RenderSVGResourceMasker.h:
432         * rendering/svg/RenderSVGResourcePattern.h:
433         * rendering/svg/RenderSVGResourceRadialGradient.h:
434         * rendering/svg/RenderSVGRoot.h:
435         * rendering/svg/RenderSVGShape.cpp:
436         * rendering/svg/RenderSVGShape.h:
437         * rendering/svg/RenderSVGTSpan.h:
438         * rendering/svg/RenderSVGText.h:
439         * rendering/svg/RenderSVGTextPath.h:
440         * rendering/svg/RenderSVGTransformableContainer.h:
441         * rendering/svg/RenderSVGViewportContainer.h:
442         * rendering/svg/SVGInlineFlowBox.h:
443         * rendering/svg/SVGInlineTextBox.h:
444         * rendering/svg/SVGRootInlineBox.h:
445         * rendering/svg/SVGTextRunRenderingContext.h:
446         * svg/SVGAElement.h:
447         * svg/SVGAltGlyphDefElement.h:
448         * svg/SVGAltGlyphElement.h:
449         * svg/SVGAltGlyphItemElement.h:
450         * svg/SVGAnimateColorElement.h:
451         * svg/SVGAnimateMotionElement.h:
452         * svg/SVGAnimateTransformElement.h:
453         * svg/SVGAnimatedAngle.h:
454         * svg/SVGAnimatedBoolean.h:
455         * svg/SVGAnimatedColor.h:
456         * svg/SVGAnimatedEnumeration.h:
457         * svg/SVGAnimatedInteger.h:
458         * svg/SVGAnimatedIntegerOptionalInteger.h:
459         * svg/SVGAnimatedLength.h:
460         * svg/SVGAnimatedLengthList.h:
461         * svg/SVGAnimatedNumber.h:
462         * svg/SVGAnimatedNumberList.h:
463         * svg/SVGAnimatedNumberOptionalNumber.h:
464         * svg/SVGAnimatedPath.h:
465         * svg/SVGAnimatedPointList.h:
466         * svg/SVGAnimatedPreserveAspectRatio.h:
467         * svg/SVGAnimatedRect.h:
468         * svg/SVGAnimatedString.h:
469         * svg/SVGAnimatedTransformList.h:
470         * svg/SVGCircleElement.h:
471         * svg/SVGClipPathElement.h:
472         * svg/SVGCursorElement.h:
473         * svg/SVGDefsElement.h:
474         * svg/SVGDescElement.h:
475         * svg/SVGDocument.h:
476         * svg/SVGElement.h:
477         * svg/SVGEllipseElement.h:
478         * svg/SVGFEBlendElement.h:
479         * svg/SVGFEColorMatrixElement.h:
480         * svg/SVGFEComponentTransferElement.h:
481         * svg/SVGFECompositeElement.h:
482         * svg/SVGFEConvolveMatrixElement.h:
483         * svg/SVGFEDiffuseLightingElement.h:
484         * svg/SVGFEDisplacementMapElement.h:
485         * svg/SVGFEDistantLightElement.h:
486         * svg/SVGFEDropShadowElement.h:
487         * svg/SVGFEFloodElement.h:
488         * svg/SVGFEFuncAElement.h:
489         * svg/SVGFEFuncBElement.h:
490         * svg/SVGFEFuncGElement.h:
491         * svg/SVGFEFuncRElement.h:
492         * svg/SVGFEGaussianBlurElement.h:
493         * svg/SVGFEImageElement.h:
494         * svg/SVGFEMergeElement.h:
495         * svg/SVGFEMergeNodeElement.h:
496         * svg/SVGFEMorphologyElement.h:
497         * svg/SVGFEOffsetElement.h:
498         * svg/SVGFEPointLightElement.h:
499         * svg/SVGFESpecularLightingElement.h:
500         * svg/SVGFESpotLightElement.h:
501         * svg/SVGFETileElement.h:
502         * svg/SVGFETurbulenceElement.h:
503         * svg/SVGFilterElement.h:
504         * svg/SVGFontElement.h:
505         * svg/SVGFontFaceElement.h:
506         * svg/SVGFontFaceFormatElement.h:
507         * svg/SVGFontFaceNameElement.h:
508         * svg/SVGFontFaceSrcElement.h:
509         * svg/SVGFontFaceUriElement.h:
510         * svg/SVGForeignObjectElement.h:
511         * svg/SVGGElement.h:
512         * svg/SVGGlyphElement.h:
513         * svg/SVGGlyphRefElement.h:
514         * svg/SVGHKernElement.h:
515         * svg/SVGImageElement.h:
516         * svg/SVGLineElement.h:
517         * svg/SVGLinearGradientElement.h:
518         * svg/SVGMPathElement.h:
519         * svg/SVGMarkerElement.h:
520         * svg/SVGMaskElement.h:
521         * svg/SVGMetadataElement.h:
522         * svg/SVGMissingGlyphElement.h:
523         * svg/SVGPathElement.h:
524         * svg/SVGPathStringBuilder.h:
525         * svg/SVGPatternElement.h:
526         * svg/SVGPolygonElement.h:
527         * svg/SVGPolylineElement.h:
528         * svg/SVGRadialGradientElement.h:
529         * svg/SVGRectElement.h:
530         * svg/SVGSVGElement.h:
531         * svg/SVGScriptElement.h:
532         * svg/SVGSetElement.h:
533         * svg/SVGStopElement.h:
534         * svg/SVGStyleElement.h:
535         * svg/SVGSwitchElement.h:
536         * svg/SVGSymbolElement.h:
537         * svg/SVGTRefElement.h:
538         * svg/SVGTSpanElement.h:
539         * svg/SVGTextContentElement.h:
540         * svg/SVGTextElement.h:
541         * svg/SVGTextPathElement.h:
542         * svg/SVGTitleElement.h:
543         * svg/SVGUnknownElement.h:
544         * svg/SVGUseElement.h:
545         * svg/SVGVKernElement.h:
546         * svg/SVGViewElement.h:
547         * svg/animation/SVGSMILElement.h:
548         * svg/graphics/SVGImage.h:
549         * svg/graphics/SVGImageForContainer.h:
550         * svg/graphics/filters/SVGFilter.h:
551         * workers/AbstractWorker.h:
552         * workers/SharedWorker.h:
553         * workers/Worker.h:
554         * workers/WorkerEventQueue.cpp:
555         * workers/WorkerEventQueue.h:
556         * workers/WorkerGlobalScope.h:
557         * xml/XMLHttpRequest.h:
558         * xml/XMLHttpRequestUpload.h:
559         * xml/XPathFunctions.cpp:
560         * xml/XPathPath.h:
561         * xml/XPathPredicate.h:
562         * xml/XSLStyleSheet.h:
563
564 2014-01-15  Myles C. Maxfield  <mmaxfield@apple.com>
565
566         Draw all underline segments in a particular run in the same call
567         https://bugs.webkit.org/show_bug.cgi?id=127082
568
569         Reviewed by Simon Fraser.
570
571         Instead of running CGContextFillRect() in a loop, we can instead call CGContextFillRects()
572
573         In my tests, this seems to have about 0.5% speedup.
574
575         This patch creates some redundant code, but I think that refactoring would make the code
576         much less readable. I also am hesitant to make drawLineForText call drawLinesForText because
577         of the overhead of the vector that would be needed.
578
579         As there is no behavior change, no new tests are necessary
580
581         * platform/graphics/GraphicsContext.h:
582         * platform/graphics/cairo/GraphicsContextCairo.cpp:
583         (WebCore::GraphicsContext::drawLinesForText):
584         * platform/graphics/cg/GraphicsContextCG.cpp:
585         (WebCore::GraphicsContext::platformInit):
586         * platform/graphics/wince/GraphicsContextWinCE.cpp:
587         (WebCore::GraphicsContext::drawLinesForText):
588         * rendering/InlineTextBox.cpp:
589         (WebCore::drawSkipInkUnderline):
590
591 2014-01-16  Brady Eidson  <beidson@apple.com>
592
593         Use KeyedCoding as a persistent storage mechanism for blobs
594         https://bugs.webkit.org/show_bug.cgi?id=127012
595
596         Reviewed by Anders Carlsson.
597
598         Add basic KeyedDecoder interface that is the inverse of KeyedEncoder:
599         * platform/KeyedCoding.h:
600         (WebCore::KeyedDecoder::decodeVerifiedEnum):
601         (WebCore::KeyedDecoder::decodeObject):
602         (WebCore::KeyedDecoder::decodeObjects):
603
604         Use KeyedEncoder/Decoder to encode/decode IDBKeyPath:
605         * Modules/indexeddb/IDBKeyPath.cpp:
606         (WebCore::IDBKeyPath::encode):
607         (WebCore::IDBKeyPath::decode):
608         * Modules/indexeddb/IDBKeyPath.h:
609
610         * WebCore.exp.in:
611
612 2014-01-16  Eric Carlson  <eric.carlson@apple.com>
613
614         Allow MediaSessionManager to restrict inline <video> playback
615         https://bugs.webkit.org/show_bug.cgi?id=127113
616
617         Reviewed by Jer Noble.
618
619         Test: media/video-fullscreeen-only-playback.html
620
621         * html/HTMLMediaElement.cpp:
622         (WebCore::HTMLMediaElement::updatePlayState): Drive-by change to not tell the media session that
623             playback is starting if the media player is already playing. Enter fullscreen if the media
624             session says it is required.
625
626         * html/HTMLMediaSession.cpp:
627         (WebCore::HTMLMediaSession::clientWillBeginPlayback): Make it const.
628         (WebCore::HTMLMediaSession::requiresFullscreenForVideoPlayback): New, see if the specified
629             media element must be played in fullscreen based on the media session settings, document
630             settings, and attributes.
631         * html/HTMLMediaSession.h:
632
633         * platform/audio/MediaSession.h: pauseSession shouldn't be virtual.
634
635         * platform/audio/MediaSessionManager.cpp:
636         (WebCore::MediaSessionManager::sessionWillBeginPlayback): Return immediately if ConcurrentPlaybackNotPermitted
637             is not set.
638         (WebCore::MediaSessionManager::sessionRestrictsInlineVideoPlayback): New.
639         * platform/audio/MediaSessionManager.h:
640
641         * platform/audio/ios/MediaSessionManagerIOS.mm:
642         (WebCore::MediaSessionManageriOS::MediaSessionManageriOS): Set InlineVideoPlaybackRestricted if
643             running on an iPhone or iPod class device.
644
645         * testing/Internals.cpp:
646         (WebCore::Internals::setMediaSessionRestrictions): Support InlineVideoPlaybackRestricted.
647
648 2014-01-16  Roger Fong  <roger_fong@apple.com>
649
650         Add support for handling WebGL load policies.
651         https://bugs.webkit.org/show_bug.cgi?id=126935
652         <rdar://problem/15790448>.
653
654         Reviewed by Timothy Horton.
655
656         Rename webGLPolicyForSite to webGLPolicyForURL.
657
658         * html/HTMLCanvasElement.cpp:
659         (WebCore::HTMLCanvasElement::getContext):
660         * loader/FrameLoaderClient.h:
661         (WebCore::FrameLoaderClient::webGLPolicyForURL):
662
663 2014-01-16  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
664
665         Guarding HTMLMediaSession with ENABLE(VIDEO)
666         https://bugs.webkit.org/show_bug.cgi?id=127126
667
668         Reviewed by Eric Carlson.
669
670         No new tests needed.
671
672         * html/HTMLMediaSession.cpp:
673         * html/HTMLMediaSession.h:
674
675 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
676
677         Remove workaround for compilers not supporting explicit override control
678         https://bugs.webkit.org/show_bug.cgi?id=127111
679
680         Reviewed by Anders Carlsson.
681
682         Now all compilers support explicit override control, this workaround can be removed.
683
684         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
685         * Modules/encryptedmedia/CDMPrivateAVFoundation.h:
686         * Modules/encryptedmedia/CDMPrivateAVFoundation.mm:
687         * Modules/encryptedmedia/MediaKeyMessageEvent.h:
688         * Modules/encryptedmedia/MediaKeyNeededEvent.h:
689         * Modules/encryptedmedia/MediaKeySession.h:
690         * Modules/encryptedmedia/MediaKeys.h:
691         * Modules/geolocation/Geolocation.h:
692         * Modules/indexeddb/DOMWindowIndexedDatabase.h:
693         * Modules/indexeddb/IDBCursorBackendOperations.h:
694         * Modules/indexeddb/IDBCursorWithValue.h:
695         * Modules/indexeddb/IDBDatabase.h:
696         * Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
697         * Modules/indexeddb/IDBOpenDBRequest.h:
698         * Modules/indexeddb/IDBRequest.h:
699         * Modules/indexeddb/IDBTransaction.h:
700         * Modules/indexeddb/IDBTransactionBackendOperations.h:
701         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
702         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
703         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
704         * Modules/indieui/UIRequestEvent.h:
705         * Modules/mediasource/MediaSource.h:
706         * Modules/mediasource/MediaSourceRegistry.h:
707         * Modules/mediasource/SourceBuffer.h:
708         * Modules/mediasource/SourceBufferList.h:
709         * Modules/mediastream/AudioStreamTrack.h:
710         * Modules/mediastream/MediaConstraintsImpl.h:
711         * Modules/mediastream/MediaStream.h:
712         * Modules/mediastream/MediaStreamRegistry.h:
713         * Modules/mediastream/MediaStreamTrack.h:
714         * Modules/mediastream/MediaStreamTrackEvent.h:
715         * Modules/mediastream/MediaStreamTrackSourcesRequest.h:
716         * Modules/mediastream/RTCDTMFSender.h:
717         * Modules/mediastream/RTCDataChannel.h:
718         * Modules/mediastream/RTCPeerConnection.h:
719         * Modules/mediastream/RTCSessionDescriptionRequestImpl.h:
720         * Modules/mediastream/RTCStatsRequestImpl.h:
721         * Modules/mediastream/RTCStatsResponse.h:
722         * Modules/mediastream/RTCVoidRequestImpl.h:
723         * Modules/mediastream/UserMediaRequest.h:
724         * Modules/mediastream/VideoStreamTrack.h:
725         * Modules/networkinfo/NetworkInfoConnection.h:
726         * Modules/notifications/DOMWindowNotifications.h:
727         * Modules/notifications/Notification.h:
728         * Modules/notifications/NotificationCenter.h:
729         * Modules/plugins/QuickTimePluginReplacement.h:
730         * Modules/speech/SpeechRecognition.h:
731         * Modules/speech/SpeechRecognitionError.h:
732         * Modules/speech/SpeechRecognitionEvent.h:
733         * Modules/speech/SpeechSynthesis.h:
734         * Modules/speech/SpeechSynthesisUtterance.h:
735         * Modules/webaudio/AnalyserNode.h:
736         * Modules/webaudio/AudioBasicInspectorNode.h:
737         * Modules/webaudio/AudioBasicProcessorNode.h:
738         * Modules/webaudio/AudioBufferSourceNode.h:
739         * Modules/webaudio/AudioContext.h:
740         * Modules/webaudio/AudioDestinationNode.h:
741         * Modules/webaudio/AudioNode.h:
742         * Modules/webaudio/AudioNodeInput.h:
743         * Modules/webaudio/AudioParam.h:
744         * Modules/webaudio/AudioProcessingEvent.h:
745         * Modules/webaudio/BiquadDSPKernel.h:
746         * Modules/webaudio/BiquadProcessor.h:
747         * Modules/webaudio/ChannelMergerNode.h:
748         * Modules/webaudio/ChannelSplitterNode.h:
749         * Modules/webaudio/ConvolverNode.h:
750         * Modules/webaudio/DefaultAudioDestinationNode.h:
751         * Modules/webaudio/DelayDSPKernel.h:
752         * Modules/webaudio/DelayProcessor.h:
753         * Modules/webaudio/DynamicsCompressorNode.h:
754         * Modules/webaudio/GainNode.h:
755         * Modules/webaudio/MediaElementAudioSourceNode.h:
756         * Modules/webaudio/MediaStreamAudioDestinationNode.h:
757         * Modules/webaudio/MediaStreamAudioSourceNode.h:
758         * Modules/webaudio/OfflineAudioCompletionEvent.h:
759         * Modules/webaudio/OfflineAudioDestinationNode.h:
760         * Modules/webaudio/OscillatorNode.h:
761         * Modules/webaudio/PannerNode.h:
762         * Modules/webaudio/ScriptProcessorNode.h:
763         * Modules/webaudio/WaveShaperDSPKernel.h:
764         * Modules/webaudio/WaveShaperProcessor.h:
765         * Modules/webdatabase/DatabaseTask.h:
766         * Modules/webdatabase/SQLTransaction.h:
767         * Modules/webdatabase/SQLTransactionBackend.h:
768         * Modules/websockets/CloseEvent.h:
769         * Modules/websockets/WebSocket.h:
770         * Modules/websockets/WebSocketChannel.h:
771         * Modules/websockets/WebSocketDeflateFramer.cpp:
772         * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
773         * Modules/websockets/WorkerThreadableWebSocketChannel.h:
774         * accessibility/AccessibilityARIAGrid.h:
775         * accessibility/AccessibilityARIAGridCell.h:
776         * accessibility/AccessibilityARIAGridRow.h:
777         * accessibility/AccessibilityImageMapLink.h:
778         * accessibility/AccessibilityList.h:
779         * accessibility/AccessibilityListBox.h:
780         * accessibility/AccessibilityListBoxOption.h:
781         * accessibility/AccessibilityMediaControls.h:
782         * accessibility/AccessibilityMenuList.h:
783         * accessibility/AccessibilityMenuListOption.h:
784         * accessibility/AccessibilityMenuListPopup.h:
785         * accessibility/AccessibilityMockObject.h:
786         * accessibility/AccessibilityNodeObject.h:
787         * accessibility/AccessibilityProgressIndicator.h:
788         * accessibility/AccessibilityRenderObject.h:
789         * accessibility/AccessibilitySVGRoot.h:
790         * accessibility/AccessibilityScrollView.h:
791         * accessibility/AccessibilityScrollbar.h:
792         * accessibility/AccessibilitySearchFieldButtons.h:
793         * accessibility/AccessibilitySlider.h:
794         * accessibility/AccessibilitySpinButton.h:
795         * accessibility/AccessibilityTable.h:
796         * accessibility/AccessibilityTableCell.h:
797         * accessibility/AccessibilityTableColumn.h:
798         * accessibility/AccessibilityTableHeaderContainer.h:
799         * accessibility/AccessibilityTableRow.h:
800         * bindings/js/JSCryptoAlgorithmBuilder.h:
801         * bindings/js/JSCryptoKeySerializationJWK.h:
802         * bindings/js/JSDOMGlobalObjectTask.h:
803         * bindings/js/JSEventListener.h:
804         * bindings/js/JSLazyEventListener.h:
805         * bindings/js/JSMutationCallback.h:
806         * bindings/js/PageScriptDebugServer.h:
807         * bindings/js/ScriptDebugServer.h:
808         * bindings/js/WebCoreTypedArrayController.h:
809         * bindings/js/WorkerScriptDebugServer.h:
810         * bridge/c/c_class.h:
811         * bridge/c/c_instance.h:
812         * bridge/c/c_runtime.h:
813         * bridge/runtime_root.h:
814         * crypto/algorithms/CryptoAlgorithmAES_CBC.h:
815         * crypto/algorithms/CryptoAlgorithmAES_KW.h:
816         * crypto/algorithms/CryptoAlgorithmHMAC.h:
817         * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h:
818         * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h:
819         * crypto/algorithms/CryptoAlgorithmRSA_OAEP.h:
820         * crypto/algorithms/CryptoAlgorithmSHA1.h:
821         * crypto/algorithms/CryptoAlgorithmSHA224.h:
822         * crypto/algorithms/CryptoAlgorithmSHA256.h:
823         * crypto/algorithms/CryptoAlgorithmSHA384.h:
824         * crypto/algorithms/CryptoAlgorithmSHA512.h:
825         * crypto/keys/CryptoKeyAES.h:
826         * crypto/keys/CryptoKeyHMAC.h:
827         * crypto/keys/CryptoKeyRSA.h:
828         * crypto/keys/CryptoKeySerializationRaw.h:
829         * crypto/parameters/CryptoAlgorithmAesCbcParams.h:
830         * crypto/parameters/CryptoAlgorithmAesKeyGenParams.h:
831         * crypto/parameters/CryptoAlgorithmHmacKeyParams.h:
832         * crypto/parameters/CryptoAlgorithmHmacParams.h:
833         * crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h:
834         * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
835         * crypto/parameters/CryptoAlgorithmRsaOaepParams.h:
836         * crypto/parameters/CryptoAlgorithmRsaSsaParams.h:
837         * css/CSSBasicShapes.h:
838         * css/CSSCanvasValue.h:
839         * css/CSSCharsetRule.h:
840         * css/CSSComputedStyleDeclaration.h:
841         * css/CSSCrossfadeValue.h:
842         * css/CSSFilterImageValue.h:
843         * css/CSSFontFaceRule.h:
844         * css/CSSFontSelector.h:
845         * css/CSSGroupingRule.h:
846         * css/CSSHostRule.h:
847         * css/CSSImportRule.h:
848         * css/CSSMediaRule.h:
849         * css/CSSPageRule.h:
850         * css/CSSStyleRule.h:
851         * css/CSSStyleSheet.h:
852         * css/CSSSupportsRule.h:
853         * css/CSSUnknownRule.h:
854         * css/FontLoader.cpp:
855         * css/FontLoader.h:
856         * css/PropertySetCSSStyleDeclaration.h:
857         * css/WebKitCSSFilterRule.h:
858         * css/WebKitCSSKeyframeRule.h:
859         * css/WebKitCSSKeyframesRule.h:
860         * css/WebKitCSSRegionRule.h:
861         * css/WebKitCSSViewportRule.h:
862         * dom/Attr.h:
863         * dom/BeforeTextInsertedEvent.h:
864         * dom/BeforeUnloadEvent.h:
865         * dom/CDATASection.h:
866         * dom/CharacterData.h:
867         * dom/ChildNodeList.h:
868         * dom/Clipboard.cpp:
869         * dom/ClipboardEvent.h:
870         * dom/ContainerNode.h:
871         * dom/DOMImplementation.cpp:
872         * dom/DatasetDOMStringMap.h:
873         * dom/DeviceMotionController.h:
874         * dom/DeviceOrientationController.h:
875         * dom/Document.h:
876         * dom/DocumentEventQueue.cpp:
877         * dom/DocumentEventQueue.h:
878         * dom/DocumentFragment.h:
879         * dom/Element.h:
880         * dom/ErrorEvent.h:
881         * dom/EventContext.h:
882         * dom/EventTarget.h:
883         * dom/FocusEvent.h:
884         * dom/KeyboardEvent.h:
885         * dom/LiveNodeList.h:
886         * dom/MessagePort.h:
887         * dom/MouseEvent.h:
888         * dom/MutationRecord.cpp:
889         * dom/Node.h:
890         * dom/PageTransitionEvent.h:
891         * dom/ProcessingInstruction.h:
892         * dom/ProgressEvent.h:
893         * dom/PseudoElement.h:
894         * dom/ScriptExecutionContext.h:
895         * dom/ShadowRoot.h:
896         * dom/StaticNodeList.h:
897         * dom/StyledElement.h:
898         * dom/TagNodeList.h:
899         * dom/TemplateContentDocumentFragment.h:
900         * dom/Text.h:
901         * dom/TextEvent.h:
902         * dom/TouchEvent.h:
903         * dom/TransitionEvent.h:
904         * dom/UIEvent.h:
905         * dom/WebKitAnimationEvent.h:
906         * dom/WebKitNamedFlow.h:
907         * dom/WebKitTransitionEvent.h:
908         * editing/AppendNodeCommand.h:
909         * editing/ApplyBlockElementCommand.h:
910         * editing/ApplyStyleCommand.h:
911         * editing/BreakBlockquoteCommand.h:
912         * editing/CompositeEditCommand.h:
913         * editing/DeleteButton.h:
914         * editing/DeleteFromTextNodeCommand.h:
915         * editing/EditCommand.h:
916         * editing/InsertIntoTextNodeCommand.h:
917         * editing/InsertNodeBeforeCommand.h:
918         * editing/InsertTextCommand.h:
919         * editing/MergeIdenticalElementsCommand.h:
920         * editing/RemoveCSSPropertyCommand.h:
921         * editing/RemoveNodeCommand.h:
922         * editing/ReplaceNodeWithSpanCommand.h:
923         * editing/SetNodeAttributeCommand.h:
924         * editing/SetSelectionCommand.h:
925         * editing/SpellChecker.h:
926         * editing/SpellingCorrectionCommand.cpp:
927         * editing/SpellingCorrectionCommand.h:
928         * editing/SplitElementCommand.h:
929         * editing/SplitTextNodeCommand.h:
930         * editing/WrapContentsInDummySpanCommand.h:
931         * editing/ios/EditorIOS.mm:
932         * editing/markup.cpp:
933         * fileapi/Blob.cpp:
934         * fileapi/Blob.h:
935         * fileapi/File.h:
936         * fileapi/FileReader.h:
937         * fileapi/FileThreadTask.h:
938         * history/BackForwardList.h:
939         * html/BaseButtonInputType.h:
940         * html/BaseCheckableInputType.h:
941         * html/BaseChooserOnlyDateAndTimeInputType.h:
942         * html/BaseClickableWithKeyInputType.h:
943         * html/BaseDateAndTimeInputType.h:
944         * html/BaseTextInputType.h:
945         * html/ButtonInputType.h:
946         * html/CheckboxInputType.h:
947         * html/ClassList.h:
948         * html/ColorInputType.h:
949         * html/DOMSettableTokenList.h:
950         * html/DateInputType.h:
951         * html/DateTimeInputType.h:
952         * html/DateTimeLocalInputType.h:
953         * html/EmailInputType.h:
954         * html/FTPDirectoryDocument.cpp:
955         * html/FileInputType.h:
956         * html/FormAssociatedElement.cpp:
957         * html/FormAssociatedElement.h:
958         * html/HTMLAnchorElement.h:
959         * html/HTMLAppletElement.h:
960         * html/HTMLAreaElement.h:
961         * html/HTMLBRElement.h:
962         * html/HTMLBaseElement.h:
963         * html/HTMLBodyElement.h:
964         * html/HTMLButtonElement.h:
965         * html/HTMLCanvasElement.h:
966         * html/HTMLDetailsElement.cpp:
967         * html/HTMLDetailsElement.h:
968         * html/HTMLDivElement.h:
969         * html/HTMLDocument.h:
970         * html/HTMLElement.h:
971         * html/HTMLEmbedElement.h:
972         * html/HTMLFieldSetElement.h:
973         * html/HTMLFontElement.h:
974         * html/HTMLFormControlElement.h:
975         * html/HTMLFormControlElementWithState.h:
976         * html/HTMLFormControlsCollection.h:
977         * html/HTMLFormElement.h:
978         * html/HTMLFrameElement.h:
979         * html/HTMLFrameElementBase.h:
980         * html/HTMLFrameOwnerElement.h:
981         * html/HTMLFrameSetElement.h:
982         * html/HTMLHRElement.h:
983         * html/HTMLHtmlElement.h:
984         * html/HTMLIFrameElement.h:
985         * html/HTMLImageElement.h:
986         * html/HTMLImageLoader.h:
987         * html/HTMLInputElement.cpp:
988         * html/HTMLInputElement.h:
989         * html/HTMLKeygenElement.h:
990         * html/HTMLLIElement.h:
991         * html/HTMLLabelElement.h:
992         * html/HTMLLegendElement.h:
993         * html/HTMLLinkElement.h:
994         * html/HTMLMapElement.h:
995         * html/HTMLMarqueeElement.h:
996         * html/HTMLMediaElement.h:
997         * html/HTMLMediaSession.h:
998         * html/HTMLMediaSource.h:
999         * html/HTMLMetaElement.h:
1000         * html/HTMLMeterElement.h:
1001         * html/HTMLModElement.h:
1002         * html/HTMLOListElement.h:
1003         * html/HTMLObjectElement.h:
1004         * html/HTMLOptGroupElement.h:
1005         * html/HTMLOptionElement.h:
1006         * html/HTMLOutputElement.h:
1007         * html/HTMLParagraphElement.h:
1008         * html/HTMLParamElement.h:
1009         * html/HTMLPlugInElement.h:
1010         * html/HTMLPlugInImageElement.h:
1011         * html/HTMLPreElement.h:
1012         * html/HTMLProgressElement.h:
1013         * html/HTMLQuoteElement.h:
1014         * html/HTMLScriptElement.h:
1015         * html/HTMLSelectElement.h:
1016         * html/HTMLSourceElement.h:
1017         * html/HTMLStyleElement.h:
1018         * html/HTMLSummaryElement.h:
1019         * html/HTMLTableCaptionElement.h:
1020         * html/HTMLTableCellElement.h:
1021         * html/HTMLTableColElement.h:
1022         * html/HTMLTableElement.h:
1023         * html/HTMLTablePartElement.h:
1024         * html/HTMLTableRowsCollection.h:
1025         * html/HTMLTableSectionElement.h:
1026         * html/HTMLTemplateElement.h:
1027         * html/HTMLTextAreaElement.h:
1028         * html/HTMLTextFormControlElement.h:
1029         * html/HTMLTitleElement.h:
1030         * html/HTMLTrackElement.h:
1031         * html/HTMLUListElement.h:
1032         * html/HTMLUnknownElement.h:
1033         * html/HTMLVideoElement.h:
1034         * html/HiddenInputType.h:
1035         * html/ImageDocument.cpp:
1036         * html/ImageInputType.h:
1037         * html/LabelableElement.h:
1038         * html/LabelsNodeList.h:
1039         * html/MediaController.h:
1040         * html/MonthInputType.h:
1041         * html/NumberInputType.h:
1042         * html/PasswordInputType.h:
1043         * html/PluginDocument.h:
1044         * html/RadioInputType.h:
1045         * html/RangeInputType.h:
1046         * html/ResetInputType.h:
1047         * html/SearchInputType.h:
1048         * html/SubmitInputType.h:
1049         * html/TelephoneInputType.h:
1050         * html/TextFieldInputType.h:
1051         * html/TextInputType.h:
1052         * html/TimeInputType.h:
1053         * html/URLInputType.h:
1054         * html/WeekInputType.h:
1055         * html/canvas/CanvasRenderingContext2D.cpp:
1056         * html/canvas/CanvasRenderingContext2D.h:
1057         * html/canvas/WebGLRenderingContext.h:
1058         * html/parser/HTMLDocumentParser.h:
1059         * html/parser/TextDocumentParser.h:
1060         * html/shadow/DetailsMarkerControl.h:
1061         * html/shadow/InsertionPoint.h:
1062         * html/shadow/MediaControlElementTypes.h:
1063         * html/shadow/MediaControlElements.h:
1064         * html/shadow/MediaControls.h:
1065         * html/shadow/MediaControlsApple.h:
1066         * html/shadow/MediaControlsGtk.h:
1067         * html/shadow/MeterShadowElement.h:
1068         * html/shadow/ProgressShadowElement.h:
1069         * html/shadow/SliderThumbElement.cpp:
1070         * html/shadow/SliderThumbElement.h:
1071         * html/shadow/SpinButtonElement.h:
1072         * html/shadow/TextControlInnerElements.h:
1073         * html/shadow/YouTubeEmbedShadowElement.h:
1074         * html/track/AudioTrack.h:
1075         * html/track/AudioTrackList.h:
1076         * html/track/InbandGenericTextTrack.h:
1077         * html/track/InbandTextTrack.h:
1078         * html/track/InbandWebVTTTextTrack.h:
1079         * html/track/LoadableTextTrack.h:
1080         * html/track/TextTrack.h:
1081         * html/track/TextTrackCue.h:
1082         * html/track/TextTrackCueGeneric.cpp:
1083         * html/track/TextTrackCueGeneric.h:
1084         * html/track/TextTrackList.h:
1085         * html/track/TrackListBase.h:
1086         * html/track/VideoTrack.h:
1087         * html/track/VideoTrackList.h:
1088         * html/track/WebVTTElement.h:
1089         * inspector/CommandLineAPIModule.h:
1090         * inspector/InjectedScriptCanvasModule.h:
1091         * inspector/InspectorApplicationCacheAgent.h:
1092         * inspector/InspectorCSSAgent.h:
1093         * inspector/InspectorCanvasAgent.h:
1094         * inspector/InspectorConsoleAgent.cpp:
1095         * inspector/InspectorConsoleAgent.h:
1096         * inspector/InspectorController.h:
1097         * inspector/InspectorDOMAgent.h:
1098         * inspector/InspectorDOMDebuggerAgent.h:
1099         * inspector/InspectorDOMStorageAgent.h:
1100         * inspector/InspectorDatabaseAgent.h:
1101         * inspector/InspectorDebuggerAgent.h:
1102         * inspector/InspectorHeapProfilerAgent.h:
1103         * inspector/InspectorIndexedDBAgent.cpp:
1104         * inspector/InspectorIndexedDBAgent.h:
1105         * inspector/InspectorInputAgent.h:
1106         * inspector/InspectorLayerTreeAgent.h:
1107         * inspector/InspectorMemoryAgent.h:
1108         * inspector/InspectorPageAgent.h:
1109         * inspector/InspectorProfilerAgent.h:
1110         * inspector/InspectorResourceAgent.h:
1111         * inspector/InspectorTimelineAgent.h:
1112         * inspector/InspectorWorkerAgent.h:
1113         * inspector/PageConsoleAgent.cpp:
1114         * inspector/PageConsoleAgent.h:
1115         * inspector/PageInjectedScriptHost.h:
1116         * inspector/PageInjectedScriptManager.h:
1117         * inspector/PageRuntimeAgent.h:
1118         * inspector/WorkerConsoleAgent.h:
1119         * inspector/WorkerDebuggerAgent.h:
1120         * inspector/WorkerInspectorController.h:
1121         * inspector/WorkerRuntimeAgent.h:
1122         * loader/DocumentLoader.h:
1123         * loader/EmptyClients.h:
1124         * loader/FrameNetworkingContext.h:
1125         * loader/ImageLoader.h:
1126         * loader/NavigationScheduler.cpp:
1127         * loader/NetscapePlugInStreamLoader.h:
1128         * loader/PingLoader.h:
1129         * loader/ResourceLoader.h:
1130         * loader/SubresourceLoader.h:
1131         * loader/WorkerThreadableLoader.h:
1132         * loader/appcache/ApplicationCacheGroup.cpp:
1133         * loader/appcache/ApplicationCacheGroup.h:
1134         * loader/appcache/DOMApplicationCache.h:
1135         * loader/archive/cf/LegacyWebArchive.h:
1136         * loader/cache/CachedCSSStyleSheet.h:
1137         * loader/cache/CachedFont.h:
1138         * loader/cache/CachedFontClient.h:
1139         * loader/cache/CachedImage.h:
1140         * loader/cache/CachedImageClient.h:
1141         * loader/cache/CachedRawResource.h:
1142         * loader/cache/CachedRawResourceClient.h:
1143         * loader/cache/CachedSVGDocument.h:
1144         * loader/cache/CachedSVGDocumentClient.h:
1145         * loader/cache/CachedScript.h:
1146         * loader/cache/CachedShader.h:
1147         * loader/cache/CachedStyleSheetClient.h:
1148         * loader/cache/CachedTextTrack.h:
1149         * loader/cache/CachedXSLStyleSheet.h:
1150         * loader/icon/IconLoader.h:
1151         * mathml/MathMLElement.h:
1152         * mathml/MathMLInlineContainerElement.h:
1153         * mathml/MathMLMathElement.h:
1154         * mathml/MathMLSelectElement.h:
1155         * mathml/MathMLTextElement.h:
1156         * page/CaptionUserPreferencesMediaAF.h:
1157         * page/Chrome.h:
1158         * page/DOMTimer.h:
1159         * page/DOMWindow.h:
1160         * page/DOMWindowExtension.h:
1161         * page/EventSource.h:
1162         * page/Frame.h:
1163         * page/FrameView.h:
1164         * page/PageDebuggable.h:
1165         * page/PageSerializer.cpp:
1166         * page/Performance.h:
1167         * page/SuspendableTimer.h:
1168         * page/animation/ImplicitAnimation.h:
1169         * page/animation/KeyframeAnimation.h:
1170         * page/scrolling/AsyncScrollingCoordinator.h:
1171         * page/scrolling/ScrollingConstraints.h:
1172         * page/scrolling/ScrollingStateFixedNode.h:
1173         * page/scrolling/ScrollingStateScrollingNode.h:
1174         * page/scrolling/ScrollingStateStickyNode.h:
1175         * page/scrolling/ScrollingTreeScrollingNode.h:
1176         * page/scrolling/ThreadedScrollingTree.h:
1177         * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h:
1178         * page/scrolling/ios/ScrollingCoordinatorIOS.h:
1179         * page/scrolling/ios/ScrollingTreeIOS.h:
1180         * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.h:
1181         * page/scrolling/mac/ScrollingCoordinatorMac.h:
1182         * page/scrolling/mac/ScrollingTreeFixedNode.h:
1183         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.h:
1184         * page/scrolling/mac/ScrollingTreeStickyNode.h:
1185         * pdf/ios/PDFDocument.cpp:
1186         * pdf/ios/PDFDocument.h:
1187         * platform/CalculationValue.h:
1188         * platform/ClockGeneric.h:
1189         * platform/MainThreadTask.h:
1190         * platform/PODIntervalTree.h:
1191         * platform/PODRedBlackTree.h:
1192         * platform/RefCountedSupplement.h:
1193         * platform/ScrollView.h:
1194         * platform/Scrollbar.h:
1195         * platform/Timer.h:
1196         * platform/animation/TimingFunction.h:
1197         * platform/audio/AudioDSPKernelProcessor.h:
1198         * platform/audio/EqualPowerPanner.h:
1199         * platform/audio/HRTFPanner.h:
1200         * platform/audio/ios/AudioDestinationIOS.h:
1201         * platform/audio/mac/AudioDestinationMac.h:
1202         * platform/audio/nix/AudioDestinationNix.h:
1203         * platform/efl/RenderThemeEfl.h:
1204         * platform/efl/ScrollbarEfl.h:
1205         * platform/efl/ScrollbarThemeEfl.h:
1206         * platform/graphics/AudioTrackPrivate.h:
1207         * platform/graphics/BitmapImage.h:
1208         * platform/graphics/CrossfadeGeneratedImage.h:
1209         * platform/graphics/FloatPolygon.h:
1210         * platform/graphics/GeneratedImage.h:
1211         * platform/graphics/GradientImage.h:
1212         * platform/graphics/GraphicsLayer.h:
1213         * platform/graphics/InbandTextTrackPrivate.h:
1214         * platform/graphics/MediaPlayer.cpp:
1215         * platform/graphics/SimpleFontData.h:
1216         * platform/graphics/VideoTrackPrivate.h:
1217         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
1218         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
1219         * platform/graphics/avfoundation/VideoTrackPrivateAVF.h:
1220         * platform/graphics/avfoundation/cf/InbandTextTrackPrivateAVCF.h:
1221         * platform/graphics/avfoundation/cf/InbandTextTrackPrivateLegacyAVCF.h:
1222         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h:
1223         * platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.h:
1224         * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.h:
1225         * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.h:
1226         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1227         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
1228         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
1229         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
1230         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1231         * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h:
1232         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.h:
1233         * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
1234         * platform/graphics/ca/GraphicsLayerCA.h:
1235         * platform/graphics/ca/mac/PlatformCALayerMac.h:
1236         * platform/graphics/ca/mac/TileController.h:
1237         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.h:
1238         * platform/graphics/ca/win/PlatformCALayerWin.h:
1239         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.h:
1240         * platform/graphics/cg/PDFDocumentImage.h:
1241         * platform/graphics/efl/GraphicsContext3DPrivate.h:
1242         * platform/graphics/egl/GLContextFromCurrentEGL.h:
1243         * platform/graphics/filters/DistantLightSource.h:
1244         * platform/graphics/filters/FEComposite.h:
1245         * platform/graphics/filters/FEDisplacementMap.h:
1246         * platform/graphics/filters/FEFlood.h:
1247         * platform/graphics/filters/FilterOperation.h:
1248         * platform/graphics/filters/PointLightSource.h:
1249         * platform/graphics/filters/SpotLightSource.h:
1250         * platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h:
1251         * platform/graphics/gstreamer/InbandMetadataTextTrackPrivateGStreamer.h:
1252         * platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.h:
1253         * platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h:
1254         * platform/graphics/ios/InbandTextTrackPrivateAVFIOS.h:
1255         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
1256         * platform/graphics/ios/TextTrackRepresentationIOS.h:
1257         * platform/graphics/surfaces/GLTransportSurface.h:
1258         * platform/graphics/surfaces/egl/EGLContext.h:
1259         * platform/graphics/surfaces/egl/EGLSurface.h:
1260         * platform/graphics/surfaces/egl/EGLXSurface.h:
1261         * platform/graphics/surfaces/glx/GLXContext.h:
1262         * platform/graphics/surfaces/glx/GLXSurface.h:
1263         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
1264         * platform/graphics/texmap/TextureMapperGL.h:
1265         * platform/graphics/texmap/TextureMapperImageBuffer.h:
1266         * platform/graphics/texmap/TextureMapperLayer.h:
1267         * platform/graphics/texmap/TextureMapperTiledBackingStore.h:
1268         * platform/graphics/texmap/coordinated/CompositingCoordinator.h:
1269         * platform/graphics/texmap/coordinated/CoordinatedBackingStore.h:
1270         * platform/graphics/texmap/coordinated/CoordinatedCustomFilterProgram.h:
1271         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
1272         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:
1273         * platform/graphics/texmap/coordinated/CoordinatedTile.h:
1274         * platform/graphics/texmap/coordinated/UpdateAtlas.cpp:
1275         * platform/gtk/RenderThemeGtk.h:
1276         * platform/ios/DeviceMotionClientIOS.h:
1277         * platform/ios/DeviceOrientationClientIOS.h:
1278         * platform/ios/ScrollAnimatorIOS.h:
1279         * platform/ios/ScrollbarThemeIOS.h:
1280         * platform/ios/WebSafeGCActivityCallbackIOS.h:
1281         * platform/ios/WebSafeIncrementalSweeperIOS.h:
1282         * platform/mac/PlatformClockCA.h:
1283         * platform/mac/PlatformClockCM.h:
1284         * platform/mac/ScrollAnimatorMac.h:
1285         * platform/mac/ScrollbarThemeMac.h:
1286         * platform/mediastream/MediaStreamTrackPrivate.h:
1287         * platform/mediastream/gstreamer/MediaStreamCenterGStreamer.h:
1288         * platform/mediastream/mac/AVAudioCaptureSource.h:
1289         * platform/mediastream/mac/AVMediaCaptureSource.h:
1290         * platform/mediastream/mac/AVVideoCaptureSource.h:
1291         * platform/mediastream/mac/MediaStreamCenterMac.h:
1292         * platform/mock/DeviceMotionClientMock.h:
1293         * platform/mock/DeviceOrientationClientMock.h:
1294         * platform/mock/MockMediaStreamCenter.h:
1295         * platform/mock/RTCDataChannelHandlerMock.h:
1296         * platform/mock/RTCNotifiersMock.h:
1297         * platform/mock/RTCPeerConnectionHandlerMock.h:
1298         * platform/mock/mediasource/MockMediaPlayerMediaSource.h:
1299         * platform/mock/mediasource/MockMediaSourcePrivate.h:
1300         * platform/mock/mediasource/MockSourceBufferPrivate.cpp:
1301         * platform/mock/mediasource/MockSourceBufferPrivate.h:
1302         * platform/network/BlobRegistryImpl.h:
1303         * platform/network/BlobResourceHandle.cpp:
1304         * platform/network/BlobResourceHandle.h:
1305         * platform/network/ResourceHandle.h:
1306         * platform/network/SynchronousLoaderClient.h:
1307         * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.h:
1308         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.h:
1309         * platform/nix/RenderThemeNix.h:
1310         * platform/nix/ScrollbarThemeNix.h:
1311         * platform/text/LocaleICU.h:
1312         * platform/text/LocaleNone.cpp:
1313         * platform/text/PlatformLocale.cpp:
1314         * platform/text/mac/LocaleMac.h:
1315         * platform/text/win/LocaleWin.h:
1316         * platform/win/PopupMenuWin.h:
1317         * plugins/PluginView.h:
1318         * rendering/AutoTableLayout.h:
1319         * rendering/ClipPathOperation.h:
1320         * rendering/EllipsisBox.h:
1321         * rendering/FilterEffectRenderer.h:
1322         * rendering/FixedTableLayout.h:
1323         * rendering/InlineElementBox.h:
1324         * rendering/InlineFlowBox.h:
1325         * rendering/InlineTextBox.h:
1326         * rendering/RenderBlock.h:
1327         * rendering/RenderBlockFlow.h:
1328         * rendering/RenderBox.h:
1329         * rendering/RenderBoxModelObject.h:
1330         * rendering/RenderButton.h:
1331         * rendering/RenderCombineText.h:
1332         * rendering/RenderCounter.h:
1333         * rendering/RenderDeprecatedFlexibleBox.h:
1334         * rendering/RenderDetailsMarker.h:
1335         * rendering/RenderElement.h:
1336         * rendering/RenderEmbeddedObject.h:
1337         * rendering/RenderFieldset.h:
1338         * rendering/RenderFileUploadControl.h:
1339         * rendering/RenderFlexibleBox.h:
1340         * rendering/RenderFlowThread.h:
1341         * rendering/RenderFrame.h:
1342         * rendering/RenderFrameSet.h:
1343         * rendering/RenderFullScreen.h:
1344         * rendering/RenderGrid.h:
1345         * rendering/RenderHTMLCanvas.h:
1346         * rendering/RenderIFrame.h:
1347         * rendering/RenderImage.h:
1348         * rendering/RenderImageResourceStyleImage.h:
1349         * rendering/RenderInline.h:
1350         * rendering/RenderLayer.h:
1351         * rendering/RenderLayerBacking.h:
1352         * rendering/RenderLayerCompositor.h:
1353         * rendering/RenderLayerFilterInfo.h:
1354         * rendering/RenderLayerModelObject.h:
1355         * rendering/RenderLineBreak.h:
1356         * rendering/RenderListBox.h:
1357         * rendering/RenderListItem.h:
1358         * rendering/RenderListMarker.h:
1359         * rendering/RenderMedia.h:
1360         * rendering/RenderMenuList.h:
1361         * rendering/RenderMeter.h:
1362         * rendering/RenderMultiColumnBlock.h:
1363         * rendering/RenderMultiColumnFlowThread.h:
1364         * rendering/RenderMultiColumnSet.h:
1365         * rendering/RenderNamedFlowFragment.h:
1366         * rendering/RenderNamedFlowThread.h:
1367         * rendering/RenderObject.h:
1368         * rendering/RenderProgress.h:
1369         * rendering/RenderQuote.h:
1370         * rendering/RenderRegion.h:
1371         * rendering/RenderRegionSet.h:
1372         * rendering/RenderReplaced.h:
1373         * rendering/RenderReplica.h:
1374         * rendering/RenderRuby.h:
1375         * rendering/RenderRubyRun.h:
1376         * rendering/RenderRubyText.h:
1377         * rendering/RenderScrollbar.h:
1378         * rendering/RenderScrollbarPart.h:
1379         * rendering/RenderScrollbarTheme.h:
1380         * rendering/RenderSearchField.h:
1381         * rendering/RenderSlider.h:
1382         * rendering/RenderSnapshottedPlugIn.h:
1383         * rendering/RenderTable.h:
1384         * rendering/RenderTableCaption.h:
1385         * rendering/RenderTableCell.h:
1386         * rendering/RenderTableCol.h:
1387         * rendering/RenderTableRow.h:
1388         * rendering/RenderTableSection.h:
1389         * rendering/RenderText.h:
1390         * rendering/RenderTextControl.h:
1391         * rendering/RenderTextControlMultiLine.h:
1392         * rendering/RenderTextControlSingleLine.h:
1393         * rendering/RenderTextFragment.h:
1394         * rendering/RenderTextTrackCue.h:
1395         * rendering/RenderThemeIOS.h:
1396         * rendering/RenderThemeMac.h:
1397         * rendering/RenderThemeSafari.h:
1398         * rendering/RenderThemeWin.h:
1399         * rendering/RenderVideo.h:
1400         * rendering/RenderView.h:
1401         * rendering/RenderWidget.h:
1402         * rendering/RootInlineBox.h:
1403         * rendering/mathml/RenderMathMLBlock.h:
1404         * rendering/mathml/RenderMathMLFenced.h:
1405         * rendering/mathml/RenderMathMLFraction.h:
1406         * rendering/mathml/RenderMathMLMath.h:
1407         * rendering/mathml/RenderMathMLOperator.h:
1408         * rendering/mathml/RenderMathMLRoot.h:
1409         * rendering/mathml/RenderMathMLRow.h:
1410         * rendering/mathml/RenderMathMLScripts.h:
1411         * rendering/mathml/RenderMathMLSpace.h:
1412         * rendering/mathml/RenderMathMLSquareRoot.h:
1413         * rendering/mathml/RenderMathMLUnderOver.h:
1414         * rendering/shapes/BoxShape.h:
1415         * rendering/shapes/PolygonShape.h:
1416         * rendering/shapes/RasterShape.h:
1417         * rendering/shapes/RectangleShape.h:
1418         * rendering/shapes/ShapeInsideInfo.h:
1419         * rendering/shapes/ShapeOutsideInfo.h:
1420         * rendering/style/BasicShapes.h:
1421         * rendering/style/ContentData.h:
1422         * rendering/style/StyleCachedImage.h:
1423         * rendering/style/StyleCachedImageSet.h:
1424         * rendering/style/StyleGeneratedImage.h:
1425         * rendering/style/StylePendingImage.h:
1426         * rendering/svg/RenderSVGBlock.h:
1427         * rendering/svg/RenderSVGContainer.h:
1428         * rendering/svg/RenderSVGForeignObject.h:
1429         * rendering/svg/RenderSVGGradientStop.h:
1430         * rendering/svg/RenderSVGHiddenContainer.h:
1431         * rendering/svg/RenderSVGImage.h:
1432         * rendering/svg/RenderSVGInline.h:
1433         * rendering/svg/RenderSVGInlineText.h:
1434         * rendering/svg/RenderSVGModelObject.h:
1435         * rendering/svg/RenderSVGPath.h:
1436         * rendering/svg/RenderSVGResourceClipper.h:
1437         * rendering/svg/RenderSVGResourceContainer.h:
1438         * rendering/svg/RenderSVGResourceFilter.h:
1439         * rendering/svg/RenderSVGResourceGradient.h:
1440         * rendering/svg/RenderSVGResourceLinearGradient.h:
1441         * rendering/svg/RenderSVGResourceMarker.h:
1442         * rendering/svg/RenderSVGResourceMasker.h:
1443         * rendering/svg/RenderSVGResourcePattern.h:
1444         * rendering/svg/RenderSVGResourceRadialGradient.h:
1445         * rendering/svg/RenderSVGResourceSolidColor.h:
1446         * rendering/svg/RenderSVGRoot.h:
1447         * rendering/svg/RenderSVGShape.cpp:
1448         * rendering/svg/RenderSVGShape.h:
1449         * rendering/svg/RenderSVGText.h:
1450         * rendering/svg/RenderSVGTextPath.h:
1451         * rendering/svg/RenderSVGViewportContainer.h:
1452         * rendering/svg/SVGInlineFlowBox.h:
1453         * rendering/svg/SVGInlineTextBox.h:
1454         * rendering/svg/SVGRootInlineBox.h:
1455         * rendering/svg/SVGTextRunRenderingContext.h:
1456         * storage/StorageAreaImpl.h:
1457         * storage/StorageNamespaceImpl.h:
1458         * svg/SVGAElement.h:
1459         * svg/SVGAltGlyphDefElement.h:
1460         * svg/SVGAltGlyphElement.h:
1461         * svg/SVGAltGlyphItemElement.h:
1462         * svg/SVGAnimateElement.h:
1463         * svg/SVGAnimateMotionElement.h:
1464         * svg/SVGAnimateTransformElement.h:
1465         * svg/SVGAnimatedAngle.h:
1466         * svg/SVGAnimatedBoolean.h:
1467         * svg/SVGAnimatedColor.h:
1468         * svg/SVGAnimatedEnumeration.h:
1469         * svg/SVGAnimatedInteger.h:
1470         * svg/SVGAnimatedIntegerOptionalInteger.h:
1471         * svg/SVGAnimatedLength.h:
1472         * svg/SVGAnimatedLengthList.h:
1473         * svg/SVGAnimatedNumber.h:
1474         * svg/SVGAnimatedNumberList.h:
1475         * svg/SVGAnimatedNumberOptionalNumber.h:
1476         * svg/SVGAnimatedPath.h:
1477         * svg/SVGAnimatedPointList.h:
1478         * svg/SVGAnimatedPreserveAspectRatio.h:
1479         * svg/SVGAnimatedRect.h:
1480         * svg/SVGAnimatedString.h:
1481         * svg/SVGAnimatedTransformList.h:
1482         * svg/SVGAnimationElement.h:
1483         * svg/SVGCircleElement.h:
1484         * svg/SVGClipPathElement.h:
1485         * svg/SVGComponentTransferFunctionElement.h:
1486         * svg/SVGCursorElement.h:
1487         * svg/SVGDefsElement.h:
1488         * svg/SVGDocument.h:
1489         * svg/SVGElement.h:
1490         * svg/SVGElementInstance.h:
1491         * svg/SVGEllipseElement.h:
1492         * svg/SVGFEBlendElement.h:
1493         * svg/SVGFEColorMatrixElement.h:
1494         * svg/SVGFEComponentTransferElement.h:
1495         * svg/SVGFECompositeElement.h:
1496         * svg/SVGFEConvolveMatrixElement.h:
1497         * svg/SVGFEDiffuseLightingElement.h:
1498         * svg/SVGFEDisplacementMapElement.h:
1499         * svg/SVGFEDropShadowElement.h:
1500         * svg/SVGFEGaussianBlurElement.h:
1501         * svg/SVGFEImageElement.h:
1502         * svg/SVGFELightElement.h:
1503         * svg/SVGFEMergeNodeElement.h:
1504         * svg/SVGFEMorphologyElement.h:
1505         * svg/SVGFEOffsetElement.h:
1506         * svg/SVGFESpecularLightingElement.h:
1507         * svg/SVGFETileElement.h:
1508         * svg/SVGFETurbulenceElement.h:
1509         * svg/SVGFilterElement.h:
1510         * svg/SVGFilterPrimitiveStandardAttributes.h:
1511         * svg/SVGFontElement.h:
1512         * svg/SVGFontFaceElement.h:
1513         * svg/SVGFontFaceFormatElement.h:
1514         * svg/SVGFontFaceNameElement.h:
1515         * svg/SVGFontFaceSrcElement.h:
1516         * svg/SVGFontFaceUriElement.h:
1517         * svg/SVGForeignObjectElement.h:
1518         * svg/SVGGElement.h:
1519         * svg/SVGGlyphElement.h:
1520         * svg/SVGGlyphRefElement.h:
1521         * svg/SVGGradientElement.h:
1522         * svg/SVGGraphicsElement.h:
1523         * svg/SVGHKernElement.h:
1524         * svg/SVGImageElement.h:
1525         * svg/SVGLineElement.h:
1526         * svg/SVGLinearGradientElement.h:
1527         * svg/SVGMPathElement.h:
1528         * svg/SVGMarkerElement.h:
1529         * svg/SVGMaskElement.h:
1530         * svg/SVGMetadataElement.h:
1531         * svg/SVGPathElement.h:
1532         * svg/SVGPathStringBuilder.h:
1533         * svg/SVGPatternElement.h:
1534         * svg/SVGPolyElement.h:
1535         * svg/SVGRadialGradientElement.h:
1536         * svg/SVGRectElement.h:
1537         * svg/SVGSVGElement.h:
1538         * svg/SVGScriptElement.h:
1539         * svg/SVGSetElement.h:
1540         * svg/SVGStopElement.h:
1541         * svg/SVGStyleElement.h:
1542         * svg/SVGSwitchElement.h:
1543         * svg/SVGSymbolElement.h:
1544         * svg/SVGTRefElement.cpp:
1545         * svg/SVGTRefElement.h:
1546         * svg/SVGTSpanElement.h:
1547         * svg/SVGTextContentElement.h:
1548         * svg/SVGTextElement.h:
1549         * svg/SVGTextPathElement.h:
1550         * svg/SVGTextPositioningElement.h:
1551         * svg/SVGTitleElement.h:
1552         * svg/SVGTransformable.h:
1553         * svg/SVGUnknownElement.h:
1554         * svg/SVGUseElement.h:
1555         * svg/SVGVKernElement.h:
1556         * svg/SVGViewElement.h:
1557         * svg/animation/SVGSMILElement.h:
1558         * svg/graphics/SVGImage.h:
1559         * svg/graphics/SVGImageForContainer.h:
1560         * svg/graphics/filters/SVGFilter.h:
1561         * svg/properties/SVGAnimatedListPropertyTearOff.h:
1562         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
1563         * svg/properties/SVGListPropertyTearOff.h:
1564         * svg/properties/SVGPathSegListPropertyTearOff.h:
1565         * svg/properties/SVGPropertyTearOff.h:
1566         * testing/InternalSettings.cpp:
1567         * testing/Internals.cpp:
1568         * testing/MockCDM.cpp:
1569         * testing/MockCDM.h:
1570         * workers/AbstractWorker.h:
1571         * workers/DedicatedWorkerGlobalScope.h:
1572         * workers/DedicatedWorkerThread.h:
1573         * workers/SharedWorker.h:
1574         * workers/SharedWorkerGlobalScope.h:
1575         * workers/SharedWorkerThread.h:
1576         * workers/Worker.h:
1577         * workers/WorkerEventQueue.cpp:
1578         * workers/WorkerEventQueue.h:
1579         * workers/WorkerGlobalScope.h:
1580         * workers/WorkerMessagingProxy.h:
1581         * workers/WorkerObjectProxy.h:
1582         * workers/WorkerScriptLoader.h:
1583         * workers/WorkerThread.cpp:
1584         * xml/XMLHttpRequest.h:
1585         * xml/XMLHttpRequestUpload.h:
1586         * xml/XPathFunctions.cpp:
1587         * xml/XPathPath.h:
1588         * xml/XPathPredicate.h:
1589         * xml/XSLStyleSheet.h:
1590
1591 2014-01-16  Beth Dakin  <bdakin@apple.com>
1592
1593         Speculative Win Cairo build fix.
1594
1595         These need to be inside an ifdef.
1596         * page/FrameView.cpp:
1597         (WebCore::FrameView::hasExtendedBackground):
1598         (WebCore::FrameView::extendedBackgroundRect):
1599
1600 2014-01-07  Myles C. Maxfield  <mmaxfield@apple.com>
1601
1602         text-emphasis-position CSS property doesn't recognize 'left' and 'right'
1603         https://bugs.webkit.org/show_bug.cgi?id=126611
1604
1605         Reviewed by Simon Fraser.
1606
1607         This patch allows the text-emphasis-position to accept the "left" and
1608         "right" CSS values. In horizontal writing modes, these values no not
1609         change behavior. In vertical writing modes, however, these values specify
1610         which side to place the emphasis mark. Similarly, in vertical writing
1611         modes, the "above" and "below" values should not change behavior.
1612
1613         However, in order to keep existing behavior, if neither "left" nor "right"
1614         is specified, we should draw as if the appropriate value were
1615         specified ("over" -> "right" and "under" -> "left"). Note that this
1616         will have to be updated when we implement the
1617         "text-orientation: sideways-left" CSS property.
1618
1619         Tests: fast/text/emphasis-horizontal-left-right.html
1620                fast/text/emphasis-vertical-over-right.html
1621                fast/text/emphasis-vertical-over-under.html
1622
1623         * css/CSSComputedStyleDeclaration.cpp:
1624         (WebCore::renderEmphasisPositionFlagsToCSSValue):
1625         (WebCore::ComputedStyleExtractor::propertyValue):
1626         * css/CSSParser.cpp:
1627         (WebCore::isValidKeywordPropertyAndValue):
1628         (WebCore::isKeywordPropertyID):
1629         (WebCore::CSSParser::parseValue):
1630         (WebCore::CSSParser::parseTextEmphasisPosition):
1631         * css/CSSParser.h:
1632         * css/CSSPrimitiveValueMappings.h:
1633         * css/DeprecatedStyleBuilder.cpp:
1634         (WebCore::valueToEmphasisPosition):
1635         (WebCore::ApplyPropertyTextEmphasisPosition::applyValue):
1636         (WebCore::ApplyPropertyTextEmphasisPosition::createHandler):
1637         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
1638         * rendering/InlineFlowBox.cpp:
1639         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
1640         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
1641         (WebCore::InlineFlowBox::computeOverAnnotationAdjustment):
1642         (WebCore::InlineFlowBox::computeUnderAnnotationAdjustment):
1643         * rendering/InlineTextBox.cpp:
1644         (WebCore::InlineTextBox::emphasisMarkExistsAndIsAbove):
1645         (WebCore::InlineTextBox::paint):
1646         * rendering/InlineTextBox.h:
1647         * rendering/style/RenderStyle.h:
1648         * rendering/style/RenderStyleConstants.h:
1649         * rendering/style/StyleRareInheritedData.cpp:
1650         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
1651         * rendering/style/StyleRareInheritedData.h:
1652
1653 2014-01-16  Chris Fleizach  <cfleizach@apple.com>
1654
1655         AX: WebKit is not firing AXMenuOpenedNotification
1656         https://bugs.webkit.org/show_bug.cgi?id=126993
1657
1658         Reviewed by Mario Sanchez Prada.
1659
1660         To monitor for menu open notifications, we need to know which children are added to
1661         the render tree, so the childrenChanged() method has been updated to allow for that.
1662         Once we know the new child, we can then check what kind of role it has.
1663
1664         I also found a flakiness issue with DRT where posting a notification back to DRT
1665         would sometimes cause a new notification to be queued, which would then be lost when the
1666         queue was cleared. This was fixed by copying the notifications to post before iterating them.
1667
1668         Test: platform/mac/accessibility/aria-menu-open-notification.html
1669
1670         * accessibility/AXObjectCache.cpp:
1671         (WebCore::AXObjectCache::checkForOpenMenu):
1672         (WebCore::AXObjectCache::childrenChanged):
1673         (WebCore::AXObjectCache::notificationPostTimerFired):
1674         * accessibility/AXObjectCache.h:
1675         (WebCore::AXObjectCache::childrenChanged):
1676         * accessibility/AccessibilityNodeObject.h:
1677         * accessibility/mac/AXObjectCacheMac.mm:
1678         (WebCore::AXObjectCache::postPlatformNotification):
1679         * rendering/RenderElement.cpp:
1680         (WebCore::RenderElement::insertChildInternal):
1681         (WebCore::RenderElement::styleWillChange):
1682
1683 2014-01-16  Chris Fleizach  <cfleizach@apple.com>
1684
1685         AX: WebKit is not firing AXMenuItemSelectedNotification
1686         https://bugs.webkit.org/show_bug.cgi?id=127081
1687
1688         Reviewed by Mario Sanchez Prada.
1689
1690         Monitor for when a menu item either gains focus() or has aria-selected set,
1691         in which case, we need to fire a specific notification.
1692
1693         Test: platform/mac/accessibility/aria-menu-item-selected-notification.html
1694
1695         * accessibility/AXObjectCache.cpp:
1696         (WebCore::nodeHasRole):
1697             This method was declared in the header, but never implemented, leading to compilation issues.
1698         (WebCore::AXObjectCache::handleMenuItemSelected):
1699         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
1700             Allow the core class to handle focus changes first, then pass off to platform
1701         (WebCore::AXObjectCache::selectedChildrenChanged):
1702         * accessibility/AXObjectCache.h:
1703         * accessibility/ios/AXObjectCacheIOS.mm:
1704         (WebCore::AXObjectCache::platformHandleFocusedUIElementChanged):
1705         * accessibility/mac/AXObjectCacheMac.mm:
1706         (WebCore::AXObjectCache::postPlatformNotification):
1707         (WebCore::AXObjectCache::platformHandleFocusedUIElementChanged):
1708         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1709         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
1710             Allow menu items to expose a description attribute.
1711
1712 2014-01-16  Andy Estes  <aestes@apple.com>
1713
1714         [iOS] Fix build issues with exported headers
1715
1716         * Configurations/WebCore.xcconfig: Allowed UIKit to link against
1717         WebCore.
1718         * page/ios/WebEventRegion.h: Removed ENABLE(TOUCH_EVENTS), which are
1719         always enabled on iOS.
1720
1721 2014-01-16  Dirk Schulze  <krit@webkit.org>
1722
1723         Rename functions in SVGDocumentExtension
1724         https://bugs.webkit.org/show_bug.cgi?id=127046
1725
1726         Reviewed by Sam Weinig.
1727
1728         Change some function names in SVGDocumentExtension
1729         to make them more descriptive.
1730
1731         Simple refactoring. No new tests.
1732
1733         * rendering/svg/RenderSVGResourceContainer.cpp:
1734         (WebCore::RenderSVGResourceContainer::registerResource):
1735         * svg/SVGDocumentExtensions.cpp:
1736         (WebCore::SVGDocumentExtensions::addPendingResource):
1737         (WebCore::SVGDocumentExtensions::isIdOfPendingResource):
1738         (WebCore::SVGDocumentExtensions::isElementWithPendingResources):
1739         (WebCore::SVGDocumentExtensions::isPendingResource):
1740         (WebCore::SVGDocumentExtensions::clearHasPendingResourcesIfPossible):
1741         (WebCore::SVGDocumentExtensions::removeElementFromPendingResources):
1742         (WebCore::SVGDocumentExtensions::removePendingResource):
1743         (WebCore::SVGDocumentExtensions::removePendingResourceForRemoval):
1744         (WebCore::SVGDocumentExtensions::markPendingResourcesForRemoval):
1745         (WebCore::SVGDocumentExtensions::removeElementFromPendingResourcesForRemovalMap): The name is not great but a bit more descriptive.
1746         * svg/SVGDocumentExtensions.h:
1747         * svg/SVGElement.cpp:
1748         (WebCore::SVGElement::buildPendingResourcesIfNeeded):
1749         * svg/SVGMPathElement.cpp:
1750         (WebCore::SVGMPathElement::buildPendingResource):
1751         * svg/SVGTextPathElement.cpp:
1752         (WebCore::SVGTextPathElement::buildPendingResource):
1753         * svg/animation/SVGSMILElement.cpp:
1754         (WebCore::SVGSMILElement::buildPendingResource):
1755
1756 2014-01-15  Carlos Garcia Campos  <cgarcia@igalia.com>
1757
1758         [GTK][EFL][NIX] Do not use PrintContext, Frame and DocumentLoader in Errors
1759         https://bugs.webkit.org/show_bug.cgi?id=127047
1760
1761         Reviewed by Martin Robinson.
1762
1763         Using PrintContext, Frame and DocumentLoader in platform is a
1764         layering violation.
1765         Change printing error methods to receive a failing URL instead of
1766         receiving a PrintContext that was used only to get the failing
1767         URL.
1768
1769         * platform/efl/ErrorsEfl.cpp:
1770         (WebCore::printError):
1771         (WebCore::printerNotFoundError):
1772         (WebCore::invalidPageRangeToPrint):
1773         * platform/efl/ErrorsEfl.h:
1774         * platform/gtk/ErrorsGtk.cpp:
1775         (WebCore::printError):
1776         (WebCore::printerNotFoundError):
1777         (WebCore::invalidPageRangeToPrint):
1778         * platform/gtk/ErrorsGtk.h:
1779         * platform/nix/ErrorsNix.cpp:
1780         (WebCore::printError):
1781         (WebCore::printerNotFoundError):
1782         (WebCore::invalidPageRangeToPrint):
1783         * platform/nix/ErrorsNix.h:
1784
1785 2014-01-15  Mihnea Ovidenie  <mihnea@adobe.com>
1786
1787         [CSS Regions] Enable accelerated compositing for fixed elements in named flows
1788         https://bugs.webkit.org/show_bug.cgi?id=125144
1789
1790         Reviewed by David Hyatt.
1791
1792         Add support for compositing for fixed positioned element that are collected
1793         inside a named flow. Prior to this patch, the fixed positioned elements were
1794         positioned and sized properly but only in the non-compositing scenario.
1795
1796         Tests: compositing/regions/abs-in-named-flow-from-fixed-in-named-flow.html
1797                compositing/regions/fixed-in-diff-named-flows-zIndex.html
1798                compositing/regions/fixed-in-named-flow-clip-descendant.html
1799                compositing/regions/fixed-in-named-flow-from-abs-in-named-flow.html
1800                compositing/regions/fixed-in-named-flow-from-outflow.html
1801                compositing/regions/fixed-in-named-flow-got-transformed-parent.html
1802                compositing/regions/fixed-in-named-flow-lost-transformed-parent.html
1803                compositing/regions/fixed-in-named-flow-overlap-composited.html
1804                compositing/regions/fixed-in-named-flow-position-changed.html
1805                compositing/regions/fixed-in-named-flow-transformed-parent.html
1806                compositing/regions/fixed-in-named-flow-zIndex.html
1807                compositing/regions/fixed-in-named-flow.html
1808                compositing/regions/fixed-transformed-in-named-flow.html
1809
1810         * rendering/RenderFlowThread.cpp:
1811         (WebCore::RenderFlowThread::regionForCompositedLayer):
1812         * rendering/RenderLayerCompositor.cpp:
1813         (WebCore::RenderLayerCompositor::computeCompositingRequirementsForNamedFlowFixed):
1814         (WebCore::RenderLayerCompositor::computeCompositingRequirements):
1815         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTreeForNamedFlowFixed):
1816         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree):
1817         (WebCore::RenderLayerCompositor::updateLayerTreeGeometry):
1818         (WebCore::RenderLayerCompositor::requiresCompositingForPosition):
1819         * rendering/RenderLayerCompositor.h:
1820         * rendering/RenderNamedFlowFragment.h:
1821         * rendering/RenderNamedFlowThread.h:
1822
1823 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
1824
1825         Fix the iOS build after r162114
1826
1827         Unreviewed.
1828
1829         * WebCore.exp.in: Move the symbol to the right section and add the missing symbols for iOS.
1830
1831 2014-01-15  Mihai Maerean  <mmaerean@adobe.com>
1832
1833         [CSS Regions] Fix painting when the composited region has overflow:hidden
1834         https://bugs.webkit.org/show_bug.cgi?id=124887
1835
1836         Reviewed by Alexandru Chiculita.
1837
1838         When the layer of the region is composited, the region receives a GraphicsLayer of its own
1839         so the clipping coordinates (caused by overflow:hidden) must be relative to the
1840         GraphicsLayer coordinates in which the region gets painted.
1841
1842         Also, while the painting is done relative to the location of the region's content box, the
1843         clipping is bound to the padding box of the region.
1844
1845         Tests: compositing/regions/paint-inside-composited-region-overflow-hidden-versus-div.html
1846                compositing/regions/paint-inside-composited-region-overflow-hidden-versus-region.html
1847
1848         * rendering/RenderLayer.cpp:
1849         (WebCore::RenderLayer::paintFlowThreadIfRegion):
1850
1851 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
1852
1853         Move user agent code to WebCore and unify some code between OS X and iOS
1854         https://bugs.webkit.org/show_bug.cgi?id=127080
1855
1856         Reviewed by Sam Weinig.
1857
1858         Move the duplicated code from WebView and WebPageProxy to two files
1859         in WebCore: UserAgentMac and UserAgentIOS.
1860
1861         * Configurations/WebCore.xcconfig:
1862         * WebCore.exp.in:
1863         * WebCore.xcodeproj/project.pbxproj:
1864         * page/ios/UserAgentIOS.mm: Added.
1865         (WebCore::platformSystemRootDirectory):
1866         (WebCore::osMarketingVersion):
1867         (WebCore::standardUserAgentWithApplicationName):
1868         * page/mac/UserAgent.h: Added.
1869         * page/mac/UserAgentMac.mm: Added.
1870         (WebCore::systemMarketingVersionForUserAgentString):
1871         (WebCore::standardUserAgentWithApplicationName):
1872         * platform/ios/WebCoreSystemInterfaceIOS.h:
1873         * platform/ios/WebCoreSystemInterfaceIOS.mm:
1874
1875 2014-01-15  Sam Weinig  <sam@webkit.org>
1876
1877         Fix windows build.
1878
1879         * platform/text/TextAllInOne.cpp:
1880
1881 2014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
1882
1883         [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
1884         https://bugs.webkit.org/show_bug.cgi?id=127069
1885
1886         Reviewed by Timothy Hatcher.
1887
1888         * WebCore.exp.in:
1889
1890 2014-01-15  Sam Weinig  <sam@webkit.org>
1891
1892         TextBreakIterator's should support Latin-1 for all iterator types (Part 2)
1893         https://bugs.webkit.org/show_bug.cgi?id=126856
1894
1895         Reviewed by Ryosuke Niwa.
1896
1897         Move the contents of TextBreakIteratorICU.cpp to TextBreakIterator.cpp and remove TextBreakIteratorICU.cpp.
1898
1899         * CMakeLists.txt:
1900         * GNUmakefile.list.am:
1901         * PlatformGTK.cmake:
1902         * WebCore.vcxproj/WebCore.vcxproj:
1903         * WebCore.vcxproj/WebCore.vcxproj.filters:
1904         * WebCore.xcodeproj/project.pbxproj:
1905         * platform/text/TextBreakIterator.cpp:
1906         * platform/text/TextBreakIteratorICU.cpp: Removed.
1907
1908 2014-01-15  Eric Carlson  <eric.carlson@apple.com>
1909
1910         MediaSessionManager shouldn't use std::map
1911         https://bugs.webkit.org/show_bug.cgi?id=127003
1912
1913         Reviewed by Sam Weinig.
1914
1915         No new tests, no functional change.
1916
1917         Use an array instead of std::map.
1918         * platform/audio/MediaSessionManager.cpp:
1919         (WebCore::MediaSessionManager::MediaSessionManager):
1920         (WebCore::MediaSessionManager::addRestriction):
1921         (WebCore::MediaSessionManager::removeRestriction):
1922         (WebCore::MediaSessionManager::restrictions):
1923         (WebCore::MediaSessionManager::sessionWillBeginPlayback):
1924         * platform/audio/MediaSessionManager.h:
1925
1926 2014-01-15  Gavin Barraclough  <barraclough@apple.com>
1927
1928         Change Page, FocusController to use ViewState
1929         https://bugs.webkit.org/show_bug.cgi?id=126533
1930
1931         Unreviewed rollout, this caused a regression.
1932
1933         * WebCore.exp.in:
1934         * page/FocusController.cpp:
1935         (WebCore::FocusController::FocusController):
1936         (WebCore::FocusController::setFocused):
1937         (WebCore::FocusController::setActive):
1938         (WebCore::FocusController::setContentIsVisible):
1939         * page/FocusController.h:
1940         (WebCore::FocusController::isActive):
1941         (WebCore::FocusController::isFocused):
1942         * page/Page.cpp:
1943         (WebCore::Page::Page):
1944         (WebCore::Page::setIsInWindow):
1945         (WebCore::Page::setIsVisuallyIdle):
1946         (WebCore::Page::setIsVisible):
1947         (WebCore::Page::visibilityState):
1948         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
1949         * page/Page.h:
1950         (WebCore::Page::isVisible):
1951         (WebCore::Page::isInWindow):
1952
1953 2014-01-15  Brent Fulgham  <bfulgham@apple.com>
1954
1955         [WebGL] Resizing and entering/exiting full screen draws garbage
1956         https://bugs.webkit.org/show_bug.cgi?id=127077
1957
1958         Reviewed by Dean Jackson.
1959
1960         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1961         (WebCore::GraphicsContext3D::reshapeFBOs): Simplified logic regarding FBO switching.
1962         (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary): Make sure a few things
1963         are turned off that might affect blitting data from one FBO to another.
1964         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1965         (WebCore::GraphicsContext3D::prepareTexture): Actually turn dithering off!
1966         (WebCore::GraphicsContext3D::reshape): Mark the context as dirty when resizing so that
1967         the GL view is redrawn during resizing events.
1968
1969 2014-01-15  Roger Fong  <roger_fong@apple.com>
1970
1971         Remove unnecessary call to webGLContextCreated
1972         https://bugs.webkit.org/show_bug.cgi?id=127000
1973
1974         Reviewed by Brent Fulgham.
1975
1976         Note that the functionality of webGLContextCreated will be handled by webGLPolicyForSite now.
1977
1978         Tests: Unskipping tests skipped in r162002.
1979
1980         * html/HTMLCanvasElement.cpp: Remove webGLContextCreated call.
1981         (WebCore::HTMLCanvasElement::getContext):
1982         * loader/FrameLoaderClient.h:
1983         Have the returned load policy default to WebGLAllow so as to not break clients that don't implement the method.
1984         (WebCore::FrameLoaderClient::webGLPolicyForSite):
1985         webGLPolicyForSite is now assuming the role of webGLContextCreated as well, pass in the whole site URL instead of just the host.
1986         * page/ChromeClient.h: Remove webGLContextCreated method.
1987         (WebCore::ChromeClient::decrementActivePageCount):
1988
1989 2014-01-15  Beth Dakin  <bdakin@apple.com>
1990
1991         Repeating background images should continue into margin tiles
1992         https://bugs.webkit.org/show_bug.cgi?id=127021
1993         -and corresponding-
1994         <rdar://problem/15571300>
1995
1996         Reviewed by Simon Fraser.
1997
1998         This patch makes repeating background images continue into margin tiles. 
1999
2000         RenderObject::repaintRectangle() now takes an addition bool parameter which 
2001         indicates whether or not the repaint rect should be clipped to the layer size.
2002         * WebCore.exp.in:
2003
2004         These new functions on FrameView provide a way for code in the render tree to know 
2005         if the TiledBacking has a margin. tiledBacking() is now const. It should have 
2006         always been const, and it needs to be const to make these new functions const.
2007         * page/FrameView.cpp:
2008         (WebCore::FrameView::tiledBacking):
2009         (WebCore::FrameView::hasExtendedBackground):
2010         (WebCore::FrameView::extendedBackgroundRect):
2011         * page/FrameView.h:
2012         * platform/ScrollableArea.h:
2013         (WebCore::ScrollableArea::tiledBacking):
2014
2015         If we’re painting the root background and it is an extended background, we need to 
2016         inflate the repaint rect to span the extended background. 
2017         * rendering/RenderBox.cpp:
2018         (WebCore::RenderBox::repaintLayerRectsForImage):
2019
2020         To get the phase right on repeated background images on a page with margin tiles, 
2021         we need to make sure we factor the size of the margin tiles into the left and top 
2022         values that we use when calculating background image geometry.
2023         * rendering/RenderBoxModelObject.cpp:
2024         (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
2025
2026         setBackingNeedsRepaintInRect() now takes GraphicsLayer::ShouldClipToLayer as a 
2027         parameter, just like setBackingNeedsRepaint(). 
2028         * rendering/RenderLayer.cpp:
2029         (WebCore::RenderLayer::calculateClipRects):
2030
2031         setContentsNeedDisplayInRect() also takes a GraphicsLayer::ShouldClipToLayer now, 
2032         and it passes that information down to the GraphicsLayer.
2033         * rendering/RenderLayer.h:
2034         * rendering/RenderLayerBacking.cpp:
2035         (WebCore::RenderLayerBacking::setContentsNeedDisplayInRect):
2036         * rendering/RenderLayerBacking.h:
2037
2038         These two RenderObject functions now take an optional bool parameter which 
2039         indicates whether or not the rect should be clipped to the layer size. They use a 
2040         bool instead of the GraphicsLayer enum in order to avoid including GraphicsLayer.h 
2041         from within RenderObject.h. This seems like a simpler solution than adding a new 
2042         stand-alone file for this very simple enum.
2043         * rendering/RenderObject.cpp:
2044         (WebCore::RenderObject::repaintUsingContainer):
2045         (WebCore::RenderObject::repaintRectangle):
2046         * rendering/RenderObject.h:
2047
2048         RenderView::backgroundRect needs to return the extendedBackgroundRect when it had 
2049         one.
2050         * rendering/RenderView.cpp:
2051         (WebCore::RenderView::backgroundRect):
2052
2053 2014-01-15  Brian Burg  <bburg@apple.com>
2054
2055         Web Inspector: capture probe samples on the backend
2056         https://bugs.webkit.org/show_bug.cgi?id=126668
2057
2058         Reviewed by Joseph Pecoraro.
2059
2060         Test: inspector-protocol/debugger/setProbe-multiple-actions.html
2061
2062         Add the probe breakpoint action type. A probe action
2063         evaluates an expression on the script call frame, and
2064         the result is aggregated on a per-probe basis. Each
2065         evaluated expression result is called a probe sample.
2066
2067         * bindings/js/ScriptDebugServer.cpp:
2068         (WebCore::ScriptDebugServer::evaluateBreakpointAction): Teach
2069         the debug server to evaluate a probe.
2070
2071         (WebCore::ScriptDebugServer::dispatchDidSampleProbe): Added.
2072         (WebCore::ScriptDebugServer::handleBreakpointHit): Increment a hit count.
2073         (WebCore::ScriptDebugServer::getActionsForBreakpoint):
2074         * bindings/js/ScriptDebugServer.h:
2075         * inspector/InspectorDebuggerAgent.cpp:
2076         (WebCore::objectGroupForBreakpointAction): Added. Create an object
2077         group for each breakpoint action. Currently only probes make objects.
2078         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
2079         (WebCore::InspectorDebuggerAgent::disable):
2080         (WebCore::InspectorDebuggerAgent::enable): Remove stale comment.
2081         (WebCore::breakpointActionTypeForString): Add new case.
2082         (WebCore::InspectorDebuggerAgent::breakpointActionsFromProtocol): Make
2083         this a member function instead of a static function, so it can increment
2084         the breakpoint action identifier counter.
2085         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl): Propagate the
2086         assigned breakpoint action identifiers.
2087         (WebCore::InspectorDebuggerAgent::setBreakpoint): Propagate the
2088         assigned breakpoint action identifiers.
2089         (WebCore::InspectorDebuggerAgent::removeBreakpoint): Release object
2090         groups for any actions that were associated with the removed breakpoint.
2091         (WebCore::InspectorDebuggerAgent::didSampleProbe): Added.
2092         (WebCore::InspectorDebuggerAgent::clearResolvedBreakpointState): Renamed from clear().
2093         (WebCore::InspectorDebuggerAgent::didClearGlobalObject): Renamed from reset().
2094         * inspector/InspectorDebuggerAgent.h:
2095         * inspector/PageDebuggerAgent.cpp:
2096         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
2097         * inspector/ScriptBreakpoint.h:
2098         (WebCore::ScriptBreakpointAction::ScriptBreakpointAction): Add identifier member.
2099         * inspector/ScriptDebugListener.h:
2100
2101 2014-01-15  Brent Fulgham  <bfulgham@apple.com>
2102
2103         [WebGL] Validation function for compressed formats incorrect
2104         https://bugs.webkit.org/show_bug.cgi?id=127023
2105
2106         Reviewed by Dean Jackson.
2107
2108         No new tests. Covered by existing WebGL compressed texture tests.
2109
2110         * html/canvas/WebGLRenderingContext.cpp:
2111         (WebCore::WebGLRenderingContext::validateCompressedTexFuncData): Revise to match specifications.
2112
2113 2014-01-15  Andreas Kling  <akling@apple.com>
2114
2115         Remove the CSS selector profiler.
2116         <https://webkit.org/b/127039>
2117
2118         The selector profiler was painting a mostly fictional picture of what
2119         selectors we were spending time on. It never really grokked the fast
2120         path selectors, nor did it understand recent additions like the extra
2121         cascading pass or the selector JIT.
2122
2123         Somewhat ironically, this may end up making some selectors run faster
2124         since it removes a number of brances in hot code.
2125
2126         Reviewed by Sam Weinig.
2127
2128         * css/ElementRuleCollector.cpp:
2129         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
2130         * css/ElementRuleCollector.h:
2131         * inspector/InspectorCSSAgent.cpp:
2132         (WebCore::InspectorCSSAgent::willDestroyFrontendAndBackend):
2133         * inspector/InspectorCSSAgent.h:
2134         * inspector/InspectorInstrumentation.cpp:
2135         * inspector/InspectorInstrumentation.h:
2136         * inspector/protocol/CSS.json:
2137
2138 2014-01-15  Frédéric Wang  <fred.wang@free.fr>
2139
2140         [SVG] Accept HTML and MathML namespaces as valid requiredExtensions
2141         https://bugs.webkit.org/show_bug.cgi?id=88188
2142
2143         Reviewed by Chris Fleizach.
2144
2145         When HTML and MathML are used as foreign objects of an SVG image, it is
2146         important for Web authors to be able to specify a fallback content for
2147         SVG-only readers or browsers without MathML support. We rely on the
2148         requiredExtensions for that purpose and we use the XHTML/MathML
2149         namespaces as suggested in SVG Tiny 1.2 and implemented in Gecko.
2150
2151         Tests: svg/custom/conditional-processing-1.svg
2152                svg/custom/conditional-processing-2.html
2153                svg/dom/SVGTests.html
2154
2155         * svg/SVGSwitchElement.cpp: Remove an incorrect FIXME comment and replace it with a reference to bug 74749.
2156         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
2157         * svg/SVGTests.cpp: Check if the list of required extensions contains only the XHTML/MathML namespaces.
2158         (WebCore::SVGTests::hasExtension):
2159         (WebCore::SVGTests::isValid):
2160
2161 2014-01-15  Commit Queue  <commit-queue@webkit.org>
2162
2163         Unreviewed, rolling out r162066.
2164         http://trac.webkit.org/changeset/162066
2165         https://bugs.webkit.org/show_bug.cgi?id=127056
2166
2167         The added test still fails on some bots (Requested by ap on
2168         #webkit).
2169
2170         * svg/graphics/SVGImage.cpp:
2171         (WebCore::SVGImage::drawPatternForContainer):
2172         * svg/graphics/SVGImage.h:
2173         * svg/graphics/SVGImageForContainer.cpp:
2174         (WebCore::SVGImageForContainer::drawPattern):
2175
2176 2014-01-15  David Kilzer  <ddkilzer@apple.com>
2177
2178         [iOS] Fix intialization order of ResourceResponse constructor
2179
2180         Fixes the following build failure:
2181
2182             WebCore/platform/network/mac/ResourceResponseMac.mm:83:7: error: field 'm_nsResponse' will be initialized after field 'm_initLevel' [-Werror,-Wreorder]
2183                 , m_nsResponse(nsResponse)
2184                   ^
2185
2186         * platform/network/mac/ResourceResponseMac.mm:
2187         (WebCore::ResourceResponse::ResourceResponse): Reorder member
2188         initializers to match the order that they are defined in the
2189         header.
2190
2191 2014-01-15  Roger Fong  <roger_fong@apple.com>
2192
2193         Unreviewed. Comment out part of r162036 which broke WebGL on many ports.
2194
2195         * html/HTMLCanvasElement.cpp:
2196         (WebCore::HTMLCanvasElement::getContext):
2197
2198 2014-01-15  Zoltan Horvath  <zoltan@webkit.org>
2199
2200         WordMeasurement is a struct, not a class
2201         https://bugs.webkit.org/show_bug.cgi?id=125373
2202
2203         Reviewed by Anders Carlsson.
2204
2205         Change class to struct, because there is no reason for WordMeasurement to be a class.
2206
2207         No new tests, no behavior change.
2208
2209         * rendering/RenderBlockFlow.h:
2210         * rendering/line/BreakingContextInlineHeaders.h:
2211
2212 2014-01-15  Mihai Tica  <mitica@adobe.com>
2213
2214         Reapplying:
2215         Background-blend-mode doesn't work for an element with an
2216         SVG image as background and border-style or padding set.
2217         The problem consisted in the drawing path using the default
2218         blending parameter at all times.
2219         https://bugs.webkit.org/show_bug.cgi?id=118894
2220
2221         Reviewed by Dirk Schulze.
2222
2223         Test: css3/compositing/background-blend-mode-data-uri-svg-image.html
2224
2225         * svg/graphics/SVGImage.cpp:
2226         (WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
2227         * svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
2228         * svg/graphics/SVGImageForContainer.cpp:
2229         (WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.
2230
2231 2014-01-15  Andrei Bucur  <abucur@adobe.com>
2232
2233         [CSS Regions] Hit-testing goes through clipped layer in fast/regions/overflow-first-and-last-regions-in-container-hidden.html
2234         https://bugs.webkit.org/show_bug.cgi?id=126886
2235
2236         Reviewed by Mihnea Ovidenie.
2237
2238         Currently, when hit testing a location inside a flow thread we ignore the clipping rectangle of
2239         the region. This leads to false positives when the location is over the clipped out content of a
2240         flow thread. The patch verifies that the location is inside the clipping rectangle of the region before
2241         forwarding the hit test verification to the flow thread layer.
2242
2243         Test: fast/regions/hover-and-js-in-visual-overflow-hidden.html
2244
2245         * rendering/RenderLayer.cpp:
2246         (WebCore::RenderLayer::hitTestFlowThreadIfRegion):
2247
2248 2014-01-15  Antti Koivisto  <antti@apple.com>
2249
2250         Suspend resource requests during computedStyle
2251         https://bugs.webkit.org/show_bug.cgi?id=127034
2252
2253         Reviewed by Andreas Kling.
2254
2255         We have some cases where getting computed style leads to crashes in loadPendingImages. 
2256         This is probably caused by load callbacks resulting in re-entering WebKit and killing the StyleResolver.
2257         
2258         As a speculative fix suspend resource loads (and so callbacks) when getting the computed style.
2259         We do similar suspension during style recalc for the same reason.
2260
2261         * dom/Document.cpp:
2262         (WebCore::Document::styleForElementIgnoringPendingStylesheets):
2263         * loader/ResourceLoadScheduler.h:
2264         (WebCore::ResourceLoadScheduler::Suspender::Suspender):
2265         (WebCore::ResourceLoadScheduler::Suspender::~Suspender):
2266
2267 2014-01-15  László Langó  <llango.u-szeged@partner.samsung.com>
2268
2269         DocumentFragment should be constructable.
2270         https://bugs.webkit.org/show_bug.cgi?id=115641
2271
2272         Reviewed by Ryosuke Niwa.
2273
2274         http://www.w3.org/TR/2013/WD-dom-20131107/#interface-documentfragment
2275         This allows us to do `new DocumentFragment` instead of
2276         `document.createDocumentFragment()`.
2277
2278         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/86855c44a5a127716840fb377281b1c428e5eb2d%5E%21
2279
2280         Test: fast/dom/DocumentFragment/document-fragment-constructor.html
2281
2282         * dom/DocumentFragment.cpp:
2283         (WebCore::DocumentFragment::create):
2284         * dom/DocumentFragment.h:
2285         * dom/DocumentFragment.idl:
2286
2287 2014-01-14  ChangSeok Oh  <changseok.oh@collabora.com>
2288
2289         Unreviewed build fix after r161980.
2290
2291         CachedResourcesLoader.h should not belong to the CSS_SHADERS flag since it is used
2292         out of the flag so it causes a compile failure when svg and css shaders are concurrently disabled.
2293
2294         * css/StyleResolver.cpp:
2295
2296 2014-01-14  Andreas Kling  <akling@apple.com>
2297
2298         Pack ResourceResponse harder.
2299         <https://webkit.org/b/127005>
2300
2301         Re-arrange the members of ResourceResponse to reduce padding,
2302         shrinking it by 8 bytes.
2303
2304         This nudges CachedResource and CachedImage into smaller size
2305         classes, yielding a ~700 kB progression on Membuster3.
2306
2307         Reviewed by Anders Carlsson.
2308
2309         * platform/network/ResourceResponseBase.cpp:
2310         (WebCore::ResourceResponseBase::ResourceResponseBase):
2311         * platform/network/ResourceResponseBase.h:
2312         * platform/network/cf/ResourceResponse.h:
2313         (WebCore::ResourceResponse::ResourceResponse):
2314
2315 2014-01-14  Dirk Schulze  <krit@webkit.org>
2316
2317         Remove unnecessary WebkitCSSSVGDocumentValue
2318         https://bugs.webkit.org/show_bug.cgi?id=126997
2319
2320         Reviewed by Andreas Kling.
2321
2322         Removing redundant code path. WebkitCSSSVGDocumentValue
2323         can be expressed by a CSSPrimitiveValue.
2324
2325         No new tests.
2326
2327         * CMakeLists.txt:
2328         * GNUmakefile.list.am:
2329         * WebCore.order:
2330         * WebCore.vcxproj/WebCore.vcxproj:
2331         * WebCore.vcxproj/WebCore.vcxproj.filters:
2332         * WebCore.xcodeproj/project.pbxproj:
2333         * css/CSSParser.cpp:
2334         (WebCore::CSSParser::parseFilter):
2335         * css/CSSValue.cpp:
2336         (WebCore::CSSValue::equals):
2337         (WebCore::CSSValue::cssText):
2338         (WebCore::CSSValue::destroy):
2339         * css/CSSValue.h:
2340         * css/StyleResolver.cpp:
2341         (WebCore::StyleResolver::createFilterOperations):
2342         * css/StyleResolver.h:
2343         * css/WebKitCSSSVGDocumentValue.cpp: Removed.
2344         * css/WebKitCSSSVGDocumentValue.h: Removed.
2345         * css/CSSComputedStyleDeclaration.cpp:
2346         (WebCore::ComputedStyleExtractor::valueForFilter):
2347         * css/WebKitCSSFilterValue.cpp:
2348         (WebCore::WebKitCSSFilterValue::customCSSText):
2349
2350 2014-01-14  Mihnea Ovidenie  <mihnea@adobe.com>
2351
2352         [CSSRegions] Incorrect repaint of fixed element with transformed parent
2353         https://bugs.webkit.org/show_bug.cgi?id=125756
2354
2355         Reviewed by Simon Fraser.
2356
2357         When collecting the layers for fixed positioned elements with named flow
2358         as a containing block, use layers collection at named flow layer level
2359         instead of relying on the positioned elements collection.
2360
2361         With this approach, there are situations with nested named flows laid out in
2362         auto-height regions and thus assuming 2 step layouts, in which is enough to lay
2363         out the inner named flow once instead of twice with a performance gain.
2364         In such situations, the layers lists for the inner named flow are not yet updated
2365         when collectFixedPositionedLayers is called to paint the fixed positioned layers.
2366         Therefore I called updateLayerListsIfNeeded for all named flows layers, via the flow thread controller, before inspecting the named flow layers to avoid hitting the assertions when
2367         accessing the named flows layers lists.
2368
2369         Tests: fast/regions/repaint/fixed-in-named-flow-cb-changed.html
2370                fast/regions/repaint/fixed-in-named-flow-cb-changed2.html
2371
2372         * rendering/FlowThreadController.cpp:
2373         (WebCore::FlowThreadController::updateNamedFlowsLayerListsIfNeeded):
2374         (WebCore::FlowThreadController::collectFixedPositionedLayers):
2375         * rendering/FlowThreadController.h:
2376         * rendering/RenderLayer.cpp:
2377         (WebCore::RenderLayer::paintFixedLayersInNamedFlows):
2378
2379 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
2380
2381         Unreviewed test fix.
2382
2383         * html/canvas/WebGLRenderingContext.cpp:
2384         (WebCore::WebGLRenderingContext::validateCompressedTexDimensions): Emit
2385         error state expected by Khronos test suite.
2386
2387 2014-01-14  Brady Eidson  <beidson@apple.com>
2388
2389         IDB: create object store support
2390         <rdar://problem/15779639> and https://bugs.webkit.org/show_bug.cgi?id=127011
2391
2392         Reviewed by Anders Carlsson.
2393
2394         Split the 3 objects declared in IDBDatabaseMetadata into their own header files:
2395         * Modules/indexeddb/IDBDatabaseMetadata.h:
2396         * Modules/indexeddb/IDBIndexMetadata.h:
2397         (WebCore::IDBIndexMetadata::IDBIndexMetadata):
2398         * Modules/indexeddb/IDBObjectStoreMetadata.h:
2399         (WebCore::IDBObjectStoreMetadata::IDBObjectStoreMetadata):
2400
2401         Add cross thread copying for IDBDatabaseMetadata:
2402         * platform/CrossThreadCopier.cpp:
2403         (WebCore::IDBIndexMetadata>::copy):
2404         (WebCore::IDBObjectStoreMetadata>::copy):
2405         * platform/CrossThreadCopier.h:
2406
2407         * WebCore.exp.in:
2408         * WebCore.xcodeproj/project.pbxproj:
2409
2410 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
2411
2412         [iOS] Crash in NavigatorBase::vendor loading apple.com
2413         https://bugs.webkit.org/show_bug.cgi?id=127028
2414
2415         Reviewed by Daniel Bates.
2416
2417         Export function pointers to be filled in with WebKitSystemInterface functions.
2418
2419         * WebCore.exp.in:
2420
2421 2014-01-14  Jeffrey Pfau  <jpfau@apple.com>
2422
2423         Build fix after r162034
2424
2425         Rubber-stamped by Benjamin Poulain.
2426
2427         * WebCore.exp.in:
2428
2429 2014-01-14  Timothy Hatcher  <timothy@apple.com>
2430
2431         Web Inspector: Resource finish time is sometimes earlier than response received time.
2432
2433         https://bugs.webkit.org/show_bug.cgi?id=127027
2434
2435         Reviewed by Joseph Pecoraro.
2436
2437         * inspector/InspectorResourceAgent.cpp:
2438         (WebCore::InspectorResourceAgent::didFinishLoading): Use currentTime() and not the
2439         passed in finishTime.
2440
2441 2014-01-14  Anders Carlsson  <andersca@apple.com>
2442
2443         Follow up build fix attempt.
2444
2445         * WebCore.exp.in:
2446
2447 2014-01-14  Roger Fong  <roger_fong@apple.com>
2448
2449         Add support for handling WebGL load policies.
2450         https://bugs.webkit.org/show_bug.cgi?id=126935
2451         <rdar://problem/15790448>.
2452
2453         Reviewed by Brent Fulgham.
2454
2455         * WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
2456         * html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
2457         (WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
2458                                                   If it isn't, be sure to notify the frame loader client that
2459                                                   the site is trying to create a WebGL context.
2460         * loader/FrameLoaderClient.h:
2461         (WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
2462         * loader/FrameLoaderTypes.h:
2463         * page/ChromeClient.h:
2464         (WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.
2465
2466 2014-01-14  Anders Carlsson  <andersca@apple.com>
2467
2468         Create separate progress tracker clients
2469         https://bugs.webkit.org/show_bug.cgi?id=127025
2470
2471         Reviewed by Sam Weinig.
2472
2473         * loader/ProgressTracker.cpp:
2474         (WebCore::ProgressTracker::~ProgressTracker):
2475         * loader/ProgressTrackerClient.h:
2476
2477 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
2478
2479         [WebGL] WebGLRenderingContext::validateCompressedTexDimensions improperly calculates values
2480         https://bugs.webkit.org/show_bug.cgi?id=126926
2481
2482         Reviewed by Dean Jackson.
2483
2484         Test coverage in fast/canvas/webgl/webgl-compressed-texture-size-limit.html
2485
2486         * html/canvas/WebGLRenderingContext.cpp:
2487         (WebCore::WebGLRenderingContext::compressedTexImage2D): Pass target to
2488         validation function.
2489         (WebCore::WebGLRenderingContext::validateCompressedTexDimensions): Revise
2490         calculation to also confirm size is in bounds.
2491         (WebCore::WebGLRenderingContext::validateCompressedTexSubDimensions): Pass
2492        target to validation function.
2493         * html/canvas/WebGLRenderingContext.h: Modify signature.
2494
2495 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2496
2497         On iOS, we never want to make scrollbar layers
2498         https://bugs.webkit.org/show_bug.cgi?id=127024
2499         <rdar://problem/15745768>
2500
2501         Reviewed by Dean Jackson.
2502
2503         On platforms that delegate scrolling, don't try to make layers
2504         for scrollbars.
2505         
2506         This fixes a crash in RenderLayerCompositor::updateOverflowControlsLayers()
2507         where m_overflowControlsHostLayer is null.
2508
2509         * rendering/RenderLayerCompositor.cpp:
2510         (WebCore::RenderLayerCompositor::shouldCompositeOverflowControls):
2511
2512 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2513
2514         Avoid PLATFORM() macros in exported headers.
2515
2516         * platform/ios/WebEvent.h:
2517
2518 2014-01-14  Daniel Bates  <dabates@apple.com>
2519
2520         [iOS] Build fix for 32-bit simulator and device
2521
2522         CGFloat is defined to be float, double for 32-bit, and 64-bit devices respectively.
2523         Because WebCore::createCGColorWithDeviceWhite() takes CGFloat arguments we need to
2524         list both the float and double-variants of this symbol in WebCore.exp.in. Currently
2525         we only list the version whose arguments are of type double.
2526
2527         * WebCore.exp.in:
2528
2529 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2530
2531         Clean up exports and headers for iOS.
2532         
2533         Don't use ENABLE() macro in an exported header.
2534
2535         * platform/ios/wak/WAKResponder.h:
2536
2537 2014-01-14  Daniel Bates  <dabates@apple.com>
2538
2539         [iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP6NSData to
2540         section USE(QUICK_LOOK)
2541
2542         * WebCore.exp.in:
2543
2544 2014-01-14  Anders Carlsson  <andersca@apple.com>
2545
2546         Clean up DNSResolveQueue
2547         https://bugs.webkit.org/show_bug.cgi?id=127007
2548
2549         Reviewed by Geoffrey Garen.
2550
2551         Move the shared() getter out of line and make it use NeverDestroyed.
2552         Add a Timer member variable instead of inheriting from TimerBase. 
2553         Use std::atomic<int> for the m_requestsInFlight member variable.
2554
2555         * platform/network/DNSResolveQueue.cpp:
2556         (WebCore::DNSResolveQueue::shared):
2557         (WebCore::DNSResolveQueue::DNSResolveQueue):
2558         (WebCore::DNSResolveQueue::add):
2559         (WebCore::DNSResolveQueue::timerFired):
2560         * platform/network/DNSResolveQueue.h:
2561         (WebCore::DNSResolveQueue::decrementRequestCount):
2562
2563 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2564
2565         Two more exports for iOS.
2566
2567         * WebCore.exp.in:
2568
2569 2014-01-14  Csaba Osztrogonác  <ossy@webkit.org>
2570
2571         One more buildfix after r161999.
2572
2573         * Modules/webaudio/MediaStreamAudioSource.h:
2574
2575 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2576
2577         Export __ZN7WebCore11FileChooser16chooseMediaFilesERKN3WTF6VectorINS1_6StringELm0ENS1_15CrashOnOverflowEEERKS3_PNS_4IconE
2578         to fix WK1 iOS linking.
2579
2580         * WebCore.exp.in:
2581
2582 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2583
2584         iOS build fixing: export required by iOS WebKit1.
2585
2586         * WebCore.exp.in:
2587
2588 2014-01-14  Commit Queue  <commit-queue@webkit.org>
2589
2590         Unreviewed, rolling out r162000.
2591         http://trac.webkit.org/changeset/162000
2592         https://bugs.webkit.org/show_bug.cgi?id=127009
2593
2594         API versioning is wrong (Requested by rfong on #webkit).
2595
2596         * WebCore.xcodeproj/project.pbxproj:
2597         * html/HTMLCanvasElement.cpp:
2598         (WebCore::HTMLCanvasElement::getContext):
2599         * loader/FrameLoaderClient.h:
2600         * loader/FrameLoaderTypes.h:
2601         * page/ChromeClient.h:
2602
2603 2014-01-14  Bear Travis  <betravis@adobe.com>
2604
2605         [CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
2606         https://bugs.webkit.org/show_bug.cgi?id=126719
2607
2608         Reviewed by Dirk Schulze.
2609
2610         The standard location for conversions to/from CSSPrimitiveValues is CSSPrimitiveValueMappings.
2611         This patch moves the conversion for LayoutBoxes from BasicShapeFunctions to
2612         CSSPrimitiveValueMappings.h.
2613
2614         Refactoring, no new tests.
2615
2616         * css/BasicShapeFunctions.cpp:
2617         (WebCore::valueForBasicShape):
2618         (WebCore::basicShapeForValue):
2619         * css/CSSComputedStyleDeclaration.cpp:
2620         (WebCore::ComputedStyleExtractor::propertyValue):
2621         * css/CSSPrimitiveValueMappings.h:
2622         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2623         (WebCore::CSSPrimitiveValue::operator LayoutBox):
2624         * css/DeprecatedStyleBuilder.cpp:
2625         (WebCore::ApplyPropertyClipPath::applyValue):
2626         (WebCore::ApplyPropertyShape::applyValue):
2627
2628 2014-01-09  Roger Fong  <roger_fong@apple.com>
2629
2630         Add support for handling WebGL load policies.
2631         https://bugs.webkit.org/show_bug.cgi?id=126935
2632         <rdar://problem/15790448>.
2633
2634         Reviewed by Brent Fulgham.
2635
2636         * WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
2637         * html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
2638         (WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
2639                                                   If it isn't, be sure to notify the frame loader client that
2640                                                   the site is trying to create a WebGL context.
2641         * loader/FrameLoaderClient.h:
2642         (WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
2643         * loader/FrameLoaderTypes.h:
2644         * page/ChromeClient.h:
2645         (WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.
2646
2647 2014-01-14  Anders Carlsson  <andersca@apple.com>
2648
2649         Get rid of ThreadRestrictionVerifier
2650         https://bugs.webkit.org/show_bug.cgi?id=127004
2651
2652         Reviewed by Sam Weinig.
2653
2654         Remove now unneeded calls.
2655
2656         * loader/icon/IconDatabase.cpp:
2657         (WebCore::IconDatabase::defaultIcon):
2658         (WebCore::IconDatabase::setIconDataForIconURL):
2659         (WebCore::IconDatabase::getOrCreateIconRecord):
2660         (WebCore::IconDatabase::readFromDatabase):
2661
2662 2014-01-14  Daniel Bates  <dabates@apple.com>
2663
2664         [iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and QLContentDictionary()
2665         https://bugs.webkit.org/show_bug.cgi?id=126999
2666         <rdar://problem/15810305>
2667
2668         Reviewed by Joseph Pecoraro.
2669
2670         Fixes an issue where we may crash when subsequently accessing WebCore::QLPreviewConverterDictionary()
2671         or WebCore::QLContentDictionary(). Currently neither of these functions retain'ed the NSMutable dictionary
2672         returned by [NSMutableDictionary dictionary]. Instead, we should allocate and initialize NSMutableDictionary
2673         directly to ensure that the dictionary is retained.
2674
2675         * platform/network/ios/QuickLook.mm:
2676         (QLPreviewConverterDictionary):
2677         (QLContentDictionary):
2678
2679 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
2680
2681         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
2682         https://bugs.webkit.org/show_bug.cgi?id=126925
2683
2684         Reviewed by Dean Jackson.
2685
2686         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
2687
2688         * html/canvas/WebGLRenderingContext.cpp:
2689         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
2690
2691 2014-01-14  Mark Rowe  <mrowe@apple.com>
2692
2693         WebCore icon database appears to leak sudden termination assertions
2694         <https://webkit.org/b/126971> / <rdar://problem/15808797>
2695
2696         Introduce an RAII wrapper around disableSuddenTermination / enableSuddenTermination
2697         and adopt it in IconDatabase to address the incorrect management of sudden termination.
2698
2699         IconDatabase now owns up to two SuddenTerminationDisabler objects. One ensures that
2700         sudden termination is disabled while we're waiting on the sync timer to fire. The second
2701         ensures that sudden termination is disabled while we're waiting on the sync thread to
2702         process any pending work.
2703
2704         Reviewed by Alexey Proskuryakov.
2705
2706         * loader/icon/IconDatabase.cpp:
2707         (WebCore::IconDatabase::IconDatabase):
2708         (WebCore::IconDatabase::wakeSyncThread): Disable sudden termination until the sync thread
2709         has finished this unit of work.
2710         (WebCore::IconDatabase::scheduleOrDeferSyncTimer): Disable sudden termination until the
2711         sync timer has fired.
2712         (WebCore::IconDatabase::syncTimerFired): Clear the member variable to reenable sudden termination.
2713         (WebCore::IconDatabase::syncThreadMainLoop): Taken ownership of the SuddenTerminationDisabler
2714         instance when we start processing a unit of work. Discard the object when our work is complete.
2715         * loader/icon/IconDatabase.h:
2716         * platform/SuddenTermination.h:
2717         (WebCore::SuddenTerminationDisabler::SuddenTerminationDisabler): Disable sudden termination when created.
2718         (WebCore::SuddenTerminationDisabler::~SuddenTerminationDisabler): Enable it when destroyed.
2719
2720 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
2721
2722         Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
2723         https://bugs.webkit.org/show_bug.cgi?id=126995
2724
2725         Reviewed by Timothy Hatcher.
2726
2727         * inspector/InspectorClient.h:
2728         (WebCore::InspectorClient::parentProcessIdentifier):
2729         Client method intended for WebKit2 so a WebProcess can link to its UIProcess.
2730
2731         * page/PageDebuggable.h:
2732         * page/PageDebuggable.cpp:
2733         (WebCore::PageDebuggable::parentProcessIdentifier):
2734         Provide parent process identifier if there is one.
2735
2736 2014-01-14  Tim Horton  <timothy_horton@apple.com>
2737
2738         iOS WebKit2 build fixes, part 2
2739
2740         * WebCore.exp.in:
2741         Export some more symbols.
2742
2743 2014-01-14  Brian J. Burg  <burg@cs.washington.edu>
2744
2745         Add ENABLE(WEB_REPLAY) feature flag to the build system
2746         https://bugs.webkit.org/show_bug.cgi?id=126949
2747
2748         Reviewed by Joseph Pecoraro.
2749
2750         * Configurations/FeatureDefines.xcconfig:
2751
2752 2014-01-10  Jer Noble  <jer.noble@apple.com>
2753
2754         Crash in WebCore::MediaSourcePrivateAVFObjC::hasAudio const + 13
2755         https://bugs.webkit.org/show_bug.cgi?id=126768
2756
2757         Reviewed by Eric Carlson.
2758
2759         Null-check m_mediaSourcePrivate before calling.
2760
2761         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2762         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasVideo):
2763         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasAudio):
2764         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekInternal):
2765
2766 2014-01-14  Piotr Grad  <p.grad@samsung.com>
2767
2768         [GStreamer] Playback rate is not set when pipeline is not ready.
2769         https://bugs.webkit.org/show_bug.cgi?id=126692
2770
2771         Reviewed by Philippe Normand.
2772
2773         No new tests. Covered by existing tests.
2774
2775         Added new method updatePlaybackRate which is called when playback rate change is possible.
2776         Added m_lastPlaybackRate in order to retrieve last correct playback rate and notify upper
2777         layers about that setting playback rate failed.
2778
2779         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2780         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
2781         (WebCore::MediaPlayerPrivateGStreamer::updatePlaybackRate):
2782         (WebCore::MediaPlayerPrivateGStreamer::setRate):
2783         (WebCore::MediaPlayerPrivateGStreamer::updateStates):
2784         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2785
2786 2014-01-14  Commit Queue  <commit-queue@webkit.org>
2787
2788         Unreviewed, rolling out r161978.
2789         http://trac.webkit.org/changeset/161978
2790         https://bugs.webkit.org/show_bug.cgi?id=126992
2791
2792         Test case causes crash on some hardware (Requested by bfulgham
2793         on #webkit).
2794
2795         * html/canvas/WebGLRenderingContext.cpp:
2796         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
2797
2798 2014-01-14  Commit Queue  <commit-queue@webkit.org>
2799
2800         Unreviewed, rolling out r161964 and r161965.
2801         http://trac.webkit.org/changeset/161964
2802         http://trac.webkit.org/changeset/161965
2803         https://bugs.webkit.org/show_bug.cgi?id=126988
2804
2805         Tests do not pass on the bots because of slight color
2806         differences. The tests should be redone with squared results
2807         and blending that leads to stable colors. (Requested by krit_
2808         on #webkit).
2809
2810         * platform/graphics/CrossfadeGeneratedImage.cpp:
2811         (WebCore::CrossfadeGeneratedImage::draw):
2812         * svg/graphics/SVGImage.cpp:
2813         (WebCore::SVGImage::drawPatternForContainer):
2814         * svg/graphics/SVGImage.h:
2815         * svg/graphics/SVGImageForContainer.cpp:
2816         (WebCore::SVGImageForContainer::drawPattern):
2817
2818 2014-01-14  Hans Muller  <hmuller@adobe.com>
2819
2820         [CSS Shapes] Shape images are now <image> types, not just URIs
2821         https://bugs.webkit.org/show_bug.cgi?id=125224
2822
2823         Reviewed by Andreas Kling.
2824
2825         Added support for image-set valued shapes. Added an optional ResourceLoaderOptions
2826         parameter to CSSImageSetValue::cachedImageSet() to enable CORS-enabled fetch of
2827         image-set images. This change is based on a similar patch for ordinary shape image values:
2828         https://bugs.webkit.org/show_bug.cgi?id=123114.
2829
2830         Tests: fast/shapes/shape-inside/shape-inside-image-set.html
2831                fast/shapes/shape-outside-floats/shape-outside-image-set.html
2832
2833         * css/CSSImageSetValue.cpp:
2834         (WebCore::CSSImageSetValue::cachedImageSet):
2835         * css/CSSImageSetValue.h:
2836         * css/CSSParser.cpp:
2837         (WebCore::CSSParser::parseShapeProperty):
2838         * css/DeprecatedStyleBuilder.cpp:
2839         (WebCore::ApplyPropertyShape::applyValue):
2840         * css/StyleResolver.cpp:
2841         (WebCore::StyleResolver::loadPendingImage):
2842         (WebCore::StyleResolver::loadPendingShapeImage):
2843         * css/StyleResolver.h:
2844         * rendering/shapes/Shape.cpp:
2845         (WebCore::Shape::createShape):
2846
2847 2014-01-13  Chris Fleizach  <cfleizach@apple.com>
2848
2849         AX: Modernize AccessibilityChildrenVector loops
2850         https://bugs.webkit.org/show_bug.cgi?id=126915
2851
2852         Reviewed by Anders Carlsson.
2853
2854         Change appropriate for loops to use the new style.
2855         Use auto where appropriate.
2856
2857         * accessibility/AXObjectCache.cpp:
2858         (WebCore::AXObjectCache::focusedImageMapUIElement):
2859         * accessibility/AccessibilityARIAGrid.cpp:
2860         (WebCore::AccessibilityARIAGrid::addRowDescendant):
2861         * accessibility/AccessibilityARIAGridCell.cpp:
2862         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
2863         * accessibility/AccessibilityARIAGridRow.cpp:
2864         (WebCore::AccessibilityARIAGridRow::disclosedRows):
2865         (WebCore::AccessibilityARIAGridRow::disclosedByRow):
2866         (WebCore::AccessibilityARIAGridRow::parentTable):
2867         (WebCore::AccessibilityARIAGridRow::headerObject):
2868         * accessibility/AccessibilityListBox.cpp:
2869         (WebCore::AccessibilityListBox::addChildren):
2870         (WebCore::AccessibilityListBox::setSelectedChildren):
2871         (WebCore::AccessibilityListBox::selectedChildren):
2872         * accessibility/AccessibilityListBoxOption.cpp:
2873         (WebCore::AccessibilityListBoxOption::listBoxOptionIndex):
2874         * accessibility/AccessibilityMenuList.cpp:
2875         (WebCore::AccessibilityMenuList::didUpdateActiveOption):
2876         * accessibility/AccessibilityMenuListPopup.cpp:
2877         (WebCore::AccessibilityMenuListPopup::addChildren):
2878         * accessibility/AccessibilityNodeObject.cpp:
2879         (WebCore::AccessibilityNodeObject::insertChild):
2880         (WebCore::AccessibilityNodeObject::selectedRadioButton):
2881         (WebCore::AccessibilityNodeObject::selectedTabItem):
2882         (WebCore::AccessibilityNodeObject::ariaLabeledByText):
2883         * accessibility/AccessibilityObject.cpp:
2884         (WebCore::appendChildrenToArray):
2885         (WebCore::AccessibilityObject::clearChildren):
2886         (WebCore::AccessibilityObject::ariaTreeRows):
2887         (WebCore::AccessibilityObject::ariaTreeItemContent):
2888         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
2889         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
2890         * accessibility/AccessibilityRenderObject.cpp:
2891         (WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
2892         (WebCore::AccessibilityRenderObject::ariaFlowToElements):
2893         (WebCore::AccessibilityRenderObject::isTabItemSelected):
2894         (WebCore::AccessibilityRenderObject::setSelectedRows):
2895         (WebCore::AccessibilityRenderObject::ariaOwnsElements):
2896         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
2897         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
2898         (WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
2899         (WebCore::AccessibilityRenderObject::addHiddenChildren):
2900         (WebCore::AccessibilityRenderObject::ariaSelectedRows):
2901         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
2902         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
2903         (WebCore::AccessibilityRenderObject::tabChildren):
2904         (WebCore::AccessibilityRenderObject::mathRadicandObject):
2905         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
2906         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
2907         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
2908         (WebCore::AccessibilityRenderObject::mathUnderObject):
2909         (WebCore::AccessibilityRenderObject::mathOverObject):
2910         (WebCore::AccessibilityRenderObject::mathBaseObject):
2911         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
2912         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
2913         * accessibility/AccessibilityTable.cpp:
2914         (WebCore::AccessibilityTable::columnHeaders):
2915         (WebCore::AccessibilityTable::rowHeaders):
2916         (WebCore::AccessibilityTable::visibleRows):
2917         (WebCore::AccessibilityTable::cells):
2918         (WebCore::AccessibilityTable::cellForColumnAndRow):
2919         * accessibility/AccessibilityTableColumn.cpp:
2920         (WebCore::AccessibilityTableColumn::headerObject):
2921         * accessibility/AccessibilityTableHeaderContainer.cpp:
2922         (WebCore::AccessibilityTableHeaderContainer::addChildren):
2923         * accessibility/AccessibilityTableRow.cpp:
2924         (WebCore::AccessibilityTableRow::headerObject):
2925         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2926         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
2927         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
2928         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
2929         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
2930         (convertMathPairsToNSArray):
2931         (-[WebAccessibilityObjectWrapperBase accessibilityTitle]):
2932         (-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
2933         (-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
2934         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2935         (convertToNSArray):
2936         (convertStringsToNSArray):
2937         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
2938         (-[WebAccessibilityObjectWrapper accessibilityIndexOfChild:]):
2939         (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
2940         (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):
2941
2942 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
2943
2944         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
2945         https://bugs.webkit.org/show_bug.cgi?id=126925
2946
2947         Reviewed by Dean Jackson.
2948
2949         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
2950
2951         * html/canvas/WebGLRenderingContext.cpp:
2952         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
2953
2954 2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>
2955
2956         [SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
2957         https://bugs.webkit.org/show_bug.cgi?id=126966
2958
2959         Reviewed by Gustavo Noronha Silva.
2960
2961         We don't really need to modify the Vector just to ignore the C
2962         locale.
2963
2964         * platform/network/soup/SoupNetworkSession.cpp:
2965         (WebCore::buildAcceptLanguages): Rework it to not modify the
2966         passed vector to ignore the C locale when it's present.
2967         (WebCore::SoupNetworkSession::setAcceptLanguages): Use const Vector<String>&.
2968         * platform/network/soup/SoupNetworkSession.h:
2969
2970 2014-01-14  Piotr Grad  <p.grad@samsung.com>
2971
2972         HTMLMediaElement::potentiallyPlaying can be more simple.
2973         https://bugs.webkit.org/show_bug.cgi?id=111
2974
2975         Reviewed by Eric Carlson.
2976
2977         Tests: No new tests, just refactorings.
2978
2979         Expression is simplified because the first 'if' statement depends on the same condition
2980         as pausedToBuffer value.
2981
2982         * html/HTMLMediaElement.cpp:
2983         (WebCore::HTMLMediaElement::parseAttribute):
2984
2985 2014-01-14  Andreas Kling  <akling@apple.com>
2986
2987         Remove deprecated DeferrableOneShotTimer constructor.
2988         <https://webkit.org/b/126984>
2989
2990         Remove the deprecated constructor for callback functions that take
2991         the timer by pointer instead of by reference.
2992
2993         This shrinks DeferrableOneShotTimer by 8 bytes.
2994
2995         Reviewed by Anders Carlsson.
2996
2997         * platform/Timer.h:
2998         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
2999
3000 2014-01-14  Dirk Schulze  <krit@webkit.org>
3001
3002         Make CachedSVGDocument independent of CSS Filters
3003         https://bugs.webkit.org/show_bug.cgi?id=126133
3004
3005         Reviewed by Antti Koivisto.
3006
3007         Clean-up the pendingSVGDocuments code in StyleResolver.
3008         CachedSVGDocumentReference is responsible for requesting the
3009         SVG document instead of WebKitCSSSVGDocumentValue.
3010         CachedSVGDocumentReference can be used by other SVG resource like
3011         clip-path and mask now so that these may load external resources
3012         as well.
3013         WebKitCSSSVGDocumentValue does not provide any further value
3014         and will be removed in the next patch.
3015
3016         Refactoring, no new test cases.
3017
3018         * css/StyleResolver.cpp:
3019         (WebCore::StyleResolver::loadPendingSVGDocuments):
3020         (WebCore::StyleResolver::createFilterOperations):
3021         * css/StyleResolver.h: Replace Map with a Set.
3022         (WebCore::StyleResolver::State::pendingSVGDocuments): Use the Set from now on.
3023         * loader/cache/CachedSVGDocumentReference.cpp:
3024         (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
3025         (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
3026         (WebCore::CachedSVGDocumentReference::load):
3027         * loader/cache/CachedSVGDocumentReference.h: Is responsible for 
3028             requesting the SVG document.
3029         (WebCore::CachedSVGDocumentReference::create):
3030         (WebCore::CachedSVGDocumentReference::loadRequested):
3031         * platform/graphics/filters/FilterOperation.cpp:
3032         (WebCore::ReferenceFilterOperation::createCachedSVGDocumentReference):
3033         * platform/graphics/filters/FilterOperation.h:
3034
3035 2014-01-14  Mario Sanchez Prada  <mario.prada@samsung.com>
3036
3037         [ATK] AXChildrenChanged notification handling is a performance black hole
3038         https://bugs.webkit.org/show_bug.cgi?id=126970
3039
3040         Reviewed by Gustavo Noronha Silva.
3041
3042         Remove code that is causing a huge performance problem when
3043         loading big pages, just to be able to emit the children-changed:add
3044         signal at the exact time a child is added.
3045
3046         This removal does not imply that the signal won't be ever emitted,
3047         just that it will be emitted a bit later (when the new child is
3048         asynchronously added to the tree), which should be good enough
3049         anyway for Accessible Technologies, without impacting perfformance
3050         in such a negative way.
3051
3052         * accessibility/atk/AXObjectCacheAtk.cpp:
3053         (WebCore::AXObjectCache::postPlatformNotification): Removed
3054         extremely expensive referring loop when AXChildrenChanged is received.
3055
3056 2014-01-14  Mihai Tica  <mitica@adobe.com>
3057
3058         [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
3059         when having -webkit-background-blending applied. Turns out the problem was
3060         the blending parameter not being passed to WebCore::CrossfadeGeneratedImage::draw
3061
3062         https://bugs.webkit.org/show_bug.cgi?id=126887
3063
3064         Reviewed by Dirk Schulze.
3065
3066         Test: css3/compositing/background-blend-mode-crossfade-image.html
3067
3068         * platform/graphics/CrossfadeGeneratedImage.cpp:
3069         (WebCore::CrossfadeGeneratedImage::draw): set blendMode on context.
3070
3071 2014-01-14  Mihai Tica  <mitica@adobe.com>
3072
3073         Background-blend-mode doesn't work for an element with an
3074         SVG image as background and border-style or padding set.
3075         The problem consisted in the drawing path using the default
3076         blending parameter at all times.
3077         https://bugs.webkit.org/show_bug.cgi?id=118894
3078
3079         Reviewed by Dirk Schulze.
3080
3081         Test: css3/compositing/background-blend-mode-data-uri-svg-image.html
3082
3083         * svg/graphics/SVGImage.cpp:
3084         (WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
3085         * svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
3086         * svg/graphics/SVGImageForContainer.cpp:
3087         (WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.
3088
3089 2014-01-14  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
3090
3091         Remove accidentally added PLATFORM(QT) from Source/WebCore/editing/EditorCommand.cpp after r161638
3092         https://bugs.webkit.org/show_bug.cgi?id=126980
3093
3094         Reviewed by Andreas Kling.
3095
3096         * editing/EditorCommand.cpp:
3097         (WebCore::createCommandMap):
3098
3099 2014-01-14  Mihnea Ovidenie  <mihnea@adobe.com>
3100
3101         [CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index
3102         https://bugs.webkit.org/show_bug.cgi?id=126978
3103
3104         Reviewed by Antti Koivisto.
3105
3106         Return the list of fixed positioned layers sorted by z-index from
3107         FlowThreadController::collectFixedPositionedLayers instead of manually sort it
3108         every time we need it (RenderLayer::paintFixedLayersInNamedFlows, RenderLayer::hitTestFixedLayersInNamedFlows).
3109         Refactoring covered by existing regions tests.
3110
3111         * rendering/FlowThreadController.cpp:
3112         (WebCore::compareZIndex):
3113         (WebCore::FlowThreadController::collectFixedPositionedLayers):
3114         * rendering/RenderLayer.cpp:
3115         (WebCore::RenderLayer::paintFixedLayersInNamedFlows):
3116         (WebCore::RenderLayer::hitTestFixedLayersInNamedFlows):
3117
3118 2014-01-14  Andreas Kling  <akling@apple.com>
3119
3120         Pack ResourceLoaderOptions harder.
3121         <https://webkit.org/b/126972>
3122
3123         Make all ResourceLoaderOptions members bitfields to reduce padding,
3124         shrinking it from 28 to 4 bytes.
3125
3126         Reviewed by Antti Koivisto.
3127
3128         * loader/ResourceLoaderOptions.h:
3129
3130 2014-01-14  Andreas Kling  <akling@apple.com>
3131
3132         Pack ResourceError harder.
3133         <https://webkit.org/b/126969>
3134
3135         Re-arrange the members of ResourceError to reduce padding,
3136         shrinking it by 8 bytes.
3137
3138         Reviewed by Antti Koivisto.
3139
3140         * platform/network/ResourceErrorBase.h:
3141         (WebCore::ResourceErrorBase::ResourceErrorBase):
3142
3143 2014-01-14  Andreas Kling  <akling@apple.com>
3144
3145         Pack RenderLayer harder.
3146         <https://webkit.org/b/126967>
3147
3148         Re-arrange the members of ScrollableArea a bit so that RenderLayer
3149         can combine its bitfields with the ones in ScrollableArea.
3150         This makes RenderLayer fit into a snugger size class, saving 32 bytes
3151         per layer.
3152
3153         296 kB progression on Membuster3.
3154
3155         Reviewed by Antti Koivisto.
3156
3157         * platform/ScrollableArea.cpp:
3158         * platform/ScrollableArea.h:
3159
3160             Put bitfield members at the end of ScrollableArea so inheriting
3161             classes can synergize with the padding.
3162
3163         * rendering/RenderLayer.h:
3164
3165             Make m_blendMode a bitfield to avoid bloating the class.
3166
3167 2014-01-13  Tim Horton  <timothy_horton@apple.com>
3168
3169         iOS WebCore build fixes
3170
3171         Add WebKit and WebKit2 as allowable clients of WebCore.
3172
3173         * Configurations/WebCore.xcconfig:
3174
3175 2014-01-13  Tim Horton  <timothy_horton@apple.com>
3176
3177         iOS WebKit2 build fixes, part 1
3178
3179         * WebCore.xcodeproj/project.pbxproj:
3180         Move some headers to 'private', from 'project'.
3181
3182 2014-01-13  Commit Queue  <commit-queue@webkit.org>
3183
3184         Unreviewed, rolling out r161907.
3185         http://trac.webkit.org/changeset/161907
3186         https://bugs.webkit.org/show_bug.cgi?id=126963
3187
3188         fast/canvas/webgl/webgl-compressed-texture-size-limit.html
3189         fails on many bots (Requested by ap on #webkit).
3190
3191         * html/canvas/WebGLRenderingContext.cpp:
3192         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
3193
3194 2014-01-13  David Kilzer  <ddkilzer@apple.com>
3195
3196         Fix typedef of DragDataRef from id back to id<NSDraggingInfo>
3197         <http://webkit.org/b/126958>
3198         <rdar://problem/14814649>
3199
3200         Reviewed by Mark Rowe.
3201
3202         * WebCore.exp.in: Export different symbols based on
3203         __has_feature(objc_protocol_qualifier_mangling) since clang
3204         mangles the type differently with that change.
3205
3206         * platform/DragData.h:
3207         * platform/mac/DragDataMac.mm:
3208         (WebCore::DragData::DragData):
3209         - Revert r154493 by switching back to id<NSDraggingInfo>.
3210
3211 2014-01-13  Commit Queue  <commit-queue@webkit.org>
3212
3213         Unreviewed, rolling out r161939.
3214         http://trac.webkit.org/changeset/161939
3215         https://bugs.webkit.org/show_bug.cgi?id=126956
3216
3217         didn't work with mac, of course (Requested by thorton on
3218         #webkit).
3219
3220         * WebCore.xcodeproj/project.pbxproj:
3221
3222 2014-01-13  Tim Horton  <timothy_horton@apple.com>
3223
3224         iOS WebKit2 build fixes
3225
3226         * WebCore.xcodeproj/project.pbxproj:
3227         Make some headers private instead of project for WK2's use.
3228
3229 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3230
3231         Make NetworkStateNotifier.h a private header, needed by iOS.
3232
3233         * WebCore.xcodeproj/project.pbxproj:
3234
3235 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3236
3237         More work towards getting iOS WK1 building.
3238
3239         Some more Private headers for iOS.
3240
3241         * WebCore.xcodeproj/project.pbxproj:
3242
3243 2014-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
3244
3245         Highlighting password field then making a Sticky Note via Safari Services exposes password
3246         https://bugs.webkit.org/show_bug.cgi?id=126946
3247
3248         Reviewed by Enrica Casucci.
3249
3250         Using the Services menu has a slightly different codepath than Editor::copy() does. This
3251         patch duplicates the canCopy() check that Editor::copy() does.
3252
3253         Testing is not possible because the Services menu is not accessible to our tests.
3254
3255         * editing/mac/EditorMac.mm:
3256         (WebCore::Editor::stringSelectionForPasteboard):
3257         (WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
3258         (WebCore::Editor::dataSelectionForPasteboard):
3259
3260 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
3261
3262         [WebGL] Crash due to forceLostContext
3263         https://bugs.webkit.org/show_bug.cgi?id=126947
3264
3265         Reviewed by Dean Jackson.
3266
3267         Covered by webgl/conformance/textures/origin-clean-conformance.html.
3268
3269         * html/canvas/WebGLRenderingContext.cpp:
3270         (WebCore::WebGLRenderingContext::isContextLost): Make const.
3271         (WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
3272         a lost context.
3273         * html/canvas/WebGLRenderingContext.h: isContextLost should be const.
3274
3275 2014-01-13  Martin Robinson  <mrobinson@igalia.com>
3276
3277         [GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
3278         https://bugs.webkit.org/show_bug.cgi?id=126911
3279
3280         Reviewed by Daniel Bates.
3281
3282         * PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.
3283
3284 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
3285
3286         Use the Selector Code Generator for resolving style
3287         https://bugs.webkit.org/show_bug.cgi?id=126199
3288
3289         Reviewed by Ryosuke Niwa.
3290
3291         * css/ElementRuleCollector.cpp:
3292         (WebCore::ElementRuleCollector::ruleMatches):
3293         * css/RuleSet.h:
3294
3295 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
3296
3297         Update the SelectorQuery code using compiled selector after r161196
3298         https://bugs.webkit.org/show_bug.cgi?id=126860
3299
3300         Reviewed by Andreas Kling.
3301
3302         Update tree traversal code to the current traversal functions.
3303
3304         * dom/SelectorQuery.cpp:
3305         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
3306         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
3307
3308 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3309
3310         Various iOS WebKit1 build fixes.
3311
3312         * WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
3313         headers to be Private.
3314
3315 2014-01-13  Andreas Kling  <akling@apple.com>
3316
3317         Map RootInlineBox to containing region via bit+hashmap.
3318         <https://webkit.org/b/126917>
3319
3320         The vas majority of RootInlineBox objects don't have a containing
3321         RenderRegion, so let's store that in a bit+hashmap configuration
3322         instead of having a dedicated pointer member for it.
3323
3324         148 kB progression on Membuster3.
3325
3326         Reviewed by Antti Koivisto.
3327
3328         * rendering/InlineFlowBox.h:
3329         (WebCore::InlineFlowBox::InlineFlowBox):
3330         * rendering/RootInlineBox.cpp:
3331         (WebCore::RootInlineBox::RootInlineBox):
3332
3333             Added m_hasContainingRegion bit.
3334
3335         (WebCore::containingRegionMap):
3336
3337             Global map between RootInlineBox and RenderRegion.
3338
3339         (WebCore::RootInlineBox::~RootInlineBox):
3340
3341             Remove self from aforementioned global map if needed.
3342
3343         (WebCore::RootInlineBox::paint):
3344
3345             Tweak a condition to avoid double hash lookup.
3346
3347         * rendering/RootInlineBox.h:
3348         (WebCore::RootInlineBox::containingRegion):
3349         (WebCore::RootInlineBox::clearContainingRegion):
3350         (WebCore::RootInlineBox::setContainingRegion):
3351
3352             Store the containing region in a bit+hashmap.
3353
3354 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
3355
3356         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
3357         https://bugs.webkit.org/show_bug.cgi?id=126925
3358
3359         Reviewed by Dean Jackson.
3360
3361         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
3362
3363         * html/canvas/WebGLRenderingContext.cpp:
3364         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
3365
3366 2014-01-13  Daniel Bates  <dabates@apple.com>
3367
3368         Add uint8_t specialization for WebCore::writeLittleEndian()
3369         https://bugs.webkit.org/show_bug.cgi?id=126924
3370
3371         Reviewed by Darin Adler.
3372
3373         Specialize WebCore::writeLittleEndian() for datatype uint8_t so as to avoid
3374         a compiler warning when right shifting a uint8_t by 8 because the result of
3375         such a computation is undefined.
3376
3377         * bindings/js/SerializedScriptValue.cpp:
3378         (WebCore::writeLittleEndian<uint8_t>): Added.
3379
3380 2014-01-13  Daniel Bates  <dabates@apple.com>
3381
3382         r161638 broke the Windows build
3383         https://bugs.webkit.org/show_bug.cgi?id=126916
3384
3385         * DerivedSources.make:
3386
3387 2014-01-13  Eric Carlson  <eric.carlson@apple.com>
3388
3389         Allow MediaSessionManager to restrict media playback
3390         https://bugs.webkit.org/show_bug.cgi?id=126780
3391
3392         Reviewed by Jer Noble.
3393
3394         Test: media/video-concurrent-playback.html
3395
3396         * WebCore.exp.in: Export functions needed by Internals.
3397
3398         Add HTMLMediaSession.
3399         * WebCore.xcodeproj/project.pbxproj:
3400         * CMakeLists.txt:
3401         * GNUmakefile.list.am:
3402         * WebCore.vcxproj/WebCore.vcxproj:
3403         * WebCore.vcxproj/WebCore.vcxproj.filters:
3404         * WebCore.xcodeproj/project.pbxproj:
3405
3406         Add a media session object to manage HTMLMediaElement restrictions.
3407         * html/HTMLMediaSession.cpp: Added.
3408         * html/HTMLMediaSession.h: Added.
3409
3410         Move media restriction management to a MediaSession.
3411         * html/HTMLMediaElement.cpp:
3412         (WebCore::HTMLMediaElement::HTMLMediaElement): Use the media session to manage restrictions.
3413         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
3414         (WebCore::HTMLMediaElement::insertedInto): Ditto.
3415         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
3416         (WebCore::HTMLMediaElement::loadInternal): Ditto.
3417         (WebCore::HTMLMediaElement::loadResource): Ditto.
3418         (WebCore::HTMLMediaElement::setReadyState): Ditto.
3419         (WebCore::HTMLMediaElement::autoplay): Ditto.
3420         (WebCore::HTMLMediaElement::play): Ditto.
3421         (WebCore::HTMLMediaElement::pause): Ditto
3422         (WebCore::HTMLMediaElement::pauseInternal): Ditto
3423         (WebCore::HTMLMediaElement::suspend): Ditto
3424         (WebCore::HTMLMediaElement::resume): Ditto.
3425         (WebCore::HTMLMediaElement::updatePlayState): Tell media session playback is about to start.
3426         (WebCore::HTMLMediaElement::deliverNotification): Ditto.
3427         (WebCore::HTMLMediaElement::webkitShowPlaybackTargetPicker): Ditto.
3428         (WebCore::HTMLMediaElement::mediaPlayerIsFullscreenPermitted): Ditto.
3429         (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture): Ditto.
3430         (WebCore::HTMLMediaElement::pausePlayback): New, allows the media session to pause playback.
3431         * html/HTMLMediaElement.h:
3432
3433         * html/HTMLVideoElement.cpp:
3434         (WebCore::HTMLVideoElement::webkitEnterFullscreen): Use the media session to manage restrictions.
3435
3436         * platform/audio/MediaSession.cpp:
3437         (WebCore::MediaSession::beginInterruption): Add logging.
3438         (WebCore::MediaSession::endInterruption): Ditto.
3439         (WebCore::MediaSession::pauseSession): New, allows the session manager to pause playback.
3440         * platform/audio/MediaSession.h:
3441
3442         Add per-media type restrictions.
3443         * platform/audio/MediaSessionManager.cpp:
3444         (WebCore::MediaSessionManager::MediaSessionManager): Initialize restrictions.
3445         (WebCore::MediaSessionManager::addRestriction): New.
3446         (WebCore::MediaSessionManager::removeRestriction): New.
3447         (WebCore::MediaSessionManager::restrictions): New.
3448         (WebCore::MediaSessionManager::sessionWillBeginPlayback): New. If only one session if the same
3449             type is allowed to play, pause all others.
3450         * platform/audio/MediaSessionManager.h:
3451
3452         * platform/audio/ios/MediaSessionManagerIOS.h: Added.
3453         * platform/audio/ios/MediaSessionManagerIOS.mm: Added.
3454         (WebCore::MediaSessionManager::sharedManager):
3455         (WebCore::m_objcObserver):
3456         (-[WebAVAudioSessionHelper initWithCallback:]):
3457         (-[WebAVAudioSessionHelper dealloc]):
3458         (-[WebAVAudioSessionHelper interruption:]):
3459
3460         * platform/audio/mac/AudioDestinationMac.h: Add pausePlayback.
3461
3462         Allow tests to set media session restrictions.
3463         * testing/Internals.cpp:
3464         * testing/Internals.h:
3465         * testing/Internals.idl:
3466
3467 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
3468
3469         Fix the build more.
3470
3471         * xml/XMLHttpRequestProgressEventThrottle.cpp:
3472         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
3473
3474 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
3475
3476         Fix the build.
3477
3478         * xml/XMLHttpRequestProgressEventThrottle.cpp:
3479         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
3480
3481 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3482
3483         Fix copy of SystemMemory.h in iOS WebKit build.
3484         
3485         Move SystemMemory.h from platform/SystemMemory.h to platform/ios/SystemMemory.h.
3486         Add it to the project file.
3487         Make it a Private header.
3488         Add PLATFORM(IOS) #idfefs around its contents.
3489
3490         * WebCore.xcodeproj/project.pbxproj:
3491         * platform/ios/SystemMemory.h: Renamed from Source/WebCore/platform/SystemMemory.h.
3492
3493 2014-01-13  Youenn Fablet  <youennf@gmail.com>
3494
3495         Dispatch a progress event before dispatching abort, error or timeout event
3496         https://bugs.webkit.org/show_bug.cgi?id=126575
3497
3498         Reviewed by Alexey Proskuryakov.
3499
3500         Added sending of progress event after readystatechange event (switching to DONE state) in case of abort, error or timeout. 
3501         Fixed assertions in XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload.
3502
3503         * xml/XMLHttpRequest.cpp:
3504         (WebCore::XMLHttpRequest::dispatchErrorEvents): added sending of progress event before the specific error event
3505         * xml/XMLHttpRequestProgressEventThrottle.cpp:
3506         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): fixed assertion
3507         * xml/XMLHttpRequestUpload.cpp:
3508         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent): fixed assertion
3509
3510 2014-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3511
3512         [SOUP] Add SoupNetworkSession class to wrap a SoupSession
3513         https://bugs.webkit.org/show_bug.cgi?id=126813
3514
3515         Reviewed by Gustavo Noronha Silva.
3516
3517         Add SoupNetworkSession class that wraps a SoupSession and move all
3518         the code related to the SoupSession from ResourceHandle to
3519         SoupNetworkSession, including the static methods to get the
3520         default session and create testing and private sessions.
3521
3522         * GNUmakefile.list.am: Add new files to compilation.
3523         * PlatformEfl.cmake: Ditto.
3524         * PlatformGTK.cmake: Ditto.
3525         * platform/network/NetworkStorageSession.h: Use SoupNetworkSession
3526         instead of SoupSession.
3527         * platform/network/ResourceHandle.h:
3528         * platform/network/soup/CookieJarSoup.cpp:
3529         (WebCore::cookieJarForSession): Use SoupNetworkSession to get the
3530         SoupSession.
3531         * platform/network/soup/DNSSoup.cpp:
3532         (WebCore::DNSResolveQueue::platformResolve): Ditto.
3533         * platform/network/soup/NetworkStorageSessionSoup.cpp:
3534         (WebCore::NetworkStorageSession::NetworkStorageSession): Use
3535         SoupNetworkSession instead of SoupSession.
3536         (WebCore::NetworkStorageSession::~NetworkStorageSession):
3537         (WebCore::NetworkStorageSession::defaultStorageSession): Create a
3538         NetworkStorageSession with a NULL SoupNetworkSession which means
3539         that the default SoupNetworkSession will be used.
3540         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
3541         Call SoupNetworkSession::createPrivateBrowsingSession() to create
3542         the private session.
3543         (WebCore::NetworkStorageSession::switchToNewTestingSession): Call
3544         SoupNetworkSession::createTestingSession() to create the testing
3545         session.
3546         (WebCore::NetworkStorageSession::soupNetworkSession): Return the
3547         SoupNetworkSession or the default one.
3548         (WebCore::NetworkStorageSession::setSoupNetworkSession): Set a new
3549         SoupNetworkSession.
3550         * platform/network/soup/ResourceHandleSoup.cpp:
3551         (WebCore::sessionFromContext): Use SoupNetworkSession to get the
3552         SoupSession.
3553         (WebCore::ResourceHandleInternal::soupSession): Simply call
3554         sessionFromContext(), since ensureSessionIsInitialized() is no
3555         longer needed, because the SoupSession are now initialized in the
3556         SoupNetworkSession constructor.
3557         (WebCore::ResourceHandle::didStartRequest): Function to notify the
3558         ResourceHandle that current request has just started for web timing.
3559         * platform/network/soup/SoupNetworkSession.cpp: Added.
3560         (WebCore::soupLogPrinter): Logger callback.
3561         (WebCore::SoupNetworkSession::defaultSession): Return a reference
3562         to the default SoupNetworkSession.
3563         (WebCore::SoupNetworkSession::createPrivateBrowsingSession):
3564         Create a new private session.
3565         (WebCore::SoupNetworkSession::createTestingSession): Create a new
3566         testing session.
3567         (WebCore::SoupNetworkSession::createForSoupSession): Create a new
3568         SoupNetworkSession for the given SoupSession.
3569         (WebCore::authenticateCallback): Callback emitted by the
3570         SoupSession when the request needs authentication.
3571         (WebCore::requestStartedCallback): Callback emitted by the
3572         SoupSession when as request has just started.
3573         (WebCore::SoupNetworkSession::SoupNetworkSession):
3574         (WebCore::SoupNetworkSession::~SoupNetworkSession):
3575         (WebCore::SoupNetworkSession::setupLogger): Helper private
3576         function to setup the logger.
3577         (WebCore::SoupNetworkSession::setCookieJar): Set a new CookieJar
3578         in the session replacing the existing one.
3579         (WebCore::SoupNetworkSession::cookieJar): Return the current
3580         CookieJar of the session.
3581         (WebCore::SoupNetworkSession::setCache): Set a disk cache.
3582         (WebCore::SoupNetworkSession::cache): Return the current disk cache.
3583         (WebCore::SoupNetworkSession::setSSLPolicy): Set the SSL policy.
3584         (WebCore::SoupNetworkSession::sslPolicy): Get the current SSL policy.
3585         (WebCore::SoupNetworkSession::setHTTPProxy): Set the HTTP proxy.
3586         (WebCore::SoupNetworkSession::httpProxy): Get the current HTTP proxy.
3587         (WebCore::SoupNetworkSession::setupHTTPProxyFromEnvironment): Set
3588         the HTTP proxy using the environment variables.
3589         (WebCore::buildAcceptLanguages): Helper function build the accept
3590         language string in the format expected by soup (RFC 2616).
3591         (WebCore::SoupNetworkSession::setAcceptLanguages): Set the accept
3592         language for the given list of languages.
3593         * platform/network/soup/SoupNetworkSession.h: Added.
3594         (WebCore::SoupNetworkSession::soupSession): Return the SoupSession.
3595
3596 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
3597
3598         [WebGL] Error messages should use source code labels, not internal mangled symbols.
3599         https://bugs.webkit.org/show_bug.cgi?id=126832
3600
3601         Reviewed by Dean Jackson.
3602
3603         Revised fast/canvas/webgl/glsl-conformance.html.
3604
3605         * platform/graphics/ANGLEWebKitBridge.cpp:
3606         (WebCore::getSymbolInfo): Correct missing 'break'.
3607         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
3608         for SH_VARYINGS.
3609         * platform/graphics/GraphicsContext3D.h: Add new declarations.
3610         * platform/graphics/filters/CustomFilterValidatedProgram.cpp: Add case
3611         for SHADER_SYMBOL_TYPE_VARYING. This is a no-op to match existing
3612         behavior.
3613         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
3614         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
3615         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
3616         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
3617         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
3618         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
3619
3620 2014-01-13  David Kilzer  <ddkilzer@apple.com>
3621
3622         [iOS] Include RenderElement.h to fix BaseChooserOnlyDateAndTimeInputType.cpp
3623
3624         Fixes the following build failure:
3625
3626             Undefined symbols for architecture x86_64:
3627               "__ZNK7WebCore13ContainerNode8rendererEv", referenced from:
3628                   __ZN7WebCore35BaseChooserOnlyDateAndTimeInputType22handleDOMActivateEventEPNS_5EventE in BaseChooserOnlyDateAndTimeInputType.o
3629
3630         * html/BaseChooserOnlyDateAndTimeInputType.cpp: Include
3631         RenderElement.h.
3632
3633 2014-01-13  Andy Estes  <aestes@apple.com>
3634
3635         [iOS] Build Fix: copy iOS-specific generated headers
3636
3637         * Configurations/WebCore.xcconfig: Excluded DOMTouch* and DOMGesture* headers on Mac.
3638         * WebCore.xcodeproj/project.pbxproj:
3639
3640 2014-01-13  Zalan Bujtas  <zalan@apple.com>
3641
3642         Enable SUBPIXEL_LAYOUT on Mac
3643         <https://webkit.org/b/126283>
3644
3645         Reviewed by Simon Fraser.
3646
3647         * Configurations/FeatureDefines.xcconfig:
3648
3649 2014-01-13  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
3650
3651         REGRESSION(r161715): Use of uninitialized value $ENV{"PLATFORM_NAME"}
3652         https://bugs.webkit.org/show_bug.cgi?id=126873
3653
3654         Reviewed by Csaba Osztrogonác.
3655
3656         * bindings/scripts/CodeGeneratorObjC.pm:
3657         * bindings/scripts/preprocessor.pm:
3658         (applyPreprocessor):
3659
3660 2014-01-13  Andreas Kling  <akling@apple.com>
3661
3662         CTTE: Autoscroll renderer is always a RenderBox.
3663         <https://webkit.org/b/126884>
3664
3665         Reviewed by Antti Koivisto.
3666
3667         * page/EventHandler.h:
3668         * page/EventHandler.cpp:
3669         (WebCore::EventHandler::autoscrollRenderer):
3670
3671             Make autoscrollRenderer() return a RenderBox*.
3672
3673         * rendering/RenderObject.cpp:
3674         (WebCore::RenderObject::willBeDestroyed):
3675         * rendering/RenderBox.cpp:
3676         (WebCore::RenderBox::willBeDestroyed):
3677
3678             Only check if the autoscroll renderer is being torn down
3679             in RenderBox::willBeDestroyed() since it's not relevant for
3680             other renderer types.
3681
3682 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
3683
3684         Text should be constructable.
3685         https://bugs.webkit.org/show_bug.cgi?id=115640
3686
3687         Reviewed by Csaba Osztrogonác.
3688
3689         http://dom.spec.whatwg.org/#interface-text
3690         Make Text constructable so that one can do "new Text('abc')"
3691         instead of "document.createTexte('abc')".
3692
3693         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
3694
3695         Test: fast/dom/Text/text-constructor.html
3696
3697         * dom/Text.cpp:
3698         (WebCore::Text::create):
3699         * dom/Text.h:
3700         * dom/Text.idl:
3701
3702 2014-01-13  Zan Dobersek  <zdobersek@igalia.com>
3703
3704         Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
3705         https://bugs.webkit.org/show_bug.cgi?id=126876
3706
3707         Reviewed by Andreas Kling.
3708
3709         AccessibilityObject::children() returns a reference to the Vector of that AccessibilityObject's children.
3710         The majority of callsites stores the return value in a temporary value instead of a reference, causing
3711         a copy each time. A reference to the return value should be used instead.
3712
3713         * accessibility/AXObjectCache.cpp:
3714         (WebCore::AXObjectCache::focusedImageMapUIElement):
3715         * accessibility/AccessibilityARIAGrid.cpp:
3716         (WebCore::AccessibilityARIAGrid::addRowDescendant):
3717         * accessibility/AccessibilityARIAGridCell.cpp:
3718         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
3719         (WebCore::AccessibilityARIAGridCell::columnIndexRange):
3720         * accessibility/AccessibilityARIAGridRow.cpp:
3721         (WebCore::AccessibilityARIAGridRow::headerObject):
3722         * accessibility/AccessibilityListBox.cpp:
3723         (WebCore::AccessibilityListBox::setSelectedChildren):
3724         * accessibility/AccessibilityListBox.h:
3725         * accessibility/AccessibilityNodeObject.cpp:
3726         (WebCore::AccessibilityNodeObject::insertChild):
3727         (WebCore::AccessibilityNodeObject::selectedRadioButton):
3728         (WebCore::AccessibilityNodeObject::selectedTabItem):
3729         * accessibility/AccessibilityObject.cpp:
3730         (WebCore::appendChildrenToArray):
3731         (WebCore::AccessibilityObject::ariaTreeRows):
3732         (WebCore::AccessibilityObject::ariaTreeItemContent):
3733         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
3734         * accessibility/AccessibilityRenderObject.cpp:
3735         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
3736         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
3737         (WebCore::AccessibilityRenderObject::addHiddenChildren):
3738         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
3739         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
3740         (WebCore::AccessibilityRenderObject::tabChildren):
3741         (WebCore::AccessibilityRenderObject::mathRadicandObject):
3742         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
3743         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
3744         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
3745         (WebCore::AccessibilityRenderObject::mathUnderObject):
3746         (WebCore::AccessibilityRenderObject::mathOverObject):
3747         (WebCore::AccessibilityRenderObject::mathBaseObject):
3748         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
3749         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
3750         * accessibility/AccessibilityTable.cpp:
3751         (WebCore::AccessibilityTable::cellForColumnAndRow):
3752         * accessibility/AccessibilityTableColumn.cpp:
3753         (WebCore::AccessibilityTableColumn::headerObject):
3754         * accessibility/AccessibilityTableRow.cpp:
3755         (WebCore::AccessibilityTableRow::headerObject):
3756         * accessibility/atk/AXObjectCacheAtk.cpp:
3757         (WebCore::getListObject):
3758         (WebCore::notifyChildrenSelectionChange):
3759         * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
3760         (webkitAccessibleHypertextGetLink):
3761         (webkitAccessibleHypertextGetNLinks):
3762         * accessibility/atk/WebKitAccessibleInterfaceSelection.cpp:
3763         (listObjectForSelection):
3764         (optionFromList):
3765         (webkitAccessibleSelectionSelectAllSelection):
3766         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
3767         (getNChildrenForTable):
3768         (getChildForTable):
3769         (webkitAccessibleRefChild):
3770         (getIndexInParentForCellInRow):
3771         (getInterfaceMaskFromObject):
3772         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
3773         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
3774         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
3775         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
3776         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3777         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
3778
3779 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
3780
3781         Comment should be consructable.
3782         https://bugs.webkit.org/show_bug.cgi?id=115642
3783
3784         Reviewed by Andreas Kling.
3785
3786         http://dom.spec.whatwg.org/#comment
3787         This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
3788
3789         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
3790
3791         Test: fast/dom/Comment/comment-constructor.html
3792
3793         * dom/Comment.cpp:
3794         (WebCore::Comment::create):
3795         * dom/Comment.h:
3796         * dom/Comment.idl:
3797
3798 2014-01-13  Commit Queue  <commit-queue@webkit.org>
3799
3800         Unreviewed, rolling out r161808.
3801         http://trac.webkit.org/changeset/161808
3802         https://bugs.webkit.org/show_bug.cgi?id=126874
3803
3804         This patch make several files to be always regenerated on
3805         every make (Requested by KaL on #webkit).
3806
3807         * GNUmakefile.am:
3808         * bindings/gobject/GNUmakefile.am:
3809
3810 2014-01-12  Commit Queue  <commit-queue@webkit.org>
3811
3812         Unreviewed, rolling out r161843.
3813         http://trac.webkit.org/changeset/161843
3814         https://bugs.webkit.org/show_bug.cgi?id=126871
3815
3816         Caused CSS custom filter tests to assert (Requested by smfr on
3817         #webkit).
3818
3819         * platform/graphics/ANGLEWebKitBridge.cpp:
3820         (WebCore::getSymbolInfo):
3821         (WebCore::ANGLEWebKitBridge::compileShaderSource):
3822         * platform/graphics/GraphicsContext3D.h:
3823         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
3824         (WebCore::GraphicsContext3D::compileShader):
3825         (WebCore::GraphicsContext3D::getProgramInfoLog):
3826         (WebCore::GraphicsContext3D::getShaderInfoLog):
3827
3828 2014-01-12  Commit Queue  <commit-queue@webkit.org>
3829
3830         Unreviewed, rolling out r161840.
3831         http://trac.webkit.org/changeset/161840
3832         https://bugs.webkit.org/show_bug.cgi?id=126870
3833
3834         Caused jsscore and layout test failures (Requested by smfr on
3835         #webkit).
3836
3837         * bindings/objc/WebScriptObject.mm:
3838         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
3839         * editing/CompositeEditCommand.cpp:
3840         (WebCore::containsOnlyWhitespace):
3841         * editing/TypingCommand.cpp:
3842         (WebCore::TypingCommand::insertText):
3843         * editing/VisibleUnits.cpp:
3844         (WebCore::startOfParagraph):
3845         (WebCore::endOfParagraph):
3846         * html/parser/HTMLParserIdioms.cpp:
3847         (WebCore::stripLeadingAndTrailingHTMLSpaces):
3848         (WebCore::parseHTMLNonNegativeInteger):
3849         * inspector/ContentSearchUtils.cpp:
3850         (WebCore::ContentSearchUtils::createSearchRegexSource):
3851         * inspector/InspectorStyleSheet.cpp:
3852         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
3853         * inspector/InspectorStyleTextEditor.cpp:
3854         (WebCore::InspectorStyleTextEditor::insertProperty):
3855         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
3856         * platform/Length.cpp:
3857         (WebCore::newCoordsArray):
3858         * platform/LinkHash.cpp:
3859         (WebCore::visitedLinkHash):
3860         * platform/graphics/Color.cpp:
3861         (WebCore::Color::parseHexColor):
3862         (WebCore::Color::Color):
3863         * platform/graphics/TextRun.h:
3864         (WebCore::TextRun::TextRun):
3865         * platform/text/TextEncodingRegistry.cpp:
3866         (WebCore::atomicCanonicalTextEncodingName):
3867         * rendering/RenderBlock.cpp:
3868         (WebCore::RenderBlock::constructTextRun):
3869         * rendering/RenderCombineText.cpp:
3870         (WebCore::RenderCombineText::width):
3871         * svg/SVGFontElement.cpp:
3872         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
3873         * xml/XPathFunctions.cpp:
3874         (WebCore::XPath::FunId::evaluate):
3875         * xml/XPathNodeSet.h:
3876
3877 2014-01-12  Jinwoo Song  <jinwoo7.song@samsung.com>
3878
3879         Fix build warnings by unused parameter
3880         https://bugs.webkit.org/show_bug.cgi?id=126867
3881
3882         Reviewed by Gyuyoung Kim.
3883
3884         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp: 
3885         (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
3886
3887 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
3888
3889         Unreviewed build fix for WinCairo.
3890
3891         * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
3892         to locate SelectorCompiler.h.
3893
3894 2014-01-12  Maciej Stachowiak  <mjs@apple.com>
3895
3896         Fix iOS build breakage from http://trac.webkit.org/changeset/161844
3897         https://bugs.webkit.org/show_bug.cgi?id=126866
3898
3899         Reviewed by Simon Fraser.
3900
3901         * platform/text/TextBreakIteratorICU.cpp:
3902         (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
3903         which does not exist.
3904
3905 2014-01-12  Darin Adler  <darin@apple.com>
3906
3907         Add PLATFORM(COCOA) and USE(FOUNDATION)
3908         https://bugs.webkit.org/show_bug.cgi?id=126859
3909
3910         Reviewed by Anders Carlsson.
3911
3912         * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS)
3913         to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be
3914         a change in behavior that might be incorrect. Removed bogus comments in
3915         the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA),
3916         which exactly duplicates code that already exists in Platform.h.
3917
3918 2014-01-12  Darin Adler  <darin@apple.com>
3919
3920         Add deprecatedCharacters as a synonym for characters and convert most call sites
3921         https://bugs.webkit.org/show_bug.cgi?id=126858
3922
3923         Reviewed by Anders Carlsson.
3924
3925         * Modules/indexeddb/IDBKeyPath.cpp:
3926         (WebCore::IDBKeyPathLexer::IDBKeyPathLexer):
3927         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
3928         (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
3929         (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions):
3930         * accessibility/AccessibilityObject.cpp:
3931         (WebCore::AccessibilityObject::hasMisspelling):
3932         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3933         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
3934         * bindings/js/SerializedScriptValue.cpp:
3935         (WebCore::CloneSerializer::serialize):
3936         (WebCore::CloneSerializer::write):
3937         * dom/CharacterData.cpp:
3938         (WebCore::CharacterData::parserAppendData):
3939         * dom/Document.cpp:
3940         (WebCore::Document::parseQualifiedName):
3941         * editing/Editor.cpp:
3942         (WebCore::Editor::misspelledWordAtCaretOrRange):
3943         (WebCore::Editor::misspelledSelectionString):
3944         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
3945         * editing/TextCheckingHelper.cpp:
3946         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar):
3947         (WebCore::TextCheckingHelper::findFirstBadGrammar):
3948         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange):
3949         * editing/TextCheckingHelper.h:
3950         (WebCore::TextCheckingParagraph::textDeprecatedCharacters):
3951         * editing/TextIterator.cpp:
3952         (WebCore::collapsedSpaceLength):
3953         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
3954         (WebCore::containsKanaLetters):
3955         (WebCore::SearchBuffer::SearchBuffer):
3956         * editing/TextIterator.h:
3957         (WebCore::TextIterator::characters):
3958         * editing/VisiblePosition.cpp:
3959         (WebCore::VisiblePosition::characterAfter):
3960         * editing/VisibleUnits.cpp:
3961         (WebCore::wordBreakIteratorForMinOffsetBoundary):
3962         (WebCore::wordBreakIteratorForMaxOffsetBoundary):
3963         (WebCore::visualWordPosition):
3964         (WebCore::previousBoundary):
3965         (WebCore::nextBoundary):
3966         * fileapi/WebKitBlobBuilder.cpp:
3967         (WebCore::BlobBuilder::append):
3968         * html/FormDataList.cpp:
3969         (WebCore::FormDataList::appendString):
3970         * html/canvas/CanvasRenderingContext2D.cpp:
3971         (WebCore::normalizeSpaces):
3972         * html/parser/HTMLParserIdioms.cpp:
3973         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
3974         * html/parser/HTMLTreeBuilder.cpp:
3975         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
3976         * loader/appcache/ManifestParser.cpp:
3977         (WebCore::parseManifest):
3978         * page/ContentSecurityPolicy.cpp:
3979         (WebCore::isSourceListNone):
3980         (WebCore::CSPSourceList::parse):
3981         (WebCore::NonceDirective::parse):
3982         (WebCore::MediaListDirective::parse):
3983         (WebCore::CSPDirectiveList::parse):
3984         (WebCore::CSPDirectiveList::parseReportURI):
3985         (WebCore::CSPDirectiveList::parseReflectedXSS):
3986         (WebCore::ContentSecurityPolicy::didReceiveHeader):
3987         * page/PageSerializer.cpp:
3988         (WebCore::PageSerializer::serializeFrame):
3989         (WebCore::PageSerializer::serializeCSSStyleSheet):
3990         * platform/Length.cpp:
3991         (WebCore::newCoordsArray):
3992         (WebCore::newLengthArray):
3993         * platform/LinkHash.cpp:
3994         (WebCore::visitedURL):
3995         (WebCore::visitedLinkHash):
3996         * platform/SharedBuffer.cpp:
3997         (WebCore::utf8Buffer):
3998         * platform/URL.cpp:
3999         (WebCore::URL::port):
4000         (WebCore::encodeHostnames):
4001         * platform/graphics/StringTruncator.cpp:
4002         (WebCore::centerTruncateToBuffer):
4003         (WebCore::rightTruncateToBuffer):
4004         (WebCore::rightClipToCharacterBuffer):
4005         (WebCore::rightClipToWordBuffer):
4006         (WebCore::leftTruncateToBuffer):
4007         (WebCore::truncateString):
4008         (WebCore::StringTruncator::width):
4009         * platform/graphics/TextRun.h:
4010         (WebCore::TextRun::TextRun):
4011         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
4012         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
4013         * platform/network/FormDataBuilder.cpp:
4014         (WebCore::FormDataBuilder::addFilenameToMultiPartHeader):
4015         * platform/sql/SQLiteStatement.cpp:
4016         (WebCore::SQLiteStatement::bindBlob):
4017         (WebCore::SQLiteStatement::bindText):
4018         * platform/text/DecodeEscapeSequences.h:
4019         (WebCore::decodeEscapeSequences):
4020         * platform/text/TextBreakIterator.cpp:
4021         (WebCore::numGraphemeClusters):
4022         (WebCore::numCharactersInGraphemeClusters):
4023         * platform/text/TextBreakIteratorICU.cpp:
4024         (WebCore::setUpIteratorWithRules):
4025         * platform/text/TextCodecICU.cpp:
4026         (WebCore::TextCodecICU::encode):
4027         * rendering/RenderBlock.cpp:
4028         (WebCore::RenderBlock::constructTextRun):
4029         * rendering/RenderListMarker.cpp:
4030         (WebCore::RenderListMarker::paint):
4031         * rendering/RenderText.cpp:
4032         (WebCore::maxWordFragmentWidth):
4033         (WebCore::RenderText::computePreferredLogicalWidths):
4034         (WebCore::RenderText::computeCanUseSimpleFontCodePath):
4035         * rendering/RenderText.h:
4036         (WebCore::RenderText::characters):
4037         (WebCore::RenderText::deprecatedCharacters):
4038         * rendering/line/BreakingContextInlineHeaders.h:
4039         (WebCore::tryHyphenating):
4040         * rendering/svg/SVGInlineTextBox.cpp:
4041         (WebCore::SVGInlineTextBox::constructTextRun):
4042         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
4043         (WebCore::processRenderSVGInlineText):
4044         * rendering/svg/SVGTextLayoutEngine.cpp:
4045         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
4046         * rendering/svg/SVGTextMetrics.cpp:
4047         (WebCore::SVGTextMetrics::measureCharacterRange):
4048         (WebCore::SVGTextMetrics::SVGTextMetrics):
4049         * rendering/svg/SVGTextMetricsBuilder.cpp:
4050         (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
4051         * svg/SVGAngle.cpp:
4052         (WebCore::SVGAngle::setValueAsString):
4053         * svg/SVGAnimateMotionElement.cpp:
4054         (WebCore::parsePoint):
4055         * svg/SVGAnimationElement.cpp:
4056         (WebCore::parseKeySplines):
4057         * svg/SVGFitToViewBox.cpp:
4058         (WebCore::SVGFitToViewBox::parseViewBox):
4059         * svg/SVGFontData.cpp:
4060         (WebCore::SVGFontData::applySVGGlyphSelection):
4061         * svg/SVGGlyphMap.h:
4062         (WebCore::SVGGlyphMap::addGlyph):
4063         (WebCore::SVGGlyphMap::collectGlyphsForString):
4064         * svg/SVGGlyphRefElement.cpp:
4065         (WebCore::SVGGlyphRefElement::parseAttribute):
4066         * svg/SVGLength.cpp:
4067         (WebCore::SVGLength::setValueAsString):
4068         * svg/SVGLengthList.cpp:
4069         (WebCore::SVGLengthList::parse):
4070         * svg/SVGNumberList.cpp:
4071         (WebCore::SVGNumberList::parse):
4072         * svg/SVGParserUtilities.cpp:
4073         (WebCore::parseNumberFromString):
4074         (WebCore::parseNumberOptionalNumber):
4075         (WebCore::parseRect):
4076         (WebCore::pointsListFromSVGData):
4077         (WebCore::parseGlyphName):
4078         (WebCore::parseKerningUnicodeString):
4079         (WebCore::parseDelimitedString):
4080         * svg/SVGPreserveAspectRatio.cpp:
4081         (WebCore::SVGPreserveAspectRatio::parse):
4082         * svg/SVGStringList.cpp:
4083         (WebCore::SVGStringList::parse):
4084         * svg/SVGTransformList.cpp:
4085         (WebCore::SVGTransformList::parse):
4086         * svg/SVGTransformable.cpp:
4087         (WebCore::SVGTransformable::parseTransformType):