AX: Can't always increment web sliders.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-22  Samuel White  <samuel_white@apple.com>
2
3         AX: Can't always increment web sliders.
4         https://bugs.webkit.org/show_bug.cgi?id=127451
5
6         Reviewed by Chris Fleizach.
7
8         Clamping the decrement/increment amount to one when necessary (if a percent change would result in a change of less than one).
9
10         Test: accessibility/range-alter-by-percent.html
11
12         * accessibility/AccessibilityNodeObject.cpp:
13         (WebCore::AccessibilityNodeObject::changeValueByPercent):
14
15 2014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
16
17         Remove CSS3_TEXT_DECORATION define
18         https://bugs.webkit.org/show_bug.cgi?id=127333
19
20         Reviewed by Simon Fraser.
21
22         This is required for unprefixing the text-decoration-* CSS properties.
23
24         No new tests are necessary becase the flag was already on by default.
25
26         * Configurations/FeatureDefines.xcconfig:
27         * css/CSSComputedStyleDeclaration.cpp:
28         (WebCore::renderTextDecorationSkipFlagsToCSSValue):
29         (WebCore::ComputedStyleExtractor::propertyValue):
30         * css/CSSParser.cpp:
31         (WebCore::isColorPropertyID):
32         (WebCore::CSSParser::parseValue):
33         (WebCore::CSSParser::addTextDecorationProperty):
34         (WebCore::CSSParser::parseTextUnderlinePosition):
35         * css/CSSParser.h:
36         * css/CSSPrimitiveValueMappings.h:
37         (WebCore::CSSPrimitiveValue::operator TextUnderlinePosition):
38         * css/CSSPropertyNames.in:
39         * css/CSSValueKeywords.in:
40         * css/DeprecatedStyleBuilder.cpp:
41         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
42         * css/StylePropertyShorthand.cpp:
43         (WebCore::webkitTextDecorationShorthand):
44         (WebCore::shorthandForProperty):
45         (WebCore::matchingShorthandsForLonghand):
46         * css/StylePropertyShorthand.h:
47         * css/StyleResolver.cpp:
48         (WebCore::shouldApplyPropertyInParseOrder):
49         (WebCore::isValidVisitedLinkProperty):
50         (WebCore::StyleResolver::applyProperty):
51         * platform/graphics/GraphicsContext.h:
52         * platform/graphics/cairo/GraphicsContextCairo.cpp:
53         (WebCore::GraphicsContext::setPlatformStrokeStyle):
54         * platform/graphics/cg/GraphicsContextCG.cpp:
55         (WebCore::GraphicsContext::platformInit):
56         * platform/graphics/wince/GraphicsContextWinCE.cpp:
57         (WebCore::createPen):
58         * rendering/InlineFlowBox.cpp:
59         (WebCore::InlineFlowBox::computeMaxLogicalTop):
60         * rendering/InlineFlowBox.h:
61         * rendering/InlineTextBox.cpp:
62         (WebCore::textDecorationStyleToStrokeStyle):
63         (WebCore::boundingBoxForAllActiveDecorations):
64         (WebCore::InlineTextBox::paintDecoration):
65         * rendering/RenderObject.cpp:
66         (WebCore::decorationColor):
67         * rendering/RootInlineBox.cpp:
68         (WebCore::RootInlineBox::maxLogicalTop):
69         * rendering/RootInlineBox.h:
70         * rendering/style/RenderStyle.cpp:
71         (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline):
72         (WebCore::RenderStyle::colorIncludingFallback):
73         (WebCore::RenderStyle::visitedDependentColor):
74         * rendering/style/RenderStyle.h:
75         * rendering/style/RenderStyleConstants.h:
76         * rendering/style/StyleRareInheritedData.cpp:
77         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
78         (WebCore::StyleRareInheritedData::operator==):
79         * rendering/style/StyleRareInheritedData.h:
80         * rendering/style/StyleRareNonInheritedData.cpp:
81         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
82         (WebCore::StyleRareNonInheritedData::operator==):
83         * rendering/style/StyleRareNonInheritedData.h:
84
85 2014-01-22  Chris Fleizach  <cfleizach@apple.com>
86
87         AX: Do not return an accessible name for an object just because it has tabindex=0
88         https://bugs.webkit.org/show_bug.cgi?id=126914
89
90         Reviewed by Mario Sanchez Prada.
91
92         WebKit has code to return an accessible name for any object that is "generically" focusable (ie. tabindex=0).
93         This behavior, which is not supported in ARIA, has caused many problems for VoiceOver. Often VoiceOver will
94         speak all the text underneath any type of group.
95
96         I think we need to revert this behavior and follow the ARIA spec more closely.
97
98         Test: accessibility/aria-describedby-ensures-visibility.html
99
100         * accessibility/AccessibilityNodeObject.cpp:
101         (WebCore::AccessibilityNodeObject::visibleText):
102         (WebCore::AccessibilityNodeObject::title):
103
104 2014-01-22  Brady Eidson  <beidson@apple.com>
105
106         The IDB backing store get() method shouldn't call IDB callbacks directly
107         https://bugs.webkit.org/show_bug.cgi?id=127453
108
109         Reviewed by Beth Dakin.
110
111         * Modules/indexeddb/IDBServerConnection.h:
112         (WebCore::IDBGetResult::IDBGetResult): Add a new structure to hold all of the
113           possible results of a get() call.
114
115         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
116         (WebCore::IDBServerConnectionLevelDB::get): Don't call IDBCallbacks directly.
117           Instead, return the GetResult to the GetOperation which will make IDBCallbacks.
118         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
119
120         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
121         (WebCore::GetOperation::perform): Get all of the IDBGetResults in the completion callback
122           make the appropriate IDBCallback.
123         * Modules/indexeddb/IDBTransactionBackendOperations.h:
124
125 2014-01-22  Dean Jackson  <dino@apple.com>
126
127         Unreviewed attempt to fix 32-bit builds.
128
129         Use long long rather than GC3Dintptr.
130
131         * html/canvas/ANGLEInstancedArrays.cpp:
132         (WebCore::ANGLEInstancedArrays::drawElementsInstancedANGLE):
133         * html/canvas/ANGLEInstancedArrays.h:
134         * html/canvas/WebGLRenderingContext.cpp:
135         (WebCore::WebGLRenderingContext::drawElementsInstanced):
136         * html/canvas/WebGLRenderingContext.h:
137
138 2014-01-21  Brady Eidson  <beidson@apple.com>
139
140         IDB: "Put" support
141         <rdar://problem/15779643> and https://bugs.webkit.org/show_bug.cgi?id=127401
142
143         Reviewed by Alexey Proskuryakov.
144
145         Add persistent encode/decode for storage to the database:
146         * Modules/indexeddb/IDBKey.cpp:
147         (WebCore::IDBKey::encode):
148         (WebCore::IDBKey::decode):
149         * Modules/indexeddb/IDBKey.h:
150
151         Add a data class to represent IDBKey suitable for crossing IPC:
152         * Modules/indexeddb/IDBKeyData.cpp: Added.
153         (WebCore::IDBKeyData::IDBKeyData):
154         (WebCore::IDBKeyData::maybeCreateIDBKey):
155         (WebCore::IDBKeyData::isolatedCopy):
156         * Modules/indexeddb/IDBKeyData.h: Added.
157         (WebCore::IDBKeyData::IDBKeyData):
158
159         * platform/CrossThreadCopier.cpp:
160         (WebCore::IDBKeyData>::copy):
161         * platform/CrossThreadCopier.h:
162
163         * WebCore.exp.in:
164         * WebCore.xcodeproj/project.pbxproj:
165
166 2014-01-22  Dean Jackson  <dino@apple.com>
167
168         [WebGL] Implement ANGLE_instanced_arrays
169         https://bugs.webkit.org/show_bug.cgi?id=127257
170
171         Reviewed by Brent Fulgham.
172
173         Implement the instanced drawing WebGL extension,
174         ANGLE_instanced_arrays. This is currently Mac-only,
175         but should be portable to other platforms if their
176         OpenGL exposes the functions. It's also done in a way
177         that will make exposing it to WebGL2 simple.
178
179         Test: fast/canvas/webgl/angle-instanced-arrays.html
180
181         * CMakeLists.txt:
182         * DerivedSources.cpp:
183         * DerivedSources.make:
184         * GNUmakefile.list.am:
185         * WebCore.vcxproj/WebCore.vcxproj:
186         * WebCore.vcxproj/WebCore.vcxproj.filters:
187         * WebCore.xcodeproj/project.pbxproj:
188         Add the new files to all the build systems.
189
190         * bindings/js/JSWebGLRenderingContextCustom.cpp:
191         (WebCore::toJS): Link JS side to C++ side.
192
193         * html/canvas/ANGLEInstancedArrays.cpp: Added.
194         (WebCore::ANGLEInstancedArrays::ANGLEInstancedArrays):
195         * html/canvas/ANGLEInstancedArrays.h: Added.
196         * html/canvas/ANGLEInstancedArrays.idl: Added.
197         New boilerplate files that expose the extension methods.
198
199         * html/canvas/WebGLExtension.h: New extension enum.
200
201         * html/canvas/WebGLRenderingContext.cpp:
202         (WebCore::WebGLRenderingContext::validateVertexAttributes): Add an optional
203         parameter representing the number of instance primitives we are asked
204         to draw. Use that for the draw count if looking at an instanced attribute.
205         Also make sure we see at least one non-instanced attribute.
206         (WebCore::WebGLRenderingContext::validateDrawArrays): Update this so it could
207         be used from either drawArrays or drawArraysInstanced.
208         (WebCore::WebGLRenderingContext::drawArrays):
209         (WebCore::WebGLRenderingContext::validateDrawElements): Same here, now can be
210         used by the instanced and non-instanced versions.
211         (WebCore::WebGLRenderingContext::drawElements):
212         (WebCore::WebGLRenderingContext::getExtension): Create and return the new extension.
213         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add new extension to the list.
214         (WebCore::WebGLRenderingContext::getVertexAttrib): Intercept a query to the divisor
215         attribute and return the value we kept in the state.
216         (WebCore::WebGLRenderingContext::drawArraysInstanced): Call the GC3D method.
217         (WebCore::WebGLRenderingContext::drawElementsInstanced): Ditto.
218         (WebCore::WebGLRenderingContext::vertexAttribDivisor): Ditto.
219
220         * html/canvas/WebGLRenderingContext.h: Define the new methods and parameters.
221
222         * html/canvas/WebGLVertexArrayObjectOES.cpp:
223         (WebCore::WebGLVertexArrayObjectOES::setVertexAttribDivisor): Keep a record of the
224         divisor if we set it.
225         * html/canvas/WebGLVertexArrayObjectOES.h:
226         (WebCore::WebGLVertexArrayObjectOES::VertexAttribState::VertexAttribState):
227
228         * platform/graphics/GraphicsContext3D.h: New enum.
229         * platform/graphics/mac/GraphicsContext3DMac.mm:
230         (WebCore::GraphicsContext3D::drawArraysInstanced): The actual calls into OpenGL.
231         (WebCore::GraphicsContext3D::drawElementsInstanced): Ditto.
232         (WebCore::GraphicsContext3D::vertexAttribDivisor): Ditto.
233
234         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: Empty implementations
235         for non-mac platforms.
236
237         * platform/graphics/ios/GraphicsContext3DIOS.h: Define the iOS names for the
238         functions.
239
240 2014-01-22  Zalan Bujtas  <zalan@apple.com>
241
242         [CSS Shapes] shape-inside rectangle layout can fail
243         https://bugs.webkit.org/show_bug.cgi?id=124784
244
245         Reviewed by Darin Adler.
246
247         Early subpixel rounding/flooring/ceiling can have unwanted
248         side effect on the final pixel value. Delay pixel
249         conversions as much as possible.
250
251         Existing test is changed to reflect subpixel functionality.
252
253         * rendering/shapes/RectangleShape.cpp:
254         (WebCore::RectangleShape::firstIncludedIntervalLogicalTop):
255
256 2014-01-22  Jochen Eisinger  <jochen@chromium.org>
257
258         Add protocolIsInHTTPFamily for strings and use it where appropriate
259         https://bugs.webkit.org/show_bug.cgi?id=127336
260
261         Reviewed by Alexey Proskuryakov.
262
263         * html/HTMLAnchorElement.cpp:
264         (WebCore::HTMLAnchorElement::parseAttribute):
265         * page/ContentSecurityPolicy.cpp:
266         (WebCore::CSPSource::schemeMatches):
267         * page/SecurityPolicy.cpp:
268         (WebCore::SecurityPolicy::generateReferrerHeader):
269         * platform/URL.cpp:
270         (WebCore::protocolIsInHTTPFamily):
271         * platform/URL.h:
272
273 2014-01-22  Zalan Bujtas  <zalan@apple.com>
274
275         Subpixel Layout: SimpleLineLayout needs more position rounding to match InlineFlowBox layout.
276         https://bugs.webkit.org/show_bug.cgi?id=127404
277
278         Reviewed by Antti Koivisto.
279
280         In order to produce a CSS pixel perfect layout, SimpleLineLayout needs to
281         round line positions to CSS (integral) position similarly to InlineFlowBox.
282
283         Existing tests cover it.
284
285         * rendering/SimpleLineLayoutResolver.h:
286         (WebCore::SimpleLineLayout::RunResolver::Run::rect):
287         (WebCore::SimpleLineLayout::RunResolver::Run::baseline):
288
289 2014-01-22  Joseph Pecoraro  <pecoraro@apple.com>
290
291         Unreviewed rollout of r162534, this caused inspector test failures.
292
293         * bindings/js/PageScriptDebugServer.cpp:
294         (WebCore::PageScriptDebugServer::addListener):
295         (WebCore::PageScriptDebugServer::removeListener):
296         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
297         (WebCore::PageScriptDebugServer::didRemoveLastListener):
298         * bindings/js/PageScriptDebugServer.h:
299         * bindings/js/ScriptDebugServer.cpp:
300         (WebCore::ScriptDebugServer::ScriptDebugServer):
301         (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
302         (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
303         * bindings/js/ScriptDebugServer.h:
304         * bindings/js/WorkerScriptDebugServer.cpp:
305         (WebCore::WorkerScriptDebugServer::addListener):
306         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
307         (WebCore::WorkerScriptDebugServer::removeListener):
308         * inspector/InspectorProfilerAgent.cpp:
309
310 2014-01-22  peavo@outlook.com  <peavo@outlook.com>
311
312         Crashes in setTextForIterator
313         https://bugs.webkit.org/show_bug.cgi?id=127424
314
315         Reviewed by Brent Fulgham.
316
317         * platform/text/icu/UTextProviderLatin1.cpp:
318         (WebCore::uTextLatin1Clone): Provide correct buffer size in utext_setup function call.
319         (WebCore::uTextLatin1Access): Give correct buffer size to memset call.
320         (WebCore::openLatin1UTextProvider): Ditto.
321
322 2014-01-22  Jer Noble  <jer.noble@apple.com>
323
324         [Mac] MediaPlayerPrivateMediaSourceAVFObjC::load ASSERTs on lots of tests
325         https://bugs.webkit.org/show_bug.cgi?id=127430
326
327         Reviewed by Eric Carlson.
328
329         When other registered media engines cannot load a URL, the engine selection
330         will eventually pick MediaPlayerPrivateMediaSourceAVFObjC and ask it to load
331         the URL. Instead of ASSERTing here, simply reject the URL by setting the
332         network state to FormatError.
333
334         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
335         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::load):
336
337 2014-01-22  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
338
339         [EFL][GTK] Get EFL and GTK compiling with ACCESSIBILITY disabled
340         https://bugs.webkit.org/show_bug.cgi?id=127119
341
342         Reviewed by Mario Sanchez Prada.
343
344         At build time, the compiler was not able to determine which Timer's constructor to call in AXObjectCache when
345         ACCESSIBILITY is not enabled, fixing that.
346         Also guarding some members in AccessibilityObject that are only being used by EFL and GTK with ACCESSIBILITY.
347
348         * accessibility/AXObjectCache.h:
349         (WebCore::AXObjectCache::AXObjectCache):
350         * accessibility/AccessibilityObject.h:
351
352 2014-01-22  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
353
354         Refactor calculation of hasRx and hasRy values in SVGPathData
355         https://bugs.webkit.org/show_bug.cgi?id=127423
356
357         Reviewed by Darin Adler.
358
359         This is a follow-up on https://bugs.webkit.org/show_bug.cgi?id=127337
360
361         * rendering/svg/SVGPathData.cpp:
362         (WebCore::updatePathFromRectElement):
363
364 2014-01-21  Joseph Pecoraro  <pecoraro@apple.com>
365
366         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
367         https://bugs.webkit.org/show_bug.cgi?id=127409
368
369         Reviewed by Timothy Hatcher.
370
371         * bindings/js/ScriptDebugServer.h:
372         * bindings/js/ScriptDebugServer.cpp:
373         (WebCore::ScriptDebugServer::ScriptDebugServer):
374         Remove m_recompileTimer and the recompile soon function.
375         We can just recompile immediately in all existing cases.
376
377         * bindings/js/PageScriptDebugServer.h:
378         * bindings/js/PageScriptDebugServer.cpp:
379         (WebCore::PageScriptDebugServer::addListener):
380         (WebCore::PageScriptDebugServer::removeListener):
381         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
382         (WebCore::PageScriptDebugServer::didAddFirstListener):
383         (WebCore::PageScriptDebugServer::didRemoveLastListener):
384         Add a "didAddFirstListener" to match "didRemoveLastListener".
385         Only recompile functions when we attach the debugger and when
386         we detach the last listener.
387
388         * bindings/js/WorkerScriptDebugServer.cpp:
389         (WebCore::WorkerScriptDebugServer::addListener):
390         (WebCore::WorkerScriptDebugServer::removeListener):
391         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
392         Same thing. Also rearrange the functions to read better.
393
394         * inspector/InspectorProfilerAgent.cpp:
395         Use the direct recompile function instead of the removed "soon" version.
396
397 2014-01-22  Robert Sipka  <sipka@inf.u-szeged.hu>
398
399         [curl] Improve detecting and handling of SSL client certificate
400         https://bugs.webkit.org/show_bug.cgi?id=125006
401
402         Reviewed by Brent Fulgham.
403
404         Add client certificate handling.
405
406         * platform/network/ResourceHandle.h:
407         * platform/network/curl/ResourceError.h:
408         (WebCore::ResourceError::hasSSLConnectError):
409         * platform/network/curl/ResourceHandleCurl.cpp:
410         (WebCore::ResourceHandle::setClientCertificateInfo):
411         * platform/network/curl/ResourceHandleManager.cpp:
412         (WebCore::ResourceHandleManager::initializeHandle):
413         * platform/network/curl/SSLHandle.cpp:
414         (WebCore::addAllowedClientCertificate):
415         (WebCore::setSSLClientCertificate):
416         * platform/network/curl/SSLHandle.h:
417
418 2014-01-22  Mihai Maerean  <mmaerean@adobe.com>
419
420         [CSS Regions] layerOwner in RenderNamedFlowFragment cannot return null
421         https://bugs.webkit.org/show_bug.cgi?id=127343
422
423         Reviewed by Sam Weinig.
424
425         RenderNamedFlowFragment::layerOwner cannot return null because regions create stacking
426         contexts which create layers.
427
428         No new tests, no functional change.
429
430         * rendering/RenderFlowThread.cpp:
431         (WebCore::RenderFlowThread::hasCompositingRegionDescendant):
432         * rendering/RenderLayer.cpp:
433         (WebCore::RenderLayer::calculateClipRects):
434         * rendering/RenderLayerBacking.cpp:
435         (WebCore::RenderLayerBacking::adjustAncestorCompositingBoundsForFlowThread):
436         * rendering/RenderLayerCompositor.cpp:
437         (WebCore::RenderLayerCompositor::computeRegionCompositingRequirements):
438         * rendering/RenderNamedFlowFragment.h:
439
440 2014-01-22  Antti Koivisto  <antti@apple.com>
441
442         Avoid unthrottled layer flushes triggered by RenderLayerCompositor::ensureRootLayer
443         https://bugs.webkit.org/show_bug.cgi?id=127426
444
445         Reviewed by Anders Carlsson.
446         
447         * rendering/RenderLayerCompositor.cpp:
448         (WebCore::RenderLayerCompositor::updateScrollLayerPosition):
449         (WebCore::RenderLayerCompositor::frameViewDidScroll):
450
451             Factor scroll layer position update to a function.
452
453         (WebCore::RenderLayerCompositor::ensureRootLayer):
454         
455             Stop calling frameViewDidChangeSize/frameViewDidScroll. Instead call the relevent functions
456             directly. This avoid unthrottled layer flush that is done when the view actually scrolls.
457
458         * rendering/RenderLayerCompositor.h:
459
460 2014-01-22  Mihai Tica  <mitica@adobe.com>
461
462         [CSS Background Blending] -webkit-background-blend-mode fails for certain SVG files
463         https://bugs.webkit.org/show_bug.cgi?id=127350
464
465         Reviewed by Dirk Schulze.
466
467         The graphics context of the SVG inherits the blend mode set
468         on the background layer. Fix consists in drawing the SVG
469         in a transparency layer.
470
471         Test: css3/compositing/background-blend-mode-svg.html
472
473         * svg/graphics/SVGImage.cpp:
474         (WebCore::SVGImage::draw): Begin a transparency layer if a blend mode is set.
475
476 2014-01-22  Antti Koivisto  <antti@apple.com>
477
478         Update overlay scrollbars in single pass
479         https://bugs.webkit.org/show_bug.cgi?id=127289
480
481         Reviewed by Anders Carlsson.
482
483         * platform/ScrollView.cpp:
484         (WebCore::ScrollView::updateScrollbars):
485         
486             Multi-pass scrollbar resolution is only needed for traditional scrollbars. Overlay scrollbars don't affect layout.
487
488 2014-01-22  Mihnea Ovidenie  <mihnea@adobe.com>
489
490         [CSSRegions] Incorrect layout of a region pseudo children
491         https://bugs.webkit.org/show_bug.cgi?id=126146
492
493         Reviewed by David Hyatt.
494
495         Test: fast/regions/collapse-anonymous-region.html
496
497         A region behaviour, styled using -webkit-flow-from, is modeled using an anonymous
498         block created to fragment the named flow content inside the region. We have to prevent
499         the behaviour of anonymous children collapsing for this block to make sure that the
500         region element children are still laid out properly when the region element becomes an ordinary
501         element.
502
503         * rendering/RenderBlockFlow.h:
504
505 2014-01-21  Ryuan Choi  <ryuan.choi@samsung.com>
506
507         Remove unused "acceleratedCompositingForScrollableFramesEnabled" setting
508         https://bugs.webkit.org/show_bug.cgi?id=127402
509
510         Reviewed by Anders Carlsson.
511
512         compositing/iframes/iframe-composited-scrolling.html is updated because
513         there are no usages in WebCore.
514
515         * page/Settings.in:
516
517 2014-01-21  Alex Christensen  <achristensen@webkit.org>
518
519         Compile fix for using libsoup on Windows.
520         https://bugs.webkit.org/show_bug.cgi?id=127377
521
522         Reviewed by Daniel Bates.
523
524         * platform/network/soup/ProxyResolverSoup.cpp:
525         (soupProxyResolverWkSetProperty):
526         (soupProxyResolverWkGetProperty):
527         (soupProxyResolverWkGetProxyURISync):
528         Replaced uint with unsigned.
529
530 2014-01-21  Daniel Bates  <dabates@apple.com>
531
532         Break up single assertion into two assertions in HTMLMediaElement::returnPlatformLayer()
533
534         Following up after <http://trac.webkit.org/changeset/162473>, we should break up
535         the assertion into two assertions as suggested by Darin Adler. Separating the single
536         assertion into two assertions makes it straightforward to determine the conjunct that
537         failed among other benefits.
538
539         * html/HTMLMediaElement.cpp:
540         (WebCore::HTMLMediaElement::parseAttribute):
541
542 2014-01-21  Brady Eidson  <beidson@apple.com>
543
544         The IDB backing store put() method shouldn't call IDB callbacks directly
545         https://bugs.webkit.org/show_bug.cgi?id=127399
546
547         Reviewed by Beth Dakin.
548
549         Refactor the put() callback to take a resulting key or an error.
550         * Modules/indexeddb/IDBServerConnection.h:
551
552         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
553         (WebCore::PutOperation::perform): Call to the backing store, then perform the
554           appropriate IDB callback whether a key or an error was returned.
555         * Modules/indexeddb/IDBTransactionBackendOperations.h:
556
557         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
558         (WebCore::IDBServerConnectionLevelDB::put): Don’t call IDB callbacks directly.
559           Instead, pass the resulting key/error back to the PutOperation.
560         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
561
562 2014-01-21  Jae Hyun Park  <jae.park@company100.net>
563
564         Use nullptr in HTMLCanvasElement
565         https://bugs.webkit.org/show_bug.cgi?id=127388
566
567         Reviewed by Gyuyoung Kim.
568
569         * html/HTMLCanvasElement.cpp:
570         (WebCore::HTMLCanvasElement::getContext):
571         (WebCore::HTMLCanvasElement::drawingContext):
572         (WebCore::HTMLCanvasElement::existingDrawingContext):
573
574 2014-01-21  László Langó  <llango.u-szeged@partner.samsung.com>
575
576         Assertion failure in Range::nodeWillBeRemoved
577         https://bugs.webkit.org/show_bug.cgi?id=121694
578
579         Reviewed by Ryosuke Niwa.
580
581         Based on Blink a change: https://chromium.googlesource.com/chromium/blink/+/407c1d7b2c45974aa614b3f847ffe9e8fce205fa
582
583         This patch fix an assertion failure. Range::nodeWillBeRemoved() might
584         be called with removed node in ContainerNode, when DOMNodeRemovedFromDocument
585         event handler calls removeChild(), for node being removed.
586
587         Test: fast/dom/Range/remove-twice-crash.html
588
589         * dom/ContainerNode.cpp:
590         (WebCore::ContainerNode::willRemoveChild):
591         * dom/ContainerNode.h:
592
593 2014-01-21  Tim Horton  <timothy_horton@apple.com>
594
595         REGRESSION (r161580): Some PDFs render outside their <img>
596         https://bugs.webkit.org/show_bug.cgi?id=127381
597         <rdar://problem/15872168>
598
599         Reviewed by Simon Fraser.
600
601         * platform/graphics/cg/PDFDocumentImage.cpp:
602         (WebCore::transformContextForPainting):
603         Only try to make the scale uniform if it isn't already, and use the minimum
604         of the two original scales when doing so, so that it is absolutely certain
605         to fit inside space allocated for the image during layout.
606
607 2014-01-21  Simon Fraser  <simon.fraser@apple.com>
608
609         Remove #if PLATFORM(IOS) in various places around customFixedPositionLayoutRect() code
610         https://bugs.webkit.org/show_bug.cgi?id=127373
611
612         Reviewed by Beth Dakin.
613
614         Instead of PLATFORM(IOS) #idefs at every call site for viewportConstrainedVisibleContentRect(),
615         move the #ifdef inside viewportConstrainedVisibleContentRect().
616         
617         The one call site that needs special handling is RenderLayerBacking::updateCompositedBounds(),
618         which needs to avoid clipping fixed layers to the custom fixed position rect, but instead to
619         visibleContentRect() (which is really the document bounds on iOS). This ensures that the
620         fixed layers aren't clipped when zooming out.
621
622         * page/FrameView.cpp:
623         (WebCore::FrameView::viewportConstrainedVisibleContentRect):
624         * rendering/RenderBoxModelObject.cpp:
625         (WebCore::RenderBoxModelObject::stickyPositionOffset):
626         * rendering/RenderLayerBacking.cpp:
627         (WebCore::RenderLayerBacking::updateCompositedBounds):
628         * rendering/RenderLayerCompositor.cpp:
629         (WebCore::RenderLayerCompositor::requiresCompositingForPosition):
630         (WebCore::RenderLayerCompositor::computeFixedViewportConstraints):
631         (WebCore::RenderLayerCompositor::computeStickyViewportConstraints):
632
633 2014-01-21  Andy Estes  <aestes@apple.com>
634
635         [iOS] Allow all clients to link against WebCore
636         https://bugs.webkit.org/show_bug.cgi?id=127372
637         
638         Reviewed by Dan Bernstein.
639
640         * Configurations/WebCore.xcconfig:
641
642 2014-01-21  Bear Travis  <betravis@adobe.com>
643
644         [CSS Shapes] Preserve box-shape order when serializing shape values
645         https://bugs.webkit.org/show_bug.cgi?id=127200
646
647         Reviewed by Dirk Schulze.
648
649         Convert the parsed shape-box pair to a CSSValueList rather than directly
650         adding the box value to BasicShape. The CSSValueList preserves the
651         shape-box ordering, and cleans up a little bit of the code shared between
652         clip and shape values.
653
654         Modifying existing parsing tests.
655
656         * css/CSSComputedStyleDeclaration.cpp:
657         (WebCore::shapePropertyValue): Factor out code common to generating shape
658         values.
659         (WebCore::ComputedStyleExtractor::propertyValue): Generate a CSSValueList when
660         you have both a shape and a box.
661         * css/CSSParser.cpp:
662         (WebCore::CSSParser::parseBasicShapeAndOrBox): Factor out code common to clip
663         paths and shape properties that parses the [basic-shape || box] syntax from
664         the CSS Shapes spec.
665         (WebCore::CSSParser::parseShapeProperty): Parse shape-box pairs as a CSSValueList.
666         * css/DeprecatedStyleBuilder.cpp:
667         (WebCore::ApplyPropertyShape::applyValue): Use the CSSValueList for shape-box pairs.
668         * css/CSSValueList.h:
669         (WebCore::CSSValueList::itemWithoutBoundsCheck): Add a const version.
670         * page/animation/CSSPropertyAnimation.cpp:
671         (WebCore::blendFunc): Specify a box when blending.
672         * rendering/style/ShapeValue.h:
673         (WebCore::ShapeValue::createShapeValue): Add a box parameter.
674         (WebCore::ShapeValue::ShapeValue): Ditto.
675
676 2014-01-21  Daniel Bates  <dabates@apple.com>
677
678         Fix the iOS Simulator release build
679
680         Substitute ASSERT_UNUSED() for ASSERT() to resolve a compiler warning
681         that the argument platformLayer is unused. The argument platformLayer
682         is only used in the asserted condition, which isn't compiled in a
683         release build; => the argument is unused in a release build.
684
685         * html/HTMLMediaElement.cpp:
686         (WebCore::HTMLMediaElement::parseAttribute):
687
688 2014-01-21  Zoltan Horvath  <zoltan@webkit.org>
689
690         Since MidpointState is a class, it should behave like a class
691         https://bugs.webkit.org/show_bug.cgi?id=127154
692
693         Reviewed by David Hyatt.
694
695         I modified MidpointState to behave like a class, updated the call sites also.
696
697         No new tests, no behavior change.
698
699         * platform/text/BidiResolver.h:
700         (WebCore::MidpointState::reset):
701         (WebCore::MidpointState::startIgnoringSpaces):
702         (WebCore::MidpointState::stopIgnoringSpaces):
703         (WebCore::MidpointState::midpoints):
704         (WebCore::MidpointState::numMidpoints):
705         (WebCore::MidpointState::currentMidpoint):
706         (WebCore::MidpointState::incrementCurrentMidpoint):
707         (WebCore::MidpointState::decreaseNumMidpoints):
708         (WebCore::MidpointState::betweenMidpoints):
709         (WebCore::MidpointState::setBetweenMidpoints):
710         (WebCore::MidpointState::addMidpoint): Renamed from deprecatedAddMidpoint, since now
711         its private, we no longer need to discourage callers from using it.
712         * rendering/InlineIterator.h:
713         (WebCore::IsolateTracker::addFakeRunIfNecessary):
714         * rendering/RenderBlockLineLayout.cpp:
715         (WebCore::RenderBlockFlow::appendRunsForObject):
716         (WebCore::constructBidiRunsForLine):
717         * rendering/line/BreakingContextInlineHeaders.h:
718         (WebCore::checkMidpoints):
719         * rendering/line/TrailingObjects.cpp:
720         (WebCore::TrailingObjects::updateMidpointsForTrailingBoxes):
721
722 2014-01-21  Commit Queue  <commit-queue@webkit.org>
723
724         Unreviewed, rolling out r162452.
725         http://trac.webkit.org/changeset/162452
726         https://bugs.webkit.org/show_bug.cgi?id=127366
727
728         broke a few tests on all Mac WebKit1 bots (Requested by
729         thorton on #webkit).
730
731         * WebCore.exp.in:
732         * page/FocusController.cpp:
733         (WebCore::FocusController::FocusController):
734         (WebCore::FocusController::setFocused):
735         (WebCore::FocusController::setActive):
736         (WebCore::FocusController::setContentIsVisible):
737         * page/FocusController.h:
738         (WebCore::FocusController::isActive):
739         (WebCore::FocusController::isFocused):
740         * page/Page.cpp:
741         (WebCore::Page::Page):
742         (WebCore::Page::setIsInWindow):
743         (WebCore::Page::setIsVisuallyIdle):
744         (WebCore::Page::setIsVisible):
745         (WebCore::Page::visibilityState):
746         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
747         * page/Page.h:
748         (WebCore::Page::isVisible):
749         (WebCore::Page::isInWindow):
750
751 2014-01-21  Chris Fleizach  <cfleizach@apple.com>
752
753         AX: Mac: Expose the visible text of a password field to AX
754         https://bugs.webkit.org/show_bug.cgi?id=127353
755
756         Reviewed by Brent Fulgham.
757
758         The Mac platform should now expose the rendered value of password fields through AX.
759
760         Test: accessibility/password-field-value.html
761
762         * accessibility/AccessibilityRenderObject.cpp:
763         (WebCore::AccessibilityRenderObject::textLength):
764         (WebCore::AccessibilityRenderObject::passwordFieldValue):
765
766 2014-01-21  Robert Sipka  <sipka@inf.u-szeged.hu>
767
768         Support SSL error handling in case of synchronous job.
769         https://bugs.webkit.org/show_bug.cgi?id=125301
770
771         Reviewed by Brent Fulgham.
772
773         Set ssl error informations for the users.
774
775         * platform/network/curl/ResourceHandleManager.cpp:
776         (WebCore::ResourceHandleManager::dispatchSynchronousJob):
777
778 2014-01-21  Simon Fraser  <simon.fraser@apple.com>
779
780         Export systemTotalMemory() and systemMemoryLevel() for MobileSafari
781         https://bugs.webkit.org/show_bug.cgi?id=127360
782
783         Reviewed by Andy Estes.
784         
785         MobileSafari inappropriately calls these WebCore functions directly,
786         so export them.
787
788         * WebCore.exp.in:
789
790 2014-01-21  Simon Fraser  <simon.fraser@apple.com>
791
792         Clean up PLATFORM(IOS) code related to the custom fixed position layout rect
793         https://bugs.webkit.org/show_bug.cgi?id=127362
794
795         Reviewed by Dave Hyatt.
796
797         Various platforms customize the rect used to layout position:fixed elements,
798         and each modified RenderBox::availableLogicalHeight/WidthUsing() in different
799         ways.
800         
801         Clean this up by adding RenderView::clientLogicalWidth/HeightForFixedPosition(),
802         and moving the platform hacks into it.
803
804         * rendering/RenderBox.cpp:
805         (WebCore::RenderBox::availableLogicalHeightUsing):
806         (WebCore::RenderBox::containingBlockLogicalWidthForPositioned):
807         (WebCore::RenderBox::containingBlockLogicalHeightForPositioned):
808         * rendering/RenderView.cpp:
809         (WebCore::RenderView::clientLogicalWidthForFixedPosition):
810         (WebCore::RenderView::clientLogicalHeightForFixedPosition):
811         * rendering/RenderView.h:
812
813 2014-01-21  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
814
815         ASSERT(time.isFinite()) in SVGSMILElement::createInstanceTimesFromSyncbase
816         <https://webkit.org/b/108184>
817
818         Reviewed by Philip Rogers.
819
820         In the case a SMILElement timing had a syncbase dependency on an indefinite value
821         the assert were raised. The assert has been removed and a check has been added
822         instead that prevents the addition of indefinite times to the time list.
823
824         Test: svg/animations/smil-syncbase-self-dependency.svg
825
826         * svg/animation/SVGSMILElement.cpp:
827         (WebCore::SVGSMILElement::createInstanceTimesFromSyncbase):
828           ASSERT removed.
829
830 2014-01-21  Tim Horton  <timothy_horton@apple.com>
831
832         Address late review naming comments after r162453.
833
834         * WebCore.xcodeproj/project.pbxproj:
835         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
836         * platform/graphics/mac/CALayerWebAdditions.h: Removed.
837         * platform/graphics/mac/CALayerWebAdditions.mm: Removed.
838         * platform/graphics/mac/WebCoreCALayerExtras.h: Added.
839         * platform/graphics/mac/WebCoreCALayerExtras.mm: Added.
840         (-[CALayer web_disableAllActions]):
841
842 2014-01-21  Tim Horton  <timothy_horton@apple.com>
843
844         Keep CALayer implicit animation disabling code in a single place
845         https://bugs.webkit.org/show_bug.cgi?id=127355
846
847         Reviewed by Simon Fraser.
848
849         * WebCore.xcodeproj/project.pbxproj:
850         Add CALayerWebAdditions.{h,mm}.
851
852         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
853         (PlatformCALayerMac::commonInit):
854         Remove nullActionsDictionary() and use [CALayer(WebAdditions) web_disableAllActions] instead.
855
856         * platform/graphics/mac/CALayerWebAdditions.h: Added.
857         * platform/graphics/mac/CALayerWebAdditions.mm: Added.
858         (-[CALayer web_disableAllActions]):
859         Added. Disable all implicit actions on the layer.
860
861 2014-01-21  Gavin Barraclough  <barraclough@apple.com>
862
863         Change Page, FocusController to use ViewState
864         https://bugs.webkit.org/show_bug.cgi?id=126533
865
866         Reviewed by Tim Horton.
867
868         These classes currently maintain a set of separate fields to represent the view state;
869         combine these into a single field, and allow WebPage to send the combined update rather
870         than individual changes.
871
872         Maintain existing interface for WebKit1 clients.
873
874         * WebCore.exp.in:
875             - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
876         * page/FocusController.cpp:
877         (WebCore::FocusController::FocusController):
878             - Initialize combined m_viewState.
879         (WebCore::FocusController::setFocused):
880             - Calls setViewState.
881         (WebCore::FocusController::setFocusedInternal):
882             - setFocused -> setFocusedInternal.
883         (WebCore::FocusController::setViewState):
884             - Added, update all ViewState flags.
885         (WebCore::FocusController::setActive):
886             - Calls setViewState.
887         (WebCore::FocusController::setActiveInternal):
888             - setActive -> setActiveInternal.
889         (WebCore::FocusController::setContentIsVisible):
890             - Calls setViewState.
891         (WebCore::FocusController::setContentIsVisibleInternal):
892             - setContentIsVisible -> setContentIsVisibleInternal.
893         * page/FocusController.h:
894         (WebCore::FocusController::isActive):
895         (WebCore::FocusController::isFocused):
896         (WebCore::FocusController::contentIsVisible):
897             - Implemented in terms of ViewState.
898         * page/Page.cpp:
899         (WebCore::Page::Page):
900             - Initialize using PageInitialViewState.
901         (WebCore::Page::setIsInWindow):
902             - Calls setViewState.
903         (WebCore::Page::setIsInWindowInternal):
904             - setIsInWindow -> setIsInWindowInternal.
905         (WebCore::Page::setIsVisuallyIdleInternal):
906             - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
907         (WebCore::Page::setViewState):
908             - Added, update all ViewState flags, including FocusController.
909         (WebCore::Page::setIsVisible):
910             - Calls setViewState.
911         (WebCore::Page::setIsVisibleInternal):
912             - setIsVisible -> setIsVisibleInternal.
913         (WebCore::Page::visibilityState):
914             - m_isVisible -> isVisible()
915         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
916             - m_isVisible -> isVisible()
917         * page/Page.h:
918         (WebCore::Page::isVisible):
919         (WebCore::Page::isInWindow):
920             - Implemented in terms of ViewState.
921         (WebCore::Page::scriptedAnimationsSuspended):
922             - Combined member fields into ViewState::Flags.
923
924 2014-01-21  Lauro Neto  <lauro.neto@openbossa.org>
925
926         Remove PLATFORM(NIX) from WebCore
927         https://bugs.webkit.org/show_bug.cgi?id=127299
928
929         Reviewed by Anders Carlsson.
930
931         * editing/Editor.cpp:
932         (WebCore::Editor::cut):
933         (WebCore::Editor::copy):
934         (WebCore::Editor::copyImage):
935         * editing/Editor.h:
936         * html/HTMLCanvasElement.h:
937         * loader/EmptyClients.h:
938         * loader/FrameLoader.cpp:
939         (WebCore::FrameLoader::defaultObjectContentType):
940         * page/ChromeClient.h:
941         * page/DragController.cpp:
942         (WebCore::DragController::startDrag):
943         * platform/Cursor.h:
944         * platform/DragData.h:
945         * platform/DragImage.h:
946         * platform/FileSystem.h:
947         * platform/LocalizedStrings.h:
948         * platform/Widget.h:
949         * platform/audio/FFTFrame.h:
950         * platform/audio/HRTFElevation.cpp:
951         * platform/cairo/WidgetBackingStore.h:
952         * platform/graphics/ANGLEWebKitBridge.h:
953         * platform/graphics/FontPlatformData.h:
954         * platform/graphics/GLContext.cpp:
955         (WebCore::GLContext::createContextForWindow):
956         * platform/graphics/GLContext.h:
957         * platform/graphics/GraphicsContext3D.h:
958         * platform/graphics/GraphicsContext3DPrivate.cpp:
959         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
960         * platform/graphics/OpenGLESShims.h:
961         * platform/graphics/OpenGLShims.cpp:
962         (WebCore::getProcAddress):
963         * platform/graphics/OpenGLShims.h:
964         * platform/graphics/PlatformLayer.h:
965         * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
966         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
967         (WebCore::Extensions3DOpenGL::createVertexArrayOES):
968         (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
969         (WebCore::Extensions3DOpenGL::isVertexArrayOES):
970         (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
971         (WebCore::Extensions3DOpenGL::supportsExtension):
972         * platform/graphics/opengl/Extensions3DOpenGL.h:
973         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
974         * platform/graphics/opengl/Extensions3DOpenGLES.h:
975         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
976         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
977         (WebCore::GraphicsContext3D::reshape):
978         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
979         * platform/graphics/texmap/TextureMapper.h:
980         * platform/network/ResourceHandle.h:
981         * plugins/PluginPackage.cpp:
982         * plugins/PluginView.cpp:
983         (WebCore::PluginView::PluginView):
984         * plugins/PluginView.h:
985         * plugins/PluginViewNone.cpp:
986         * rendering/SimpleLineLayout.cpp:
987         (WebCore::SimpleLineLayout::canUseFor):
988
989 2014-01-21  Eric Carlson  <eric.carlson@apple.com>
990
991         Add &lrm; &rlm; and &nbsp; to WebVTT parser
992         https://bugs.webkit.org/show_bug.cgi?id=85112
993
994         Reviewed by Jer Noble.
995
996         No new tests, track-webvtt-tc022-entities.html was updated to test this.
997
998         * html/track/WebVTTTokenizer.cpp:
999         (WebCore::WebVTTTokenizer::nextToken): Support RLM, LRM, and NBSP entities.
1000
1001 2014-01-21  Commit Queue  <commit-queue@webkit.org>
1002
1003         Unreviewed, rolling out r162354.
1004         http://trac.webkit.org/changeset/162354
1005         https://bugs.webkit.org/show_bug.cgi?id=127354
1006
1007         Appears to have broken accessibility in a non-trivial way
1008         (Requested by ap on #webkit).
1009
1010         * platform/ScrollView.cpp:
1011         (WebCore::ScrollView::updateScrollbars):
1012
1013 2014-01-21  Commit Queue  <commit-queue@webkit.org>
1014
1015         Unreviewed, rolling out r162445.
1016         http://trac.webkit.org/changeset/162445
1017         https://bugs.webkit.org/show_bug.cgi?id=127351
1018
1019         It broke the 32 bit GTK build (Requested by Ossy on #webkit).
1020
1021         * rendering/style/StyleRareInheritedData.cpp:
1022
1023 2014-01-21  László Langó  <llango.u-szeged@partner.samsung.com>
1024
1025         Wrong struct size when CSS_IMAGE_ORIENTATION and CSS3_TEXT_DECORATION are enabled.
1026         https://bugs.webkit.org/show_bug.cgi?id=127346
1027
1028         Efl build fix.
1029
1030         Reviewed by Csaba Osztrogonác.
1031
1032         * rendering/style/StyleRareInheritedData.cpp:
1033
1034 2014-01-21  Antti Koivisto  <antti@apple.com>
1035
1036         Delay initial layer flush during loading on all platforms
1037         https://bugs.webkit.org/show_bug.cgi?id=127347
1038
1039         Reviewed by Andreas Kling.
1040
1041         To reduce unnecessary repaints enable the same behaviour as iOS already has.
1042
1043         * rendering/RenderLayerCompositor.cpp:
1044         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
1045         
1046             Set the initial state of m_layerFlushThrottlingEnabled correctly.
1047
1048         (WebCore::RenderLayerCompositor::scheduleLayerFlush):
1049         (WebCore::RenderLayerCompositor::startInitialLayerFlushTimerIfNeeded):
1050         * rendering/RenderLayerCompositor.h:
1051         
1052             Enable initial layer flush delay on all platforms.
1053
1054 2014-01-21  Mihai Tica  <mitica@adobe.com>
1055
1056         If you set a tiled cross-faded-image or a tiled gradient as
1057         a background layer, -webkit-background-blend-mode doesn't work.
1058         The problem consists in the blendMode parameter not being set
1059         for these specific drawing paths.
1060
1061         https://bugs.webkit.org/show_bug.cgi?id=126888
1062         Reviewed by Dirk Schulze.
1063
1064         Test: css3/compositing/background-blend-mode-tiled-layers.html
1065
1066         * platform/graphics/CrossfadeGeneratedImage.cpp:
1067         (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern.
1068         * platform/graphics/GradientImage.cpp:
1069         (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern.
1070         * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method.
1071         * platform/graphics/cairo/ImageBufferCairo.cpp:
1072         (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration.
1073         * platform/graphics/cg/ImageBufferCG.cpp:
1074         (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths.
1075         * platform/graphics/wince/ImageBufferWinCE.cpp:
1076         (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration.
1077
1078 2014-01-21  Gurpreet Kaur  <k.gurpreet@samsung.com>
1079
1080         The WebCore.vcxproj.filters doesnot apply
1081         https://bugs.webkit.org/show_bug.cgi?id=127338
1082
1083         Reviewed by Csaba Osztrogonác.
1084
1085         * WebCore.vcxproj/WebCore.vcxproj.filters:
1086         Modified the WebCore.vcxproj.filters so that it is applied when loading
1087         WebCore.vcxproj file.
1088
1089 2014-01-21  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1090
1091         Fix SVG animations which set rx or ry attributes
1092         https://bugs.webkit.org/show_bug.cgi?id=127337
1093
1094         Reviewed by Dirk Schulze.
1095
1096         Test: svg/stroke/animated-non-scaling-rxry.html
1097
1098         Merged from Blink: https://src.chromium.org/viewvc/blink?revision=152376&view=revision
1099
1100         * rendering/svg/RenderSVGRect.cpp:
1101         (WebCore::RenderSVGRect::updateShapeFromElement):
1102         * rendering/svg/SVGPathData.cpp:
1103         (WebCore::updatePathFromRectElement):
1104
1105 2014-01-21  Krzysztof Czech  <k.czech@samsung.com>
1106
1107         [ATK] Expose aria-flowto through ATK_RELATION_FLOWS_TO
1108         https://bugs.webkit.org/show_bug.cgi?id=127291
1109
1110         Reviewed by Mario Sanchez Prada.
1111
1112         Test: accessibility/aria-flowto.html
1113
1114         Expose aria-flowto through ATK_RELATION_FLOWS_TO according to
1115         http://www.w3.org/TR/wai-aria-implementation/#mapping_state-property
1116
1117         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1118         (setAtkRelationSetFromCoreObject):
1119
1120 2014-01-20  Ryuan Choi  <ryuan.choi@samsung.com>
1121
1122         [CMAKE] Remove Nix from CMake scripts
1123         https://bugs.webkit.org/show_bug.cgi?id=127264
1124
1125         Reviewed by Anders Carlsson.
1126
1127         * CMakeLists.txt:
1128
1129 2014-01-20  Anders Carlsson  <andersca@apple.com>
1130
1131         Remove an unused PageGroup function
1132         https://bugs.webkit.org/show_bug.cgi?id=127327
1133
1134         Reviewed by Andreas Kling.
1135
1136         * WebCore.exp.in:
1137         * page/PageGroup.cpp:
1138         * page/PageGroup.h:
1139
1140 2014-01-20  Anders Carlsson  <andersca@apple.com>
1141
1142         Move user style sheet handling to UserContentController
1143         https://bugs.webkit.org/show_bug.cgi?id=127322
1144         <rdar://problem/15861296>
1145
1146         Reviewed by Andreas Kling.
1147
1148         * dom/DocumentStyleSheetCollection.cpp:
1149         (WebCore::DocumentStyleSheetCollection::updateInjectedStyleSheetCache):
1150         * page/PageGroup.cpp:
1151         (WebCore::PageGroup::addUserStyleSheetToWorld):
1152         (WebCore::PageGroup::removeUserStyleSheetFromWorld):
1153         (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
1154         (WebCore::PageGroup::removeAllUserContent):
1155         * page/PageGroup.h:
1156         * page/UserContentController.cpp:
1157         (WebCore::UserContentController::addUserStyleSheet):
1158         (WebCore::UserContentController::removeUserStyleSheet):
1159         (WebCore::UserContentController::removeUserStyleSheets):
1160         (WebCore::UserContentController::removeAllUserContent):
1161         (WebCore::UserContentController::invalidateInjectedStyleSheetCacheInAllFrames):
1162         * page/UserContentController.h:
1163         (WebCore::UserContentController::userStyleSheets):
1164
1165 2014-01-20  Benjamin Poulain  <benjamin@webkit.org>
1166
1167         Add a nicer way to iterate over all the attributes of an element
1168         https://bugs.webkit.org/show_bug.cgi?id=127266
1169
1170         Reviewed by Geoffrey Garen.
1171
1172         When using Element::attributeAt() in a loop, the compiler had to generate two kinds of
1173         accessor:
1174         -If the element data is unique, the length and data comes from the attribute Vector.
1175         -If the element data is shared, the data comes from the tail of elementData itself.
1176
1177         The choice was done for every access, which caused the assembly to be a little
1178         hard to follow.
1179         This patch unify the data access by doing everything as a array pointer with offset (getting
1180         that data from Vector when necessary).
1181
1182         To make it easier to do the right thing, a new iterator was added so that range-based loops
1183         can replace all the faulty cases.
1184
1185         * css/SelectorChecker.cpp:
1186         (WebCore::anyAttributeMatches):
1187         * css/SelectorChecker.h:
1188         (WebCore::SelectorChecker::checkExactAttribute):
1189         * dom/DatasetDOMStringMap.cpp:
1190         (WebCore::DatasetDOMStringMap::getNames):
1191         (WebCore::DatasetDOMStringMap::item):
1192         (WebCore::DatasetDOMStringMap::contains):
1193         * dom/Element.cpp:
1194         (WebCore::Element::normalizeAttributes):
1195         (WebCore::Element::detachAllAttrNodesFromElement):
1196         (WebCore::Element::cloneAttributesFromElement):
1197         * dom/Element.h:
1198         (WebCore::Element::attributesIterator):
1199         * dom/ElementData.cpp:
1200         (WebCore::ElementData::isEquivalent):
1201         (WebCore::ElementData::findAttributeIndexByNameSlowCase):
1202         * dom/ElementData.h:
1203         (WebCore::AttributeConstIterator::AttributeConstIterator):
1204         (WebCore::AttributeConstIterator::operator*):
1205         (WebCore::AttributeConstIterator::operator->):
1206         (WebCore::AttributeConstIterator::operator++):
1207         (WebCore::AttributeConstIterator::operator==):
1208         (WebCore::AttributeConstIterator::operator!=):
1209         (WebCore::AttributeIteratorAccessor::AttributeIteratorAccessor):
1210         (WebCore::AttributeIteratorAccessor::begin):
1211         (WebCore::AttributeIteratorAccessor::end):
1212         (WebCore::ElementData::attributesIterator):
1213         * dom/Node.cpp:
1214         (WebCore::Node::isDefaultNamespace):
1215         (WebCore::Node::lookupNamespaceURI):
1216         (WebCore::Node::lookupNamespacePrefix):
1217         (WebCore::Node::compareDocumentPosition):
1218         * dom/StyledElement.cpp:
1219         (WebCore::StyledElement::makePresentationAttributeCacheKey):
1220         (WebCore::StyledElement::rebuildPresentationAttributeStyle):
1221         * editing/MarkupAccumulator.cpp:
1222         (WebCore::MarkupAccumulator::appendElement):
1223         * editing/markup.cpp:
1224         (WebCore::completeURLs):
1225         (WebCore::StyledMarkupAccumulator::appendElement):
1226         * html/HTMLEmbedElement.cpp:
1227         (WebCore::HTMLEmbedElement::parametersForPlugin):
1228         * html/HTMLObjectElement.cpp:
1229         (WebCore::HTMLObjectElement::parametersForPlugin):
1230         * inspector/DOMPatchSupport.cpp:
1231         (WebCore::DOMPatchSupport::innerPatchNode):
1232         (WebCore::DOMPatchSupport::createDigest):
1233         * inspector/InspectorDOMAgent.cpp:
1234         (WebCore::InspectorDOMAgent::setAttributesAsText):
1235         (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
1236         * inspector/InspectorNodeFinder.cpp:
1237         (WebCore::InspectorNodeFinder::matchesElement):
1238         * page/PageSerializer.cpp:
1239         (WebCore::isCharsetSpecifyingNode):
1240         * xml/XPathNodeSet.cpp:
1241         (WebCore::XPath::NodeSet::traversalSort):
1242         * xml/XPathStep.cpp:
1243         (WebCore::XPath::Step::nodesInAxis):
1244         * xml/parser/XMLDocumentParserLibxml2.cpp:
1245         (WebCore::XMLDocumentParser::XMLDocumentParser):
1246
1247 2014-01-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1248
1249         Do refactor in collectGradientAttributes() and renderStyleForLengthResolve()
1250         https://bugs.webkit.org/show_bug.cgi?id=126869
1251
1252         Reviewed by Dirk Schulze.
1253
1254         Some SVG functions have done a first iteration by using a boolean flag. This is
1255         one of poor implementations. This patch fix it by extracting a logic into a new method.
1256         Additionally it would be good to use do-while() loop instead of using while() in
1257         renderStyleForLengthResolving() because a first condition is always true.
1258
1259         Merge r165358 from blink.
1260
1261         * svg/SVGLengthContext.cpp:
1262         (WebCore::renderStyleForLengthResolving):
1263         * svg/SVGLinearGradientElement.cpp:
1264         (WebCore::setGradientAttributes):
1265         (WebCore::SVGLinearGradientElement::collectGradientAttributes):
1266         * svg/SVGRadialGradientElement.cpp:
1267         (WebCore::setGradientAttributes):
1268         (WebCore::SVGRadialGradientElement::collectGradientAttributes):
1269
1270 2014-01-20  Anders Carlsson  <andersca@apple.com>
1271
1272         UserContentController should keep track of user scripts
1273         https://bugs.webkit.org/show_bug.cgi?id=127317
1274         <rdar://problem/15861296>
1275
1276         Reviewed by Andreas Kling.
1277
1278         Move handling of user scripts from PageGroup to UserContentController.
1279
1280         * page/Frame.cpp:
1281         (WebCore::Frame::injectUserScripts):
1282         * page/PageGroup.cpp:
1283         (WebCore::PageGroup::addUserScriptToWorld):
1284         (WebCore::PageGroup::removeUserScriptFromWorld):
1285         (WebCore::PageGroup::removeUserScriptsFromWorld):
1286         (WebCore::PageGroup::removeAllUserContent):
1287         * page/PageGroup.h:
1288         * page/UserContentController.cpp:
1289         (WebCore::UserContentController::addUserScript):
1290         (WebCore::UserContentController::removeUserScript):
1291         (WebCore::UserContentController::removeUserScripts):
1292         (WebCore::UserContentController::removeAllUserContent):
1293         * page/UserContentController.h:
1294         (WebCore::UserContentController::userScripts):
1295
1296 2014-01-20  Anders Carlsson  <andersca@apple.com>
1297
1298         Give each page a UserContentController
1299         https://bugs.webkit.org/show_bug.cgi?id=127315
1300         <rdar://problem/15861296>
1301
1302         Reviewed by Andreas Kling.
1303
1304         Add a UserContentController object to PageGroup and have the page group set it on any
1305         pages that are added to the page group.
1306
1307         This is another step towards moving handling of user content away from PageGroup and make it
1308         possible for each page to have different user content.
1309
1310         * page/Page.cpp:
1311         (WebCore::Page::~Page):
1312         (WebCore::Page::setUserContentController):
1313         * page/Page.h:
1314         (WebCore::Page::userContentController):
1315         * page/PageGroup.cpp:
1316         (WebCore::PageGroup::PageGroup):
1317         (WebCore::PageGroup::addPage):
1318         (WebCore::PageGroup::removePage):
1319         * page/PageGroup.h:
1320         * page/UserContentController.cpp:
1321         (WebCore::UserContentController::addPage):
1322         (WebCore::UserContentController::removePage):
1323         * page/UserContentController.h:
1324
1325 2014-01-20  Jeremy Jones  <jeremyj@apple.com>
1326
1327         Add AVKit fullscreen video interface.
1328         https://bugs.webkit.org/show_bug.cgi?id=126818
1329
1330         Reviewed by Eric Carlson.
1331
1332         No new tests, no observable change in functionality.
1333
1334         * WebCore.exp.in:
1335         * WebCore.xcodeproj/project.pbxproj:
1336         * html/HTMLMediaElement.cpp:
1337         (WebCore::HTMLMediaElement::parseAttribute):
1338         * html/HTMLMediaElement.h:
1339         Add ability for fullscreen to borrow the AVPlayerLayer.
1340         * page/Settings.cpp:
1341         * page/Settings.h:
1342         (WebCore::Settings::setMediaPlaybackFullscreenAVKit):
1343         (WebCore::Settings::mediaPlaybackFullscreenAVKit):
1344         Add a disabled setting.
1345         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1346         (WebCore::MediaPlayerPrivateAVFoundation::supportsFullscreen):
1347         Enabled fullscreen for iOS.
1348         * platform/ios/WebVideoFullscreenControllerAVKit.h: Added.
1349         * platform/ios/WebVideoFullscreenControllerAVKit.mm: Added.
1350         (-[WebAVPlayerController init]):
1351         (-[WebAVPlayerController dealloc]):
1352         (-[WebAVPlayerController forwardingTargetForSelector:]):
1353         (-[WebAVPlayerController shouldDismissForDone]):
1354         (-[WebAVPlayerController play:]):
1355         (-[WebAVPlayerController pause:]):
1356         (-[WebAVPlayerController togglePlayback:]):
1357         (-[WebAVPlayerController isPlaying]):
1358         (-[WebAVPlayerController setPlaying:]):
1359         (+[WebAVPlayerController keyPathsForValuesAffectingPlaying]):
1360         (-[WebAVPlayerController seekToTime:]):
1361         (-[WebAVPlayerController updateTimingWithCurrentTime:]):
1362         (-[WebAVPlayerController effectiveRate]):
1363         (-[WebAVPlayerController setMediaElement:]):
1364         (-[WebAVPlayerController handleEvent:]):
1365         (-[WebVideoFullscreenController init]):
1366         (-[WebVideoFullscreenController dealloc]):
1367         (-[WebVideoFullscreenController setMediaElement:]):
1368         (-[WebVideoFullscreenController mediaElement]):
1369         (-[WebVideoFullscreenController enterFullscreen:]):
1370         (-[WebVideoFullscreenController exitFullscreen]):
1371         Add WebAVPlayerController for HTMLMediaElememt to interface with AVPlayerViewController.
1372
1373 2014-01-20  Zan Dobersek  <zdobersek@igalia.com>
1374
1375         Replace uses of std::forward<T>(), std::unique_ptr<T>::clear() that landed in r162368
1376         https://bugs.webkit.org/show_bug.cgi?id=127306
1377
1378         Reviewed by Darin Adler.
1379
1380         Address the post-landing reviews of the r162368 commit that moved WebAudio source code to using std::unique_ptr.
1381         std::move() should be used instead of std::forward<T>() in HRTFKernel::create().
1382         Instead of calling std::unique_ptr<T>::reset(), nullptr should be assigned to that smart pointer to reset it.
1383
1384         * Modules/webaudio/ConvolverNode.cpp:
1385         (WebCore::ConvolverNode::uninitialize):
1386         * Modules/webaudio/DynamicsCompressorNode.cpp:
1387         (WebCore::DynamicsCompressorNode::uninitialize):
1388         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
1389         (WebCore::MediaElementAudioSourceNode::setFormat):
1390         * Modules/webaudio/PannerNode.cpp:
1391         (WebCore::PannerNode::uninitialize):
1392         * platform/audio/AudioChannel.h:
1393         (WebCore::AudioChannel::set):
1394         * platform/audio/HRTFDatabaseLoader.cpp:
1395         (WebCore::HRTFDatabaseLoader::~HRTFDatabaseLoader):
1396         * platform/audio/HRTFKernel.h:
1397         (WebCore::HRTFKernel::create):
1398
1399 2014-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1400
1401         Modernize WebCore/inspector with nullptr
1402         https://bugs.webkit.org/show_bug.cgi?id=127303
1403
1404         Reviewed by Anders Carlsson.
1405
1406         Ran clang-modernize -use-nullptr over WebCore/inspector.
1407
1408         * inspector/ConsoleMessage.cpp:
1409         (WebCore::ConsoleMessage::ConsoleMessage):
1410         * inspector/ConsoleMessage.h:
1411         * inspector/ContentSearchUtils.cpp:
1412         (WebCore::ContentSearchUtils::findMagicComment):
1413         * inspector/DOMEditor.cpp:
1414         (WebCore::DOMEditor::SetOuterHTMLAction::SetOuterHTMLAction):
1415         * inspector/DOMPatchSupport.cpp:
1416         (WebCore::DOMPatchSupport::patchDocument):
1417         (WebCore::DOMPatchSupport::patchNode):
1418         (WebCore::DOMPatchSupport::diff):
1419         (WebCore::DOMPatchSupport::innerPatchChildren):
1420         * inspector/InspectorApplicationCacheAgent.cpp:
1421         (WebCore::InspectorApplicationCacheAgent::willDestroyFrontendAndBackend):
1422         (WebCore::InspectorApplicationCacheAgent::assertFrameWithDocumentLoader):
1423         * inspector/InspectorCanvasAgent.cpp:
1424         (WebCore::InspectorCanvasAgent::disable):
1425         (WebCore::InspectorCanvasAgent::notifyRenderingContextWasWrapped):
1426         (WebCore::InspectorCanvasAgent::frameNavigated):
1427         * inspector/InspectorConsoleAgent.cpp:
1428         (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
1429         (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
1430         (WebCore::InspectorConsoleAgent::clearMessages):
1431         (WebCore::InspectorConsoleAgent::didFinishXHRLoading):
1432         (WebCore::InspectorConsoleAgent::didReceiveResponse):
1433         (WebCore::InspectorConsoleAgent::didFailLoading):
1434         * inspector/InspectorConsoleAgent.h:
1435         * inspector/InspectorController.cpp:
1436         (WebCore::InspectorController::inspectedPageDestroyed):
1437         * inspector/InspectorDOMDebuggerAgent.cpp:
1438         (WebCore::InspectorDOMDebuggerAgent::disable):
1439         (WebCore::InspectorDOMDebuggerAgent::discardAgent):
1440         * inspector/InspectorDOMStorageAgent.cpp:
1441         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
1442         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
1443         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
1444         (WebCore::InspectorDOMStorageAgent::findStorageArea):
1445         * inspector/InspectorDatabaseAgent.cpp:
1446         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
1447         (WebCore::InspectorDatabaseAgent::findByFileName):
1448         (WebCore::InspectorDatabaseAgent::databaseForId):
1449         * inspector/InspectorDebuggerAgent.cpp:
1450         (WebCore::InspectorDebuggerAgent::addMessageToConsole):
1451         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
1452         (WebCore::InspectorDebuggerAgent::didParseSource):
1453         (WebCore::InspectorDebuggerAgent::didContinue):
1454         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
1455         * inspector/InspectorFrontendHost.cpp:
1456         (WebCore::FrontendMenuProvider::disconnect):
1457         (WebCore::InspectorFrontendHost::InspectorFrontendHost):
1458         (WebCore::InspectorFrontendHost::disconnectClient):
1459         * inspector/InspectorHeapProfilerAgent.cpp:
1460         (WebCore::InspectorHeapProfilerAgent::~InspectorHeapProfilerAgent):
1461         * inspector/InspectorIndexedDBAgent.cpp:
1462         (WebCore::assertDocument):
1463         (WebCore::assertIDBFactory):
1464         (WebCore::InspectorIndexedDBAgent::requestData):
1465         * inspector/InspectorInstrumentation.cpp:
1466         (WebCore::frameForScriptExecutionContext):
1467         (WebCore::InspectorInstrumentation::willDispatchEventOnWindowImpl):
1468         (WebCore::InspectorInstrumentation::didReceiveResourceResponseButCanceledImpl):
1469         (WebCore::InspectorInstrumentation::consoleAgentEnabled):
1470         (WebCore::InspectorInstrumentation::unregisterInstrumentingAgents):
1471         (WebCore::InspectorInstrumentation::retrieveTimelineAgent):
1472         (WebCore::InspectorInstrumentation::instrumentingAgentsForPage):
1473         (WebCore::InspectorInstrumentation::instrumentingAgentsForWorkerGlobalScope):
1474         (WebCore::InspectorInstrumentation::instrumentingAgentsForNonDocumentContext):
1475         * inspector/InspectorInstrumentation.h:
1476         (WebCore::InspectorInstrumentation::instrumentingAgentsForContext):
1477         (WebCore::InspectorInstrumentation::instrumentingAgentsForFrame):
1478         (WebCore::InspectorInstrumentation::instrumentingAgentsForDocument):
1479         * inspector/InspectorLayerTreeAgent.cpp:
1480         (WebCore::InspectorLayerTreeAgent::disable):
1481         * inspector/InspectorNodeFinder.cpp:
1482         (WebCore::InspectorNodeFinder::searchUsingXPath):
1483         * inspector/InspectorOverlay.cpp:
1484         (WebCore::buildObjectForElementInfo):
1485         * inspector/InspectorPageAgent.cpp:
1486         (WebCore::InspectorPageAgent::cachedResourceContent):
1487         (WebCore::InspectorPageAgent::sharedBufferContent):
1488         (WebCore::InspectorPageAgent::disable):
1489         (WebCore::InspectorPageAgent::frameForId):
1490         (WebCore::InspectorPageAgent::findFrameWithSecurityOrigin):
1491         * inspector/InspectorProfilerAgent.cpp:
1492         (WebCore::InspectorProfilerAgent::~InspectorProfilerAgent):
1493         * inspector/InspectorProfilerAgent.h:
1494         * inspector/InspectorResourceAgent.cpp:
1495         (WebCore::buildObjectForResourceResponse):
1496         (WebCore::InspectorResourceAgent::willSendRequest):
1497         (WebCore::InspectorResourceAgent::didReceiveResponse):
1498         (WebCore::InspectorResourceAgent::didFinishLoading):
1499         (WebCore::InspectorResourceAgent::didFailLoading):
1500         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
1501         (WebCore::InspectorResourceAgent::disable):
1502         * inspector/InspectorRuntimeAgent.cpp:
1503         (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
1504         * inspector/InspectorStyleSheet.cpp:
1505         (ParsedStyleSheet::ruleSourceDataAt):
1506         (WebCore::buildSourceRangeObject):
1507         (WebCore::asCSSRuleList):
1508         (WebCore::fillMediaListChain):
1509         (WebCore::InspectorStyle::setPropertyText):
1510         (WebCore::InspectorStyle::populateAllProperties):
1511         (WebCore::InspectorStyle::extractSourceData):
1512         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
1513         (WebCore::InspectorStyleSheet::addRule):
1514         (WebCore::InspectorStyleSheet::ruleForId):
1515         (WebCore::InspectorStyleSheet::buildObjectForStyleSheet):
1516         (WebCore::InspectorStyleSheet::buildObjectForStyleSheetInfo):
1517         (WebCore::InspectorStyleSheet::buildObjectForRule):
1518         (WebCore::InspectorStyleSheet::styleForId):
1519         (WebCore::InspectorStyleSheet::inspectorStyleForId):
1520         (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
1521         * inspector/InspectorStyleSheet.h:
1522         (WebCore::InspectorCSSId::asProtocolValue):
1523         * inspector/InspectorTimelineAgent.cpp:
1524         (WebCore::InspectorTimelineAgent::stop):
1525         (WebCore::InspectorTimelineAgent::willComposite):
1526         (WebCore::InspectorTimelineAgent::page):
1527         * inspector/InspectorWorkerAgent.cpp:
1528         (WebCore::InspectorWorkerAgent::~InspectorWorkerAgent):
1529         * inspector/InstrumentingAgents.cpp:
1530         (WebCore::InstrumentingAgents::InstrumentingAgents):
1531         (WebCore::InstrumentingAgents::reset):
1532         * inspector/NetworkResourcesData.cpp:
1533         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1534         (WebCore::NetworkResourcesData::xhrReplayData):
1535         (WebCore::NetworkResourcesData::removeCachedResource):
1536         (WebCore::NetworkResourcesData::resourceDataForRequestId):
1537         * inspector/PageConsoleAgent.cpp:
1538         (WebCore::PageConsoleAgent::~PageConsoleAgent):
1539         * inspector/PageDebuggerAgent.cpp:
1540         (WebCore::PageDebuggerAgent::disable):
1541         * inspector/PageRuntimeAgent.cpp:
1542         (WebCore::PageRuntimeAgent::~PageRuntimeAgent):
1543         (WebCore::PageRuntimeAgent::didCreateMainWorldContext):
1544         (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
1545         * inspector/ScriptArguments.cpp:
1546         (WebCore::ScriptArguments::globalState):
1547         * inspector/WorkerRuntimeAgent.cpp:
1548         (WebCore::WorkerRuntimeAgent::~WorkerRuntimeAgent):
1549
1550 2014-01-20  Anders Carlsson  <andersca@apple.com>
1551
1552         Add empty UserContentController class
1553         https://bugs.webkit.org/show_bug.cgi?id=127300
1554         <rdar://problem/15861296>
1555
1556         Reviewed by Dan Bernstein.
1557
1558         This is the first step towards moving handling of user scripts and style sheets from
1559         the page group to a separate objects and ultimately make them be settable per page instead of per page group.
1560
1561         * CMakeLists.txt:
1562         * GNUmakefile.list.am:
1563         * WebCore.vcxproj/WebCore.vcxproj:
1564         * WebCore.vcxproj/WebCore.vcxproj.filters:
1565         * WebCore.xcodeproj/project.pbxproj:
1566         * page/UserContentController.cpp: Added.
1567         (WebCore::UserContentController::create):
1568         (WebCore::UserContentController::UserContentController):
1569         (WebCore::UserContentController::~UserContentController):
1570         * page/UserContentController.h: Added.
1571
1572 2014-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1573
1574         Run clang-modernize and let it add a bunch of missing overrides in WebCore/inspector
1575         https://bugs.webkit.org/show_bug.cgi?id=127206
1576
1577         Reviewed by Anders Carlsson.
1578
1579         Let clang-modernize add overrides.
1580
1581         * inspector/DOMEditor.cpp:
1582         * inspector/InspectorApplicationCacheAgent.h:
1583         * inspector/InspectorCSSAgent.h:
1584         * inspector/InspectorCanvasAgent.h:
1585         * inspector/InspectorConsoleAgent.h:
1586         * inspector/InspectorDOMAgent.h:
1587         * inspector/InspectorDOMDebuggerAgent.h:
1588         * inspector/InspectorDOMStorageAgent.h:
1589         * inspector/InspectorDatabaseAgent.cpp:
1590         * inspector/InspectorDatabaseAgent.h:
1591         * inspector/InspectorDebuggerAgent.h:
1592         * inspector/InspectorFrontendHost.cpp:
1593         * inspector/InspectorHeapProfilerAgent.cpp:
1594         (WebCore::InspectorHeapProfilerAgent::getHeapSnapshot):
1595         (WebCore::InspectorHeapProfilerAgent::takeHeapSnapshot):
1596         * inspector/InspectorHeapProfilerAgent.h:
1597         * inspector/InspectorHistory.cpp:
1598         * inspector/InspectorIndexedDBAgent.cpp:
1599         * inspector/InspectorIndexedDBAgent.h:
1600         * inspector/InspectorInputAgent.h:
1601         * inspector/InspectorLayerTreeAgent.h:
1602         * inspector/InspectorMemoryAgent.h:
1603         * inspector/InspectorPageAgent.h:
1604         * inspector/InspectorProfilerAgent.cpp:
1605         * inspector/InspectorProfilerAgent.h:
1606         * inspector/InspectorResourceAgent.h:
1607         * inspector/InspectorRuntimeAgent.h:
1608         * inspector/InspectorStyleSheet.h:
1609         * inspector/InspectorTimelineAgent.h:
1610         * inspector/InspectorWorkerAgent.cpp:
1611         * inspector/InspectorWorkerAgent.h:
1612         * inspector/PageConsoleAgent.h:
1613         * inspector/PageDebuggerAgent.h:
1614         * inspector/PageRuntimeAgent.h:
1615         * inspector/WorkerConsoleAgent.h:
1616         * inspector/WorkerDebuggerAgent.cpp:
1617         * inspector/WorkerInspectorController.cpp:
1618         * inspector/WorkerRuntimeAgent.h:
1619
1620 2014-01-20  Zan Dobersek  <zdobersek@igalia.com>
1621
1622         Move WebAudio source code to std::unique_ptr
1623         https://bugs.webkit.org/show_bug.cgi?id=127274
1624
1625         Reviewed by Eric Carlson.
1626
1627         Move from using OwnPtr and PassOwnPtr to using std::unique_ptr and move semantics
1628         in the WebAudio module and the WebAudio code in the platform layer.
1629
1630         * Modules/webaudio/AsyncAudioDecoder.cpp:
1631         * Modules/webaudio/AsyncAudioDecoder.h:
1632         * Modules/webaudio/AudioBasicInspectorNode.cpp:
1633         (WebCore::AudioBasicInspectorNode::AudioBasicInspectorNode):
1634         * Modules/webaudio/AudioBasicProcessorNode.cpp:
1635         (WebCore::AudioBasicProcessorNode::AudioBasicProcessorNode):
1636         * Modules/webaudio/AudioBasicProcessorNode.h:
1637         * Modules/webaudio/AudioBufferSourceNode.cpp:
1638         (WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
1639         * Modules/webaudio/AudioContext.cpp:
1640         * Modules/webaudio/AudioContext.h:
1641         * Modules/webaudio/AudioDestinationNode.cpp:
1642         (WebCore::AudioDestinationNode::AudioDestinationNode):
1643         * Modules/webaudio/AudioNode.cpp:
1644         (WebCore::AudioNode::addInput):
1645         (WebCore::AudioNode::addOutput):
1646         (WebCore::AudioNode::checkNumberOfChannelsForInput):
1647         * Modules/webaudio/AudioNode.h:
1648         * Modules/webaudio/BiquadFilterNode.cpp:
1649         (WebCore::BiquadFilterNode::BiquadFilterNode):
1650         * Modules/webaudio/BiquadProcessor.cpp:
1651         (WebCore::BiquadProcessor::createKernel):
1652         (WebCore::BiquadProcessor::getFrequencyResponse):
1653         * Modules/webaudio/BiquadProcessor.h:
1654         * Modules/webaudio/ChannelMergerNode.cpp:
1655         (WebCore::ChannelMergerNode::ChannelMergerNode):
1656         * Modules/webaudio/ChannelSplitterNode.cpp:
1657         (WebCore::ChannelSplitterNode::ChannelSplitterNode):
1658         * Modules/webaudio/ConvolverNode.cpp:
1659         (WebCore::ConvolverNode::ConvolverNode):
1660         (WebCore::ConvolverNode::uninitialize):
1661         (WebCore::ConvolverNode::setBuffer):
1662         * Modules/webaudio/ConvolverNode.h:
1663         * Modules/webaudio/DefaultAudioDestinationNode.h:
1664         * Modules/webaudio/DelayNode.cpp:
1665         (WebCore::DelayNode::DelayNode):
1666         * Modules/webaudio/DelayProcessor.cpp:
1667         (WebCore::DelayProcessor::createKernel):
1668         * Modules/webaudio/DelayProcessor.h:
1669         * Modules/webaudio/DynamicsCompressorNode.cpp:
1670         (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
1671         (WebCore::DynamicsCompressorNode::initialize):
1672         (WebCore::DynamicsCompressorNode::uninitialize):
1673         * Modules/webaudio/DynamicsCompressorNode.h:
1674         * Modules/webaudio/GainNode.cpp:
1675         (WebCore::GainNode::GainNode):
1676         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
1677         (WebCore::MediaElementAudioSourceNode::MediaElementAudioSourceNode):
1678         (WebCore::MediaElementAudioSourceNode::setFormat):
1679         * Modules/webaudio/MediaElementAudioSourceNode.h:
1680         * Modules/webaudio/MediaStreamAudioDestinationNode.h:
1681         * Modules/webaudio/MediaStreamAudioSource.cpp:
1682         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
1683         (WebCore::MediaStreamAudioSourceNode::MediaStreamAudioSourceNode):
1684         * Modules/webaudio/MediaStreamAudioSourceNode.h:
1685         * Modules/webaudio/OscillatorNode.cpp:
1686         (WebCore::OscillatorNode::OscillatorNode):
1687         * Modules/webaudio/PannerNode.cpp:
1688         (WebCore::PannerNode::PannerNode):
1689         (WebCore::PannerNode::uninitialize):
1690         (WebCore::PannerNode::setPanningModel):
1691         * Modules/webaudio/PannerNode.h:
1692         * Modules/webaudio/PeriodicWave.cpp:
1693         (WebCore::PeriodicWave::createBandLimitedTables):
1694         * Modules/webaudio/PeriodicWave.h:
1695         * Modules/webaudio/RealtimeAnalyser.cpp:
1696         (WebCore::RealtimeAnalyser::RealtimeAnalyser):
1697         (WebCore::RealtimeAnalyser::setFftSize):
1698         * Modules/webaudio/RealtimeAnalyser.h:
1699         * Modules/webaudio/ScriptProcessorNode.cpp:
1700         (WebCore::ScriptProcessorNode::ScriptProcessorNode):
1701         * Modules/webaudio/WaveShaperDSPKernel.cpp:
1702         (WebCore::WaveShaperDSPKernel::lazyInitializeOversampling):
1703         * Modules/webaudio/WaveShaperDSPKernel.h:
1704         * Modules/webaudio/WaveShaperNode.cpp:
1705         (WebCore::WaveShaperNode::WaveShaperNode):
1706         * Modules/webaudio/WaveShaperProcessor.cpp:
1707         (WebCore::WaveShaperProcessor::createKernel):
1708         * Modules/webaudio/WaveShaperProcessor.h:
1709         * platform/audio/AudioBus.cpp:
1710         (WebCore::AudioBus::AudioBus):
1711         (WebCore::AudioBus::copyWithGainFrom):
1712         * platform/audio/AudioBus.h:
1713         * platform/audio/AudioChannel.cpp:
1714         * platform/audio/AudioChannel.h:
1715         (WebCore::AudioChannel::AudioChannel):
1716         (WebCore::AudioChannel::set):
1717         * platform/audio/AudioDSPKernelProcessor.h:
1718         * platform/audio/AudioDestination.h:
1719         * platform/audio/AudioResampler.cpp:
1720         (WebCore::AudioResampler::AudioResampler):
1721         (WebCore::AudioResampler::configureChannels):
1722         * platform/audio/AudioResampler.h:
1723         * platform/audio/AudioSession.h:
1724         * platform/audio/DynamicsCompressor.cpp:
1725         (WebCore::DynamicsCompressor::setNumberOfChannels):
1726         * platform/audio/DynamicsCompressor.h:
1727         * platform/audio/DynamicsCompressorKernel.cpp:
1728         (WebCore::DynamicsCompressorKernel::setNumberOfChannels):
1729         * platform/audio/DynamicsCompressorKernel.h:
1730         * platform/audio/FFTFrame.cpp:
1731         (WebCore::FFTFrame::createInterpolatedFrame):
1732         * platform/audio/FFTFrame.h:
1733         * platform/audio/HRTFDatabase.cpp:
1734         (WebCore::HRTFDatabase::HRTFDatabase):
1735         * platform/audio/HRTFDatabase.h:
1736         * platform/audio/HRTFDatabaseLoader.cpp:
1737         (WebCore::HRTFDatabaseLoader::~HRTFDatabaseLoader):
1738         (WebCore::HRTFDatabaseLoader::load):
1739         * platform/audio/HRTFDatabaseLoader.h:
1740         * platform/audio/HRTFElevation.cpp:
1741         (WebCore::HRTFElevation::createForSubject):
1742         (WebCore::HRTFElevation::createByInterpolatingSlices):
1743         * platform/audio/HRTFElevation.h:
1744         (WebCore::HRTFElevation::HRTFElevation):
1745         * platform/audio/HRTFKernel.cpp:
1746         (WebCore::HRTFKernel::HRTFKernel):
1747         (WebCore::HRTFKernel::createImpulseResponse):
1748         (WebCore::HRTFKernel::createInterpolatedKernel):
1749         * platform/audio/HRTFKernel.h:
1750         (WebCore::HRTFKernel::create):
1751         (WebCore::HRTFKernel::HRTFKernel):
1752         * platform/audio/MultiChannelResampler.cpp:
1753         (WebCore::MultiChannelResampler::MultiChannelResampler):
1754         * platform/audio/MultiChannelResampler.h:
1755         * platform/audio/Panner.cpp:
1756         (WebCore::Panner::create):
1757         * platform/audio/Panner.h:
1758         * platform/audio/Reverb.cpp:
1759         (WebCore::Reverb::initialize):
1760         * platform/audio/Reverb.h:
1761         * platform/audio/ReverbConvolver.h:
1762         * platform/audio/ReverbConvolverStage.cpp:
1763         (WebCore::ReverbConvolverStage::ReverbConvolverStage):
1764         * platform/audio/ReverbConvolverStage.h:
1765         * platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
1766         (WebCore::AudioDestination::create):
1767         * platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:
1768         * platform/audio/ios/AudioDestinationIOS.cpp:
1769         (WebCore::AudioDestination::create):
1770         * platform/audio/ios/AudioSessionIOS.mm:
1771         (WebCore::AudioSession::AudioSession):
1772         * platform/audio/mac/AudioDestinationMac.cpp:
1773         (WebCore::AudioDestination::create):
1774         * platform/audio/mac/AudioDestinationMac.h:
1775         * platform/audio/mac/AudioSessionMac.cpp:
1776         (WebCore::AudioSession::AudioSession):
1777
1778 2014-01-20  Morten Stenshorne  <mstensho@opera.com>
1779
1780         Region based multicol: support explicit column breaks
1781         https://bugs.webkit.org/show_bug.cgi?id=123993
1782
1783         Reviewed by David Hyatt.
1784
1785         Merely supporting insertion of explicit (forced) column breaks in
1786         the region based multicol implementation is really simple: just
1787         hook up with what the CSS regions code is already doing.
1788
1789         However, there is one complication: column balancing. In order to
1790         balance columns as nicely as possible when there are explicit
1791         breaks, we need to figure out between which explicit breaks the
1792         implicit breaks will occur (if there's room for any at all).
1793
1794         Tests: fast/multicol/newmulticol/break-after.html
1795                fast/multicol/newmulticol/break-before.html
1796                fast/multicol/newmulticol/breaks-2-columns-3-no-balancing.html
1797                fast/multicol/newmulticol/breaks-2-columns-3.html
1798                fast/multicol/newmulticol/breaks-3-columns-3.html
1799                fast/multicol/newmulticol/fixed-height-fill-balance-2.html
1800
1801         * rendering/RenderBlockFlow.cpp:
1802         (WebCore::RenderBlockFlow::applyBeforeBreak):
1803         (WebCore::RenderBlockFlow::applyAfterBreak): Use the already
1804         existing region breaking code when inserting breaks in region
1805         based multicol.
1806         * rendering/RenderFlowThread.h:
1807         * rendering/RenderMultiColumnBlock.cpp:
1808         (WebCore::RenderMultiColumnBlock::RenderMultiColumnBlock):
1809         (WebCore::RenderMultiColumnBlock::relayoutForPagination): Avoid
1810         re-balancing if the multicol's contents were not laid out. Apart
1811         from being good for performance, this is now necessary because of
1812         how explicit breaks are implemented.
1813         (WebCore::RenderMultiColumnBlock::layoutSpecialExcludedChild):
1814         Detect if the contents are going to be laid out, or skipped, so
1815         that we can tell if we need to (re-)balance the columns
1816         afterwards.
1817         * rendering/RenderMultiColumnBlock.h:
1818         * rendering/RenderMultiColumnFlowThread.cpp:
1819         (WebCore::RenderMultiColumnFlowThread::addForcedRegionBreak):
1820         Locate the appropriate multi-column set and call its
1821         addForcedBreak().
1822         * rendering/RenderMultiColumnFlowThread.h:
1823         * rendering/RenderMultiColumnSet.cpp:
1824         (WebCore::RenderMultiColumnSet::RenderMultiColumnSet):
1825         (WebCore::RenderMultiColumnSet::findRunWithTallestColumns):
1826         (WebCore::RenderMultiColumnSet::distributeImplicitBreaks): Figure
1827         out how many implicit breaks each single "content run" should
1828         contain. The taller the content run, the more implicit breaks.
1829         (WebCore::RenderMultiColumnSet::calculateBalancedHeight): This is
1830         now a const method that only does half of what the old
1831         calculateBalancedHeight() did. The rest (such as actually storing
1832         the new column height) is done by recalculateBalancedHeight().
1833         (WebCore::RenderMultiColumnSet::clearForcedBreaks): Needs to be
1834         called between each layout pass, to clear the list of "content
1835         runs".
1836         (WebCore::RenderMultiColumnSet::addForcedBreak): Only useful when
1837         columns are to be balanced. It receives explicit (forced) breaks
1838         and stores them as "content runs". When layout is done, we'll go
1839         through the list of content runs, and see where implicit breaks
1840         should be inserted (if there's room for any). The goal is to
1841         insert implicit breaks in such a way that the final columns become
1842         as short as possible.
1843         (WebCore::RenderMultiColumnSet::recalculateBalancedHeight):
1844         Calculates and sets a new balanced column height. This used to be
1845         done directly in calculateBalancedHeight(), but that method is now
1846         const and it now only calculates the new height and returns it.
1847         (WebCore::RenderMultiColumnSet::prepareForLayout):
1848         * rendering/RenderMultiColumnSet.h: Remove old data members
1849         intended for forced breaks (they were unused), and introduce a
1850         "content run" vector instead. A new content run is triggered by an
1851         explicit break. This is only used when column balancing is
1852         enabled. When not balanced, RenderMultiColumnSet doesn't need to
1853         do anything when explicit breaks are inserted.
1854
1855 2014-01-20  Eric Carlson  <eric.carlson@apple.com>
1856
1857         Allow MediaSessionManager to restrict 'preload' behavior
1858         https://bugs.webkit.org/show_bug.cgi?id=127297
1859
1860         Reviewed by Jer Noble.
1861
1862         Tests: media/video-restricted-no-preload-auto.html
1863                media/video-restricted-no-preload-metadata.html
1864
1865         * html/HTMLMediaElement.cpp:
1866         (WebCore::HTMLMediaElement::parseAttribute): Apply restrictions to preload attribute before
1867             passing to media engine.
1868         (WebCore::HTMLMediaElement::loadResource): Ditto.
1869
1870         * html/HTMLMediaSession.cpp:
1871         (WebCore::HTMLMediaSession::effectivePreloadForElement): New, limit preload according to restrictions.
1872         * html/HTMLMediaSession.h:
1873
1874         * platform/audio/MediaSessionManager.h:
1875         * platform/audio/ios/MediaSessionManagerIOS.mm:
1876         (WebCore::MediaSessionManageriOS::resetRestrictions): Limit preload to metadata only. Drive-by
1877             static deviceClass initialization cleanup.
1878
1879         * testing/Internals.cpp:
1880         (WebCore::Internals::setMediaSessionRestrictions): Support MetadataPreloadingNotPermitted and
1881             AutoPreloadingNotPermitted.
1882
1883 2014-01-20  Andreas Kling  <akling@apple.com>
1884
1885         Let RenderImage construct its RenderImageResource.
1886         <https://webkit.org/b/127290>
1887
1888         Everyone who creates a RenderImage immediately follows up with
1889         creating a RenderImageResource and assigning it to the image.
1890
1891         Let the RenderImage constructor do this instead, and make the
1892         imageResource() accessors return references. This exposed a
1893         number of unnecessary null checks.
1894
1895         Also modernized the touched code with std::unique_ptr.
1896
1897         Reviewed by Antti Koivisto.
1898
1899         * html/HTMLImageElement.cpp:
1900         (WebCore::HTMLImageElement::createElementRenderer):
1901         (WebCore::HTMLImageElement::didAttachRenderers):
1902         * html/HTMLPlugInImageElement.cpp:
1903         (WebCore::HTMLPlugInImageElement::createElementRenderer):
1904         * html/HTMLVideoElement.cpp:
1905         (WebCore::HTMLVideoElement::didAttachRenderers):
1906         (WebCore::HTMLVideoElement::parseAttribute):
1907         * html/ImageInputType.cpp:
1908         (WebCore::ImageInputType::createInputRenderer):
1909         (WebCore::ImageInputType::attach):
1910         * loader/ImageLoader.cpp:
1911         (WebCore::ImageLoader::renderImageResource):
1912         * rendering/RenderElement.cpp:
1913         (WebCore::RenderElement::createFor):
1914         * rendering/RenderImage.cpp:
1915         (WebCore::RenderImage::RenderImage):
1916         (WebCore::RenderImage::~RenderImage):
1917         (WebCore::RenderImage::styleDidChange):
1918         (WebCore::RenderImage::imageChanged):
1919         (WebCore::RenderImage::updateIntrinsicSizeIfNeeded):
1920         (WebCore::RenderImage::updateInnerContentRect):
1921         (WebCore::RenderImage::imageDimensionsChanged):
1922         (WebCore::RenderImage::notifyFinished):
1923         (WebCore::RenderImage::paintReplaced):
1924         (WebCore::RenderImage::paintIntoRect):
1925         (WebCore::RenderImage::foregroundIsKnownToBeOpaqueInRect):
1926         (WebCore::RenderImage::minimumReplacedHeight):
1927         (WebCore::RenderImage::computeIntrinsicRatioInformation):
1928         (WebCore::RenderImage::embeddedContentBox):
1929         * rendering/RenderImage.h:
1930         (WebCore::RenderImage::imageResource):
1931         (WebCore::RenderImage::cachedImage):
1932         * rendering/RenderImageResource.h:
1933         * rendering/RenderImageResourceStyleImage.h:
1934         * rendering/RenderMedia.cpp:
1935         (WebCore::RenderMedia::RenderMedia):
1936         * rendering/RenderSnapshottedPlugIn.cpp:
1937         (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn):
1938         * rendering/RenderSnapshottedPlugIn.h:
1939         * rendering/RenderVideo.cpp:
1940         (WebCore::RenderVideo::calculateIntrinsicSize):
1941         * rendering/style/ContentData.cpp:
1942         (WebCore::ImageContentData::createContentRenderer):
1943         * rendering/svg/RenderSVGImage.cpp:
1944         (WebCore::RenderSVGImage::RenderSVGImage):
1945         (WebCore::RenderSVGImage::~RenderSVGImage):
1946         (WebCore::RenderSVGImage::updateImageViewport):
1947         (WebCore::RenderSVGImage::paint):
1948         (WebCore::RenderSVGImage::paintForeground):
1949         * rendering/svg/RenderSVGImage.h:
1950         * svg/SVGImageElement.cpp:
1951         (WebCore::SVGImageElement::didAttachRenderers):
1952
1953 2014-01-20  Antti Koivisto  <antti@apple.com>
1954
1955         Update overlay scrollbars in single pass
1956         https://bugs.webkit.org/show_bug.cgi?id=127289
1957
1958         Reviewed by Anders Carlsson.
1959
1960         * platform/ScrollView.cpp:
1961         (WebCore::ScrollView::updateScrollbars):
1962         
1963             Multi-pass scrollbar resolution is only needed for traditional scrollbars. Overlay scrollbars don't affect layout.
1964
1965 2014-01-20  Jochen Eisinger  <jochen@chromium.org>
1966
1967         Never send a non-http(s) referrer header even with a referrer policy
1968         https://bugs.webkit.org/show_bug.cgi?id=127172
1969
1970         Reviewed by Alexey Proskuryakov.
1971
1972         This mirrors the code SecurityPolicy::shouldHideReferrer which is used
1973         for ReferrerPolicyDefault.
1974
1975         No new tests, only affects an embedder that registers other schemes,
1976         e.g. chrome://
1977
1978         * page/SecurityPolicy.cpp:
1979         (WebCore::SecurityPolicy::generateReferrerHeader):
1980
1981 2014-01-20  Mihai Tica  <mitica@adobe.com>
1982
1983         [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
1984         when having -webkit-background-blending applied. Turns out the problem was
1985         the blending parameter not being passed to WebCore::CrossfadeGeneratedImage::draw
1986
1987         https://bugs.webkit.org/show_bug.cgi?id=126887
1988
1989         Reviewed by Dirk Schulze.
1990
1991         Test: css3/compositing/background-blend-mode-crossfade-image.html
1992
1993         * platform/graphics/CrossfadeGeneratedImage.cpp:
1994         (WebCore::CrossfadeGeneratedImage::draw): set blendMode on context.
1995
1996 2013-11-22  Sergio Villar Senin  <svillar@igalia.com>
1997
1998         Null-pointer dereference in WebCore::CSSValue::isPrimitiveValue
1999         https://bugs.webkit.org/show_bug.cgi?id=124769
2000
2001         Reviewed by Andreas Kling.
2002
2003         Test: fast/gradients/crash-on-no-position-separator.html
2004
2005         The function parseFillPosition() may not return valid values for
2006         centerX and centerY if the input data is malformed. We need to
2007         check that we get a valid pair of positions before checking that
2008         they're actually valid primitive values in the assertions.
2009
2010         * css/CSSParser.cpp:
2011         (WebCore::CSSParser::parseRadialGradient):
2012
2013 2014-01-20  Mihai Tica  <mitica@adobe.com>
2014
2015         Background-blend-mode doesn't work for an element with an
2016         SVG image as background and border-style or padding set.
2017         The problem consisted in the drawing path using the default
2018         blending parameter at all times.
2019         https://bugs.webkit.org/show_bug.cgi?id=118894
2020
2021         Reviewed by Dirk Schulze.
2022
2023         Test: css3/compositing/background-blend-mode-data-uri-svg-image.html
2024
2025         * svg/graphics/SVGImage.cpp:
2026         (WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
2027         * svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
2028         * svg/graphics/SVGImageForContainer.cpp:
2029         (WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.
2030
2031 2014-01-20  Zalan Bujtas  <zalan@apple.com>
2032
2033         Subpixel layout: setSimpleLineLayoutEnabled() produces different layout when line position has CSS px fractions.
2034         https://bugs.webkit.org/show_bug.cgi?id=126892
2035
2036         Reviewed by Antti Koivisto.
2037
2038         SimpleLineLayout needs to copy normal linebox layout's subpixel rounding strategy to produce
2039         the same layout.
2040
2041         Covered by existing tests.
2042
2043         * rendering/SimpleLineLayoutFunctions.cpp:
2044         (WebCore::SimpleLineLayout::paintFlow):
2045
2046 2014-01-20  Gurpreet Kaur  <k.gurpreet@samsung.com>
2047
2048         Col width is not honored when dynamically updated and it would make table narrower
2049         https://bugs.webkit.org/show_bug.cgi?id=104711
2050
2051         Reviewed by Antti Koivisto.
2052
2053         Increasing the table width by increasing the colgroup width
2054         was working but decreasing the table width by decreasing the
2055         colgroup width is not working.
2056
2057         Test: fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html
2058
2059         * rendering/RenderTableCol.cpp:
2060         (WebCore::RenderTableCol::styleDidChange):
2061         When colgroup width is defined table cell should adjust according to
2062         that. On decreasing colgroup width the cells maxPreferredLogicalWidth
2063         was still set to the earlier value. Setting the
2064         setPreferredLogicalWidthsDirty to true so that cells pref width is
2065         calculated again.
2066
2067 2014-01-20  Edit Balint  <edbalint@inf.u-szeged.hu>
2068
2069         [CoordinatedGraphics] Segmentation fault at  CoordinatedGraphicsScene::clearImageBackingContents
2070
2071         https://bugs.webkit.org/show_bug.cgi?id=125776
2072
2073         Reviewed by Csaba Osztrogonác.
2074
2075         Unexpected behavior occurs in some test cases which leads to segmentation fault.
2076
2077         * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
2078         (WebCore::CompositingCoordinator::removeImageBacking):
2079
2080 2014-01-20  Morten Stenshorne  <mstensho@opera.com>
2081
2082         Region based multicol: tall line causes taller multicol container than necessary
2083         https://bugs.webkit.org/show_bug.cgi?id=122550
2084
2085         Detect and report all column breaks, also when there's no pagination strut involved.
2086
2087         This may end up becoming the overall smallest space shortage in some cases,
2088         so we need to report it, to avoid column height over-stretching.
2089
2090         Reviewed by David Hyatt.
2091
2092         Test: fast/multicol/newmulticol/balance10.html
2093
2094         * rendering/RenderBlockFlow.cpp:
2095         (WebCore::RenderBlockFlow::adjustLinePositionForPagination):
2096
2097 2014-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2098
2099         [GLIB] GVariant floating references are not correctly handled by GRefPtr
2100         https://bugs.webkit.org/show_bug.cgi?id=127246
2101
2102         Reviewed by Martin Robinson.
2103
2104         Do not adopt GVariant floating references, they will be converted
2105         to a full reference by GRefPtr.
2106
2107         * platform/gtk/PasteboardHelper.cpp:
2108         (WebCore::PasteboardHelper::fillSelectionData):
2109         (WebCore::PasteboardHelper::fillDataObjectFromDropData):
2110
2111 2014-01-19  Jinwoo Song  <jinwoo7.song@samsung.com>
2112
2113         Use unsigned type for the size of CSSParserValueList
2114         https://bugs.webkit.org/show_bug.cgi?id=127211
2115
2116         Reviewed by Andreas Kling.
2117
2118         * css/CSSParser.cpp: Changed variable type from int to unsigned.
2119         (WebCore::CSSParser::parseValue):
2120
2121 2014-01-19  Jaehun Lim  <ljaehun.lim@samsung.com>
2122
2123         Unreviewed build fix after r162293
2124
2125         Fix debug build.
2126
2127         [ 13%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/html/parser/HTMLTreeBuilder.cpp.o
2128         /source/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp: In member function ‘void WebCore::HTMLTreeBuilder::processStartTagForInTable(WebCore::AtomicHTMLToken*)’:
2129         /source/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1037:40: error: no match for ‘operator!’ in ‘!(WebCore::HTMLTreeBuilder::InsertionMode)12’
2130         /source/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1037:40: note: candidate is:
2131         /source/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1037:40: note: operator!(bool) <built-in>
2132         /source/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1037:40: note:   no known conversion for argument 1 from ‘WebCore::HTMLTreeBuilder::InsertionMode’ to ‘bool’
2133         make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/html/parser/HTMLTreeBuilder.cpp.o] Error 1
2134         make[1]: *** [Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
2135         make: *** [all] Error 2
2136
2137         * html/parser/HTMLTreeBuilder.cpp:
2138         (WebCore::HTMLTreeBuilder::processStartTagForInTable): Fix ASSERT.
2139
2140 2014-01-19  Anders Carlsson  <andersca@apple.com>
2141
2142         Stop using MutexTryLocker in WebCore
2143         https://bugs.webkit.org/show_bug.cgi?id=127254
2144
2145         Reviewed by Andreas Kling.
2146
2147         Instead use std::mutex and std::unique_lock with the std::try_to_lock constructor.
2148
2149         * Modules/webaudio/AudioBufferSourceNode.cpp:
2150         (WebCore::AudioBufferSourceNode::process):
2151         (WebCore::AudioBufferSourceNode::setBuffer):
2152         * Modules/webaudio/AudioBufferSourceNode.h:
2153         * Modules/webaudio/AudioParamTimeline.cpp:
2154         (WebCore::AudioParamTimeline::insertEvent):
2155         (WebCore::AudioParamTimeline::cancelScheduledValues):
2156         (WebCore::AudioParamTimeline::valueForContextTime):
2157         (WebCore::AudioParamTimeline::valuesForTimeRange):
2158         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
2159         * Modules/webaudio/AudioParamTimeline.h:
2160         * Modules/webaudio/ConvolverNode.cpp:
2161         (WebCore::ConvolverNode::process):
2162         (WebCore::ConvolverNode::reset):
2163         (WebCore::ConvolverNode::setBuffer):
2164         * Modules/webaudio/ConvolverNode.h:
2165         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
2166         (WebCore::MediaElementAudioSourceNode::setFormat):
2167         (WebCore::MediaElementAudioSourceNode::process):
2168         (WebCore::MediaElementAudioSourceNode::lock):
2169         (WebCore::MediaElementAudioSourceNode::unlock):
2170         * Modules/webaudio/MediaElementAudioSourceNode.h:
2171         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
2172         (WebCore::MediaStreamAudioSourceNode::setFormat):
2173         (WebCore::MediaStreamAudioSourceNode::process):
2174         * Modules/webaudio/MediaStreamAudioSourceNode.h:
2175         * Modules/webaudio/OscillatorNode.cpp:
2176         (WebCore::OscillatorNode::process):
2177         (WebCore::OscillatorNode::setPeriodicWave):
2178         * Modules/webaudio/OscillatorNode.h:
2179         * Modules/webaudio/PannerNode.cpp:
2180         (WebCore::PannerNode::process):
2181         (WebCore::PannerNode::setPanningModel):
2182         * Modules/webaudio/PannerNode.h:
2183         * Modules/webaudio/WaveShaperProcessor.cpp:
2184         (WebCore::WaveShaperProcessor::setCurve):
2185         (WebCore::WaveShaperProcessor::setOversample):
2186         (WebCore::WaveShaperProcessor::process):
2187         * Modules/webaudio/WaveShaperProcessor.h:
2188
2189 2014-01-19  Alberto Garcia  <berto@igalia.com>
2190
2191         Does not build with SVG disabled
2192         https://bugs.webkit.org/show_bug.cgi?id=127248
2193
2194         Reviewed by Sam Weinig.
2195
2196         Add missing #if ENABLE(SVG) guard.
2197
2198         * dom/ElementData.h:
2199
2200 2014-01-19  Anders Carlsson  <andersca@apple.com>
2201
2202         Use a strong enum for HTMLTreeBuilder::InsertionMode
2203         https://bugs.webkit.org/show_bug.cgi?id=127252
2204
2205         Reviewed by Antti Koivisto.
2206
2207         * html/parser/HTMLTreeBuilder.cpp:
2208         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
2209         (WebCore::HTMLTreeBuilder::constructTree):
2210         (WebCore::HTMLTreeBuilder::processDoctypeToken):
2211         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
2212         (WebCore::HTMLTreeBuilder::processTemplateStartTag):
2213         (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup):
2214         (WebCore::HTMLTreeBuilder::closeTheCell):
2215         (WebCore::HTMLTreeBuilder::processStartTagForInTable):
2216         (WebCore::HTMLTreeBuilder::processStartTag):
2217         (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody):
2218         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
2219         (WebCore::HTMLTreeBuilder::processEndTagForInTableBody):
2220         (WebCore::HTMLTreeBuilder::processEndTagForInRow):
2221         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
2222         (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption):
2223         (WebCore::HTMLTreeBuilder::processTrEndTagForInRow):
2224         (WebCore::HTMLTreeBuilder::processEndTag):
2225         (WebCore::HTMLTreeBuilder::processComment):
2226         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
2227         (WebCore::HTMLTreeBuilder::processEndOfFile):
2228         (WebCore::HTMLTreeBuilder::defaultForInitial):
2229         (WebCore::HTMLTreeBuilder::defaultForBeforeHTML):
2230         (WebCore::HTMLTreeBuilder::processStartTagForInHead):
2231         (WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag):
2232         (WebCore::HTMLTreeBuilder::processGenericRawTextStartTag):
2233         (WebCore::HTMLTreeBuilder::processScriptStartTag):
2234         * html/parser/HTMLTreeBuilder.h:
2235
2236 2014-01-19  Anders Carlsson  <andersca@apple.com>
2237
2238         Convert LoaderRunLoopCF.cpp and WebCoreThreadRun.cpp over to modern threading primitives
2239         https://bugs.webkit.org/show_bug.cgi?id=127251
2240
2241         Reviewed by Antti Koivisto.
2242
2243         Also add a condition to the loaderRunLoop() function to protect against spurious wake-ups.
2244
2245         * platform/ios/wak/WebCoreThreadRun.cpp:
2246         * platform/network/cf/LoaderRunLoopCF.cpp:
2247         (WebCore::loaderRunLoopMutex):
2248         (WebCore::loaderRunLoopConditionVariable):
2249         (WebCore::runLoaderThread):
2250         (WebCore::loaderRunLoop):
2251
2252 2014-01-19  Anders Carlsson  <andersca@apple.com>
2253
2254         Modernize ReverbConvolver
2255         https://bugs.webkit.org/show_bug.cgi?id=127250
2256
2257         Reviewed by Andreas Kling.
2258
2259         Use std::unique_ptr instead of OwnPtr and the STL threading primitives instead of the WTF ones.
2260
2261         * platform/audio/ReverbConvolver.cpp:
2262         (WebCore::ReverbConvolver::ReverbConvolver):
2263         (WebCore::ReverbConvolver::~ReverbConvolver):
2264         (WebCore::ReverbConvolver::backgroundThreadEntry):
2265         (WebCore::ReverbConvolver::process):
2266         * platform/audio/ReverbConvolver.h:
2267
2268 2014-01-18  Andy Estes  <aestes@apple.com>
2269
2270         [iOS] Rename GestureEventIOS.{cpp,h} to GestureEvent.{cpp,h} to fix the build
2271
2272         InFilesCompiler.pm assumes that <interface name>.h exists for each
2273         interface it processes. We renamed GestureEvent.h to GestureEventIOS.h
2274         but kept the interface named GestureEvent, so a non-existant file was
2275         being referenced by InFilesCompiler.pm (this was hard to detect since
2276         GestureEvent.h still existed in the SDK due to not having submitted
2277         WebKitAdditions recently).
2278
2279         Since we cannot rename the GestureEvent interface, and since there is
2280         no conflicting GestureEvent in open source, we can just rename
2281         GestureEventIOS.{cpp,h} back to GestureEvent.{cpp,h}.
2282
2283         * dom/ios/TouchEvents.cpp: Updated to include GestureEvent.cpp.
2284
2285 2014-01-18  Alexey Proskuryakov  <ap@apple.com>
2286
2287         Memory leak in JSSubtleCrypto::wrapKey
2288         https://bugs.webkit.org/show_bug.cgi?id=127241
2289
2290         Reviewed by Sam Weinig.
2291
2292         * bindings/js/JSSubtleCryptoCustom.cpp: (WebCore::JSSubtleCrypto::wrapKey):
2293         Delete algorithmPtr and parametersPtr that aren't smart pointers because of lambdas.
2294
2295 2014-01-18  Andy Estes  <aestes@apple.com>
2296
2297         Fix the iOS Production build.
2298
2299         * Configurations/WebCore.xcconfig:
2300
2301 2014-01-18  Alberto Garcia  <berto@igalia.com>
2302
2303         [CodeGeneratorJS] Sort output of StructureFlags and function parameters
2304
2305         https://bugs.webkit.org/show_bug.cgi?id=127226
2306
2307         Reviewed by Alexey Proskuryakov.
2308
2309         The order of the keys in a hash is undefined and subject to change
2310         between different Perl versions, so we have to sort them to make
2311         sure that the output is always the same.
2312
2313         * bindings/scripts/CodeGeneratorJS.pm:
2314         (GenerateHeader):
2315         (GenerateParametersCheckExpression):
2316         * bindings/scripts/test/JS/JSTestActiveDOMObject.h:
2317         * bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
2318         * bindings/scripts/test/JS/JSTestEventConstructor.h:
2319         * bindings/scripts/test/JS/JSTestEventTarget.h:
2320         * bindings/scripts/test/JS/JSTestException.h:
2321         * bindings/scripts/test/JS/JSTestGenerateIsReachable.h:
2322         * bindings/scripts/test/JS/JSTestInterface.h:
2323         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
2324         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
2325         * bindings/scripts/test/JS/JSTestNode.h:
2326         * bindings/scripts/test/JS/JSTestObj.cpp:
2327         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
2328         * bindings/scripts/test/JS/JSTestObj.h:
2329         * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
2330         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
2331         * bindings/scripts/test/JS/JSTestTypedefs.h:
2332         * bindings/scripts/test/JS/JSattribute.h:
2333         * bindings/scripts/test/JS/JSreadonly.h:
2334
2335 2014-01-18  Anders Carlsson  <andersca@apple.com>
2336
2337         Replace a couple of uses of WTF::Function with std::function
2338         https://bugs.webkit.org/show_bug.cgi?id=127218
2339
2340         Reviewed by Andreas Kling.
2341
2342         * WebCore.exp.in:
2343         * page/scrolling/ScrollingThread.cpp:
2344         (WebCore::ScrollingThread::dispatch):
2345         (WebCore::ScrollingThread::dispatchBarrier):
2346         (WebCore::ScrollingThread::shared):
2347         (WebCore::ScrollingThread::createThreadIfNeeded):
2348         (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread):
2349         * page/scrolling/ScrollingThread.h:
2350         * page/scrolling/mac/ScrollingThreadMac.mm:
2351         (WebCore::ScrollingThread::initializeRunLoop):
2352
2353 2014-01-18  Anders Carlsson  <andersca@apple.com>
2354
2355         Modernize HTML parser code
2356         https://bugs.webkit.org/show_bug.cgi?id=127236
2357
2358         Reviewed by Andreas Kling.
2359
2360         * html/parser/AtomicHTMLToken.h:
2361         * html/parser/CSSPreloadScanner.cpp:
2362         (WebCore::CSSPreloadScanner::emitRule):
2363         * html/parser/HTMLDocumentParser.cpp:
2364         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
2365         (WebCore::HTMLDocumentParser::detach):
2366         (WebCore::HTMLDocumentParser::stopParsing):
2367         (WebCore::HTMLDocumentParser::pumpTokenizer):
2368         (WebCore::HTMLDocumentParser::insert):
2369         (WebCore::HTMLDocumentParser::append):
2370         (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
2371         * html/parser/HTMLDocumentParser.h:
2372         * html/parser/HTMLElementStack.cpp:
2373         (WebCore::HTMLElementStack::ElementRecord::ElementRecord):
2374         (WebCore::HTMLElementStack::insertAbove):
2375         (WebCore::HTMLElementStack::pushCommon):
2376         * html/parser/HTMLElementStack.h:
2377         (WebCore::HTMLElementStack::ElementRecord::releaseNext):
2378         (WebCore::HTMLElementStack::ElementRecord::setNext):
2379         * html/parser/HTMLMetaCharsetParser.cpp:
2380         (WebCore::HTMLMetaCharsetParser::HTMLMetaCharsetParser):
2381         * html/parser/HTMLMetaCharsetParser.h:
2382         * html/parser/HTMLParserScheduler.h:
2383         * html/parser/HTMLPreloadScanner.cpp:
2384         (WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
2385         (WebCore::TokenPreloadScanner::scan):
2386         (WebCore::HTMLPreloadScanner::HTMLPreloadScanner):
2387         * html/parser/HTMLPreloadScanner.h:
2388         * html/parser/HTMLResourcePreloader.cpp:
2389         (WebCore::HTMLResourcePreloader::takeAndPreload):
2390         (WebCore::HTMLResourcePreloader::preload):
2391         * html/parser/HTMLResourcePreloader.h:
2392         (WebCore::PreloadRequest::PreloadRequest):
2393         * html/parser/HTMLScriptRunner.h:
2394         * html/parser/HTMLToken.h:
2395         (WebCore::HTMLToken::beginDOCTYPE):
2396         (WebCore::HTMLToken::releaseDoctypeData):
2397         * html/parser/HTMLTokenizer.h:
2398         * html/parser/HTMLTreeBuilder.h:
2399         * html/parser/HTMLViewSourceParser.cpp:
2400         (WebCore::HTMLViewSourceParser::HTMLViewSourceParser):
2401         * html/parser/HTMLViewSourceParser.h:
2402         * html/parser/XSSAuditor.cpp:
2403         (WebCore::XSSAuditor::init):
2404         (WebCore::XSSAuditor::filterToken):
2405         * html/parser/XSSAuditor.h:
2406         * html/parser/XSSAuditorDelegate.h:
2407         (WebCore::XSSInfo::XSSInfo):
2408         * loader/TextResourceDecoder.cpp:
2409         (WebCore::TextResourceDecoder::checkForHeadCharset):
2410         (WebCore::TextResourceDecoder::checkForMetaCharset):
2411         * loader/TextResourceDecoder.h:
2412
2413 2014-01-18  Benjamin Poulain  <benjamin@webkit.org>
2414
2415         Make ElementData JIT friendly
2416         https://bugs.webkit.org/show_bug.cgi?id=127209
2417
2418         Reviewed by Geoffrey Garen.
2419
2420         The offsets of ElementData's flags were not accessible by the JIT. This patch
2421         refactor ElementData to use explicit flags so that they can be used from
2422         the code generators.
2423
2424         * dom/Element.cpp:
2425         (WebCore::Element::synchronizeAllAttributes):
2426         (WebCore::Element::synchronizeAttribute):
2427         (WebCore::Element::attributeChanged):
2428         (WebCore::Element::removeAttribute):
2429         * dom/ElementData.cpp:
2430         (WebCore::ElementData::destroy):
2431         (WebCore::ElementData::ElementData):
2432         (WebCore::ShareableElementData::ShareableElementData):
2433         (WebCore::ShareableElementData::~ShareableElementData):
2434         (WebCore::ElementData::arraySizeAndFlagsFromOther):
2435         * dom/ElementData.h:
2436         (WebCore::ElementData::hasName):
2437         (WebCore::ElementData::isUnique):
2438         (WebCore::ElementData::updateFlag):
2439         (WebCore::ElementData::arraySize):
2440         (WebCore::ElementData::setHasNameAttribute):
2441         (WebCore::ElementData::styleAttributeIsDirty):
2442         (WebCore::ElementData::setStyleAttributeIsDirty):
2443         (WebCore::ElementData::presentationAttributeStyleIsDirty):
2444         (WebCore::ElementData::setPresentationAttributeStyleIsDirty):
2445         (WebCore::ElementData::animatedSVGAttributesAreDirty):
2446         (WebCore::ElementData::setAnimatedSVGAttributesAreDirty):
2447         (WebCore::ElementData::length):
2448         (WebCore::ElementData::attributeBase):
2449         (WebCore::ElementData::presentationAttributeStyle):
2450         * dom/StyledElement.cpp:
2451         (WebCore::StyledElement::synchronizeStyleAttributeInternal):
2452         (WebCore::StyledElement::attributeChanged):
2453         (WebCore::StyledElement::styleAttributeChanged):
2454         (WebCore::StyledElement::inlineStyleChanged):
2455         (WebCore::StyledElement::rebuildPresentationAttributeStyle):
2456         * dom/StyledElement.h:
2457         (WebCore::StyledElement::invalidateStyleAttribute):
2458         (WebCore::StyledElement::presentationAttributeStyle):
2459         * svg/SVGElement.cpp:
2460         (WebCore::SVGElement::synchronizeAnimatedSVGAttribute):
2461         * svg/SVGElement.h:
2462         (WebCore::SVGElement::invalidateSVGAttributes):
2463
2464 2014-01-18  Zalan Bujtas  <zalan@apple.com>
2465
2466         Subpixel layout: IntRect::infiniteRect() overflows when subpixel layout is enabled.
2467         https://bugs.webkit.org/show_bug.cgi?id=126899
2468
2469         Reviewed by Tim Horton.
2470
2471         Use LayoutUnits when setting the infinite values on IntRect::infiniteRect() to ensure
2472         it won't overflow later when the IntRect gets converted to LayoutRect.
2473
2474         Covered by existing tests.
2475
2476         * platform/graphics/IntRect.h:
2477         (WebCore::IntRect::infiniteRect):
2478
2479 2014-01-18  Anders Carlsson  <andersca@apple.com>
2480
2481         Remove support for the viewsource attribute
2482         https://bugs.webkit.org/show_bug.cgi?id=127232
2483
2484         Reviewed by Andreas Kling.
2485
2486         The 'viewsource' attribute on frames is nonstandard, not used by anyone (the inspector has
2487         its own syntax highlighting) and not audited.
2488
2489         This patch removes parsing of the viewsource attribute and the associated tests. A subsequent
2490         patch will remove the code as well.
2491
2492         * html/HTMLFrameElementBase.cpp:
2493         (WebCore::HTMLFrameElementBase::parseAttribute):
2494
2495 2014-01-18  Anders Carlsson  <andersca@apple.com>
2496
2497         XMLTreeViewer shouldn't use the view source mode
2498         https://bugs.webkit.org/show_bug.cgi?id=127229
2499
2500         Reviewed by Andreas Kling.
2501
2502         Add the relevant styles from view-source.css to XMLViewer.css.
2503
2504         * xml/XMLTreeViewer.cpp:
2505         (WebCore::XMLTreeViewer::transformDocumentToTreeView):
2506         * xml/XMLViewer.css:
2507         (body):
2508         (.comment):
2509         (.tag):
2510         (.attribute-name):
2511         (.attribute-value):
2512         * xml/XMLViewer.js:
2513         (createComment):
2514         (createTag):
2515         (createAttribute):
2516
2517 2014-01-18  Andreas Kling  <akling@apple.com>
2518
2519         Remove unused "touchDragDropEnabled" setting.
2520         <https://webkit.org/b/127227>
2521
2522         Reviewed by Sam Weinig.
2523
2524         * page/Settings.in:
2525
2526 2014-01-18  Brian Burg  <bburg@apple.com>
2527
2528         Web Inspector: Page should use std::unique_ptr for InspectorController
2529         https://bugs.webkit.org/show_bug.cgi?id=127068
2530
2531         Reviewed by Joseph Pecoraro.
2532
2533         Make Page and WorkerGlobalScope keep a std::unique_ptr to InspectorController
2534         and WorkerInspectorController. Store page references and return controller
2535         references where possible.
2536
2537         Convert call sites to use an InspectorController reference.
2538         Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
2539         Convert InspectorOverlay to keep Page references.
2540
2541         * WebCore.exp.in:
2542         * bindings/js/JSDOMWindowBase.cpp:
2543         (WebCore::JSDOMWindowBase::supportsProfiling):
2544         (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
2545         * dom/Node.cpp:
2546         (WebCore::Node::inspect):
2547         * inspector/InspectorController.cpp:
2548         (WebCore::InspectorController::InspectorController):
2549         (WebCore::InspectorController::inspectedPageDestroyed):
2550         (WebCore::InspectorController::setInspectorFrontendClient):
2551         (WebCore::InspectorController::hasInspectorFrontendClient):
2552         (WebCore::InspectorController::connectFrontend):
2553         (WebCore::InspectorController::disconnectFrontend):
2554         (WebCore::InspectorController::inspectedPage):
2555         (WebCore::InspectorController::developerExtrasEnabled):
2556         * inspector/InspectorController.h:
2557         * inspector/InspectorFrontendClientLocal.cpp:
2558         (WebCore::InspectorFrontendClientLocal::canAttachWindow):
2559         (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight):
2560         (WebCore::InspectorFrontendClientLocal::changeAttachedWindowWidth):
2561         (WebCore::InspectorFrontendClientLocal::openInNewTab):
2562         (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight):
2563         * inspector/InspectorOverlay.cpp:
2564         (WebCore::InspectorOverlay::InspectorOverlay):
2565         (WebCore::InspectorOverlay::getHighlight):
2566         (WebCore::InspectorOverlay::highlightQuad):
2567         (WebCore::InspectorOverlay::update):
2568         (WebCore::InspectorOverlay::buildObjectForHighlightedNode):
2569         (WebCore::InspectorOverlay::drawQuadHighlight):
2570         (WebCore::InspectorOverlay::overlayPage):
2571         (WebCore::InspectorOverlay::reset):
2572         * inspector/InspectorOverlay.h:
2573         * inspector/InstrumentingAgents.cpp:
2574         (WebCore::instrumentationForPage): remove null checks.
2575         (WebCore::instrumentationForWorkerGlobalScope): remove null checks.
2576         * inspector/WorkerInspectorController.cpp:
2577         (WebCore::WorkerInspectorController::WorkerInspectorController):
2578         (WebCore::WorkerInspectorController::connectFrontend):
2579         (WebCore::WorkerInspectorController::disconnectFrontend):
2580         * inspector/WorkerInspectorController.h:
2581         * loader/FrameLoader.cpp:
2582         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
2583         (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
2584         * page/ContextMenuController.cpp:
2585         (WebCore::ContextMenuController::showContextMenu):
2586         (WebCore::ContextMenuController::contextMenuItemSelected):
2587         (WebCore::ContextMenuController::populate):
2588         (WebCore::ContextMenuController::addInspectElementItem):
2589         * page/FrameView.cpp:
2590         (WebCore::FrameView::sendResizeEventIfNeeded):
2591         * page/Page.cpp:
2592         (WebCore::Page::Page):
2593         * page/Page.h:
2594         (WebCore::Page::inspectorController):
2595         * page/PageDebuggable.cpp:
2596         (WebCore::PageDebuggable::hasLocalDebugger):
2597         (WebCore::PageDebuggable::parentProcessIdentifier):
2598         (WebCore::PageDebuggable::connect):
2599         (WebCore::PageDebuggable::disconnect):
2600         (WebCore::PageDebuggable::dispatchMessageFromRemoteFrontend):
2601         (WebCore::PageDebuggable::setIndicating):
2602         * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
2603         (WebCore::CompositingCoordinator::syncDisplayState):
2604         * testing/Internals.cpp:
2605         (WebCore::Internals::resetToConsistentState):
2606         (WebCore::Internals::inspectorHighlightRects):
2607         (WebCore::Internals::inspectorHighlightObject):
2608         (WebCore::Internals::emitInspectorDidBeginFrame):
2609         (WebCore::Internals::emitInspectorDidCancelFrame):
2610         (WebCore::Internals::openDummyInspectorFrontend):
2611         (WebCore::Internals::closeDummyInspectorFrontend):
2612         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
2613         (WebCore::Internals::setJavaScriptProfilingEnabled):
2614         * workers/WorkerGlobalScope.cpp:
2615         (WebCore::WorkerGlobalScope::WorkerGlobalScope):
2616         * workers/WorkerGlobalScope.h: remove clearInspector(). 
2617         (WebCore::WorkerGlobalScope::workerInspectorController):
2618         * workers/WorkerMessagingProxy.cpp:
2619         (WebCore::connectToWorkerGlobalScopeInspectorTask):
2620         (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
2621         (WebCore::dispatchOnInspectorBackendTask):
2622         * workers/WorkerThread.cpp:
2623         (WebCore::WorkerThreadShutdownFinishTask::performTask):
2624
2625 2014-01-18  Anders Carlsson  <andersca@apple.com>
2626
2627         Remove ENABLE_THREADED_HTML_PARSER defines everywhere
2628         https://bugs.webkit.org/show_bug.cgi?id=127225
2629
2630         Reviewed by Andreas Kling.
2631
2632         This concludes the removal of over 8.8 million lines of threaded parser code.
2633
2634         * Configurations/FeatureDefines.xcconfig:
2635
2636 2014-01-18  Anders Carlsson  <andersca@apple.com>
2637
2638         Remove the remaining threaded parser code
2639         https://bugs.webkit.org/show_bug.cgi?id=127224
2640
2641         Reviewed by Andreas Kling.
2642
2643         * dom/Document.cpp:
2644         (WebCore::Document::decrementActiveParserCount):
2645         * html/parser/AtomicHTMLToken.h:
2646         * html/parser/HTMLDocumentParser.cpp:
2647         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
2648         (WebCore::HTMLDocumentParser::detach):
2649         (WebCore::HTMLDocumentParser::stopParsing):
2650         (WebCore::HTMLDocumentParser::prepareToStopParsing):
2651         (WebCore::HTMLDocumentParser::resumeParsingAfterYield):
2652         (WebCore::HTMLDocumentParser::forcePlaintextForTextDocument):
2653         (WebCore::HTMLDocumentParser::insert):
2654         (WebCore::HTMLDocumentParser::append):
2655         (WebCore::HTMLDocumentParser::end):
2656         (WebCore::HTMLDocumentParser::finish):
2657         (WebCore::HTMLDocumentParser::textPosition):
2658         (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
2659         * html/parser/HTMLDocumentParser.h:
2660         * html/parser/HTMLParserIdioms.cpp:
2661         * html/parser/HTMLParserIdioms.h:
2662         * html/parser/HTMLTokenizer.cpp:
2663         * html/parser/HTMLTokenizer.h:
2664         * loader/DocumentLoader.cpp:
2665         (WebCore::DocumentLoader::isLoading):
2666         (WebCore::DocumentLoader::checkLoadComplete):
2667         * page/Settings.in:
2668
2669 2014-01-18  Anders Carlsson  <andersca@apple.com>
2670
2671         Remove threaded parser code from the preload scanners
2672         https://bugs.webkit.org/show_bug.cgi?id=127222
2673
2674         Reviewed by Andreas Kling.
2675
2676         * html/parser/CSSPreloadScanner.cpp:
2677         (WebCore::CSSPreloadScanner::CSSPreloadScanner):
2678         Use nullptr.
2679
2680         (WebCore::CSSPreloadScanner::scan):
2681         Move scanCommon here and simplify the code.
2682
2683         * html/parser/CSSPreloadScanner.h:
2684         Remove scanCommon.
2685
2686         * html/parser/HTMLPreloadScanner.cpp:
2687         (WebCore::TokenPreloadScanner::tagIdFor):
2688         TagId is a strong enum now, update enum values.
2689
2690         (WebCore::TokenPreloadScanner::initiatorFor):
2691         Ditto.
2692
2693         (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
2694         Ditto.
2695
2696         (WebCore::TokenPreloadScanner::StartTagScanner::match):
2697         Indent this.
2698
2699         (WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):
2700         TagId is a strong enum now, update enum values.
2701
2702         (WebCore::TokenPreloadScanner::StartTagScanner::charset):
2703         Ditto.
2704
2705         (WebCore::TokenPreloadScanner::StartTagScanner::resourceType):
2706         Ditto.
2707
2708         (WebCore::TokenPreloadScanner::StartTagScanner::shouldPreload):
2709         Ditto.
2710
2711         (WebCore::TokenPreloadScanner::scan):
2712         Merge scan and scanCommon.
2713
2714         * html/parser/HTMLPreloadScanner.h:
2715
2716 2014-01-18  Lauro Neto  <lauro.neto@openbossa.org>
2717
2718         Remove Nix files from WebCore
2719         https://bugs.webkit.org/show_bug.cgi?id=127176
2720
2721         Reviewed by Anders Carlsson.
2722
2723         * PlatformNix.cmake: Removed.
2724         * css/mediaControlsNix.css: Removed.
2725         * css/mediaControlsNixFullscreen.css: Removed.
2726         * editing/nix/EditorNix.cpp: Removed.
2727         * page/nix/EventHandlerNix.cpp: Removed.
2728         * platform/audio/nix/AudioBusNix.cpp: Removed.
2729         * platform/audio/nix/AudioDestinationNix.cpp: Removed.
2730         * platform/audio/nix/AudioDestinationNix.h: Removed.
2731         * platform/audio/nix/FFTFrameNix.cpp: Removed.
2732         * platform/graphics/nix/IconNix.cpp: Removed.
2733         * platform/graphics/nix/ImageNix.cpp: Removed.
2734         * platform/nix/CursorNix.cpp: Removed.
2735         * platform/nix/DragDataNix.cpp: Removed.
2736         * platform/nix/DragImageNix.cpp: Removed.
2737         * platform/nix/ErrorsNix.cpp: Removed.
2738         * platform/nix/ErrorsNix.h: Removed.
2739         * platform/nix/FileSystemNix.cpp: Removed.
2740         * platform/nix/GamepadsNix.cpp: Removed.
2741         * platform/nix/LanguageNix.cpp: Removed.
2742         * platform/nix/LocalizedStringsNix.cpp: Removed.
2743         * platform/nix/MIMETypeRegistryNix.cpp: Removed.
2744         * platform/nix/NixKeyboardUtilities.cpp: Removed.
2745         * platform/nix/NixKeyboardUtilities.h: Removed.
2746         * platform/nix/PasteboardNix.cpp: Removed.
2747         * platform/nix/PlatformKeyboardEventNix.cpp: Removed.
2748         * platform/nix/PlatformScreenNix.cpp: Removed.
2749         * platform/nix/RenderThemeNix.cpp: Removed.
2750         * platform/nix/RenderThemeNix.h: Removed.
2751         * platform/nix/ScrollbarThemeNix.cpp: Removed.
2752         * platform/nix/ScrollbarThemeNix.h: Removed.
2753         * platform/nix/SharedTimerNix.cpp: Removed.
2754         * platform/nix/SoundNix.cpp: Removed.
2755         * platform/nix/TemporaryLinkStubs.cpp: Removed.
2756         * platform/nix/WidgetNix.cpp: Removed.
2757         * platform/nix/support/MultiChannelPCMData.cpp: Removed.
2758         * platform/text/nix/TextBreakIteratorInternalICUNix.cpp: Removed.
2759
2760 2014-01-18  Anders Carlsson  <andersca@apple.com>
2761
2762         Remove DocumentParser::pinToMainThread() and related code
2763         https://bugs.webkit.org/show_bug.cgi?id=127221
2764
2765         Reviewed by Andreas Kling.
2766
2767         * dom/Document.cpp:
2768         (WebCore::Document::setContent):
2769         * dom/DocumentParser.h:
2770         * html/parser/HTMLDocumentParser.cpp:
2771         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
2772         * html/parser/HTMLDocumentParser.h:
2773         * html/parser/HTMLParserOptions.cpp:
2774         (WebCore::HTMLParserOptions::HTMLParserOptions):
2775         * html/parser/HTMLParserOptions.h:
2776         * html/parser/HTMLTreeBuilder.cpp:
2777         (WebCore::HTMLTreeBuilder::processEndTag):
2778         * loader/DocumentWriter.cpp:
2779         (WebCore::DocumentWriter::replaceDocument):
2780
2781 2014-01-18  Anders Carlsson  <andersca@apple.com>
2782
2783         Remove HTMLParserThread
2784         https://bugs.webkit.org/show_bug.cgi?id=127220
2785
2786         Reviewed by Andreas Kling.
2787
2788         * CMakeLists.txt:
2789         * GNUmakefile.list.am:
2790         * WebCore.vcxproj/WebCore.vcxproj:
2791         * WebCore.vcxproj/WebCore.vcxproj.filters:
2792         * WebCore.xcodeproj/project.pbxproj:
2793         * html/parser/HTMLDocumentParser.cpp:
2794         * html/parser/HTMLParserThread.cpp: Removed.
2795         * html/parser/HTMLParserThread.h: Removed.
2796
2797 2014-01-17  Andreas Kling  <akling@apple.com>
2798
2799         GC soon after responding to fake memory pressure.
2800         <https://webkit.org/b/127210>
2801
2802         Ask JSC to garbage collect "soon" after handling the fake memory
2803         pressure signal on Mac. This seems to stabilize the post-pressure
2804         numbers on Membuster3 a bit on my laptop. The difference is mostly
2805         made up of JSC::CodeBlock objects.
2806
2807         Reviewed by Geoffrey Garen.
2808
2809         * platform/mac/MemoryPressureHandlerMac.mm:
2810         (WebCore::MemoryPressureHandler::install):
2811
2812 2014-01-18  Anders Carlsson  <andersca@apple.com>
2813
2814         Remove files only used by the threaded HTML parser
2815         https://bugs.webkit.org/show_bug.cgi?id=127219
2816         <rdar://problem/13331277>
2817
2818         Reviewed by Andreas Kling.
2819
2820         * CMakeLists.txt:
2821         * GNUmakefile.list.am:
2822         * WebCore.vcxproj/WebCore.vcxproj:
2823         * WebCore.vcxproj/WebCore.vcxproj.filters:
2824         * WebCore.xcodeproj/project.pbxproj:
2825         * html/parser/AtomicHTMLToken.h:
2826         * html/parser/BackgroundHTMLInputStream.cpp: Removed.
2827         * html/parser/BackgroundHTMLInputStream.h: Removed.
2828         * html/parser/BackgroundHTMLParser.cpp: Removed.
2829         * html/parser/BackgroundHTMLParser.h: Removed.
2830         * html/parser/CompactHTMLToken.cpp: Removed.
2831         * html/parser/CompactHTMLToken.h: Removed.
2832         * html/parser/HTMLDocumentParser.cpp:
2833         * html/parser/HTMLDocumentParser.h:
2834         * html/parser/HTMLIdentifier.cpp: Removed.
2835         * html/parser/HTMLIdentifier.h: Removed.
2836         * html/parser/HTMLParserIdioms.h:
2837         * html/parser/HTMLPreloadScanner.h:
2838         * html/parser/HTMLTreeBuilderSimulator.cpp: Removed.
2839         * html/parser/HTMLTreeBuilderSimulator.h: Removed.
2840
2841 2014-01-17  Andreas Kling  <akling@apple.com>
2842
2843         Micro-optimize RenderBoxModelObject::computedCSSPadding().
2844         <https://webkit.org/b/127208>
2845
2846         Make computedCSSPadding() take the Length as a const reference
2847         to avoid creating a temporary copy. This was showing up (0.2%)
2848         on DoYouEvenBench.
2849
2850         Reviewed by Anders Carlsson.
2851
2852         * rendering/RenderBoxModelObject.h:
2853         * rendering/RenderBoxModelObject.cpp:
2854         (WebCore::RenderBoxModelObject::computedCSSPadding):
2855
2856 2014-01-17  Anders Carlsson  <andersca@apple.com>
2857
2858         Add a callOnMainThreadAndWait variant in SocketStreamHandle
2859         https://bugs.webkit.org/show_bug.cgi?id=127180
2860
2861         Reviewed by Geoffrey Garen.
2862
2863         WTF::callOnMainThreadAndWait was only used inside SocketStreamHandleCFNet.cpp, 
2864         so add an improved version there which is implemented in terms of callOnMainThread and
2865         with the bonus of handling spurious wake-ups correctly (the old version didn't).
2866
2867         * platform/network/cf/SocketStreamHandle.h:
2868         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2869         (WebCore::callOnMainThreadAndWait):
2870         (WebCore::SocketStreamHandle::pacExecutionCallback):
2871         (WebCore::SocketStreamHandle::readStreamCallback):
2872         (WebCore::SocketStreamHandle::writeStreamCallback):
2873
2874 2014-01-17  Anders Carlsson  <andersca@apple.com>
2875
2876         Clean up PageCache classes
2877         https://bugs.webkit.org/show_bug.cgi?id=127202
2878
2879         Reviewed by Andreas Kling.
2880
2881         * WebCore.exp.in:
2882         * history/CachedFrame.cpp:
2883         (WebCore::CachedFrameBase::~CachedFrameBase):
2884         (WebCore::CachedFrame::CachedFrame):
2885         (WebCore::CachedFrame::clear):
2886         (WebCore::CachedFrame::setCachedFramePlatformData):
2887         * history/CachedFrame.h:
2888         * history/CachedPage.cpp:
2889         (WebCore::CachedPage::CachedPage):
2890         * history/CachedPage.h:
2891         * history/HistoryItem.h:
2892         (WebCore::HistoryItem::isInPageCache):
2893         * history/PageCache.cpp:
2894         (WebCore::PageCache::add):
2895         (WebCore::PageCache::take):
2896         (WebCore::PageCache::remove):
2897         * history/PageCache.h:
2898         * loader/FrameLoader.cpp:
2899         (WebCore::FrameLoader::commitProvisionalLoad):
2900         * loader/HistoryController.cpp:
2901         (WebCore::HistoryController::invalidateCurrentItemCachedPage):
2902
2903 2014-01-17  Andy Estes  <aestes@apple.com>
2904
2905         Work around a preprocessor warning in mediaControlsApple.js
2906         https://bugs.webkit.org/show_bug.cgi?id=127204
2907
2908         Reviewed by Dan Bernstein.
2909
2910         * Modules/mediacontrols/mediaControlsApple.js: Changed '' to String().
2911
2912 2014-01-17  Daniel Bates  <dabates@apple.com>
2913
2914         Fix the iOS build after <http://trac.webkit.org/changeset/162184>
2915         (https://bugs.webkit.org/show_bug.cgi?id=126856)
2916
2917         Remove symbol for WebCore::NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator(unsigned short const*, int).
2918         Add symbol for WebCore::NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator(WTF::StringView).
2919
2920         * WebCore.exp.in:
2921
2922 2014-01-17  Andreas Kling  <akling@apple.com>
2923
2924         Remove unused TOUCH_ADJUSTMENT code.
2925         <https://webkit.org/b/127181>
2926
2927         There are no ports using the ENABLE(TOUCH_ADJUSTMENT) feature
2928         anymore, so nuke it from orbit.
2929
2930         Reviewed by Anders Carlsson.
2931
2932         * page/EventHandler.cpp:
2933         * page/EventHandler.h:
2934         * page/Settings.in:
2935         * page/TouchAdjustment.cpp: Removed.
2936         * page/TouchAdjustment.h: Removed.
2937         * testing/Internals.cpp:
2938         * testing/Internals.h:
2939         * testing/Internals.idl:
2940
2941 2014-01-17  Beth Dakin  <bdakin@apple.com>
2942
2943         Need a way to test the tile cache with margins enabled
2944         https://bugs.webkit.org/show_bug.cgi?id=127194
2945         -and corresponding-
2946         <rdar://problem/15571327>
2947
2948         Reviewed by Tim Horton.
2949
2950         This patch adds a new function to InternalSettings that will allow layout tests to 
2951         flip the setting Settings::setBackgroundShouldExtendBeyondPage(). This patch also         
2952         makes changing that setting take effect immediately. 
2953
2954         To make this setting dynamic, we can no longer generate the Setting function, so 
2955         we have to export the symbol manually.
2956         * WebCore.exp.in:
2957
2958         This new function on FrameView will call into RenderLayerBacking to add or remove 
2959         margins.
2960         * page/FrameView.cpp:
2961         (WebCore::FrameView::setBackgroundExtendsBeyondPage):
2962         * page/FrameView.h:
2963
2964         Again, we’re no longer using the boiler-plate generated Setting functions, so now 
2965         we can call into FrameView to make the background extend.
2966         * page/Settings.cpp:
2967         (WebCore::Settings::Settings):
2968         (WebCore::Settings::setBackgroundShouldExtendBeyondPage):
2969         * page/Settings.h:
2970         (WebCore::Settings::backgroundShouldExtendBeyondPage):
2971         * page/Settings.in:
2972
2973         Whenever tile margins are set, call setNeedsRevalidateTiles() to make the change 
2974         dynamic.
2975         * platform/graphics/ca/mac/TileController.mm:
2976         (WebCore::TileController::setTileMargins):
2977
2978         Move the call to TiledBacking::setTileMargins() into a helper function so that the 
2979         same code can be used for FrameView.
2980         * rendering/RenderLayerBacking.cpp:
2981         (WebCore::RenderLayerBacking::RenderLayerBacking):
2982         (WebCore::RenderLayerBacking::setTiledBackingHasMargins):
2983         * rendering/RenderLayerBacking.h:
2984
2985         New InternalSetting.
2986         * testing/InternalSettings.cpp:
2987         (WebCore::InternalSettings::setBackgroundShouldExtendBeyondPage):
2988         * testing/InternalSettings.h:
2989         * testing/InternalSettings.idl:
2990
2991 2014-01-17  Anders Carlsson  <andersca@apple.com>
2992
2993         Remove another unused FrameLoaderClient callback
2994         https://bugs.webkit.org/show_bug.cgi?id=127192
2995
2996         Reviewed by Dan Bernstein.
2997
2998         FrameLoaderClient::dispatchDocumentElementAvailable() was only used by the Chromium port, so remove it.
2999
3000         * html/ImageDocument.cpp:
3001         (WebCore::ImageDocument::createDocumentStructure):
3002         * html/MediaDocument.cpp:
3003         (WebCore::MediaDocumentParser::createDocumentStructure):
3004         * html/PluginDocument.cpp:
3005         (WebCore::PluginDocumentParser::createDocumentStructure):
3006         * html/parser/HTMLConstructionSite.cpp:
3007         (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded):
3008         * loader/EmptyClients.h:
3009         * loader/FrameLoader.cpp:
3010         * loader/FrameLoader.h:
3011         * loader/FrameLoaderClient.h:
3012         * xml/parser/XMLDocumentParserLibxml2.cpp:
3013         (WebCore::XMLDocumentParser::startElementNs):
3014
3015 2014-01-17  Anders Carlsson  <andersca@apple.com>
3016
3017         Remove FrameLoaderClient::didPerformFirstNavigation()
3018         https://bugs.webkit.org/show_bug.cgi?id=127191
3019
3020         Reviewed by Dan Bernstein.
3021
3022         * loader/EmptyClients.h:
3023         * loader/FrameLoader.cpp:
3024         (WebCore::FrameLoader::FrameLoader):
3025         * loader/FrameLoader.h:
3026         * loader/FrameLoaderClient.h:
3027         * loader/HistoryController.cpp:
3028         (WebCore::HistoryController::updateBackForwardListClippedAtTarget):
3029
3030 2014-01-17  Anders Carlsson  <andersca@apple.com>
3031
3032         Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
3033         https://bugs.webkit.org/show_bug.cgi?id=127189
3034
3035         Reviewed by Dan Bernstein.
3036
3037         * loader/FrameLoaderClient.h:
3038         (WebCore::FrameLoaderClient::didPerformFirstNavigation):
3039         Add an empty implementation of didPerformFirstNavigation() to make it easier to remove it from subclasses.
3040
3041 2014-01-17  Eric Carlson  <eric.carlson@apple.com>
3042
3043         [iOS] HTMLMediaSession should set AudioSession category
3044         https://bugs.webkit.org/show_bug.cgi?id=127137
3045
3046         Reviewed by Sam Weinig.
3047
3048         * html/HTMLMediaSession.cpp:
3049         (WebCore::initializeAudioSession): New, set the audio session to "media" on iOS.
3050         (WebCore::HTMLMediaSession::HTMLMediaSession): Call initializeAudioSession.
3051
3052 2014-01-17  Daniel Bates  <dabates@apple.com>
3053
3054         Fix the iOS build after <http://trac.webkit.org/changeset/162178>
3055         (https://bugs.webkit.org/show_bug.cgi?id=127147)
3056
3057         Declare WebMediaSessionHelper outside of namespace WebCore to resolve error that
3058         "Objective-C declarations may only appear in global scope".
3059
3060         * platform/audio/ios/MediaSessionManagerIOS.mm:
3061
3062 2014-01-17  Bem Jones-Bey  <bjonesbe@adobe.com>
3063
3064         [CSS Shapes] Stacked floats with shape-outside should allow inline content to interact with the non-outermost float
3065         https://bugs.webkit.org/show_bug.cgi?id=122576
3066
3067         Reviewed by David Hyatt.
3068
3069         Make inline content interact with stacked floats with shape-outside
3070         per the spec. This means that content can interact with floats on the
3071         line that are not the outermost float.
3072
3073         This refactors ComputeFloatOffsetAdapter into a superclass and two
3074         subclasses: one adaptor for determining the offset for float layout,
3075         and one for determining the offset for inline layout.
3076
3077         The logic in LineWidth::shrinkAvailableWidthForNewFloatIfNeeded has
3078         been updated to handle stacked floats with shape-outside properly and
3079         has been considerably simplified in the process. It was previously
3080         doing a whole bunch of unnecessary work.
3081
3082         Tests: fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.html
3083                fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html
3084                fast/shapes/shape-outside-floats/shape-outside-floats-stacked-002.html
3085
3086         * rendering/FloatingObjects.cpp:
3087         (WebCore::ComputeFloatOffsetAdapter::~ComputeFloatOffsetAdapter):
3088         (WebCore::ComputeFloatOffsetForFloatLayoutAdapter::ComputeFloatOffsetForFloatLayoutAdapter):
3089         (WebCore::ComputeFloatOffsetForFloatLayoutAdapter::~ComputeFloatOffsetForFloatLayoutAdapter):
3090         (WebCore::ComputeFloatOffsetForLineLayoutAdapter::ComputeFloatOffsetForLineLayoutAdapter):
3091         (WebCore::ComputeFloatOffsetForLineLayoutAdapter::~ComputeFloatOffsetForLineLayoutAdapter):
3092         (WebCore::FloatingObjects::logicalLeftOffsetForPositioningFloat):
3093         (WebCore::FloatingObjects::logicalRightOffsetForPositioningFloat):
3094         (WebCore::FloatingObjects::logicalLeftOffset):
3095         (WebCore::FloatingObjects::logicalRightOffset):
3096         (WebCore::ComputeFloatOffsetForFloatLayoutAdapter<FloatingObject::FloatLeft>::updateOffsetIfNeeded):
3097         (WebCore::ComputeFloatOffsetForFloatLayoutAdapter<FloatingObject::FloatRight>::updateOffsetIfNeeded):
3098         (WebCore::ComputeFloatOffsetForFloatLayoutAdapter<FloatTypeValue>::heightRemaining):
3099         (WebCore::shapeInfoForFloat):
3100         (WebCore::ComputeFloatOffsetForLineLayoutAdapter<FloatingObject::FloatLeft>::updateOffsetIfNeeded):
3101         (WebCore::ComputeFloatOffsetForLineLayoutAdapter<FloatingObject::FloatRight>::updateOffsetIfNeeded):
3102         * rendering/line/LineWidth.cpp:
3103         (WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded):
3104         * rendering/shapes/ShapeOutsideInfo.cpp:
3105         (WebCore::ShapeOutsideInfo::updateDeltasForContainingBlockLine):
3106         * rendering/shapes/ShapeOutsideInfo.h:
3107
3108 2014-01-17  Zoltan Horvath  <zoltan@webkit.org>
3109
3110         [CSS3] Add rendering support for -webkit-text-align-last
3111         https://bugs.webkit.org/show_bug.cgi?id=99584
3112
3113         Reviewed by David Hyatt.
3114
3115         Add support for the text-align-last CSS3 property, according to the latest specification:
3116         http://dev.w3.org/csswg/css-text-3/#text-align-last-property
3117
3118         Tests: fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html
3119                fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html
3120
3121         * rendering/RenderBlockLineLayout.cpp:
3122         (WebCore::RenderBlockFlow::textAlignmentForLine):
3123         * rendering/style/RenderStyle.cpp:
3124         (WebCore::RenderStyle::changeRequiresLayout):
3125
3126 2014-01-17  Daniel Bates  <dabates@apple.com>
3127
3128         Fix the iOS build after <http://trac.webkit.org/changeset/162208>
3129         (https://bugs.webkit.org/show_bug.cgi?id=127139)
3130
3131         __MAC_OS_X_VERSION_MIN_REQUIRED isn't defined when building for iOS. Instead, explicitly
3132         check that we're not PLATFORM(IOS) to avoid defining the enum value CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain.
3133
3134         * platform/network/cf/CookieJarCFNet.cpp:
3135
3136 2014-01-17  Bear Travis  <betravis@adobe.com>
3137
3138         [CSS Shapes] Basic shapes' computed position should be a horizontal and vertical offset
3139         https://bugs.webkit.org/show_bug.cgi?id=127010
3140
3141         Reviewed by Rob Buis.
3142
3143         This patch updates the computed position values used for blending to be a horizontal
3144         left offset and a vertical top offset. When positions include a center, bottom, or
3145         right position offset, it is converted to the appropriate top/left coordinate as
3146         a calc expression. Serialized values still use the original bottom/right directions
3147         when present, and also omit the top/left keywords where possible.
3148
3149         Updated parsing and animation tests.
3150
3151         * css/BasicShapeFunctions.cpp:
3152         (WebCore::valueForCenterCoordinate): Use the simplified BasicShapeCenterCoordinate,
3153         which includes an offset and whether the direction is from the top/left or bottom/right.
3154         (WebCore::valueForBasicShape): Ditto.
3155         (WebCore::convertToCenterCoordinate): Ditto.
3156         (WebCore::basicShapeForValue): Ditto.
3157         (WebCore::floatValueForCenterCoordinate): Ditto.
3158         * page/animation/CSSPropertyAnimation.cpp:
3159         (WebCore::blendFunc): Remove the RenderBox parameter, which is no longer needed.
3160         * rendering/style/BasicShapes.cpp:
3161         (WebCore::BasicShapeCenterCoordinate::updateComputedLength): Calculate the computed
3162         position offset for this center coordinate.
3163         (WebCore::BasicShapeRectangle::blend): Remove the RenderBox parameter.
3164         (WebCore::DeprecatedBasicShapeCircle::blend): Ditto.
3165         (WebCore::BasicShapeCircle::blend): Ditto.
3166         (WebCore::DeprecatedBasicShapeEllipse::blend): Ditto.
3167         (WebCore::BasicShapeEllipse::blend): Ditto.
3168         (WebCore::BasicShapePolygon::blend): Ditto.
3169         (WebCore::BasicShapeInsetRectangle::blend): Ditto.
3170         (WebCore::BasicShapeInset::blend): Ditto.
3171         * rendering/style/BasicShapes.h:
3172         (WebCore::BasicShapeCenterCoordinate::BasicShapeCenterCoordinate): Simplify
3173         BasicShapeCenterCoordinate to contain an offset and a direction. Also add a
3174         computed length, which is an offset from the top/left direction.
3175         (WebCore::BasicShapeCenterCoordinate::direction):
3176         (WebCore::BasicShapeCenterCoordinate::computedLength):
3177         (WebCore::BasicShapeCenterCoordinate::blend):
3178
3179 2014-01-17  Alexey Proskuryakov  <ap@apple.com>
3180
3181         More non-Mac build fix.
3182
3183         * platform/network/cf/CookieJarCFNet.cpp:
3184
3185 2014-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
3186
3187         Unprefix text-emphasis CSS properties
3188         https://bugs.webkit.org/show_bug.cgi?id=127160
3189
3190         Reviewed by Sam Weinig.
3191
3192         Add synonym CSS properties. We don't want to delete the old ones because
3193         we've shipped with them included.
3194
3195         Test: fast/css3-text/css3-text-decoration/text-decoration-unprefix.html
3196
3197         * css/CSSPropertyNames.in:
3198
3199 2014-01-17  Alberto Garcia  <berto@igalia.com>
3200
3201         [GTK] WebKitGtk/testcopyandpaste fails in debug builds
3202         https://bugs.webkit.org/show_bug.cgi?id=127173
3203
3204         Reviewed by Carlos Garcia Campos.
3205
3206         Remove duplicate "PasteGlobalSelection" entry.
3207
3208         * editing/EditorCommand.cpp:
3209         (WebCore::createCommandMap):
3210
3211 2014-01-14  Andreas Kling  <akling@apple.com>
3212
3213         Pack ResourceRequest harder.
3214         <https://webkit.org/b/126982>
3215
3216         Re-arrange the members of ResourceRequest to reduce padding,
3217         shrinking it by 8 bytes.
3218
3219         Reviewed by Anders Carlsson.
3220
3221         * platform/network/ResourceRequestBase.h:
3222         (WebCore::ResourceRequestBase::ResourceRequestBase):
3223
3224 2014-01-17  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
3225
3226         Remove workaround for compilers not supporting deleted functions
3227         https://bugs.webkit.org/show_bug.cgi?id=127166
3228
3229         Reviewed by Andreas Kling.
3230
3231         * bindings/js/JSLazyEventListener.h:
3232         * dom/ContainerNode.h:
3233         * dom/Document.h:
3234         * dom/Element.h:
3235         * rendering/InlineFlowBox.h:
3236         * rendering/InlineTextBox.h:
3237         * rendering/RenderButton.h:
3238         * rendering/RenderCombineText.h:
3239         * rendering/RenderElement.h:
3240         * rendering/RenderFieldset.h:
3241         * rendering/RenderFileUploadControl.h:
3242         * rendering/RenderFrame.h:
3243         * rendering/RenderFrameBase.h:
3244         * rendering/RenderFrameSet.h:
3245         * rendering/RenderHTMLCanvas.h:
3246         * rendering/RenderIFrame.h:
3247         * rendering/RenderLineBreak.h:
3248         * rendering/RenderListBox.h:
3249         * rendering/RenderListMarker.h:
3250         * rendering/RenderMedia.h:
3251         * rendering/RenderMenuList.h:
3252         * rendering/RenderSnapshottedPlugIn.h:
3253         * rendering/RenderTableCell.h:
3254         * rendering/RenderTableRow.h:
3255         * rendering/RenderTableSection.h:
3256         * rendering/RenderText.h:
3257         * rendering/RenderTextControl.h:
3258         * rendering/RenderTextControlMultiLine.h:
3259         * rendering/RenderTextControlSingleLine.h:
3260         * rendering/RenderVideo.h:
3261         * rendering/RenderWidget.h:
3262         * rendering/svg/RenderSVGBlock.h:
3263         * rendering/svg/RenderSVGForeignObject.h:
3264         * rendering/svg/RenderSVGImage.h:
3265         * rendering/svg/RenderSVGInline.h:
3266         * rendering/svg/RenderSVGRect.h:
3267         * rendering/svg/RenderSVGResourceClipper.h:
3268         * rendering/svg/RenderSVGResourceFilter.h:
3269         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
3270         * rendering/svg/RenderSVGResourceGradient.h:
3271         * rendering/svg/RenderSVGResourceLinearGradient.h:
3272         * rendering/svg/RenderSVGResourceMarker.h:
3273         * rendering/svg/RenderSVGResourceMasker.h:
3274         * rendering/svg/RenderSVGResourcePattern.h:
3275         * rendering/svg/RenderSVGResourceRadialGradient.h:
3276         * rendering/svg/RenderSVGRoot.h:
3277         * rendering/svg/RenderSVGShape.h:
3278         * rendering/svg/RenderSVGTSpan.h:
3279         * rendering/svg/RenderSVGText.h:
3280         * rendering/svg/RenderSVGTextPath.h:
3281         * rendering/svg/RenderSVGTransformableContainer.h:
3282         * rendering/svg/RenderSVGViewportContainer.h:
3283         * xml/XPathValue.h:
3284
3285 2014-01-17  Zan Dobersek  <zdobersek@igalia.com>
3286
3287         [ATK] Modernize the for loops in ATK AX code
3288         https://bugs.webkit.org/show_bug.cgi?id=127120
3289
3290         Reviewed by Mario Sanchez Prada.
3291
3292         Update the for loops to be range-based in ATK accessibility code.
3293         This work is complementary to r161979.
3294
3295         * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
3296         (webkitAccessibleHypertextGetLink):
3297         * accessibility/atk/WebKitAccessibleInterfaceTable.cpp:
3298         (webkitAccessibleTableGetColumnHeader):
3299         (webkitAccessibleTableGetRowHeader):
3300         * accessibility/atk/WebKitAccessibleUtil.cpp:
3301         (accessibilityTitle):
3302         (accessibilityDescription):
3303         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
3304         (getNChildrenForTable):
3305         (getChildForTable):
3306         (getIndexInParentForCellInRow):
3307
3308 2014-01-17  Zan Dobersek  <zdobersek@igalia.com>
3309
3310         [Soup] Remove unnecessary using-directives for the std namespace
3311         https://bugs.webkit.org/show_bug.cgi?id=127122
3312
3313         Reviewed by Martin Robinson.
3314
3315         * platform/network/soup/ResourceRequestSoup.cpp: Remove the unnecessary using-directive for the std namespace
3316         as no symbols from that namespace are in use in this implementation file.
3317         * platform/network/soup/ResourceResponseSoup.cpp: Ditto.
3318
3319 2014-01-16  Tim Horton  <timothy_horton@apple.com>
3320
3321         On iOS, zooming in with a TileController-backed main frame makes hundreds of tiles
3322         https://bugs.webkit.org/show_bug.cgi?id=126531
3323         <rdar://problem/15745862>
3324
3325         Reviewed by Anders Carlsson.
3326
3327         * platform/graphics/ca/mac/TileController.h:
3328         * platform/graphics/ca/mac/TileController.mm:
3329         (WebCore::TileController::tilesWouldChangeForVisibleRect):
3330         (WebCore::TileController::scaledExposedRect):
3331         (WebCore::TileController::computeTileCoverageRect):
3332         (WebCore::TileController::revalidateTiles):
3333         (WebCore::TileController::updateTileCoverageMap):
3334         Scale the FrameView-space exposedRect into document space, to match the visibleRect.
3335
3336         Flipping on WKView's clipsToExposedRect now works correctly even in Safari
3337         or MiniBrowser with zooming.
3338
3339 2014-01-15  Sam Weinig  <sam@webkit.org>
3340
3341         TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
3342         https://bugs.webkit.org/show_bug.cgi?id=126856
3343
3344         Reviewed by Ryosuke Niwa.
3345
3346         Change all the TextBreakIterator creation functions to take StringViews. Remove a few
3347         now unnecessary up-conversions to UTF-16 in the process.
3348
3349         * dom/CharacterData.cpp:
3350         * editing/TextCheckingHelper.cpp:
3351         * editing/VisibleUnits.cpp:
3352         * platform/graphics/StringTruncator.cpp:
3353         * platform/graphics/mac/ComplexTextController.cpp:
3354         * platform/text/TextBoundaries.cpp:
3355         * platform/text/TextBreakIterator.cpp:
3356         * platform/text/TextBreakIterator.h:
3357         * rendering/RenderText.cpp:
3358
3359 2014-01-16  Anders Carlsson  <andersca@apple.com>
3360
3361         Run clang-modernize and let it add a bunch of missing overrides.
3362
3363         Rubber-stamped by Sam Weinig.
3364
3365         * dom/BeforeLoadEvent.h:
3366         * dom/ClassNodeList.h:
3367         * dom/Comment.h:
3368         * dom/CompositionEvent.h:
3369         * dom/DecodedDataDocumentParser.h:
3370         * dom/DeviceMotionEvent.h:
3371         * dom/DeviceOrientationEvent.h:
3372         * dom/DocumentMarker.cpp:
3373         * dom/DocumentType.h:
3374         * dom/EntityReference.h:
3375         * dom/FocusEvent.h:
3376         * dom/HashChangeEvent.h:
3377         * dom/MessageEvent.h:
3378         * dom/MouseEvent.h:
3379         * dom/MouseRelatedEvent.h:
3380         * dom/MutationEvent.h:
3381         * dom/NameNodeList.h:
3382         * dom/Notation.h:
3383         * dom/OverflowEvent.h:
3384         * dom/PendingScript.h:
3385         * dom/PopStateEvent.h:
3386         * dom/ProcessingInstruction.h:
3387         * dom/ScriptElement.h:
3388         * dom/ScriptExecutionContext.cpp:
3389         * dom/ScriptableDocumentParser.h:
3390         * dom/ScriptedAnimationController.h:
3391         * dom/StringCallback.cpp:
3392         * dom/WheelEvent.h:
3393         * html/FTPDirectoryDocument.h:
3394         * html/FileInputType.cpp:
3395         * html/HTMLAppletElement.h:
3396         * html/HTMLBRElement.h:
3397         * html/HTMLBaseElement.h:
3398         * html/HTMLBodyElement.h:
3399         * html/HTMLButtonElement.h:
3400         * html/HTMLDocument.h:
3401         * html/HTMLEmbedElement.h:
3402         * html/HTMLFormControlsCollection.h:
3403         * html/HTMLFrameElement.h:
3404         * html/HTMLFrameSetElement.h:
3405         * html/HTMLHRElement.h:
3406         * html/HTMLIFrameElement.h:
3407         * html/HTMLKeygenElement.cpp:
3408         * html/HTMLKeygenElement.h:
3409         * html/HTMLLinkElement.h:
3410         * html/HTMLMarqueeElement.h:
3411         * html/HTMLObjectElement.h:
3412         * html/HTMLOutputElement.h:
3413         * html/HTMLParamElement.h:
3414         * html/HTMLScriptElement.h:
3415         * html/HTMLStyleElement.h:
3416         * html/HTMLSummaryElement.h:
3417         * html/HTMLTrackElement.h:
3418         * html/HTMLViewSourceDocument.h:
3419         * html/ImageDocument.cpp:
3420         * html/ImageDocument.h:
3421         * html/MediaDocument.cpp:
3422         * html/MediaDocument.h:
3423         * html/MediaKeyEvent.h:
3424         * html/PluginDocument.cpp:
3425         * html/RadioNodeList.h:
3426         * html/TextDocument.h:
3427         * html/canvas/EXTDrawBuffers.h:
3428         * html/canvas/EXTTextureFilterAnisotropic.h:
3429         * html/canvas/OESElementIndexUint.h:
3430         * html/canvas/OESStandardDerivatives.h:
3431         * html/canvas/OESTextureFloat.h:
3432         * html/canvas/OESTextureFloatLinear.h:
3433         * html/canvas/OESTextureHalfFloat.h:
3434         * html/canvas/OESTextureHalfFloatLinear.h:
3435         * html/canvas/OESVertexArrayObject.h:
3436         * html/canvas/WebGLBuffer.h:
3437         * html/canvas/WebGLCompressedTextureATC.h:
3438         * html/canvas/WebGLCompressedTexturePVRTC.h:
3439         * html/canvas/WebGLCompressedTextureS3TC.h:
3440         * html/canvas/WebGLContextEvent.h:
3441         * html/canvas/WebGLContextObject.h:
3442         * html/canvas/WebGLDebugRendererInfo.h:
3443         * html/canvas/WebGLDebugShaders.h:
3444         * html/canvas/WebGLDepthTexture.h:
3445         * html/canvas/WebGLFramebuffer.cpp:
3446         * html/canvas/WebGLFramebuffer.h:
3447         * html/canvas/WebGLLoseContext.h:
3448         * html/canvas/WebGLProgram.h:
3449         * html/canvas/WebGLRenderbuffer.h:
3450         * html/canvas/WebGLRenderingContext.cpp:
3451         * html/canvas/WebGLRenderingContext.h:
3452         * html/canvas/WebGLShader.h:
3453         * html/canvas/WebGLSharedObject.h:
3454         * html/canvas/WebGLTexture.h:
3455         * html/canvas/WebGLVertexArrayObjectOES.h:
3456         * html/parser/HTMLDocumentParser.h:
3457         * html/parser/HTMLViewSourceParser.h:
3458         * html/shadow/DetailsMarkerControl.h:
3459         * html/shadow/MediaControls.h:
3460         * html/shadow/MediaControlsApple.h:
3461         * html/shadow/MeterShadowElement.h:
3462         * html/shadow/ProgressShadowElement.h:
3463         * html/shadow/SliderThumbElement.h:
3464         * html/track/LoadableTextTrack.h:
3465         * html/track/TrackEvent.h:
3466         * svg/SVGAElement.h:
3467         * svg/SVGAnimateColorElement.h:
3468         * svg/SVGAnimateElement.h:
3469         * svg/SVGAnimateMotionElement.h:
3470         * svg/SVGAnimateTransformElement.h:
3471         * svg/SVGAnimationElement.h:
3472         * svg/SVGCircleElement.h:
3473         * svg/SVGClipPathElement.h:
3474         * svg/SVGComponentTransferFunctionElement.h:
3475         * svg/SVGCursorElement.h:
3476         * svg/SVGDefsElement.h:
3477         * svg/SVGDescElement.h:
3478         * svg/SVGEllipseElement.h:
3479         * svg/SVGFEBlendElement.h:
3480         * svg/SVGFEColorMatrixElement.h:
3481         * svg/SVGFEComponentTransferElement.h:
3482         * svg/SVGFECompositeElement.h:
3483         * svg/SVGFEConvolveMatrixElement.h:
3484         * svg/SVGFEDiffuseLightingElement.h:
3485         * svg/SVGFEDisplacementMapElement.h:
3486         * svg/SVGFEDistantLightElement.h:
3487         * svg/SVGFEDropShadowElement.h:
3488         * svg/SVGFEFloodElement.h:
3489         * svg/SVGFEGaussianBlurElement.h:
3490         * svg/SVGFEImageElement.h:
3491         * svg/SVGFELightElement.h:
3492         * svg/SVGFEMergeElement.h:
3493         * svg/SVGFEMergeNodeElement.h:
3494         * svg/SVGFEMorphologyElement.h:
3495         * svg/SVGFEOffsetElement.h:
3496         * svg/SVGFEPointLightElement.h:
3497         * svg/SVGFESpecularLightingElement.h:
3498         * svg/SVGFESpotLightElement.h:
3499         * svg/SVGFETileElement.h:
3500         * svg/SVGFETurbulenceElement.h:
3501         * svg/SVGFilterElement.h:
3502         * svg/SVGFilterPrimitiveStandardAttributes.h:
3503         * svg/SVGFontData.h:
3504         * svg/SVGForeignObjectElement.h:
3505         * svg/SVGGlyphElement.h:
3506         * svg/SVGGlyphRefElement.h:
3507         * svg/SVGGradientElement.h:
3508         * svg/SVGHKernElement.h:
3509         * svg/SVGImageElement.h:
3510         * svg/SVGImageLoader.h:
3511         * svg/SVGLineElement.h:
3512         * svg/SVGLinearGradientElement.h:
3513         * svg/SVGMPathElement.h:
3514         * svg/SVGMarkerElement.h:
3515         * svg/SVGMaskElement.h:
3516         * svg/SVGMissingGlyphElement.h:
3517         * svg/SVGPathBuilder.h:
3518         * svg/SVGPathByteStreamBuilder.h:
3519         * svg/SVGPathByteStreamSource.h:
3520         * svg/SVGPathElement.h:
3521         * svg/SVGPathSegArcAbs.h:
3522         * svg/SVGPathSegArcRel.h:
3523         * svg/SVGPathSegClosePath.h:
3524         * svg/SVGPathSegCurvetoCubicAbs.h:
3525         * svg/SVGPathSegCurvetoCubicRel.h:
3526         * svg/SVGPathSegCurvetoCubicSmoothAbs.h:
3527         * svg/SVGPathSegCurvetoCubicSmoothRel.h:
3528         * svg/SVGPathSegCurvetoQuadraticAbs.h:
3529         * svg/SVGPathSegCurvetoQuadraticRel.h:
3530         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h:
3531         * svg/SVGPathSegCurvetoQuadraticSmoothRel.h:
3532         * svg/SVGPathSegLinetoAbs.h:
3533         * svg/SVGPathSegLinetoHorizontalAbs.h:
3534         * svg/SVGPathSegLinetoHorizontalRel.h:
3535         * svg/SVGPathSegLinetoRel.h:
3536         * svg/SVGPathSegLinetoVerticalAbs.h:
3537         * svg/SVGPathSegLinetoVerticalRel.h:
3538         * svg/SVGPathSegListBuilder.h:
3539         * svg/SVGPathSegListSource.h:
3540         * svg/SVGPathSegMovetoAbs.h:
3541         * svg/SVGPathSegMovetoRel.h:
3542         * svg/SVGPathStringSource.h:
3543         * svg/SVGPathTraversalStateBuilder.h:
3544         * svg/SVGPatternElement.h:
3545         * svg/SVGPolyElement.h:
3546         * svg/SVGRadialGradientElement.h:
3547         * svg/SVGRectElement.h:
3548         * svg/SVGSVGElement.h:
3549         * svg/SVGScriptElement.h:
3550         * svg/SVGStopElement.h:
3551         * svg/SVGStyleElement.h:
3552         * svg/SVGSwitchElement.h:
3553         * svg/SVGSymbolElement.h:
3554         * svg/SVGTRefElement.h:
3555         * svg/SVGTSpanElement.h:
3556         * svg/SVGTextContentElement.h:
3557         * svg/SVGTextElement.h:
3558         * svg/SVGTextPathElement.h:
3559         * svg/SVGTextPositioningElement.h:
3560         * svg/SVGTitleElement.h:
3561         * svg/SVGUseElement.h:
3562         * svg/SVGVKernElement.h:
3563         * svg/SVGViewElement.h:
3564         * svg/SVGZoomEvent.h:
3565         * svg/animation/SVGSMILElement.cpp:
3566         * svg/animation/SVGSMILElement.h:
3567         * svg/graphics/SVGImageChromeClient.h:
3568         * svg/graphics/filters/SVGFEImage.h:
3569         * svg/graphics/filters/SVGFilter.h:
3570         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
3571         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
3572         * svg/properties/SVGPathSegListPropertyTearOff.h:
3573
3574 2014-01-16  Jer Noble  <jer.noble@apple.com>
3575
3576         REGRESSION(r162145): media/video-controls-visible-audio-only.html fails
3577         https://bugs.webkit.org/show_bug.cgi?id=127147
3578
3579         Reviewed by Eric Carlson.
3580
3581         Reset the MediaSessionManager's restrictions to their default values before
3582         each run.
3583
3584         Add a new virtual method "resetRestrictions()" so that each port-specific
3585         MediaSessionManager can reset the restrictions to their default values.
3586         Call this from Internals::resetToConsistentState() so that tests which change
3587         the restrictions don't affect later tests.
3588
3589         * platform/audio/MediaSessionManager.cpp:
3590         (WebCore::MediaSessionManager::MediaSessionManager):
3591         (WebCore::MediaSessionManager::resetRestrictions):
3592         * platform/audio/MediaSessionManager.h:
3593         (WebCore::MediaSessionManager::~MediaSessionManager):
3594         * platform/audio/ios/MediaSessionManagerIOS.h:
3595         * platform/audio/ios/MediaSessionManagerIOS.mm:
3596         (WebCore::MediaSessionManageriOS::resetRestrictions):
3597         * testing/Internals.cpp:
3598         (WebCore::Internals::resetToConsistentState):
3599
3600 2014-01-16  Alex Christensen  <achristensen@webkit.org>
3601
3602         Compile fix for WinCairo after r162138.
3603         https://bugs.webkit.org/show_bug.cgi?id=127140
3604
3605         Reviewed by Beth Dakin.
3606
3607         * page/FrameView.cpp:
3608         (WebCore::FrameView::extendedBackgroundRect):
3609         Use unscaledDocumentRect for extendedBackgroundRect without accelerated compositing.
3610
3611 2014-01-16  Brady Eidson  <beidson@apple.com>
3612
3613         IDB: delete object store support
3614         <rdar://problem/15779641> and https://bugs.webkit.org/show_bug.cgi?id=127123
3615
3616         Reviewed by Alexey Proskuryakov.
3617
3618         * Modules/indexeddb/IDBTransactionBackendOperations.h:
3619         (WebCore::DeleteObjectStoreOperation::transaction):
3620
3621 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
3622
3623         More non-Mac build fix.
3624
3625         * platform/network/cf/CookieJarCFNet.cpp:
3626         (WebCore::copyCookiesForURLWithFirstPartyURL):
3627
3628 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
3629
3630         Build fix.
3631
3632         * platform/network/cf/CookieJarCFNet.cpp: Remove a spurious semicolon.
3633
3634 2014-01-16  Andy Estes  <aestes@apple.com>
3635
3636         Another iOS build fix.
3637
3638         * platform/audio/ios/MediaSessionManagerIOS.mm:
3639         (WebCore::m_objcObserver):
3640
3641 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
3642
3643         [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
3644         https://bugs.webkit.org/show_bug.cgi?id=127139
3645
3646         Reviewed by Brady Eidson.
3647
3648         * platform/ios/WebCoreSystemInterfaceIOS.mm:
3649         * platform/mac/WebCoreSystemInterface.h:
3650         * platform/mac/WebCoreSystemInterface.mm:
3651         Pass first party URL down, because reading cookies depends on it when this policy
3652         in in action.
3653
3654         * platform/network/cf/CookieJarCFNet.cpp:
3655         (WebCore::copyCookiesForURLWithFirstPartyURL):
3656         (WebCore::cookiesForDOM):
3657         (WebCore::cookieRequestHeaderFieldValue):
3658         (WebCore::cookiesEnabled):
3659         (WebCore::getRawCookies):
3660         Use a new CFNetwork API that takes first party URL.
3661
3662         * platform/network/mac/CookieJarMac.mm:
3663         (WebCore::cookiesForDOM):
3664         (WebCore::cookieRequestHeaderFieldValue):
3665         (WebCore::cookiesEnabled):
3666         (WebCore::getRawCookies):
3667         (WebCore::deleteCookie):
3668         Pass first party URL (and null in deleteCookie, as there is none).
3669
3670         * platform/network/mac/ResourceHandleMac.mm:
3671         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
3672         Removed a call to shouldRelaxThirdPartyCookiePolicy(), which no longer exists
3673         in trunk.
3674
3675 2014-01-16  Andy Estes  <aestes@apple.com>
3676
3677         Fix the iOS build after r162150.
3678
3679         * platform/graphics/cg/GraphicsContextCG.cpp:
3680         (WebCore::GraphicsContext::platformInit):
3681
3682 2014-01-16  Dean Jackson  <dino@apple.com>
3683
3684         glReadPixels should use UNSIGNED_BYTE on iOS
3685         https://bugs.webkit.org/show_bug.cgi?id=127148
3686
3687         Reviewed by Benjamin Poulain.
3688
3689         We were incorrectly mapping GL_UNSIGNED_INT_8_8_8_8_REV to
3690         GL_RGBA on iOS. It's only used in glReadPixels, so should
3691         be GL_UNSIGNED_BYTE.
3692
3693         This is covered by lots of tests in the Khronos test suite,
3694         that now pass on iOS.
3695
3696         * platform/graphics/ios/GraphicsContext3DIOS.h:
3697
3698 2014-01-16  Anders Carlsson  <andersca@apple.com>
3699
3700         Change all uses of FINAL to final now that all our compilers support it
3701         https://bugs.webkit.org/show_bug.cgi?id=127142
3702
3703         Reviewed by Benjamin Poulain.
3704
3705         * Modules/encryptedmedia/MediaKeySession.h:
3706         * Modules/indexeddb/IDBCursorBackendOperations.h:
3707         * Modules/indexeddb/IDBDatabase.h:
3708         * Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
3709         * Modules/indexeddb/IDBRequest.h:
3710         * Modules/indexeddb/IDBTransaction.h:
3711         * Modules/indexeddb/IDBTransactionBackendOperations.h:
3712         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
3713         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
3714         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
3715         * Modules/mediasource/MediaSource.h:
3716         * Modules/mediasource/MediaSourceRegistry.h:
3717         * Modules/mediasource/SourceBuffer.h:
3718         * Modules/mediasource/SourceBufferList.h:
3719         * Modules/mediastream/AudioStreamTrack.h:
3720         * Modules/mediastream/MediaStream.h:
3721         * Modules/mediastream/MediaStreamRegistry.h:
3722         * Modules/mediastream/MediaStreamTrack.h:
3723         * Modules/mediastream/RTCDTMFSender.h:
3724         * Modules/mediastream/RTCDataChannel.h:
3725         * Modules/mediastream/RTCPeerConnection.h:
3726         * Modules/mediastream/UserMediaRequest.h:
3727         * Modules/mediastream/VideoStreamTrack.h:
3728         * Modules/notifications/Notification.h:
3729         * Modules/speech/SpeechSynthesisUtterance.h:
3730         * Modules/webaudio/AudioContext.h:
3731         * Modules/webaudio/AudioNode.h:
3732         * Modules/websockets/WebSocket.h:
3733         * accessibility/AccessibilityList.h:
3734         * accessibility/AccessibilityListBoxOption.h:
3735         * accessibility/AccessibilityNodeObject.h:
3736         * accessibility/AccessibilitySearchFieldButtons.h:
3737         * accessibility/AccessibilitySlider.h:
3738         * bindings/js/JSCryptoAlgorithmBuilder.h:
3739         * bindings/js/JSCryptoKeySerializationJWK.h:
3740         * bindings/js/JSDOMGlobalObjectTask.cpp:
3741         * bindings/js/JSDOMGlobalObjectTask.h:
3742         * bindings/js/JSLazyEventListener.h:
3743         * bindings/js/ScriptDebugServer.h:
3744         * bindings/js/WorkerScriptDebugServer.h:
3745         * crypto/algorithms/CryptoAlgorithmAES_CBC.h:
3746         * crypto/algorithms/CryptoAlgorithmAES_KW.h:
3747         * crypto/algorithms/CryptoAlgorithmHMAC.h:
3748         * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h:
3749         * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h:
3750         * crypto/algorithms/CryptoAlgorithmRSA_OAEP.h:
3751         * crypto/algorithms/CryptoAlgorithmSHA1.h:
3752         * crypto/algorithms/CryptoAlgorithmSHA224.h:
3753         * crypto/algorithms/CryptoAlgorithmSHA256.h:
3754         * crypto/algorithms/CryptoAlgorithmSHA384.h:
3755         * crypto/algorithms/CryptoAlgorithmSHA512.h:
3756         * crypto/keys/CryptoKeyAES.h:
3757         * crypto/keys/CryptoKeyDataOctetSequence.h:
3758         * crypto/keys/CryptoKeyDataRSAComponents.h:
3759         * crypto/keys/CryptoKeyHMAC.h:
3760         * crypto/keys/CryptoKeyRSA.h:
3761         * crypto/keys/CryptoKeySerializationRaw.h:
3762         * crypto/parameters/CryptoAlgorithmAesCbcParams.h:
3763         * crypto/parameters/CryptoAlgorithmAesKeyGenParams.h:
3764         * crypto/parameters/CryptoAlgorithmHmacKeyParams.h:
3765         * crypto/parameters/CryptoAlgorithmHmacParams.h:
3766         * crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h:
3767         * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
3768         * crypto/parameters/CryptoAlgorithmRsaOaepParams.h:
3769         * crypto/parameters/CryptoAlgorithmRsaSsaParams.h:
3770         * css/CSSCanvasValue.h:
3771         * css/CSSFontSelector.h:
3772         * css/CSSStyleSheet.h:
3773         * dom/Attr.h:
3774         * dom/BeforeUnloadEvent.h:
3775         * dom/CDATASection.h:
3776         * dom/CharacterData.h:
3777         * dom/ChildNodeList.h:
3778         * dom/Clipboard.cpp:
3779         * dom/Comment.h:
3780         * dom/DatasetDOMStringMap.h:
3781         * dom/Document.h:
3782         * dom/DocumentEventQueue.cpp:
3783         * dom/DocumentEventQueue.h:
3784         * dom/DocumentType.h:
3785         * dom/Element.h:
3786         * dom/EntityReference.h:
3787         * dom/EventContext.h:
3788         * dom/EventTarget.h:
3789         * dom/FocusEvent.h:
3790         * dom/LiveNodeList.h:
3791         * dom/MessagePort.h:
3792         * dom/MouseEvent.h:
3793         * dom/Node.h:
3794         * dom/Notation.h:
3795         * dom/ProcessingInstruction.h:
3796         * dom/PseudoElement.h:
3797         * dom/ShadowRoot.h:
3798         * dom/StaticNodeList.h:
3799         * dom/StyledElement.h:
3800         * dom/TemplateContentDocumentFragment.h:
3801         * dom/Text.h:
3802         * dom/WebKitNamedFlow.h:
3803         * editing/ios/EditorIOS.mm:
3804         * editing/mac/EditorMac.mm:
3805         * editing/markup.cpp:
3806         * fileapi/Blob.cpp:
3807         * fileapi/FileReader.h:
3808         * html/ClassList.h:
3809         * html/DOMSettableTokenList.h:
3810         * html/FTPDirectoryDocument.cpp:
3811         * html/FormAssociatedElement.cpp:
3812         * html/FormAssociatedElement.h:
3813         * html/HTMLAllCollection.h:
3814         * html/HTMLAnchorElement.h:
3815         * html/HTMLAppletElement.h:
3816         * html/HTMLAreaElement.h:
3817         * html/HTMLAudioElement.h:
3818         * html/HTMLBDIElement.h:
3819         * html/HTMLBRElement.h:
3820         * html/HTMLBaseElement.h:
3821         * html/HTMLBaseFontElement.h:
3822         * html/HTMLBodyElement.h:
3823         * html/HTMLButtonElement.h:
3824         * html/HTMLCanvasElement.h:
3825         * html/HTMLDListElement.h:
3826         * html/HTMLDataListElement.h:
3827         * html/HTMLDetailsElement.h:
3828         * html/HTMLDirectoryElement.h:
3829         * html/HTMLDocument.h:
3830         * html/HTMLElement.h:
3831         * html/HTMLEmbedElement.h:
3832         * html/HTMLFieldSetElement.h:
3833         * html/HTMLFontElement.h:
3834         * html/HTMLFormControlElement.h:
3835         * html/HTMLFormElement.h:
3836         * html/HTMLFrameElement.h:
3837         * html/HTMLFrameSetElement.h:
3838         * html/HTMLHRElement.h:
3839         * html/HTMLHeadElement.h:
3840         * html/HTMLHeadingElement.h:
3841         * html/HTMLHtmlElement.h:
3842         * html/HTMLIFrameElement.h:
3843         * html/HTMLImageElement.h:
3844         * html/HTMLInputElement.h:
3845         * html/HTMLKeygenElement.cpp:
3846         * html/HTMLKeygenElement.h:
3847         * html/HTMLLIElement.h:
3848         * html/HTMLLabelElement.h:
3849         * html/HTMLLegendElement.h:
3850         * html/HTMLLinkElement.h:
3851         * html/HTMLMapElement.h:
3852         * html/HTMLMarqueeElement.h:
3853         * html/HTMLMenuElement.h:
3854         * html/HTMLMetaElement.h:
3855         * html/HTMLMeterElement.h:
3856         * html/HTMLModElement.h:
3857         * html/HTMLNameCollection.h:
3858         * html/HTMLOListElement.h:
3859         * html/HTMLObjectElement.h:
3860         * html/HTMLOptGroupElement.h:
3861         * html/HTMLOptionElement.h:
3862         * html/HTMLOptionsCollection.h:
3863         * html/HTMLOutputElement.h:
3864         * html/HTMLParagraphElement.h:
3865         * html/HTMLParamElement.h:
3866         * html/HTMLPlugInElement.h:
3867         * html/HTMLPreElement.h:
3868         * html/HTMLProgressElement.h:
3869         * html/HTMLQuoteElement.h:
3870         * html/HTMLScriptElement.h:
3871         * html/HTMLSelectElement.h:
3872         * html/HTMLSourceElement.h:
3873         * html/HTMLStyleElement.h:
3874         * html/HTMLSummaryElement.h:
3875         * html/HTMLTableCaptionElement.h:
3876         * html/HTMLTableCellElement.h:
3877         * html/HTMLTableColElement.h:
3878         * html/HTMLTableElement.h:
3879         * html/HTMLTableRowElement.h:
3880         * html/HTMLTableRowsCollection.h:
3881         * html/HTMLTableSectionElement.h:
3882         * html/HTMLTemplateElement.h:
3883         * html/HTMLTextAreaElement.h:
3884         * html/HTMLTextFormControlElement.h:
3885         * html/HTMLTitleElement.h:
3886         * html/HTMLTrackElement.h:
3887         * html/HTMLUListElement.h:
3888         * html/HTMLUnknownElement.h:
3889         * html/HTMLVideoElement.h:
3890         * html/HTMLViewSourceDocument.h:
3891         * html/ImageDocument.cpp:
3892         * html/ImageDocument.h:
3893         * html/LabelableElement.h:
3894         * html/LabelsNodeList.h:
3895         * html/MediaController.h:
3896         * html/MediaDocument.cpp:
3897         * html/MediaDocument.h:
3898         * html/MediaFragmentURIParser.h:
3899         * html/PluginDocument.cpp:
3900         * html/PluginDocument.h:
3901         * html/RangeInputType.h:
3902         * html/TextDocument.h:
3903         * html/parser/TextDocumentParser.h:
3904         * html/parser/TextViewSourceParser.h:
3905         * html/shadow/DetailsMarkerControl.h:
3906         * html/shadow/MediaControlElementTypes.h:
3907         * html/shadow/MediaControlElements.h:
3908         * html/shadow/MeterShadowElement.h:
3909         * html/shadow/ProgressShadowElement.h:
3910         * html/shadow/SliderThumbElement.h:
3911         * html/shadow/SpinButtonElement.h:
3912         * html/shadow/TextControlInnerElements.h:
3913         * html/shadow/YouTubeEmbedShadowElement.h:
3914         * html/track/TextTrack.h:
3915         * html/track/TextTrackCue.h:
3916         * html/track/TextTrackCueGeneric.cpp:
3917         * html/track/TextTrackCueGeneric.h:
3918         * html/track/TrackListBase.h:
3919         * html/track/WebVTTElement.h:
3920         * inspector/CommandLineAPIModule.h:
3921         * inspector/InjectedScriptCanvasModule.h:
3922         * inspector/InspectorConsoleAgent.cpp:
3923         * inspector/InspectorController.h:
3924         * inspector/InspectorDebuggerAgent.h:
3925         * inspector/PageConsoleAgent.cpp:
3926         * inspector/PageInjectedScriptHost.h:
3927         * inspector/PageInjectedScriptManager.h:
3928         * inspector/WorkerInspectorController.h:
3929         * loader/SinkDocument.cpp:
3930         * loader/SinkDocument.h:
3931         * loader/appcache/DOMApplicationCache.h:
3932         * loader/cache/CachedCSSStyleSheet.h:
3933         * loader/cache/CachedFont.h:
3934         * loader/cache/CachedRawResource.h:
3935         * loader/cache/CachedSVGDocument.h:
3936         * loader/cache/CachedScript.h:
3937         * loader/cache/CachedShader.h:
3938         * loader/cache/CachedTextTrack.h:
3939         * loader/cache/CachedXSLStyleSheet.h:
3940         * loader/icon/IconLoader.h:
3941         * mathml/MathMLSelectElement.h:
3942         * page/DOMTimer.h:
3943         * page/DOMWindow.h:
3944         * page/EventSource.h:
3945         * page/Frame.h:
3946         * page/FrameView.h:
3947         * page/MainFrame.h:
3948         * page/PageDebuggable.h:
3949         * page/PageSerializer.cpp:
3950         * page/Performance.h:
3951         * page/SuspendableTimer.h:
3952         * page/animation/KeyframeAnimation.h:
3953         * page/scrolling/ScrollingStateFixedNode.h:
3954         * page/scrolling/ScrollingStateScrollingNode.h:
3955         * page/scrolling/ScrollingStateStickyNode.h:
3956         * platform/ClockGeneric.h:
3957         * platform/efl/ScrollbarThemeEfl.h:
3958         * platform/graphics/BitmapImage.h:
3959         * platform/graphics/CrossfadeGeneratedImage.h:
3960         * platform/graphics/GradientImage.h:
3961         * platform/graphics/SimpleFontData.h:
3962         * platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.h:
3963         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
3964         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
3965         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
3966         * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h:
3967         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.h:
3968         * platform/graphics/ca/mac/PlatformCALayerMac.h:
3969         * platform/graphics/ca/win/PlatformCALayerWin.h:
3970         * platform/graphics/cg/PDFDocumentImage.h:
3971         * platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h:
3972         * platform/graphics/gstreamer/MediaSourceGStreamer.h:
3973         * platform/graphics/gstreamer/SourceBufferPrivateGStreamer.h:
3974         * platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h:
3975         * platform/ios/WebSafeGCActivityCallbackIOS.h:
3976         * platform/ios/WebSafeIncrementalSweeperIOS.h:
3977         * platform/mac/PlatformClockCA.h:
3978         * platform/mac/PlatformClockCM.h:
3979         * platform/mac/ScrollAnimatorMac.h:
3980         * platform/mediastream/MediaStreamTrackPrivate.h:
3981         * platform/mediastream/mac/MediaStreamCenterMac.h:
3982         * platform/mock/MockMediaStreamCenter.h:
3983         * platform/mock/RTCDataChannelHandlerMock.h:
3984         * platform/mock/RTCPeerConnectionHandlerMock.h:
3985         * platform/mock/mediasource/MockBox.h:
3986         * platform/mock/mediasource/MockMediaSourcePrivate.h:
3987         * platform/mock/mediasource/MockSourceBufferPrivate.cpp:
3988         * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.h:
3989         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.h:
3990         * platform/text/LocaleNone.cpp:
3991         * platform/text/PlatformLocale.cpp:
3992         * rendering/EllipsisBox.h:
3993         * rendering/FilterEffectRenderer.h:
3994         * rendering/InlineElementBox.h:
3995         * rendering/InlineFlowBox.h:
3996         * rendering/InlineTextBox.h:
3997         * rendering/RenderBlock.h:
3998         * rendering/RenderBlockFlow.h:
3999         * rendering/RenderBox.cpp:
4000         (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
4001         (WebCore::RenderBox::computePositionedLogicalHeightReplaced):
4002         * rendering/RenderBox.h:
4003         * rendering/RenderButton.h:
4004         * rendering/RenderCombineText.h:
4005         * rendering/RenderCounter.h:
4006         * rendering/RenderDeprecatedFlexibleBox.h:
4007         * rendering/RenderDetailsMarker.h:
4008         * rendering/RenderElement.h:
4009         * rendering/RenderEmbeddedObject.h:
4010         * rendering/RenderFieldset.h:
4011         * rendering/RenderFileUploadControl.h:
4012         * rendering/RenderFlexibleBox.h:
4013         * rendering/RenderFlowThread.h:
4014         * rendering/RenderFrame.h:
4015         * rendering/RenderFrameSet.h:
4016         * rendering/RenderFullScreen.cpp:
4017         * rendering/RenderFullScreen.h:
4018         * rendering/RenderGrid.h:
4019         * rendering/RenderHTMLCanvas.h:
4020         * rendering/RenderIFrame.h:
4021         * rendering/RenderImage.h:
4022         * rendering/RenderInline.h:
4023         * rendering/RenderLayer.h:
4024         * rendering/RenderLayerFilterInfo.h:
4025         * rendering/RenderLineBreak.h:
4026         * rendering/RenderListBox.h:
4027         * rendering/RenderListItem.h:
4028         * rendering/RenderListMarker.h:
4029         * rendering/RenderMedia.h:
4030         * rendering/RenderMediaControlElements.h:
4031         * rendering/RenderMenuList.h:
4032         * rendering/RenderMeter.h:
4033         * rendering/RenderMultiColumnBlock.h:
4034         * rendering/RenderMultiColumnFlowThread.h:
4035         * rendering/RenderMultiColumnSet.h:
4036         * rendering/RenderNamedFlowFragment.h:
4037         * rendering/RenderNamedFlowThread.h:
4038         * rendering/RenderProgress.h:
4039         * rendering/RenderQuote.h:
4040         * rendering/RenderRegion.h:
4041         * rendering/RenderRegionSet.h:
4042         * rendering/RenderReplaced.h:
4043         * rendering/RenderReplica.h:
4044         * rendering/RenderRuby.h:
4045         * rendering/RenderRubyBase.h:
4046         * rendering/RenderRubyRun.h:
4047         * rendering/RenderRubyText.h:
4048         * rendering/RenderScrollbar.h:
4049         * rendering/RenderScrollbarPart.h:
4050         * rendering/RenderSearchField.h:
4051         * rendering/RenderSlider.h:
4052         * rendering/RenderSnapshottedPlugIn.h:
4053         * rendering/RenderTable.h:
4054         * rendering/RenderTableCaption.h:
4055         * rendering/RenderTableCell.h:
4056         * rendering/RenderTableCol.h:
4057         * rendering/RenderTableRow.h:
4058         * rendering/RenderTableSection.h:
4059         * rendering/RenderText.h:
4060         * rendering/RenderTextControl.h:
4061         * rendering/RenderTextControlMultiLine.h:
4062         * rendering/RenderTextControlSingleLine.h:
4063         * rendering/RenderTextFragment.h:
4064         * rendering/RenderTextTrackCue.h:
4065         * rendering/RenderVideo.h:
4066         * rendering/RenderView.h:
4067         * rendering/RenderWidget.h:
4068         * rendering/RootInlineBox.h:
4069         * rendering/TrailingFloatsRootInlineBox.h:
4070         * rendering/mathml/RenderMathMLBlock.h:
4071         * rendering/mathml/RenderMathMLFenced.h:
4072         * rendering/mathml/RenderMathMLFraction.h:
4073         * rendering/mathml/RenderMathMLMath.h:
4074         * rendering/mathml/RenderMathMLOperator.h:
4075         * rendering/mathml/RenderMathMLRoot.h:
4076         * rendering/mathml/RenderMathMLRow.h:
4077         * rendering/mathml/RenderMathMLScripts.h:
4078         * rendering/mathml/RenderMathMLSpace.h:
4079         * rendering/mathml/RenderMathMLSquareRoot.h:
4080         * rendering/shapes/ShapeInsideInfo.h:
4081         * rendering/shapes/ShapeOutsideInfo.h:
4082         * rendering/style/ContentData.h:
4083         * rendering/style/StyleCachedImage.h:
4084         * rendering/style/StyleCachedImageSet.h: