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