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