[iOS] Update EditorIOS.mm to switch from pointers to references
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2
3         [iOS] Update EditorIOS.mm to switch from pointers to references
4
5         * editing/ios/EditorIOS.mm:
6         (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
7         (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
8         (WebCore::styleForSelectionStart):
9         (WebCore::Editor::selectionInWebArchiveFormat):
10         (WebCore::Editor::writeImageToPasteboard):
11         (WebCore::Editor::WebContentReader::readWebArchive):
12         (WebCore::Editor::WebContentReader::readRTFD):
13         (WebCore::Editor::WebContentReader::readRTF):
14         (WebCore::uniqueURLWithRelativePart):
15         (WebCore::Editor::WebContentReader::readPlainText):
16         (WebCore::Editor::webContentFromPasteboard):
17         (WebCore::Editor::createFragmentAndAddResources):
18         (WebCore::Editor::createFragmentForImageResourceAndAddResource):
19
20 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
21
22         Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
23         https://bugs.webkit.org/show_bug.cgi?id=126763
24
25         Reviewed by Timothy Hatcher.
26
27         No new tests, no observable change in functionality.
28
29         * CMakeLists.txt:
30         * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
31         * GNUmakefile.list.am:
32         * WebCore.vcxproj/WebCore.vcxproj:
33         * WebCore.vcxproj/WebCore.vcxproj.filters:
34         * WebCore.xcodeproj/project.pbxproj:
35         * inspector/InspectorAllInOne.cpp:
36         InspectorAgent moved to JavaScriptCore. Include forwarding header.
37
38         * inspector/PageConsoleAgent.cpp:
39         (WebCore::PageConsoleAgent::PageConsoleAgent):
40         (WebCore::PageConsoleAgent::~PageConsoleAgent):
41         * inspector/PageConsoleAgent.h:
42         (WebCore::PageConsoleAgent::create):
43         * inspector/InspectorApplicationCacheAgent.cpp:
44         * inspector/InspectorApplicationCacheAgent.h:
45         InspectorAgent was not used by these files, remove it.
46
47         * inspector/CommandLineAPIHost.cpp:
48         * inspector/CommandLineAPIHost.h:
49         (WebCore::CommandLineAPIHost::init):
50         * inspector/InspectorInstrumentation.cpp:
51         * inspector/InstrumentingAgents.h:
52         (WebCore::InstrumentingAgents::inspectorAgent):
53         (WebCore::InstrumentingAgents::setInspectorAgent):
54         Switch to Inspector::InspectorAgent where applicable.
55
56         * inspector/InspectorController.cpp:
57         (WebCore::InspectorController::InspectorController):
58         * inspector/InspectorController.h:
59         Manually add InspectorAgent to the InstrumentingAgents. It is one
60         of the agents that is always available in InstrumentingAgents.
61
62 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
63
64        Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
65
66         * WebCore.xcodeproj/project.pbxproj:
67         * dom/Document.cpp:
68         (WebCore::Document::Document):
69         * rendering/TextAutoSizing.cpp: Added.
70         (WebCore::cloneRenderStyleWithState):
71         (WebCore::TextAutoSizingKey::TextAutoSizingKey):
72         (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
73         (WebCore::TextAutoSizingKey::operator=):
74         (WebCore::TextAutoSizingKey::ref):
75         (WebCore::TextAutoSizingKey::deref):
76         (WebCore::TextAutoSizingValue::numNodes):
77         (WebCore::TextAutoSizingValue::addNode):
78         (WebCore::TextAutoSizingValue::adjustNodeSizes):
79         (WebCore::TextAutoSizingValue::reset):
80         * rendering/TextAutoSizing.h: Added.
81         (WebCore::TextAutoSizingKey::doc):
82         (WebCore::TextAutoSizingKey::style):
83         (WebCore::TextAutoSizingKey::isValidDoc):
84         (WebCore::TextAutoSizingKey::isValidStyle):
85         (WebCore::TextAutoSizingKey::deletedKeyDoc):
86         (WebCore::TextAutoSizingKey::deletedKeyStyle):
87         (WebCore::operator==):
88         (WebCore::TextAutoSizingHash::hash):
89         (WebCore::TextAutoSizingHash::equal):
90         (WebCore::TextAutoSizingValue::create):
91         (WebCore::TextAutoSizingValue::TextAutoSizingValue):
92
93 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
94
95         Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
96
97         Use of systemMemoryLevel was missing include of SystemMemory.h.
98
99         * platform/graphics/ca/GraphicsLayerCA.cpp:
100
101 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
102
103         Fix iOS build.
104
105         * bindings/objc/DOM.mm:
106         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
107         * bindings/objc/DOMExtensions.h:
108         * platform/DragImage.h:
109
110 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
111
112         Fix iOS build.
113         
114         Generated DOMTouch* and DOMGesture* files need to be in the project.
115         Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
116         
117         Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
118
119         * Configurations/WebCore.xcconfig:
120         * WebCore.xcodeproj/project.pbxproj:
121         * bindings/objc/DOMPrivate.h:
122
123 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
124
125         Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
126
127         Typo referring to generated name. Should be "iOS" not "IOS".
128
129         * rendering/RenderThemeIOS.mm:
130         (WebCore::RenderThemeIOS::mediaControlsScript):
131
132 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
133
134         Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
135
136         The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
137         it was using GSFonts. Just upstream a newer version of the file. Also
138         explicitly namespace qualify std::pair.
139
140         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
141         (AXAttributeStringSetStyle):
142
143 2014-01-10  Jinwoo Song  <jinwoo7.song@samsung.com>
144
145         Remove willRespondToTouchEvents() which was used by chromium port
146         https://bugs.webkit.org/show_bug.cgi?id=126739
147
148         Reviewed by Alexey Proskuryakov.
149
150         willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
151         However, it is not used anywhere after chromium port is removed.
152
153         * dom/Node.cpp:
154         * dom/Node.h:
155
156 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
157
158         Fix SystemVersionMac.o for iOS. Unreviewed build fix.
159
160         Add missing expected function. Maybe we can avoid including
161         this file entirely on iOS, there was already a FIXME.
162
163         * platform/mac/SystemVersionMac.mm:
164         (WebCore::systemMarketingVersion):
165
166 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
167
168         Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
169
170         Add missing iOS method declarations.
171
172         * bindings/js/JSDOMWindowBase.h:
173
174 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
175
176         Fix InputType.o for iOS. Unreviewed build fix.
177
178         The RuntimeEnabledFeatures function pointer type should have a
179         const qualifier, because the implementations are all const.
180
181         * html/InputType.cpp:
182
183 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
184
185         Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
186
187         Add missing MediaPlayerProxy Objective C methods and forward declarations.
188
189         * platform/graphics/mac/MediaPlayerProxy.h:
190
191 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
192
193         Fix FrameSelection.o for iOS. Unreviewed build fix.
194
195         r160966 renamed rendererIsEditable to hasEditableStyle.
196
197         * editing/FrameSelection.cpp:
198         (WebCore::FrameSelection::setSelectionFromNone):
199
200 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
201
202         Fix DragData.o for iOS. Unreviewed build fix.
203
204         String m_pasteboardName is unused on iOS, so ifdef it out.
205
206         * platform/DragData.h:
207
208 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
209
210         Fix FrameIOS.o for iOS. Unreviewed build fix.
211
212         Remove stale include to file that no longer exists. It was not needed.
213
214         * page/ios/FrameIOS.mm:
215
216 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
217
218         Fix MonthInputType.o for iOS. Unreviewed build fix.
219
220         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
221         the wrong class name lingered. Fix it to be the base class.
222
223         * html/TimeInputType.cpp:
224         (WebCore::TimeInputType::TimeInputType):
225
226 2014-01-10  Andy Estes  <aestes@apple.com>
227
228         [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
229
230         * DerivedSources.make:
231         * bindings/scripts/preprocessor.pm:
232         (applyPreprocessor):
233
234 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
235
236         Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
237         for a non-iOS function.
238
239         * bindings/objc/DOMExtensions.h:
240
241 2014-01-10  David Kilzer  <ddkilzer@apple.com>
242
243         Clean up architectures in xcconfig files
244         <http://webkit.org/b/126794>
245
246         Reviewed by Andy Estes.
247
248         * Configurations/Base.xcconfig:
249         * Configurations/WebCore.xcconfig: Remove armv6.
250         * DerivedSources.make: Remove armv6, armv7f. Sort.
251         - Add new arch.
252
253 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
254
255         Fix iOS build
256
257         * Configurations/WebCore.xcconfig:
258         * css/DeprecatedStyleBuilder.cpp:
259         (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
260
261 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
262
263         Fix iOS build.
264         
265         * html/DateTimeLocalInputType.h:
266         (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
267         * loader/ios/DiskImageCacheIOS.h:
268
269 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
270
271         iOS build fix: add StyleRareInheritedData::compositionFillColor
272
273         * rendering/style/RenderStyle.h:
274         * rendering/style/StyleRareInheritedData.cpp:
275         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
276         (WebCore::StyleRareInheritedData::operator==):
277         * rendering/style/StyleRareInheritedData.h:
278
279 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
280
281         Fix MonthInputType.o for iOS. Unreviewed build fix.
282
283         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
284         BaseMonthInputType typedef was removed. However a use of it lingered.
285         Changing to match the base class name.
286
287         * html/MonthInputType.h:
288         (WebCore::MonthInputType::MonthInputType):
289
290 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
291
292         Fix RenderButton.o for iOS. Unreviewed build fix.
293
294         Missing prototype in header for override of the layout method.
295
296         * rendering/RenderButton.h:
297
298 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
299
300         A couple of iOS build fixes.
301
302         * accessibility/ios/AXObjectCacheIOS.mm:
303         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
304         * html/canvas/CanvasRenderingContext2D.cpp:
305         (WebCore::CanvasRenderingContext2D::drawImage):
306
307 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
308
309         Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
310
311         PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
312         so remove the stale implementations on iOS. Also, add a notImplemented version
313         of screenColorProfile, which matches Mac and is unused in WebCore for this port.
314
315         * platform/ios/PlatformScreenIOS.mm:
316         (WebCore::screenColorProfile):
317
318 2014-01-10  Anders Carlsson  <andersca@apple.com>
319
320         CTTE FrameTree
321         https://bugs.webkit.org/show_bug.cgi?id=126795
322
323         Reviewed by Tim Horton.
324
325         * page/Frame.cpp:
326         (WebCore::Frame::Frame):
327         * page/FrameTree.cpp:
328         (WebCore::FrameTree::transferChild):
329         (WebCore::FrameTree::appendChild):
330         (WebCore::FrameTree::actuallyAppendChild):
331         (WebCore::FrameTree::uniqueChildName):
332         (WebCore::FrameTree::scopedChild):
333         (WebCore::FrameTree::scopedChildCount):
334         (WebCore::FrameTree::child):
335         (WebCore::FrameTree::find):
336         (WebCore::FrameTree::isDescendantOf):
337         (WebCore::FrameTree::traverseNext):
338         (WebCore::FrameTree::traverseNextWithWrap):
339         (WebCore::FrameTree::traversePreviousWithWrap):
340         (WebCore::FrameTree::deepLastChild):
341         (WebCore::FrameTree::top):
342         * page/FrameTree.h:
343         (WebCore::FrameTree::FrameTree):
344
345 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
346
347         Fix iOS build.
348
349         * loader/ResourceLoader.h:
350
351 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
352
353         Fix iOS build.
354
355         * platform/graphics/ImageSource.h:
356         (WebCore::ImageSource::acceleratedImageDecodingEnabled):
357         (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
358
359 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
360
361         Unreviewed EFL build fix after r161678.
362
363         static_cast a size_t to unsigned long for %lu format string.
364
365         * page/Console.cpp:
366         (WebCore::internalAddMessage):
367
368 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
369
370         Remove the BlackBerry port from trunk
371         https://bugs.webkit.org/show_bug.cgi?id=126715
372
373         Reviewed by Anders Carlsson.
374
375         * html/canvas/WebGLRenderingContext.cpp:
376         (WebCore::WebGLRenderingContext::readPixels):
377         * platform/graphics/ImageBuffer.cpp:
378         * platform/graphics/ImageBufferData.h:
379         * platform/graphics/IntPoint.h:
380         * platform/graphics/IntRect.h:
381         * platform/graphics/IntSize.h:
382         * platform/graphics/MediaPlayer.cpp:
383         * platform/graphics/NativeImagePtr.h:
384         * platform/graphics/OpenGLESShims.h:
385         * platform/graphics/Path.cpp:
386         (WebCore::Path::addPathForRoundedRect):
387         * platform/graphics/Path.h:
388         * platform/graphics/PlatformLayer.h:
389         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
390         * platform/graphics/filters/CustomFilterValidatedProgram.h:
391         * platform/graphics/filters/FilterOperation.h:
392         * platform/graphics/gpu/DrawingBuffer.cpp:
393         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
394         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
395         (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
396         * platform/graphics/opengl/Extensions3DOpenGLES.h:
397         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
398         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
399         (WebCore::GraphicsContext3D::prepareTexture):
400         (WebCore::GraphicsContext3D::bindFramebuffer):
401         (WebCore::GraphicsContext3D::compileShader):
402         (WebCore::GraphicsContext3D::copyTexImage2D):
403         (WebCore::GraphicsContext3D::copyTexSubImage2D):
404         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
405         (WebCore::GraphicsContext3D::readPixels):
406         (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
407         (WebCore::GraphicsContext3D::reshapeFBOs):
408         * platform/network/NetworkStateNotifier.h:
409         * platform/network/ResourceHandle.h:
410         * platform/network/ResourceHandleInternal.h:
411         * platform/network/ResourceRequestBase.cpp:
412
413 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
414
415         Fix CharsetData.cpp build for iOS
416         https://bugs.webkit.org/show_bug.cgi?id=126792
417
418         Reviewed by Mark Rowe.
419
420         CharsetData.cpp should have an empty CharsetTable list for iOS.
421         Achieve this with an iOS-specific encodings.txt file.
422
423         * DerivedSources.make:
424         * WebCore.xcodeproj/project.pbxproj:
425         * platform/text/mac/ios-encodings.txt: Added.
426
427 2014-01-10  Anders Carlsson  <andersca@apple.com>
428
429         CTTE in NavigationScheduler
430         https://bugs.webkit.org/show_bug.cgi?id=126788
431
432         Reviewed by Tim Horton.
433
434         * inspector/InspectorInstrumentation.cpp:
435         (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
436         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
437         * inspector/InspectorInstrumentation.h:
438         (WebCore::InspectorInstrumentation::frameScheduledNavigation):
439         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
440         * inspector/InspectorPageAgent.cpp:
441         (WebCore::InspectorPageAgent::frameScheduledNavigation):
442         (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
443         * inspector/InspectorPageAgent.h:
444         * loader/NavigationScheduler.cpp:
445         (WebCore::ScheduledNavigation::shouldStartTimer):
446         (WebCore::ScheduledNavigation::didStartTimer):
447         (WebCore::ScheduledNavigation::didStopTimer):
448         (WebCore::NavigationScheduler::NavigationScheduler):
449         (WebCore::NavigationScheduler::clear):
450         (WebCore::NavigationScheduler::shouldScheduleNavigation):
451         (WebCore::NavigationScheduler::scheduleRedirect):
452         (WebCore::NavigationScheduler::mustLockBackForwardList):
453         (WebCore::NavigationScheduler::scheduleLocationChange):
454         (WebCore::NavigationScheduler::scheduleFormSubmission):
455         (WebCore::NavigationScheduler::scheduleRefresh):
456         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
457         (WebCore::NavigationScheduler::timerFired):
458         (WebCore::NavigationScheduler::schedule):
459         (WebCore::NavigationScheduler::startTimer):
460         (WebCore::NavigationScheduler::cancel):
461         * loader/NavigationScheduler.h:
462         * page/Frame.cpp:
463         (WebCore::Frame::Frame):
464
465 2014-01-10  Myles C. Maxfield  <mmaxfield@apple.com>
466
467         CSS word-spacing property does not obey percentages
468         https://bugs.webkit.org/show_bug.cgi?id=126674
469
470         Reviewed by Simon Fraser.
471
472         One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
473         take percentages (of the width of the space character) in CSS3. In order to
474         implement this, the datatype must be changed from a float to a Length, which
475         can hold percentage values. Then, during layout, we can query the width of
476         the space character and update the Font's word-spacing value appropriately.
477         However, the RenderStyle still holds on to the Length (as a rare inherited
478         value).
479
480         Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
481                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
482                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
483
484         * css/CSSComputedStyleDeclaration.cpp:
485         (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
486         of style's Length value.
487         * css/CSSParser.cpp:
488         (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
489         parsed the same way.
490         * css/DeprecatedStyleBuilder.cpp:
491         (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
492         CSSValue and set the style's word spacing with it.
493         (WebCore::ApplyPropertyWordSpacing::createHandler):
494         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
495         * page/animation/CSSPropertyAnimation.cpp:
496         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
497         * rendering/RenderBlockLineLayout.cpp:
498         (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
499         of style's Length value.
500         * rendering/RenderText.cpp:
501         (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
502         * rendering/SimpleLineLayout.cpp:
503         (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
504         if either the percentage or the length is nonzero.
505         * rendering/line/BreakingContextInlineHeaders.h:
506         (WebCore::BreakingContext::handleText): Use Font's computed value instead
507         of style's Length value.
508         * rendering/style/RenderStyle.cpp:
509         (WebCore::RenderStyle::wordSpacing):
510         (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
511         percentage values, but hold on to the original Length.
512         * rendering/style/RenderStyle.h:
513         * rendering/style/StyleRareInheritedData.cpp:
514         * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
515
516 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
517
518         Fix the iOS build.
519
520         * platform/audio/mac/MediaSessionManagerMac.cpp:
521
522 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
523
524         iOS doesn't have <OpenGL/gl.h>; fix iOS build.
525
526         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
527
528 2014-01-10  Andy Estes  <aestes@apple.com>
529
530         [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
531
532         * bindings/scripts/CodeGeneratorObjC.pm:
533         (ReadPublicInterfaces):
534
535 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
536
537         Web Inspector: Remove unimplemented or static ScriptDebugServer features
538         https://bugs.webkit.org/show_bug.cgi?id=126784
539
540         Reviewed by Timothy Hatcher.
541
542         These features are unimplemented in the backend, and unused by the
543         current frontend. Most deal with features that were supported by v8
544         and are as yet unimplemented by JSC. If we decide to add such features
545         we can reimplement without conforming to an old implementation.
546
547         * bindings/js/ScriptDebugServer.cpp:
548         * bindings/js/ScriptDebugServer.h:
549         * bindings/js/ScriptProfiler.h:
550         * inspector/InspectorDebuggerAgent.cpp:
551         (WebCore::InspectorDebuggerAgent::disable):
552         * inspector/InspectorDebuggerAgent.h:
553         * inspector/InspectorPageAgent.cpp:
554         (WebCore::InspectorPageAgent::reload):
555         (WebCore::InspectorPageAgent::frameNavigated):
556         * inspector/InspectorPageAgent.h:
557         * inspector/InspectorProfilerAgent.cpp:
558         * inspector/InspectorProfilerAgent.h:
559         * inspector/PageDebuggerAgent.cpp:
560         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
561         * inspector/protocol/Page.json:
562         * inspector/protocol/Profiler.json:
563
564 2014-01-10  David Kilzer  <ddkilzer@apple.com>
565
566         [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
567
568         Fixes the following build error:
569
570             WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
571                 TileMap::iterator end = m_tiles.end();
572                                   ^
573
574         * platform/ios/TileGrid.mm:
575         (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
576         variable now that the for loop uses an auto iterator.
577
578 2014-01-10  Dean Jackson  <dino@apple.com>
579
580         Implement OES texture half float linear
581         https://bugs.webkit.org/show_bug.cgi?id=125060
582
583         Reviewed by Brent Fulgham.
584
585         Test: fast/canvas/webgl/oes-texture-half-float-linear.html
586
587         * CMakeLists.txt: Add new files.
588         * DerivedSources.cpp: Ditto.
589         * DerivedSources.make: Generate new file from IDL.
590         * GNUmakefile.list.am: Add new files.
591         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
592         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
593         * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear.
594
595         * bindings/js/JSWebGLRenderingContextCustom.cpp:
596         (WebCore::toJS): Map from extension name to native object.
597
598         * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
599         * html/canvas/OESTextureHalfFloatLinear.h: Added.
600         * html/canvas/OESTextureHalfFloatLinear.idl: Added.
601
602         * html/canvas/WebGLExtension.h: Add new enum for the new extension.
603
604         * html/canvas/WebGLRenderingContext.cpp:
605         (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the
606         context is asked for one.
607         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the
608         list of supported extensions. Actually remember to do it this time :)
609         (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float
610         extension as well, and update the log message.
611         * html/canvas/WebGLRenderingContext.h: New extension object.
612
613         * html/canvas/WebGLTexture.cpp:
614         (WebCore::WebGLTexture::WebGLTexture):
615         (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type.
616         (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary.
617         * html/canvas/WebGLTexture.h:
618
619         * platform/graphics/Extensions3D.h: Add a comment about the new extension.
620         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
621         (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available
622         when GL_ARB_texture_float is supported, so add the name to the translation.
623
624 2014-01-10  Brent Fulgham  <bfulgham@apple.com>
625
626         [WebGL] Correct uniform input validation for texture sampler uniform
627         https://bugs.webkit.org/show_bug.cgi?id=126775
628
629         Reviewed by Dean Jackson.
630
631         Added fast/canvas/webgl/uniform-samplers-test.html
632
633         * html/canvas/WebGLRenderingContext.cpp:
634         (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
635
636 2014-01-10  Manuel Rego Casasnovas  <rego@igalia.com>
637
638         [GTK] Unreviewed build fix after r161644.
639
640         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
641         (WebCore::MediaStreamAudioSourceNode::setFormat):
642
643 2014-01-10  Anders Carlsson  <andersca@apple.com>
644
645         Remove an unused FrameLoader function
646         https://bugs.webkit.org/show_bug.cgi?id=126785
647
648         Reviewed by Beth Dakin.
649
650         * WebCore.exp.in:
651         * loader/FrameLoader.cpp:
652         (WebCore::FrameLoader::setState):
653         * loader/FrameLoader.h:
654
655 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
656
657         Remove the BlackBerry port from trunk
658         https://bugs.webkit.org/show_bug.cgi?id=126715
659
660         Reviewed by Anders Carlsson.
661
662         * platform/MIMETypeRegistry.cpp:
663         (WebCore::initializeSupportedImageMIMETypesForEncoding):
664         * platform/PlatformKeyboardEvent.h:
665         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
666         * platform/PlatformMouseEvent.h:
667         * platform/PlatformTouchEvent.h:
668         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
669         * platform/PlatformTouchPoint.h:
670         * platform/ScrollAnimatorNone.cpp:
671         (WebCore::ScrollAnimator::create):
672         * platform/URL.cpp:
673         (WebCore::URL::parse):
674         (WebCore::portAllowed):
675         * platform/Widget.h:
676         * platform/graphics/ANGLEWebKitBridge.h:
677         * platform/graphics/DisplayRefreshMonitor.cpp:
678         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
679         * platform/graphics/DisplayRefreshMonitor.h:
680         * platform/graphics/FloatPoint.h:
681         * platform/graphics/FloatRect.h:
682         * platform/graphics/FloatSize.h:
683         * platform/graphics/FontCache.h:
684         * platform/graphics/FontPlatformData.h:
685         * platform/graphics/GlyphBuffer.h:
686         * platform/graphics/Gradient.cpp:
687         * platform/graphics/Gradient.h:
688         * platform/graphics/GraphicsContext.h:
689         * platform/graphics/GraphicsContext3D.h:
690
691 2014-01-10  Timothy Hatcher  <timothy@apple.com>
692
693         Clean up and fix some issues with stdout formatting of console messages.
694
695         * Fix URLs not printing line numbers unless column number is > 0.
696         * Change "CONSOLEAPI" to "CONSOLE" for the source.
697         * Clean up how console.trace outputs and print URL, line and column for each frame.
698         * Print "(unknown)" for anonymous and native code call frames.
699
700         https://bugs.webkit.org/show_bug.cgi?id=126767
701
702         Reviewed by Joseph Pecoraro.
703
704         * page/Console.cpp:
705         (WebCore::internalAddMessage):
706         * page/PageConsole.cpp:
707         (WebCore::PageConsole::printSourceURLAndPosition):
708         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
709         * page/PageConsole.h:
710
711 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
712
713         [iOS] Fill in missing WebCoreThread function pointers
714         https://bugs.webkit.org/show_bug.cgi?id=126776
715
716         Reviewed by Timothy Hatcher.
717
718         * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
719         (InitWebCoreThreadSystemInterface):
720
721 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
722
723         Clear unparented tiled layers on memory pressure.
724         https://bugs.webkit.org/show_bug.cgi?id=126737
725
726         Reviewed by Simon Fraser.
727
728         TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented
729         tiles immediately if we are under memory pressure.
730         
731         The patch does 3 things to improve the behavior:
732         1) When the system free memory is low (<35%), reduce the tiling threshold.  This could reduce
733         the peak memory usage when system is under low memory since we will convert more web layers into
734         tiled backing.
735         2) Under memory pressure, immediately clear all unparented tiles.
736         3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's.
737
738         * WebCore.exp.in:
739         * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler.
740         * platform/graphics/ca/GraphicsLayerCA.cpp:
741         (WebCore::GraphicsLayerCA::requiresTiledLayer):  Use a smaller tiling threshold if the system free memory is low.
742         * platform/graphics/ca/mac/TileController.h:
743         (WebCore::TileController::numberOfUnparentedTiles):
744         * platform/graphics/ca/mac/TileController.mm:
745         (WebCore::TileController::startedNewCohort):
746         (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles.
747         * platform/ios/MemoryPressureHandlerIOS.mm:
748         * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added.
749         (WebCore::TileControllerMemoryHandler::removeTileController):
750         (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers):
751         (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles):
752         (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until
753             it reaches the target.
754         (WebCore::tileControllerMemoryHandler):
755         * platform/ios/TileControllerMemoryHandlerIOS.h: Added.
756         (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler):
757
758 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
759
760         [CSS Blending] Log blending as a layer creation reason in the WI
761         https://bugs.webkit.org/show_bug.cgi?id=126159
762
763         Reviewed by Timothy Hatcher.
764
765         * inspector/InspectorLayerTreeAgent.cpp:
766         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
767         * inspector/protocol/LayerTree.json:
768
769 2014-01-10  Andy Estes  <aestes@apple.com>
770
771         Fix some iOS build errors during bindings generation.
772
773         * bindings/objc/PublicDOMInterfaces.h: Included
774         WebKitAdditions/PublicDOMInterfacesIOS.h and change
775         -[DOMRGBColor color] to return a CGColorRef on iOS.
776
777 2014-01-10  Timothy Hatcher  <timothy@apple.com>
778
779         Prevent some resources from showing up in Web Inspector as years in duration.
780
781         No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
782
783         https://bugs.webkit.org/show_bug.cgi?id=126760
784
785         Reviewed by Joseph Pecoraro.
786
787         * inspector/InspectorInstrumentation.cpp:
788         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
789         Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
790
791 2014-01-10  Dirk Schulze  <krit@webkit.org>
792
793         Make clipping path from basic-shapes relative to <box> value
794         https://bugs.webkit.org/show_bug.cgi?id=126206
795
796         Reviewed by Simon Fraser.
797
798         Tests: css3/masking/clip-path-circle-border-box.html
799                css3/masking/clip-path-circle-bounding-box.html
800                css3/masking/clip-path-circle-content-box.html
801                css3/masking/clip-path-circle-margin-box.html
802                css3/masking/clip-path-circle-padding-box.html
803
804         * rendering/RenderLayer.cpp:
805         (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes
806             and use different reference boxes to size the clipping path.
807
808 2014-01-10  Youenn Fablet  <youennf@gmail.com>
809
810
811         Correctly set XHR loadend attributes (loaded and total).
812         https://bugs.webkit.org/show_bug.cgi?id=120828
813
814         Reviewed by Alexey Proskuryakov.
815         
816         Added correct initialization of lengthComputable, loaded and total attributes 
817         to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
818
819         XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge 
820         of m_loaded and m_total values with this patch.
821         
822         Code refactoring to handle event dispatching in case of error in a single manner.
823         XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
824         XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
825         
826         Fixed assertion issues over bug 120828 patch
827
828         Tests: http/tests/xmlhttprequest/loadstart-event-init.html
829                http/tests/xmlhttprequest/onabort-progressevent-attributes.html
830                http/tests/xmlhttprequest/onload-progressevent-attributes.html
831                http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
832                http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
833
834         * xml/XMLHttpRequest.cpp:
835         (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec 
836         (WebCore::XMLHttpRequest::createRequest):
837         (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
838         (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
839         (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
840         (WebCore::XMLHttpRequest::didSendData):
841         (WebCore::XMLHttpRequest::didReceiveData):
842         (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
843         (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
844         * xml/XMLHttpRequest.h:
845         * xml/XMLHttpRequestProgressEventThrottle.cpp: before the patch, the fact that a progress event is being throttled is stored indirectly (m_loaded or m_total not equal to zero). With the patch, this information is stored in m_hasThrottledProgressEvent. The m_loaded and m_total values are no longer set back to zero after a progress event is dispatched. This allows using these values to correctly initialize other ProgressEvent events (in particular loadend, abort, timeout...) 
846         (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
847         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent): always update the new m_loaded and m_total values. If progress event is not sent as part of the function call, store the fact that a progress event is being throttled through m_hasThrottledProgressEvent. 
848         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
849         (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
850         (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
851         (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
852         (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
853         * xml/XMLHttpRequestProgressEventThrottle.h: introduced m_hasThrottledProgressEvent which stores whether a progress event is being throttled and m_computableLength which is used to initialize ProgressEvent computableLength
854         * xml/XMLHttpRequestUpload.cpp:
855         (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
856         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
857         * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
858
859 2014-01-10  Bear Travis  <betravis@adobe.com>
860
861         [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
862         https://bugs.webkit.org/show_bug.cgi?id=126713
863
864         Reviewed by Dirk Schulze.
865
866         Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
867         by having parseBasicShape return a CSSPrimitiveValue reference.
868
869         Refactoring, no new tests.
870
871         * css/CSSParser.cpp:
872         (WebCore::CSSParser::parseShapeProperty):
873         (WebCore::CSSParser::parseClipPath):
874         (WebCore::CSSParser::parseBasicShape):
875         * css/CSSParser.h:
876
877 2014-01-10  Piotr Grad  <p.grad@samsung.com>
878
879         Possible crash in ApplicationCache::removeResource.
880         https://bugs.webkit.org/show_bug.cgi?id=126695
881
882         Reviewed by Alexey Proskuryakov.
883
884         No new tests.
885
886         Iterator variable was used after it was removed.
887
888         * loader/appcache/ApplicationCache.cpp:
889         (WebCore::ApplicationCache::removeResource):
890
891 2014-01-10  Daniel Bates  <dabates@apple.com>
892
893         Another build fix for the Production Mac build following <http://trac.webkit.org/changeset/161638>
894         (https://bugs.webkit.org/show_bug.cgi?id=126698)
895
896         Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the
897         list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS
898         so that we generate the DOM and JS bindings for these IDLs.
899
900         * DerivedSources.make:
901
902 2014-01-10  Anders Carlsson  <andersca@apple.com>
903
904         Remove supportMultipleWindows setting
905         https://bugs.webkit.org/show_bug.cgi?id=126772
906
907         Reviewed by Beth Dakin.
908
909         This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port
910         and is unused by everyone else so get rid of it.
911
912         * loader/FrameLoader.cpp:
913         (WebCore::createWindow):
914         * page/ContextMenuController.cpp:
915         (WebCore::openNewWindow):
916         * page/Settings.in:
917
918 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
919
920         Remove the BlackBerry port from trunk
921         https://bugs.webkit.org/show_bug.cgi?id=126715
922
923         Reviewed by Anders Carlsson.
924
925         * dom/TouchEvent.cpp:
926         (WebCore::TouchEvent::TouchEvent):
927         (WebCore::TouchEvent::initTouchEvent):
928         * dom/TouchEvent.h:
929         * dom/ViewportArguments.cpp:
930         * dom/ViewportArguments.h:
931         * history/HistoryItem.h:
932         * loader/PingLoader.cpp:
933         (WebCore::PingLoader::loadImage):
934         (WebCore::PingLoader::sendPing):
935         (WebCore::PingLoader::sendViolationReport):
936         * loader/appcache/ApplicationCacheGroup.cpp:
937         (WebCore::ApplicationCacheGroup::createResourceHandle):
938         * loader/cache/CachedResource.cpp:
939         (WebCore::CachedResource::load):
940         * loader/icon/IconLoader.cpp:
941         (WebCore::IconLoader::startLoading):
942         * page/NavigatorBase.cpp:
943         * page/Settings.cpp:
944         * page/scrolling/ScrollingCoordinator.cpp:
945         (WebCore::ScrollingCoordinator::create):
946         * platform/Cursor.cpp:
947         * platform/Cursor.h:
948         (WebCore::Cursor::Cursor):
949         * platform/DragData.h:
950         * platform/DragImage.h:
951         * plugins/PluginDatabase.cpp:
952         (WebCore::PluginDatabase::defaultPluginDirectories):
953         (WebCore::PluginDatabase::isPreferredPluginDirectory):
954         * rendering/RenderLayerBacking.cpp:
955         (WebCore::RenderLayerBacking::paintsIntoWindow):
956         * rendering/RenderObject.cpp:
957         (WebCore::RenderObject::shouldRespectImageOrientation):
958         * testing/Internals.cpp:
959         (WebCore::Internals::getCurrentCursorInfo):
960         * workers/DefaultSharedWorkerRepository.cpp:
961         (WebCore::SharedWorkerScriptLoader::load):
962         * workers/Worker.cpp:
963         (WebCore::Worker::create):
964         * workers/WorkerGlobalScope.cpp:
965         (WebCore::WorkerGlobalScope::importScripts):
966         * workers/WorkerScriptLoader.cpp:
967         (WebCore::WorkerScriptLoader::createResourceRequest):
968         * workers/WorkerScriptLoader.h:
969         * xml/XMLHttpRequest.cpp:
970         (WebCore::XMLHttpRequest::createRequest):
971
972 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
973
974         Remove the BlackBerry port from trunk
975         https://bugs.webkit.org/show_bug.cgi?id=126715
976
977         Reviewed by Anders Carlsson.
978
979         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
980         (WebCore::initProtocolHandlerWhitelist):
981         * UseJSC.cmake:
982         * bindings/generic/RuntimeEnabledFeatures.cpp:
983         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
984         * bindings/js/GCController.cpp:
985         (WebCore::GCController::GCController):
986         (WebCore::GCController::garbageCollectSoon):
987         * bindings/js/GCController.h:
988
989 2014-01-10  Daniel Bates  <dabates@apple.com>
990
991         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
992         (https://bugs.webkit.org/show_bug.cgi?id=126698)
993
994         Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
995
996         * Configurations/Base.xcconfig:
997
998 2014-01-09  Andy Estes  <aestes@apple.com>
999
1000         [iOS] Upstream iOS changes to MigrateHeaders.make
1001         https://bugs.webkit.org/show_bug.cgi?id=126731
1002
1003         Reviewed by David Kilzer.
1004
1005         * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
1006         Private that will later be migrated by WebKit.
1007
1008 2014-01-10  Daniel Bates  <dabates@apple.com>
1009
1010         Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
1011         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1012
1013         Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
1014
1015         * Configurations/WebCore.xcconfig:
1016
1017 2014-01-10  Anders Carlsson  <andersca@apple.com>
1018
1019         Add a missing include.
1020
1021         * Modules/webdatabase/DatabaseManager.h:
1022
1023 2014-01-10  Anders Carlsson  <andersca@apple.com>
1024
1025         Use STL threading primitives in DatabaseDetails and DatabaseManager
1026         https://bugs.webkit.org/show_bug.cgi?id=126759
1027
1028         Reviewed by Geoffrey Garen.
1029
1030         * Modules/webdatabase/DatabaseDetails.h:
1031         (WebCore::DatabaseDetails::DatabaseDetails):
1032         (WebCore::DatabaseDetails::threadID):
1033         * Modules/webdatabase/DatabaseManager.cpp:
1034         (WebCore::DatabaseManager::existingDatabaseContextFor):
1035         (WebCore::DatabaseManager::registerDatabaseContext):
1036         (WebCore::DatabaseManager::unregisterDatabaseContext):
1037         (WebCore::DatabaseManager::didConstructDatabaseContext):
1038         (WebCore::DatabaseManager::didDestructDatabaseContext):
1039         (WebCore::DatabaseManager::addProposedDatabase):
1040         (WebCore::DatabaseManager::removeProposedDatabase):
1041         (WebCore::DatabaseManager::fullPathForDatabase):
1042         (WebCore::DatabaseManager::detailsForNameAndOrigin):
1043         * Modules/webdatabase/DatabaseManager.h:
1044
1045 2014-01-10  Commit Queue  <commit-queue@webkit.org>
1046
1047         Unreviewed, rolling out r161629.
1048         http://trac.webkit.org/changeset/161629
1049         https://bugs.webkit.org/show_bug.cgi?id=126762
1050
1051         Fails svg/custom/conditional-processing-2.html (Requested by
1052         ap on #webkit).
1053
1054         * svg/SVGSwitchElement.cpp:
1055         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1056         * svg/SVGTests.cpp:
1057         (WebCore::SVGTests::hasExtension):
1058         (WebCore::SVGTests::isValid):
1059
1060 2014-01-10  ChangSeok Oh  <changseok.oh@collabora.com>
1061
1062         Unreviewed build fix since r161589.
1063
1064         The changeset causes a compile failure with --no-svg.
1065
1066         * platform/graphics/FontFastPath.cpp:
1067         (WebCore::Font::drawGlyphBuffer):
1068
1069 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
1070
1071         [WebGL] Removing unnecessary pointer checks
1072         https://bugs.webkit.org/show_bug.cgi?id=124046
1073
1074         Reviewed by Brent Fulgham.
1075
1076         We do not need to check for a null array three times in
1077         the same call. Let's just do it once!
1078
1079         No new tests. Covered by existing ones.
1080
1081         * html/canvas/WebGLBuffer.cpp:
1082         (WebCore::WebGLBuffer::associateBufferData):
1083
1084 2014-01-10  Daniel Bates  <dabates@apple.com>
1085
1086         Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
1087         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1088
1089         Reviewed by David Kilzer.
1090
1091         * bindings/scripts/preprocessor.pm:
1092         (applyPreprocessor):
1093
1094 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
1095
1096         [WebGL] Wrong condition order in the if statement
1097         https://bugs.webkit.org/show_bug.cgi?id=125000
1098
1099         Reviewed by Brent Fulgham.
1100
1101         We should only pay the cost of string comparison once. The
1102         current logic requires a string comparison every time we
1103         pass through the function. Instead, by reordering the statements
1104         we can short-circuit through the boolean test after the initial
1105         setup is complete.
1106
1107         No new tests. No behaviour changes.
1108
1109         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
1110         (WebCore::Extensions3DOpenGLES::supportsExtension):
1111
1112 2014-01-10  Anders Carlsson  <andersca@apple.com>
1113
1114         CTTE in AudioContext::AutoLocker
1115         https://bugs.webkit.org/show_bug.cgi?id=126758
1116
1117         Reviewed by Antti Koivisto.
1118
1119         * Modules/webaudio/AudioBasicInspectorNode.cpp:
1120         (WebCore::AudioBasicInspectorNode::connect):
1121         (WebCore::AudioBasicInspectorNode::disconnect):
1122         * Modules/webaudio/AudioBufferSourceNode.cpp:
1123         (WebCore::AudioBufferSourceNode::setBuffer):
1124         * Modules/webaudio/AudioContext.cpp:
1125         (WebCore::AudioContext::refNode):
1126         (WebCore::AudioContext::deleteMarkedNodes):
1127         (WebCore::AudioContext::removeMarkedSummingJunction):
1128         * Modules/webaudio/AudioContext.h:
1129         (WebCore::AudioContext::AutoLocker::AutoLocker):
1130         (WebCore::AudioContext::AutoLocker::~AutoLocker):
1131         * Modules/webaudio/AudioNode.cpp:
1132         (WebCore::AudioNode::connect):
1133         (WebCore::AudioNode::disconnect):
1134         (WebCore::AudioNode::setChannelCount):
1135         (WebCore::AudioNode::setChannelCountMode):
1136         (WebCore::AudioNode::setChannelInterpretation):
1137         (WebCore::AudioNode::enableOutputsIfNecessary):
1138         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
1139         (WebCore::MediaElementAudioSourceNode::setFormat):
1140         * Modules/webaudio/WaveShaperNode.cpp:
1141         (WebCore::WaveShaperNode::setOversample):
1142
1143 2014-01-10  Antti Koivisto  <antti@apple.com>
1144
1145         Use element iterators more
1146         https://bugs.webkit.org/show_bug.cgi?id=126756
1147
1148         Reviewed by Anders Carlsson.
1149
1150         * dom/VisitedLinkState.cpp:
1151         (WebCore::VisitedLinkState::invalidateStyleForAllLinks):
1152         (WebCore::VisitedLinkState::invalidateStyleForLink):
1153         * html/HTMLMeterElement.cpp:
1154         (WebCore::HTMLMeterElement::renderMeter):
1155         * html/HTMLProgressElement.cpp:
1156         (WebCore::HTMLProgressElement::renderProgress):
1157         * html/shadow/ContentDistributor.cpp:
1158         (WebCore::ContentDistributor::ensureInsertionPointList):
1159         * style/StyleResolveTree.cpp:
1160
1161 2014-01-10  Daniel Bates  <dabates@apple.com>
1162
1163         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
1164         (https://bugs.webkit.org/show_bug.cgi?id=126654)
1165
1166         * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
1167
1168 2014-01-10  Daniel Bates  <dabates@apple.com>
1169
1170         Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
1171         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1172
1173         Substitute tab characters for space characters.
1174
1175         * DerivedSources.make:
1176
1177 2014-01-10  Anders Carlsson  <andersca@apple.com>
1178
1179         DOMWindow::showModalDialog should use std::function
1180         https://bugs.webkit.org/show_bug.cgi?id=126753
1181
1182         Reviewed by Antti Koivisto.
1183
1184         * bindings/js/JSDOMWindowCustom.cpp:
1185         (WebCore::DialogHandler::dialogCreated):
1186         (WebCore::JSDOMWindow::showModalDialog):
1187         * page/DOMWindow.cpp:
1188         (WebCore::DOMWindow::createWindow):
1189         (WebCore::DOMWindow::showModalDialog):
1190         * page/DOMWindow.h:
1191
1192 2014-01-10  Daniel Bates  <dabates@apple.com>
1193
1194         [iOS] Upstream WebCore and Tools miscellaneous changes
1195         https://bugs.webkit.org/show_bug.cgi?id=126698
1196
1197         Reviewed by David Kilzer.
1198
1199         * Configurations/Base.xcconfig:
1200         * Configurations/WebCore.xcconfig:
1201         * Configurations/WebCoreTestSupport.xcconfig:
1202         * Configurations/iOS.xcconfig: Added.
1203         * DerivedSources.make:
1204         * English.lproj/Localizable.strings:
1205         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: Copied from Source/WebCore/editing/TextAffinity.h.
1206         (WebCore::stringForPlaybackTargetAvailability):
1207         (WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent):
1208         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: Added.
1209         (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit):
1210         (WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent):
1211         (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
1212         (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability):
1213         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl: Copied from Source/WebCore/editing/DeleteButton.h.
1214         * Modules/geolocation/Geolocation.cpp:
1215         (WebCore::Geolocation::Geolocation):
1216         (WebCore::Geolocation::canSuspend):
1217         (WebCore::Geolocation::suspend):
1218         (WebCore::Geolocation::resume):
1219         (WebCore::Geolocation::resumeTimerFired):
1220         (WebCore::Geolocation::resetAllGeolocationPermission):
1221         (WebCore::Geolocation::stop):
1222         (WebCore::Geolocation::setIsAllowed):
1223         (WebCore::Geolocation::positionChanged):
1224         (WebCore::Geolocation::setError):
1225         * Modules/geolocation/Geolocation.h:
1226         * Modules/geolocation/NavigatorGeolocation.cpp:
1227         (WebCore::NavigatorGeolocation::resetAllGeolocationPermission):
1228         * Modules/geolocation/NavigatorGeolocation.h:
1229         * Modules/speech/SpeechSynthesis.cpp:
1230         (WebCore::SpeechSynthesis::SpeechSynthesis):
1231         (WebCore::SpeechSynthesis::speak):
1232         * Modules/speech/SpeechSynthesis.h:
1233         (WebCore::SpeechSynthesis::userGestureRequiredForSpeechStart):
1234         (WebCore::SpeechSynthesis::removeBehaviorRestriction):
1235         * Modules/webaudio/AudioContext.cpp:
1236         * Modules/webaudio/AudioContext.h:
1237         * Modules/webaudio/AudioScheduledSourceNode.cpp:
1238         * Modules/webdatabase/Database.cpp:
1239         * Modules/webdatabase/DatabaseBackendBase.cpp:
1240         (WebCore::DatabaseBackendBase::performOpenAndVerify):
1241         (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded):
1242         * Modules/webdatabase/DatabaseContext.cpp:
1243         (WebCore::DatabaseContext::DatabaseContext):
1244         (WebCore::DatabaseContext::databaseThread):
1245         (WebCore::DatabaseContext::setPaused):
1246         * Modules/webdatabase/DatabaseContext.h:
1247         * Modules/webdatabase/DatabaseManagerClient.h:
1248         * Modules/webdatabase/DatabaseTask.cpp:
1249         (WebCore::DatabaseTask::performTask):
1250         (WebCore::Database::DatabaseTransactionTask::shouldPerformWhilePaused):
1251         * Modules/webdatabase/DatabaseTask.h:
1252         * Modules/webdatabase/DatabaseThread.cpp:
1253         (WebCore::DatabaseThread::DatabaseThread):
1254         (WebCore::DatabaseThread::requestTermination):
1255         (WebCore::DatabaseUnpauseTask::create):
1256         (WebCore::DatabaseUnpauseTask::shouldPerformWhilePaused):
1257         (WebCore::DatabaseUnpauseTask::DatabaseUnpauseTask):
1258         (WebCore::DatabaseUnpauseTask::doPerformTask):
1259         (WebCore::DatabaseUnpauseTask::debugTaskName):
1260         (WebCore::DatabaseThread::setPaused):
1261         (WebCore::DatabaseThread::handlePausedQueue):
1262         (WebCore::DatabaseThread::databaseThread):
1263         * Modules/webdatabase/DatabaseThread.h:
1264         * Modules/webdatabase/DatabaseTracker.cpp:
1265         (WebCore::DatabaseTracker::setQuota):
1266         (WebCore::DatabaseTracker::deleteOrigin):
1267         (WebCore::DatabaseTracker::deleteDatabase):
1268         (WebCore::DatabaseTracker::deleteDatabaseFile):
1269         (WebCore::DatabaseTracker::removeDeletedOpenedDatabases):
1270         (WebCore::isZeroByteFile):
1271         (WebCore::DatabaseTracker::deleteDatabaseFileIfEmpty):
1272         (WebCore::DatabaseTracker::openDatabaseMutex):
1273         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskWillBeScheduled):
1274         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskDidFinish):
1275         (WebCore::DatabaseTracker::setDatabasesPaused):
1276         * Modules/webdatabase/DatabaseTracker.h:
1277         * Modules/webdatabase/SQLTransactionBackend.cpp:
1278         (WebCore::SQLTransactionBackend::shouldPerformWhilePaused):
1279         * Modules/webdatabase/SQLTransactionBackend.h:
1280         * Resources/DictationPhraseWithAlternativesDot.png: Added.
1281         * Resources/DictationPhraseWithAlternativesDot@2x.png: Added.
1282         * Resources/SpellingDot.png: Added.
1283         * Resources/SpellingDot@2x.png: Added.
1284         * Resources/decrementArrow.tiff: Added.
1285         * Resources/hScrollControl_left.png: Added.
1286         * Resources/hScrollControl_middle.png: Added.
1287         * Resources/hScrollControl_right.png: Added.
1288         * Resources/incrementArrow.tiff: Added.
1289         * Resources/markedLeft.png: Added.
1290         * Resources/markedMiddle.png: Added.
1291         * Resources/markedRight.png: Added.
1292         * Resources/vScrollControl_bottom.png: Added.
1293         * Resources/vScrollControl_middle.png: Added.
1294         * Resources/vScrollControl_top.png: Added.
1295         * WebCore.xcodeproj/project.pbxproj:
1296         * bindings/js/GCController.cpp:
1297         (WebCore::GCController::garbageCollectNow):
1298         (WebCore::GCController::releaseExecutableMemory):
1299         * bindings/js/GCController.h:
1300         * bindings/js/JSCallbackData.h:
1301         (WebCore::JSCallbackData::~JSCallbackData):
1302         * bindings/js/JSDOMWindowBase.cpp:
1303         (WebCore::JSDOMWindowBase::supportsProfiling):
1304         (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
1305         (WebCore::JSDOMWindowBase::commonVM):
1306         (WebCore::JSDOMWindowBase::commonVMExists):
1307         (WebCore::JSDOMWindowBase::commonVMInternal):
1308         * bindings/js/JSDOMWindowCustom.cpp:
1309         (WebCore::JSDOMWindow::touch):
1310         (WebCore::JSDOMWindow::touchList):
1311         * bindings/js/JSDeviceOrientationEventCustom.cpp:
1312         (WebCore::JSDeviceOrientationEvent::webkitCompassHeading):
1313         (WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy):
1314         (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
1315         * bindings/js/JSMainThreadExecState.h:
1316         * bindings/js/JSTouchCustom.cpp:
1317         * bindings/js/JSTouchListCustom.cpp:
1318         * bindings/js/PageScriptDebugServer.cpp:
1319         (WebCore::PageScriptDebugServer::didContinue):
1320         * bindings/js/ScriptController.cpp:
1321         (WebCore::ScriptController::initializeThreading):
1322         * bindings/js/ScriptDebugServer.cpp:
1323         (WebCore::ScriptDebugServer::handlePause):
1324         * bindings/js/ios/TouchConstructors.cpp: Added.
1325         * bindings/objc/DOM.mm:
1326         (WebCore::wkQuadFromFloatQuad):
1327         (WebCore::kit):
1328         (WebCore::min4):
1329         (WebCore::max4):
1330         (WebCore::emptyQuad):
1331         (-[WKQuadObject initWithQuad:]):
1332         (-[WKQuadObject quad]):
1333         (-[WKQuadObject boundingBox]):
1334         (-[DOMNode boundingBox]):
1335         (-[DOMNode absoluteQuad]):
1336         (-[DOMNode absoluteQuadAndInsideFixedPosition:]):
1337         (-[DOMNode boundingBoxUsingTransforms]):
1338         (-[DOMNode lineBoxQuads]):
1339         (-[DOMNode _linkElement]):
1340         (-[DOMNode hrefURL]):
1341         (-[DOMNode hrefTarget]):
1342         (-[DOMNode hrefFrame]):
1343         (-[DOMNode hrefLabel]):
1344         (-[DOMNode hrefTitle]):
1345         (-[DOMNode boundingFrame]):
1346         (-[DOMNode innerFrameQuad]):
1347         (-[DOMNode computedFontSize]):
1348         (-[DOMNode nextFocusNode]):
1349         (-[DOMNode previousFocusNode]):
1350         (-[DOMRange boundingBox]):
1351         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
1352         (-[DOMElement _font]):
1353         (-[DOMHTMLLinkElement _mediaQueryMatchesForOrientation:]):
1354         (-[DOMHTMLLinkElement _mediaQueryMatches]):
1355         * bindings/objc/DOMEvents.h:
1356         * bindings/objc/DOMEvents.mm:
1357         (kitClass):
1358         * bindings/objc/DOMExtensions.h:
1359         * bindings/objc/DOMHTML.mm:
1360         (-[DOMHTMLElement scrollYOffset]):
1361         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:]):
1362         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
1363         (-[DOMHTMLElement absolutePosition::::]):
1364         (-[DOMHTMLInputElement _autocapitalizeType]):
1365         (-[DOMHTMLTextAreaElement _autocapitalizeType]):
1366         (-[DOMHTMLInputElement setValueWithChangeEvent:]):
1367         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]):
1368         * bindings/objc/DOMInternal.h:
1369         * bindings/objc/DOMInternal.mm:
1370         (wrapperCacheLock):
1371         (getDOMWrapper):
1372         (addDOMWrapper):
1373         (removeDOMWrapper):
1374         * bindings/objc/DOMPrivate.h:
1375         * bindings/objc/DOMUIKitExtensions.h: Added.
1376         * bindings/objc/DOMUIKitExtensions.mm: Added.
1377         * bindings/objc/PublicDOMInterfaces.h:
1378         * bindings/scripts/CodeGeneratorJS.pm:
1379         (GenerateHeaderContentHeader):
1380         (GenerateImplementationContentHeader):
1381         (GenerateHeader):
1382         (GenerateImplementation):
1383         (GenerateCallbackImplementation):
1384         * bindings/scripts/CodeGeneratorObjC.pm:
1385         (ReadPublicInterfaces):
1386         (GetClassName):
1387         (IsCoreFoundationType):
1388         (GetObjCType):
1389         (AddIncludesForType):
1390         (GenerateHeader):
1391         (GenerateImplementation):
1392         (WriteData):
1393         * bindings/scripts/IDLAttributes.txt:
1394         * bindings/scripts/preprocessor.pm:
1395         (applyPreprocessor):
1396         * bridge/objc/objc_class.mm:
1397         (JSC::Bindings::ObjcClass::fieldNamed):
1398         * bridge/objc/objc_instance.mm:
1399         * config.h:
1400         * dom/Document.cpp:
1401         (WebCore::Document::addAutoSizingNode):
1402         * dom/Document.h:
1403         * dom/Document.idl:
1404         * dom/ios/TouchEvents.cpp: Added.
1405         * editing/ApplyStyleCommand.cpp:
1406         (WebCore::ApplyStyleCommand::applyBlockStyle):
1407         * editing/CompositeEditCommand.cpp:
1408         (WebCore::EditCommandComposition::unapply):
1409         (WebCore::CompositeEditCommand::apply):
1410         (WebCore::CompositeEditCommand::inputText):
1411         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
1412         (WebCore::CompositeEditCommand::moveParagraphs):
1413         * editing/CompositeEditCommand.h:
1414         * editing/DeleteButton.h:
1415         * editing/DeleteButtonController.cpp:
1416         (WebCore::DeleteButtonController::enable):
1417         (WebCore::DeleteButtonController::disable):
1418         * editing/DeleteSelectionCommand.cpp:
1419         (WebCore::DeleteSelectionCommand::doApply):
1420         * editing/DeleteSelectionCommand.h:
1421         * editing/EditAction.h:
1422         * editing/EditCommand.h:
1423         (WebCore::EditCommand::isInsertTextCommand):
1424         * editing/EditingStyle.cpp:
1425         * editing/Editor.cpp:
1426         (WebCore::ClearTextCommand::ClearTextCommand):
1427         (WebCore::ClearTextCommand::editingAction):
1428         (WebCore::ClearTextCommand::CreateAndApply):
1429         (WebCore::Editor::handleTextEvent):
1430         (WebCore::Editor::clearText):
1431         (WebCore::Editor::insertDictationPhrases):
1432         (WebCore::Editor::setDictationPhrasesAsChildOfElement):
1433         (WebCore::Editor::confirmMarkedText):
1434         (WebCore::Editor::setTextAsChildOfElement):
1435         (WebCore::Editor::notifyComponentsOnChangedSelection):
1436         (WebCore::Editor::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
1437         (WebCore::Editor::copy):
1438         (WebCore::Editor::setBaseWritingDirection):
1439         (WebCore::Editor::setComposition):
1440         (WebCore::Editor::showSpellingGuessPanel):
1441         (WebCore::Editor::markMisspellingsAfterTypingToWord):
1442         (WebCore::Editor::markMisspellingsOrBadGrammar):
1443         (WebCore::Editor::changeBackToReplacedString):
1444         (WebCore::Editor::updateMarkersForWordsAffectedByEditing):
1445         (WebCore::Editor::setIgnoreCompositionSelectionChange):
1446         (WebCore::Editor::changeSelectionAfterCommand):
1447         (WebCore::Editor::shouldChangeSelection):
1448         (WebCore::Editor::respondToChangedSelection):
1449         (WebCore::Editor::resolveTextCheckingTypeMask):
1450         * editing/Editor.h:
1451         * editing/EditorCommand.cpp:
1452         (WebCore::executeClearText):
1453         (WebCore::enabledCopy):
1454         (WebCore::enabledCut):
1455         (WebCore::enabledClearText):
1456         (WebCore::createCommandMap):
1457         * editing/FrameSelection.cpp:
1458         (WebCore::FrameSelection::FrameSelection):
1459         (WebCore::FrameSelection::setSelection):
1460         (WebCore::FrameSelection::modifyExtendingRight):
1461         (WebCore::FrameSelection::modifyExtendingForward):
1462         (WebCore::FrameSelection::modifyMovingRight):
1463         (WebCore::FrameSelection::modifyMovingForward):
1464         (WebCore::FrameSelection::modifyExtendingLeft):
1465         (WebCore::FrameSelection::modifyExtendingBackward):
1466         (WebCore::FrameSelection::modifyMovingLeft):
1467         (WebCore::FrameSelection::modifyMovingBackward):
1468         (WebCore::FrameSelection::setSelectedRange):
1469         (WebCore::FrameSelection::focusedOrActiveStateChanged):
1470         (WebCore::FrameSelection::updateAppearance):
1471         (WebCore::FrameSelection::shouldDeleteSelection):
1472         (WebCore::FrameSelection::revealSelection):
1473         (WebCore::FrameSelection::setSelectionFromNone):
1474         (WebCore::FrameSelection::shouldChangeSelection):
1475         (WebCore::FrameSelection::expandSelectionToElementContainingCaretSelection):
1476         (WebCore::FrameSelection::elementRangeContainingCaretSelection):
1477         (WebCore::FrameSelection::expandSelectionToWordContainingCaretSelection):
1478         (WebCore::FrameSelection::wordRangeContainingCaretSelection):
1479         (WebCore::FrameSelection::expandSelectionToStartOfWordContainingCaretSelection):
1480         (WebCore::FrameSelection::characterInRelationToCaretSelection):
1481         (WebCore::FrameSelection::characterBeforeCaretSelection):
1482         (WebCore::FrameSelection::characterAfterCaretSelection):
1483         (WebCore::FrameSelection::wordOffsetInRange):
1484         (WebCore::FrameSelection::spaceFollowsWordInRange):
1485         (WebCore::FrameSelection::selectionAtDocumentStart):
1486         (WebCore::FrameSelection::selectionAtSentenceStart):
1487         (WebCore::FrameSelection::selectionAtWordStart):
1488         (WebCore::FrameSelection::rangeByMovingCurrentSelection):
1489         (WebCore::FrameSelection::rangeByExtendingCurrentSelection):
1490         (WebCore::FrameSelection::selectRangeOnElement):
1491         (WebCore::FrameSelection::wordSelectionContainingCaretSelection):
1492         (WebCore::FrameSelection::actualSelectionAtSentenceStart):
1493         (WebCore::FrameSelection::rangeByAlteringCurrentSelection):
1494         (WebCore::FrameSelection::clearCurrentSelection):
1495         (WebCore::FrameSelection::setCaretBlinks):
1496         (WebCore::FrameSelection::setCaretColor):
1497         * editing/FrameSelection.h:
1498         (WebCore::FrameSelection::suppressCloseTyping):
1499         (WebCore::FrameSelection::restoreCloseTyping):
1500         (WebCore::FrameSelection::setUpdateAppearanceEnabled):
1501         (WebCore::FrameSelection::suppressScrolling):
1502         (WebCore::FrameSelection::restoreScrolling):
1503         * editing/InsertIntoTextNodeCommand.cpp:
1504         (WebCore::InsertIntoTextNodeCommand::doReapply):
1505         * editing/InsertIntoTextNodeCommand.h:
1506         * editing/InsertTextCommand.h:
1507         * editing/ReplaceSelectionCommand.cpp:
1508         (WebCore::ReplaceSelectionCommand::doApply):
1509         * editing/TextAffinity.h:
1510         * editing/TextCheckingHelper.cpp:
1511         * editing/TextGranularity.h:
1512         * editing/TextIterator.cpp:
1513         (WebCore::isRendererReplacedElement):
1514         * editing/TypingCommand.cpp:
1515         (WebCore::TypingCommand::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
1516         (WebCore::TypingCommand::markMisspellingsAfterTyping):
1517         (WebCore::TypingCommand::deleteKeyPressed):
1518         (WebCore::TypingCommand::forwardDeleteKeyPressed):
1519         (WebCore::FriendlyEditCommand::setEndingSelection):
1520         (WebCore::TypingCommand::setEndingSelectionOnLastInsertCommand):
1521         * editing/TypingCommand.h:
1522         * editing/VisiblePosition.h:
1523         (WebCore::operator<):
1524         (WebCore::operator>):
1525         (WebCore::operator<=):
1526         (WebCore::operator>=):
1527         * editing/VisibleSelection.cpp:
1528         (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity):
1529         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
1530         * editing/VisibleUnits.cpp:
1531         (WebCore::previousBoundary):
1532         (WebCore::nextBoundary):
1533         (WebCore::startOfDocument):
1534         (WebCore::endOfDocument):
1535         (WebCore::directionIsDownstream):
1536         (WebCore::atBoundaryOfGranularity):
1537         (WebCore::withinTextUnitOfGranularity):
1538         (WebCore::nextCharacterBoundaryInDirection):
1539         (WebCore::nextWordBoundaryInDirection):
1540         (WebCore::nextSentenceBoundaryInDirection):
1541         (WebCore::nextLineBoundaryInDirection):
1542         (WebCore::nextParagraphBoundaryInDirection):
1543         (WebCore::nextDocumentBoundaryInDirection):
1544         (WebCore::positionOfNextBoundaryOfGranularity):
1545         (WebCore::enclosingTextUnitOfGranularity):
1546         (WebCore::distanceBetweenPositions):
1547         (WebCore::wordRangeFromPosition):
1548         (WebCore::closestWordBoundaryForPosition):
1549         * editing/VisibleUnits.h:
1550         * editing/ios/DictationCommandIOS.cpp: Added.
1551         * editing/ios/DictationCommandIOS.h: Added.
1552         (WebCore::DictationCommandIOS::create):
1553         (WebCore::DictationCommandIOS::editingAction):
1554         * editing/mac/FrameSelectionMac.mm:
1555         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
1556         * fileapi/AsyncFileStream.cpp:
1557         * generate-export-file: Added.
1558         * inspector/InspectorCounters.h:
1559         * inspector/InspectorFrontendHost.h:
1560         * make-export-file-generator:
1561         * plugins/PluginPackage.h:
1562         * plugins/PluginViewBase.h:
1563         (WebCore::PluginViewBase::willProvidePluginLayer):
1564         (WebCore::PluginViewBase::attachPluginLayer):
1565         (WebCore::PluginViewBase::detachPluginLayer):
1566         * style/StyleResolveForDocument.cpp:
1567         (WebCore::Style::resolveForDocument):
1568         * style/StyleResolveTree.cpp:
1569         (WebCore::Style::elementImplicitVisibility):
1570         * testing/Internals.cpp:
1571         (WebCore::Internals::getCurrentCursorInfo):
1572         (WebCore::Internals::isSelectPopupVisible):
1573         * workers/WorkerThread.cpp:
1574         (WebCore::WorkerThread::workerThread):
1575
1576 2014-01-10  Daniel Bates  <dabates@apple.com>
1577
1578         Fix the iOS build after <http://trac.webkit.org/changeset/161589>
1579         (https://bugs.webkit.org/show_bug.cgi?id=126654)
1580
1581         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
1582         (WebCore::MediaPlayerPrivateIOS::engineDescription): Adding missing return keyword.
1583
1584 2014-01-10  Andrei Bucur  <abucur@adobe.com>
1585
1586         [CSS Regions] Remove unused CSSParser::parseFlowThread
1587         https://bugs.webkit.org/show_bug.cgi?id=126749
1588
1589         Reviewed by Antti Koivisto.
1590
1591         There are two versions of CSSParser::parseFlowThread. Remove the unused one:
1592         bool parseFlowThread(const String& flowName);
1593
1594         Tests: No tests, code cleanup.
1595
1596         * css/CSSParser.cpp:
1597         * css/CSSParser.h:
1598
1599 2014-01-10  Alex Christensen  <achristensen@webkit.org>
1600
1601         [WinCairo] Build fix after r161589.
1602         https://bugs.webkit.org/show_bug.cgi?id=126747
1603
1604         Reviewed by Anders Carlsson.
1605
1606         * platform/network/ResourceHandle.cpp:
1607         Include NotImplemented.h for all platforms.
1608
1609 2014-01-10  Anders Carlsson  <andersca@apple.com>
1610
1611         Convert some for loops over to range-based for
1612         https://bugs.webkit.org/show_bug.cgi?id=126752
1613
1614         Reviewed by Antti Koivisto.
1615
1616         * inspector/InspectorApplicationCacheAgent.cpp:
1617         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
1618         * loader/appcache/ApplicationCache.cpp:
1619         (WebCore::ApplicationCache::clearStorageID):
1620         * loader/appcache/ApplicationCacheGroup.cpp:
1621         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
1622         (WebCore::ApplicationCacheGroup::clearStorageID):
1623         * loader/appcache/ApplicationCacheHost.cpp:
1624         (WebCore::ApplicationCacheHost::fillResourceList):
1625         * loader/appcache/ApplicationCacheResource.cpp:
1626         (WebCore::ApplicationCacheResource::estimatedSizeInStorage):
1627         * loader/appcache/ApplicationCacheStorage.cpp:
1628         (WebCore::ApplicationCacheStorage::cacheGroupForURL):
1629         * loader/archive/ArchiveFactory.cpp:
1630         (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
1631         * page/animation/AnimationController.cpp:
1632         (WebCore::AnimationControllerPrivate::styleAvailable):
1633         (WebCore::AnimationControllerPrivate::startTimeResponse):
1634
1635 2014-01-10  Anders Carlsson  <andersca@apple.com>
1636
1637         Tighten up two functions in the inspector code
1638         https://bugs.webkit.org/show_bug.cgi?id=126751
1639
1640         Reviewed by Antti Koivisto.
1641
1642         * inspector/InspectorInstrumentation.cpp:
1643         (WebCore::InspectorInstrumentation::frameStartedLoadingImpl):
1644         (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl):
1645         * inspector/InspectorInstrumentation.h:
1646         (WebCore::InspectorInstrumentation::frameStartedLoading):
1647         (WebCore::InspectorInstrumentation::frameStoppedLoading):
1648         * inspector/InspectorPageAgent.cpp:
1649         (WebCore::InspectorPageAgent::frameStartedLoading):
1650         (WebCore::InspectorPageAgent::frameStoppedLoading):
1651         * inspector/InspectorPageAgent.h:
1652
1653 2014-01-10  Antti Koivisto  <antti@apple.com>
1654
1655         Crash when mutating SVG text with transform
1656         https://bugs.webkit.org/show_bug.cgi?id=126744
1657
1658         Reviewed by Dirk Schulze.
1659
1660         Test: svg/custom/mutation-text-transform-crash.html
1661         
1662         Text-transform property triggers subtreeTextDidChange when an SVG text renderer is
1663         being added to the render tree. The function assumes the child is already fully in the tree
1664         but in this case we are still in middle of adding it.
1665
1666         * rendering/svg/RenderSVGText.cpp:
1667         (WebCore::RenderSVGText::subtreeTextDidChange):
1668         
1669             Bail out if the changed RenderSVGInlineText can't be found from m_layoutAttributes.
1670             This means that subtreeChildWasAdded hasn't been invoked yet for it and there is nothing
1671             to update. The required updates will happen in subtreeChildWasAdded.
1672
1673 2014-01-10  Frédéric Wang  <fred.wang@free.fr>
1674
1675         [SVG] Accept HTML and MathML namespaces as valid requiredExtensions
1676         https://bugs.webkit.org/show_bug.cgi?id=88188
1677
1678         Reviewed by Dirk Schulze.
1679
1680         When HTML and MathML are used as foreign objects of an SVG image, it is
1681         important for Web authors to be able to specify a fallback content for
1682         SVG-only readers or browsers without MathML support. We rely on the
1683         requiredExtensions for that purpose and we use the XHTML/MathML
1684         namespaces as suggested in SVG Tiny 1.2 and implemented in Gecko.
1685
1686         Tests: svg/custom/conditional-processing-1.svg
1687                svg/custom/conditional-processing-2.html
1688                svg/dom/SVGTests.html
1689
1690         * svg/SVGSwitchElement.cpp: Remove an incorrect FIXME comment and replace it with a reference to bug 74749.
1691         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1692         * svg/SVGTests.cpp: Check if the list of required extensions contains only the XHTML/MathML namespaces.
1693         (WebCore::SVGTests::hasExtension):
1694         (WebCore::SVGTests::isValid):
1695
1696 2014-01-10  Mihai Tica  <mitica@adobe.com>
1697
1698         Add support for blendmode to Core Animation layer.
1699         Patch by Rik Cabanier, Dean Jackson and Mihai Tica.
1700
1701         https://bugs.webkit.org/show_bug.cgi?id=99200
1702
1703         Reviewed by Dirk Schulze.
1704
1705         Tests: css3/compositing/blend-mode-layers.html
1706                css3/compositing/blend-mode-overflow.html
1707                css3/compositing/blend-mode-reflection.html
1708                css3/compositing/blend-mode-should-not-have-compositing-layer.html
1709                css3/compositing/blend-mode-simple.html
1710
1711         * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote
1712         * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h
1713         * platform/graphics/GraphicsLayer.cpp: add blendMode member
1714         (WebCore::GraphicsLayer::GraphicsLayer):
1715         * platform/graphics/GraphicsLayer.h:
1716         (WebCore::GraphicsLayer::blendMode):
1717         (WebCore::GraphicsLayer::setBlendMode):
1718         * platform/graphics/ca/GraphicsLayerCA.cpp:
1719         (WebCore::GraphicsLayerCA::setBlendMode):
1720         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode()
1721         (WebCore::GraphicsLayerCA::updateBlendMode):
1722         * platform/graphics/ca/GraphicsLayerCA.h:
1723         * platform/graphics/ca/PlatformCAFilters.h:
1724         * platform/graphics/ca/PlatformCALayer.h:
1725         * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added.
1726         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
1727         (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer
1728         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1729         (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer
1730         * rendering/RenderLayerBacking.cpp:
1731         (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
1732         (WebCore::RenderLayerBacking::updateBlendMode):
1733         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
1734         (WebCore::RenderLayerBacking::setBlendMode):
1735         * rendering/RenderLayerBacking.h:
1736         * rendering/RenderLayerCompositor.cpp:
1737         (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member
1738         (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending
1739         (WebCore::RenderLayerCompositor::reasonsForCompositing):
1740         (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason
1741         (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason
1742         * rendering/RenderLayerCompositor.h:
1743
1744 2014-01-10  Andrei Bucur  <abucur@adobe.com>
1745
1746         [CSS Regions] Implement visual overflow computation for inline elements
1747         https://bugs.webkit.org/show_bug.cgi?id=125291
1748
1749         Reviewed by David Hyatt.
1750
1751         The patch implements visual overflow computation for inline elements per region. The algorithm
1752         uses the container region of each root line box to determine the lines in a region generated by
1753         a RenderInline. The overflow of a RenderInline inside a region is the smallest rectangle that fits
1754         all the line boxes belonging to that region.
1755
1756         The patch also correctly flips for writing mode the overflow of a renderer before clipping with it.
1757
1758         Tests: fast/regions/overflow-in-variable-width-regions-inline-bt.html
1759                fast/regions/overflow-in-variable-width-regions-inline-continuation.html
1760                fast/regions/overflow-in-variable-width-regions-inline-lr.html
1761                fast/regions/overflow-in-variable-width-regions-inline-rl.html
1762                fast/regions/overflow-in-variable-width-regions-inline.html
1763
1764         * rendering/RenderFlowThread.cpp:
1765         (WebCore::RenderFlowThread::objectShouldPaintInFlowRegion):
1766         * rendering/RenderInline.cpp:
1767         (WebCore::RenderInline::updateAlwaysCreateLineBoxes): Always create line boxes for RenderInline
1768         (WebCore::RenderInline::linesVisualOverflowBoundingBoxInRegion):
1769         * rendering/RenderInline.h:
1770         * rendering/RenderLayer.cpp:
1771         (WebCore::RenderLayer::calculateClipRects):
1772         * rendering/RenderRegion.cpp:
1773         (WebCore::RenderRegion::visualOverflowRectForBox):
1774         (WebCore::RenderRegion::visualOverflowRectForBoxForPropagation):
1775         * rendering/RenderRegion.h:
1776
1777 2014-01-09  Jer Noble  <jer.noble@apple.com>
1778
1779         [Mac] .mp3 media document controls missing their background
1780         https://bugs.webkit.org/show_bug.cgi?id=126683
1781
1782         Reviewed by Eric Carlson.
1783
1784         Test: media/media-document-audio-controls-visible.html
1785
1786         <video> elements in a media document are created with an intrinsic size of 300x1,
1787         with the expectation that either the size will be updated if the media has a video
1788         track, or the controls will visibly overflow if the media is audio-only. Since the
1789         shadow root is a flex-box, the panel was being collapsed to 1px high, so give the panel
1790         a minimum height to prevent that. Also, disable "fading out" the controls in a
1791         media document for an audio-only file by adding a "no-video" class to the panel
1792         and adding a media document-only rule to force the controls to always be visible.
1793
1794         * Modules/mediacontrols/mediaControlsApple.css:
1795         (video:-webkit-full-page-media::-webkit-media-controls-panel.no-video):
1796         (audio::-webkit-media-controls-panel):
1797         * Modules/mediacontrols/mediaControlsApple.js:
1798         (Controller): Call updateHasVideo().
1799         (Controller.prototype.addVideoListeners): Add video track listeners.
1800         (Controller.prototype.removeVideoListeners): Remove same.
1801         (Controller.prototype.updateHasVideo): Add a 'no-video' class to the panel if
1802             the video element has no video tracks.
1803
1804 2014-01-09  Anders Carlsson  <andersca@apple.com>
1805
1806         Clean up ProgressTracker a little
1807         https://bugs.webkit.org/show_bug.cgi?id=126738
1808
1809         Reviewed by Dan Bernstein.
1810
1811         Use Frame& where the frame can never be null, avoid an extra hash lookup and
1812         switch the m_progressItems map over to std::unique_ptr.
1813
1814         * inspector/InspectorInstrumentation.h:
1815         (WebCore::InspectorInstrumentation::frameStartedLoading):
1816         * loader/FrameLoader.cpp:
1817         (WebCore::FrameLoader::FrameProgressTracker::~FrameProgressTracker):
1818         (WebCore::FrameLoader::FrameProgressTracker::progressStarted):
1819         (WebCore::FrameLoader::FrameProgressTracker::progressCompleted):
1820         * loader/ProgressTracker.cpp:
1821         (WebCore::ProgressTracker::progressStarted):
1822         (WebCore::ProgressTracker::progressCompleted):
1823         (WebCore::ProgressTracker::incrementProgress):
1824         * loader/ProgressTracker.h:
1825         * loader/ResourceLoadNotifier.cpp:
1826         (WebCore::ResourceLoadNotifier::didReceiveData):
1827
1828 2014-01-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1829
1830         Fix a build break on EFL debug build
1831         https://bugs.webkit.org/show_bug.cgi?id=126735
1832
1833         Reviewed by Anders Carlsson.
1834
1835         No new tests, just build fix.
1836
1837         * platform/ThreadTimers.cpp:
1838         (WebCore::ThreadTimers::sharedTimerFiredInternal):  Add parentheses.
1839
1840 2014-01-09  Anders Carlsson  <andersca@apple.com>
1841
1842         Remove unused FrameLoader member functions
1843         https://bugs.webkit.org/show_bug.cgi?id=126734
1844
1845         Reviewed by Andreas Kling.
1846
1847         * loader/FrameLoader.cpp:
1848         * loader/FrameLoader.h:
1849
1850 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
1851
1852         Unreviewed Windows build fix for r161563.
1853
1854         Remove stale forward declaration causing namespace ambiguity
1855         later on in a Windows AllInOne file that picked it up. Also
1856         remove a few stale functions that are not used and accidentally
1857         got added back in when the file changed names.
1858
1859         * bindings/js/ScriptGlobalObject.h:
1860
1861 2014-01-09  Dean Jackson  <dino@apple.com>
1862
1863         [WebGL] Expose texture_float_linear and texture_half_float to getSupportedExtensions
1864         https://bugs.webkit.org/show_bug.cgi?id=126732
1865
1866         Reviewed by Tim Horton.
1867
1868         When I added support for these two extensions, I forgot to add their
1869         names to the list in getSupportedExtensions.
1870
1871         Covered by the Khronos test: conformance/extensions/get-extension.html
1872
1873         * html/canvas/WebGLRenderingContext.cpp:
1874         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add OES_texture_float_linear
1875         and OES_texture_half_float if the WebGL context supports them.
1876
1877 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
1878
1879         Revert r161611, incorrect fix, will fix better.
1880
1881         * bindings/js/ScriptGlobalObject.h:
1882
1883 2014-01-09  Jer Noble  <jer.noble@apple.com>
1884
1885         [Mac] Scrubbing performance of HD content with software decoding is poor.
1886         https://bugs.webkit.org/show_bug.cgi?id=126705
1887
1888         Reviewed by Eric Carlson.
1889
1890         Instead of issuing a new seek before the previous one completes, wait until that seek's
1891         completion handler is called, and then issue the new seek. This has the added benefit of
1892         coalescing multiple incoming seeks so that only the last one is acted upon.
1893
1894         Save the parameters passed into seekToTime and bind them together in a std::function
1895         to be replayed once the in-flight seek completes. To handle the case where a completion
1896         handler fires after the media player is destroyed, add a weakPtrFactory and pass a
1897         WeakPtr into the completion handler.
1898         
1899         Clean up some ivars which are no longer necessary: remove m_seekCount and m_seekTime.
1900
1901         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1902         (WebCore::MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation): Initialize the
1903             WeakPtrFactory.
1904         (WebCore::MediaPlayerPrivateAVFoundation::seekWithTolerance):
1905         (WebCore::MediaPlayerPrivateAVFoundation::seeking): m_seekTime -> m_seeking.
1906         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
1907         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
1908         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1909         (WebCore::MediaPlayerPrivateAVFoundationObjC::createWeakPtr):
1910         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1911         (WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
1912         (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime):
1913         (WebCore::MediaPlayerPrivateAVFoundationObjC::finishSeek):
1914
1915 2014-01-08  Jer Noble  <jer.noble@apple.com>
1916
1917         [MSE][Mac] Report the intrinsic size of the media element
1918         https://bugs.webkit.org/show_bug.cgi?id=125156
1919
1920         Reviewed by Eric Carlson.
1921
1922         * WebCore.xcodeproj/project.pbxproj:
1923         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
1924         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
1925         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::naturalSize): Pass to MediaSourcePrivateAVFObjC.
1926         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::sizeChanged): Added; Pass to MediaPlayer.
1927         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
1928         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm:
1929         (WebCore::MediaSourcePrivateAVFObjC::naturalSize): Return the union of the naturalSizes of all active buffers.
1930         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
1931         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1932         (WebCore::SourceBufferPrivateAVFObjC::didParseStreamDataAsAsset): Notify the media player that the size changed.
1933         (WebCore::SourceBufferPrivateAVFObjC::naturalSize): Return the size of the selected video track.
1934         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.h:
1935         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm: Renamed from Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.cpp.
1936         (WebCore::VideoTrackPrivateMediaSourceAVFObjC::assetTrack): Made const.
1937         (WebCore::VideoTrackPrivateMediaSourceAVFObjC::naturalSize): Return the size of the AVAssetTrack.
1938
1939 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
1940
1941         Unreviewed Windows build fix for r161563.
1942
1943         Remove stale forward declaration causing namespace ambiguity
1944         later on in a Windows AllInOne file that picked it up.
1945
1946         * bindings/js/ScriptGlobalObject.h:
1947
1948 2014-01-09  Simon Fraser  <simon.fraser@apple.com>
1949
1950         Enable async scrolling for iOS
1951         https://bugs.webkit.org/show_bug.cgi?id=126730
1952
1953         Reviewed by Tim Horton.
1954
1955         Turn on ENABLE_ASYNC_SCROLLING for iOS.
1956         
1957         Disable rubber-banding and scrollbar-related Mac code for PLATFORM(IOS),
1958         provide stubs for scrolling nodes and scrolling state nodes, and an
1959         iOS scrolling tree, and scrolling coordinator.
1960         
1961         Move crollingCoordinator::create() into the platform implementation file.
1962
1963         * page/scrolling/ScrollingCoordinator.cpp:
1964         (WebCore::ScrollingCoordinator::create):
1965         * page/scrolling/ScrollingStateScrollingNode.cpp:
1966         (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode):
1967         (WebCore::ScrollingStateScrollingNode::setScrollbarPaintersFromScrollbars):
1968         * page/scrolling/ScrollingStateScrollingNode.h:
1969         * page/scrolling/ScrollingTree.h:
1970         (WebCore::ScrollingTree::isScrollingTreeIOS):
1971         * page/scrolling/ThreadedScrollingTree.h:
1972         * page/scrolling/ios/ScrollingCoordinatorIOS.h: Copied from Source/WebKit2/UIProcess/Scrolling/RemoteScrollingTree.h.
1973         * page/scrolling/ios/ScrollingCoordinatorIOS.mm: Copied from Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm.
1974         (WebCore::ScrollingCoordinator::create):
1975         (WebCore::ScrollingCoordinatorIOS::ScrollingCoordinatorIOS):
1976         (WebCore::ScrollingCoordinatorIOS::~ScrollingCoordinatorIOS):
1977         (WebCore::ScrollingCoordinatorIOS::pageDestroyed):
1978         (WebCore::ScrollingCoordinatorIOS::commitTreeStateIfNeeded):
1979         (WebCore::ScrollingCoordinatorIOS::scheduleTreeStateCommit):
1980         (WebCore::ScrollingCoordinatorIOS::scrollingStateTreeCommitterTimerFired):
1981         (WebCore::ScrollingCoordinatorIOS::commitTreeState):
1982         (WebCore::ScrollingCoordinatorIOS::createScrollingTreeNode):
1983         * page/scrolling/ios/ScrollingTreeIOS.cpp: Added.
1984         (WebCore::ScrollingTreeIOS::create):
1985         (WebCore::ScrollingTreeIOS::ScrollingTreeIOS):
1986         (WebCore::ScrollingTreeIOS::~ScrollingTreeIOS):
1987         (WebCore::derefScrollingCoordinator):
1988         (WebCore::ScrollingTreeIOS::invalidate):
1989         (WebCore::ScrollingTreeIOS::commitNewTreeState):
1990         (WebCore::ScrollingTreeIOS::updateMainFrameScrollPosition):
1991         (WebCore::ScrollingTreeIOS::createNode):
1992         * page/scrolling/ios/ScrollingTreeIOS.h: Copied from Source/WebCore/page/scrolling/ThreadedScrollingTree.h.
1993         * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.h: Added.
1994         * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm: Added.
1995         (WebCore::ScrollingTreeScrollingNodeIOS::create):
1996         (WebCore::ScrollingTreeScrollingNodeIOS::ScrollingTreeScrollingNodeIOS):
1997         (WebCore::ScrollingTreeScrollingNodeIOS::~ScrollingTreeScrollingNodeIOS):
1998         (WebCore::ScrollingTreeScrollingNodeIOS::updateBeforeChildren):
1999         (WebCore::ScrollingTreeScrollingNodeIOS::updateAfterChildren):
2000         (WebCore::ScrollingTreeScrollingNodeIOS::scrollPosition):
2001         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollPosition):
2002         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollPositionWithoutContentEdgeConstraints):
2003         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollLayerPosition):
2004         (WebCore::ScrollingTreeScrollingNodeIOS::minimumScrollPosition):
2005         (WebCore::ScrollingTreeScrollingNodeIOS::maximumScrollPosition):
2006         (WebCore::ScrollingTreeScrollingNodeIOS::scrollBy):
2007         (WebCore::ScrollingTreeScrollingNodeIOS::scrollByWithoutContentEdgeConstraints):
2008         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
2009         (WebCore::ScrollingCoordinator::create):
2010         * page/scrolling/mac/ScrollingTreeFixedNode.mm:
2011         * page/scrolling/mac/ScrollingTreeStickyNode.mm:
2012
2013 2014-01-09  Myles C. Maxfield  <mmaxfield@apple.com>
2014
2015         text-decoration-skip: ink does not work with line wraps
2016         https://bugs.webkit.org/show_bug.cgi?id=126729
2017
2018         Reviewed by Simon Fraser.
2019
2020         InlineTextBox's m_start and m_length fields are offsets into the renderer's string,
2021         not the generated TextRun. Because of this distinction, when multiple InlineTextBoxes
2022         were constructed for the same element, all the subsequent elements would use incorrect
2023         indices and therefore not have skipping decorations.
2024
2025         Test: fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-ink-multiline.html
2026
2027         * platform/graphics/Font.h:
2028         * platform/graphics/mac/FontMac.mm:
2029         (WebCore::Font::dashesForIntersectionsWithRect):
2030         * rendering/InlineTextBox.cpp:
2031         (WebCore::drawSkipInkUnderline):
2032         (WebCore::InlineTextBox::paintDecoration):
2033         * rendering/TextPainter.cpp:
2034         (WebCore::TextPainter::dashesForIntersectionsWithRect):
2035         * rendering/TextPainter.h:
2036
2037 2014-01-09  Benjamin Poulain  <bpoulain@apple.com>
2038
2039         Remove remaining blackberry files I could find in WebCore
2040         https://bugs.webkit.org/show_bug.cgi?id=126715
2041
2042         Reviewed by Anders Carlsson.
2043
2044         * PlatformBlackBerry.cmake: Removed.
2045         * Resources/blackberry: Removed.
2046         * css/mediaControlsBlackBerry.css: Removed.
2047         * css/mediaControlsBlackBerryFullscreen.css: Removed.
2048         * css/themeBlackBerry.css: Removed.
2049         * editing/blackberry: Removed.
2050         * history/blackberry: Removed.
2051         * html/shadow/MediaControlsBlackBerry.cpp: Removed.
2052         * html/shadow/MediaControlsBlackBerry.h: Removed.
2053         * page/blackberry: Removed.
2054         * page/scrolling/blackberry: Removed.
2055         * plugins/blackberry: Removed.
2056
2057 2014-01-09  Brent Fulgham  <bfulgham@apple.com>
2058
2059         [WebGL] Return filtered results for getProgramParameter for ACTIVE_ATTRIBUTES and ACTIVE_UNIFORMS
2060         https://bugs.webkit.org/show_bug.cgi?id=126718
2061         <rdar://problem/15202048>
2062
2063         Reviewed by Dean Jackson.
2064
2065         Covered by webgl/conformance/ogles/GL/biuDepthRange/biuDepthRange_001_to_002.html and
2066         webgl/conformance/ogles/GL/gl_FragCoord/gl_FragCoord_001_to_003.html.
2067
2068         * html/canvas/WebGLRenderingContext.cpp:
2069         (WebCore::WebGLRenderingContext::getActiveAttrib): Added loging.
2070         (WebCore::WebGLRenderingContext::getActiveUniform): Added logging.
2071         (WebCore::WebGLRenderingContext::getAttribLocation): Drive-by-fix. Return
2072         -1 on link failure (an invalid location) rather than 0 (a valid
2073         location) when link fails.
2074         (WebCore::WebGLRenderingContext::getProgramParameter): Use new
2075         method to return filtered count.
2076         (WebCore::WebGLRenderingContext::getUniformLocation): Use nullptr
2077         rather than returning 0.
2078         * platform/graphics/GraphicsContext3D.h:
2079         (WebCore::GraphicsContext3D::ActiveShaderSymbolCounts::ActiveShaderSymbolCounts):
2080         (WebCore::GraphicsContext3D::ActiveShaderSymbolCounts::countForType):
2081         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2082         (WebCore::GraphicsContext3D::precisionsMatch): Drive-by-fix. Don't
2083         copy giant objects to read a single value.
2084         (WebCore::GraphicsContext3D::compileShader): Release filtered count
2085         when we change shader source code.
2086         (WebCore::GraphicsContext3D::getActiveAttribImpl): Renamed from getActiveAttrib.
2087         (WebCore::GraphicsContext3D::getActiveAttrib): Maps filtered indices to
2088         real OpenGL indices.
2089         (WebCore::GraphicsContext3D::getActiveUniformImpl): Renamed from getActiveUniform.
2090         (WebCore::GraphicsContext3D::getActiveUniform): Maps filtered indices to
2091         real OpenGL indices.
2092         (WebCore::GraphicsContext3D::originalSymbolName): Use C++11 loop.
2093         (WebCore::GraphicsContext3D::getAttribLocation): Added logging.
2094         (WebCore::GraphicsContext3D::getNonBuiltinActiveSymbolCount): Added.
2095         (WebCore::GraphicsContext3D::getShaderiv): Const correctness.
2096         (WebCore::GraphicsContext3D::getShaderInfoLog): Ditto.
2097         (WebCore::GraphicsContext3D::getShaderSource): Ditto.
2098
2099 2014-01-09  Zoltan Horvath  <zoltan@webkit.org>
2100
2101         [CSS Shapes] First line gets incorrectly adjusted in shape-inside due to rounding
2102         https://bugs.webkit.org/show_bug.cgi?id=126601
2103
2104         Reviewed by Bem Jones-Bey.
2105
2106         In order to get consistent results of the first fit position of the content in shapes,
2107         firstIncludedIntervalLogicalTop should take a FloatSize rather than LayoutSize for
2108         minLogicalIntervalSize, because LayoutSize clamps the float value to int, when subpixel-layout
2109         is disabled, thus firstIncludedIntervalLogicalTop could end up calculating with an unprecize
2110         value. This change modifies firstIncludedIntervalLogicalTop to take FloatSize consistently.
2111
2112         Test: fast/shapes/shape-inside/shape-inside-polygon-rounded-first-fit.html
2113
2114         * rendering/shapes/BoxShape.cpp:
2115         (WebCore::BoxShape::firstIncludedIntervalLogicalTop):
2116         * rendering/shapes/BoxShape.h:
2117         * rendering/shapes/PolygonShape.cpp:
2118         (WebCore::PolygonShape::firstIncludedIntervalLogicalTop):
2119         * rendering/shapes/PolygonShape.h:
2120         * rendering/shapes/RasterShape.cpp:
2121         (WebCore::RasterShape::firstIncludedIntervalLogicalTop):
2122         * rendering/shapes/RasterShape.h:
2123         * rendering/shapes/RectangleShape.cpp:
2124         (WebCore::RectangleShape::firstIncludedIntervalLogicalTop):
2125         * rendering/shapes/RectangleShape.h:
2126         * rendering/shapes/Shape.h:
2127         * rendering/shapes/ShapeInsideInfo.cpp:
2128         (WebCore::ShapeInsideInfo::adjustLogicalLineTop):
2129         (WebCore::ShapeInsideInfo::computeFirstFitPositionForFloat):
2130
2131 2014-01-09  Andy Estes  <aestes@apple.com>
2132
2133         [iOS] Upstream WAK
2134         https://bugs.webkit.org/show_bug.cgi?id=126724
2135
2136         Reviewed by David Kilzer.
2137
2138         * Configurations/WebCore.xcconfig: Excluded new iOS-specific Private
2139         headers on the Mac build.
2140         * WebCore.xcodeproj/project.pbxproj: Added new files to the project.
2141         * platform/ios/wak/WAKAppKitStubs.h: Added.
2142         * platform/ios/wak/WAKAppKitStubs.m: Added.
2143         * platform/ios/wak/WAKClipView.h: Added.
2144         * platform/ios/wak/WAKClipView.m: Added.
2145         * platform/ios/wak/WAKResponder.h: Added.
2146         * platform/ios/wak/WAKResponder.m: Added.
2147         * platform/ios/wak/WAKScrollView.h: Added.
2148         * platform/ios/wak/WAKScrollView.mm: Added.
2149         * platform/ios/wak/WAKView.h: Added.
2150         * platform/ios/wak/WAKView.mm: Added.
2151         * platform/ios/wak/WAKViewPrivate.h: Added.
2152         * platform/ios/wak/WAKWindow.h: Added.
2153         * platform/ios/wak/WAKWindow.mm: Added.
2154         * platform/ios/wak/WKContentObservation.cpp: Added.
2155         * platform/ios/wak/WKContentObservation.h: Added.
2156         * platform/ios/wak/WKGraphics.h: Added.
2157         * platform/ios/wak/WKGraphics.mm: Added.
2158         * platform/ios/wak/WKTypes.h: Added.
2159         * platform/ios/wak/WKUtilities.c: Added.
2160         * platform/ios/wak/WKUtilities.h: Added.
2161         * platform/ios/wak/WKView.h: Added.
2162         * platform/ios/wak/WKView.mm: Added.
2163         * platform/ios/wak/WKViewPrivate.h: Added.
2164         * platform/ios/wak/WebCoreThread.h: Added.
2165         * platform/ios/wak/WebCoreThread.mm: Added.
2166         * platform/ios/wak/WebCoreThreadInternal.h: Added.
2167         * platform/ios/wak/WebCoreThreadMessage.h: Added.
2168         * platform/ios/wak/WebCoreThreadRun.cpp: Added.
2169         * platform/ios/wak/WebCoreThreadRun.h: Added.
2170         * platform/ios/wak/WebCoreThreadSafe.h: Added.
2171         * platform/ios/wak/WebCoreThreadSystemInterface.cpp: Added.
2172         * platform/ios/wak/WebCoreThreadSystemInterface.h: Added.
2173
2174 2014-01-09  Daniel Bates  <dabates@apple.com>
2175
2176         Another attempt to fix the Windows build following <http://trac.webkit.org/changeset/161589>
2177         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2178
2179         * platform/network/cf/ResourceRequest.h: Always declare ResourceRequest::updateFromDelegatePreservingOldHTTPBody()
2180         instead of only declaring it when building without CFNetwork.
2181
2182 2014-01-09  Daniel Bates  <dabates@apple.com>
2183
2184         Attempt to fix the Windows build following <http://trac.webkit.org/changeset/161589>
2185         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2186
2187         For some reason, the Windows build is unhappy that NeverDestroyed<FontCache> calls the private constructor
2188         FontCache::FontCache() despite being a friend class of FontCache. Use DEFINE_STATIC_LOCAL instead of
2189         NeverDestroyed<> for now. I'll look to investigate this issue offline.
2190
2191         * platform/graphics/FontCache.cpp:
2192         (WebCore::fontCache):
2193         * platform/graphics/FontCache.h:
2194
2195 2014-01-09  Benjamin Poulain  <bpoulain@apple.com>
2196
2197         Remove blackberry from WebCore/platform
2198         https://bugs.webkit.org/show_bug.cgi?id=126715
2199
2200         Reviewed by Anders Carlsson.
2201
2202         * platform/blackberry: Removed.
2203         * platform/graphics/blackberry: Removed.
2204         * platform/graphics/filters/blackberry: Removed.
2205         * platform/image-decoders/blackberry: Removed.
2206         * platform/mediastream/blackberry: Removed.
2207         * platform/network/blackberry: Removed.
2208         * platform/text/blackberry: Removed.
2209
2210 2014-01-09  Alexey Proskuryakov  <ap@apple.com>
2211
2212         Fix a copy-paste mistake in an include guard.
2213
2214         Rubber-stamped by Sam Weinig.
2215
2216         * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
2217
2218 2014-01-09  Anders Carlsson  <andersca@apple.com>
2219
2220         History::StateObjectType should be a strong enum
2221         https://bugs.webkit.org/show_bug.cgi?id=126725
2222
2223         Reviewed by Beth Dakin.
2224
2225         * bindings/js/JSHistoryCustom.cpp:
2226         (WebCore::JSHistory::pushState):
2227         (WebCore::JSHistory::replaceState):
2228         * loader/HistoryController.cpp:
2229         (WebCore::HistoryController::pushState):
2230         * page/History.cpp:
2231         (WebCore::History::stateObjectAdded):
2232         * page/History.h:
2233
2234 2014-01-09  Daniel Bates  <dabates@apple.com>
2235
2236         Attempt to fix the Mountain Lion Release (32-bit) build following <http://trac.webkit.org/changeset/161589>
2237         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2238
2239         * platform/ios/WebEvent.h:
2240         * platform/ios/WebEvent.mm:
2241
2242 2014-01-09  Daniel Bates  <dabates@apple.com>
2243
2244         [iOS] Upstream WebCore/platform changes
2245         https://bugs.webkit.org/show_bug.cgi?id=126654
2246
2247         Rubber-stamped by David Kilzer.
2248
2249         * WebCore.exp.in:
2250         * WebCore.xcodeproj/project.pbxproj:
2251         * platform/ContentFilter.h:
2252         * platform/DragData.h:
2253         * platform/FileChooser.cpp:
2254         (WebCore::FileChooser::chooseMediaFiles):
2255         * platform/FileChooser.h:
2256         * platform/FileSystem.cpp:
2257         (WebCore::setMetadataURL):
2258         * platform/FileSystem.h:
2259         * platform/KillRingNone.cpp:
2260         * platform/LocalizedStrings.cpp:
2261         (WebCore::fileButtonChooseMediaFileLabel):
2262         (WebCore::fileButtonChooseMultipleMediaFilesLabel):
2263         (WebCore::fileButtonNoMediaFileSelectedLabel):
2264         (WebCore::fileButtonNoMediaFilesSelectedLabel):
2265         * platform/LocalizedStrings.h:
2266         * platform/Logging.h:
2267         * platform/MIMETypeRegistry.cpp:
2268         (WebCore::initializeSupportedImageMIMETypes):
2269         (WebCore::initializeSupportedNonImageMimeTypes):
2270         (WebCore::initializeUnsupportedTextMIMETypes):
2271         * platform/MemoryPressureHandler.cpp:
2272         (WebCore::MemoryPressureHandler::MemoryPressureHandler):
2273         * platform/MemoryPressureHandler.h:
2274         * platform/PlatformKeyboardEvent.h:
2275         (WebCore::PlatformKeyboardEvent::event):
2276         * platform/PlatformMouseEvent.h:
2277         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2278         * platform/PlatformScreen.h:
2279         * platform/RuntimeApplicationChecks.cpp:
2280         (WebCore::mainBundleIsEqualTo):
2281         * platform/RuntimeApplicationChecksIOS.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
2282         * platform/RuntimeApplicationChecksIOS.mm: Added.
2283         * platform/ScrollAnimator.cpp:
2284         (WebCore::ScrollAnimator::handleTouchEvent):
2285         * platform/ScrollAnimator.h:
2286         * platform/ScrollTypes.h:
2287         * platform/ScrollView.cpp:
2288         (WebCore::ScrollView::unscaledVisibleContentSize):
2289         (WebCore::ScrollView::visibleContentRect):
2290         * platform/ScrollView.h:
2291         (WebCore::ScrollView::actualScrollX):
2292         (WebCore::ScrollView::actualScrollY):
2293         * platform/ScrollableArea.cpp:
2294         (WebCore::ScrollableArea::handleTouchEvent):
2295         (WebCore::ScrollableArea::isPinnedInBothDirections):
2296         (WebCore::ScrollableArea::isPinnedHorizontallyInDirection):
2297         (WebCore::ScrollableArea::isPinnedVerticallyInDirection):
2298         * platform/ScrollableArea.h:
2299         (WebCore::ScrollableArea::isTouchScrollable):
2300         (WebCore::ScrollableArea::isOverflowScroll):
2301         (WebCore::ScrollableArea::didStartScroll):
2302         (WebCore::ScrollableArea::didEndScroll):
2303         (WebCore::ScrollableArea::didUpdateScroll):
2304         (WebCore::ScrollableArea::setIsUserScroll):
2305         (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMinimumPosition):
2306         (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMaximumPosition):
2307         (WebCore::ScrollableArea::isVerticalScrollerPinnedToMinimumPosition):
2308         (WebCore::ScrollableArea::isVerticalScrollerPinnedToMaximumPosition):
2309         * platform/Scrollbar.cpp:
2310         * platform/Scrollbar.h:
2311         * platform/SharedBuffer.cpp:
2312         (WebCore::SharedBuffer::SharedBuffer):
2313         (WebCore::SharedBuffer::createPurgeableBuffer):
2314         (WebCore::SharedBuffer::data):
2315         * platform/SharedBuffer.h:
2316         (WebCore::SharedBuffer::shouldUsePurgeableMemory):
2317         * platform/SuddenTermination.h:
2318         * platform/Supplementable.h:
2319         (WebCore::Supplementable::provideSupplement):
2320         (WebCore::Supplementable::removeSupplement):
2321         (WebCore::Supplementable::requireSupplement):
2322         * platform/SystemMemory.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
2323         * platform/ThreadCheck.h:
2324         * platform/ThreadGlobalData.cpp:
2325         (WebCore::ThreadGlobalData::ThreadGlobalData):
2326         (WebCore::ThreadGlobalData::destroy):
2327         (WebCore::ThreadGlobalData::setWebCoreThreadData):
2328         (WebCore::threadGlobalData):
2329         * platform/ThreadGlobalData.h:
2330         * platform/ThreadTimers.cpp:
2331         (WebCore::ThreadTimers::ThreadTimers):
2332         (WebCore::ThreadTimers::sharedTimerFiredInternal):
2333         * platform/Timer.cpp:
2334         (WebCore::TimerBase::start):
2335         (WebCore::TimerBase::stop):
2336         (WebCore::TimerBase::setNextFireTime):
2337         * platform/Timer.h:
2338         (WebCore::TimerBase::isActive):
2339         * platform/URL.cpp:
2340         (WebCore::enableURLSchemeCanonicalization):
2341         (WebCore::equal):
2342         (WebCore::URL::parse):
2343         * platform/URL.h:
2344         * platform/Widget.h:
2345         * platform/audio/ios/AudioDestinationIOS.cpp:
2346         * platform/audio/ios/AudioDestinationIOS.h:
2347         * platform/audio/ios/AudioFileReaderIOS.cpp: Copied from Source/WebCore/platform/audio/mac/AudioFileReaderMac.cpp.
2348         (WebCore::createAudioBufferList):
2349         (WebCore::destroyAudioBufferList):
2350         (WebCore::AudioFileReader::AudioFileReader):
2351         (WebCore::AudioFileReader::~AudioFileReader):
2352         (WebCore::AudioFileReader::readProc):
2353         (WebCore::AudioFileReader::getSizeProc):
2354         (WebCore::AudioFileReader::createBus):
2355         (WebCore::createBusFromAudioFile):
2356         (WebCore::createBusFromInMemoryAudioFile):
2357         * platform/audio/ios/AudioFileReaderIOS.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
2358         (WebCore::AudioFileReader::data):
2359         (WebCore::AudioFileReader::dataSize):
2360         * platform/audio/ios/AudioSessionIOS.mm:
2361         (SOFT_LINK_POINTER):
2362         (-[WebAudioSessionHelper initWithCallback:WebCore::]):
2363         (-[WebAudioSessionHelper dealloc]):
2364         (-[WebAudioSessionHelper interruption:]):
2365         (WebCore::AudioSession::setCategory):
2366         * platform/audio/mac/AudioDestinationMac.cpp:
2367         * platform/audio/mac/AudioFileReaderMac.cpp:
2368         (WebCore::AudioFileReader::AudioFileReader):
2369         (WebCore::createBusFromAudioFile):
2370         (WebCore::createBusFromInMemoryAudioFile):
2371         * platform/audio/mac/AudioSessionMac.cpp:
2372         * platform/audio/mac/MediaSessionManagerMac.cpp:
2373         (MediaSessionManager::updateSessionState):
2374         * platform/cf/SharedBufferCF.cpp:
2375         (WebCore::SharedBuffer::SharedBuffer):
2376         * platform/cf/URLCF.cpp:
2377         * platform/cocoa/KeyEventCocoa.mm:
2378         (WebCore::windowsKeyCodeForCharCode):
2379         * platform/graphics/BitmapImage.cpp:
2380         (WebCore::BitmapImage::BitmapImage):
2381         (WebCore::BitmapImage::destroyDecodedDataIfNecessary):
2382         (WebCore::BitmapImage::cacheFrame):
2383         (WebCore::BitmapImage::cacheFrameInfo):
2384         (WebCore::BitmapImage::updateSize):
2385         (WebCore::BitmapImage::originalSize):
2386         (WebCore::BitmapImage::originalSizeRespectingOrientation):
2387         (WebCore::BitmapImage::dataChanged):
2388         (WebCore::BitmapImage::ensureFrameInfoIsCached):
2389         (WebCore::BitmapImage::frameAtIndex):
2390         (WebCore::BitmapImage::frameIsCompleteAtIndex):
2391         (WebCore::BitmapImage::frameDurationAtIndex):
2392         (WebCore::BitmapImage::frameHasAlphaAtIndex):
2393         (WebCore::BitmapImage::frameOrientationAtIndex):
2394         (WebCore::BitmapImage::startAnimation):
2395         (WebCore::BitmapImage::internalAdvanceAnimation):
2396         * platform/graphics/BitmapImage.h:
2397         (WebCore::FrameData::FrameData):
2398         * platform/graphics/Color.cpp:
2399         (WebCore::Color::isDark):
2400         * platform/graphics/Color.h:
2401         * platform/graphics/DisplayRefreshMonitor.h:
2402         * platform/graphics/FloatPoint.h:
2403         * platform/graphics/FloatRect.h:
2404         * platform/graphics/FloatSize.h:
2405         * platform/graphics/Font.cpp:
2406         (WebCore::Font::drawText):
2407         (WebCore::Font::width):
2408         * platform/graphics/Font.h:
2409         * platform/graphics/FontCache.cpp:
2410         (initFontCacheLockOnce):
2411         (FontLocker::FontLocker):
2412         (FontLocker::~FontLocker):
2413         (WebCore::fontCache):
2414         (WebCore::FontCache::getCachedFontPlatformData):
2415         (WebCore::FontCache::getCachedFontData):
2416         (WebCore::FontCache::releaseFontData):
2417         (WebCore::FontCache::purgeInactiveFontDataIfNeeded):
2418         (WebCore::FontCache::purgeInactiveFontData):
2419         * platform/graphics/FontCache.h:
2420         * platform/graphics/FontFastPath.cpp:
2421         (WebCore::Font::drawSimpleText):
2422         (WebCore::Font::drawGlyphBuffer):
2423         * platform/graphics/FontGlyphs.h:
2424         * platform/graphics/FontPlatformData.cpp:
2425         (WebCore::FontPlatformData::FontPlatformData):
2426         * platform/graphics/FontPlatformData.h:
2427         (WebCore::FontPlatformData::font):
2428         (WebCore::FontPlatformData::roundsGlyphAdvances):
2429         (WebCore::FontPlatformData::hash):
2430         (WebCore::FontPlatformData::hashTableDeletedFontValue):
2431         * platform/graphics/GlyphPageTreeNode.cpp:
2432         (WebCore::GlyphPageTreeNode::initializePage):
2433         * platform/graphics/GraphicsContext.cpp:
2434         (WebCore::GraphicsContext::GraphicsContext):
2435         (WebCore::GraphicsContext::drawRaisedEllipse):
2436         (WebCore::GraphicsContext::drawText):
2437         (WebCore::GraphicsContext::drawBidiText):
2438         (WebCore::GraphicsContext::clipRoundedRect):
2439         (WebCore::GraphicsContext::emojiDrawingEnabled):
2440         (WebCore::GraphicsContext::setEmojiDrawingEnabled):
2441         * platform/graphics/GraphicsContext.h:
2442         (WebCore::GraphicsContextState::GraphicsContextState):
2443         * platform/graphics/GraphicsContext3D.h:
2444         * platform/graphics/GraphicsLayer.cpp:
2445         (WebCore::GraphicsLayer::willBeDestroyed):
2446         * platform/graphics/GraphicsLayer.h:
2447         (WebCore::GraphicsLayer::contentsLayerForMedia):
2448         (WebCore::GraphicsLayer::pixelAlignmentOffset):
2449         (WebCore::GraphicsLayer::hasFlattenedPerspectiveTransform):
2450         * platform/graphics/Icon.h:
2451         * platform/graphics/Image.cpp:
2452         (WebCore::Image::drawTiled):
2453         * platform/graphics/ImageSource.h:
2454         (WebCore::ImageSource::isSubsampled):
2455         * platform/graphics/IntPoint.h:
2456         * platform/graphics/IntRect.h:
2457         * platform/graphics/IntSize.h:
2458         * platform/graphics/MediaPlayer.cpp:
2459         (WebCore::installedMediaEngines):
2460         (WebCore::MediaPlayer::isCurrentPlaybackTargetWireless):
2461         (WebCore::MediaPlayer::showPlaybackTargetPicker):
2462         (WebCore::MediaPlayer::hasWirelessPlaybackTargets):
2463         (WebCore::MediaPlayer::wirelessVideoPlaybackDisabled):
2464         (WebCore::MediaPlayer::setWirelessVideoPlaybackDisabled):
2465         (WebCore::MediaPlayer::setHasPlaybackTargetAvailabilityListeners):
2466         (WebCore::MediaPlayer::currentPlaybackTargetIsWirelessChanged):
2467         (WebCore::MediaPlayer::playbackTargetAvailabilityChanged):
2468         (WebCore::MediaPlayer::attributeChanged):
2469         (WebCore::MediaPlayer::readyForPlayback):
2470         (WebCore::MediaPlayer::volumeChanged):
2471         * platform/graphics/MediaPlayer.h:
2472         (WebCore::MediaPlayerClient::mediaPlayerCurrentPlaybackTargetIsWirelessChanged):
2473         (WebCore::MediaPlayerClient::mediaPlayerPlaybackTargetAvailabilityChanged):
2474         * platform/graphics/MediaPlayerPrivate.h:
2475         (WebCore::MediaPlayerPrivateInterface::volume):
2476         (WebCore::MediaPlayerPrivateInterface::isCurrentPlaybackTargetWireless):
2477         (WebCore::MediaPlayerPrivateInterface::showPlaybackTargetPicker):
2478         (WebCore::MediaPlayerPrivateInterface::hasWirelessPlaybackTargets):
2479         (WebCore::MediaPlayerPrivateInterface::wirelessVideoPlaybackDisabled):
2480         (WebCore::MediaPlayerPrivateInterface::setWirelessVideoPlaybackDisabled):
2481         (WebCore::MediaPlayerPrivateInterface::setHasPlaybackTargetAvailabilityListeners):
2482         (WebCore::MediaPlayerPrivateInterface::attributeChanged):
2483         (WebCore::MediaPlayerPrivateInterface::readyForPlayback):
2484         * platform/graphics/SimpleFontData.cpp:
2485         (WebCore::SimpleFontData::SimpleFontData):
2486         * platform/graphics/SimpleFontData.h:
2487         * platform/graphics/StringTruncator.cpp:
2488         (WebCore::centerTruncateToBuffer):
2489         (WebCore::rightTruncateToBuffer):
2490         (WebCore::rightClipToCharacterBuffer):
2491         (WebCore::rightClipToWordBuffer):
2492         (WebCore::leftTruncateToBuffer):
2493         (WebCore::truncateString):
2494         (WebCore::StringTruncator::centerTruncate):
2495         (WebCore::StringTruncator::rightTruncate):
2496         (WebCore::StringTruncator::leftTruncate):
2497         (WebCore::StringTruncator::rightClipToCharacter):
2498         (WebCore::StringTruncator::rightClipToWord):
2499         * platform/graphics/StringTruncator.h:
2500         * platform/graphics/TextTrackRepresentation.cpp:
2501         * platform/graphics/WidthIterator.h:
2502         (WebCore::WidthIterator::supportsTypesettingFeatures):
2503         * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm:
2504         (WebCore::AVTrackPrivateAVFObjCImpl::label):
2505         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2506         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformMaxTimeLoaded):
2507         (WebCore::wkAVAssetResolvedURL):
2508         * platform/graphics/blackberry/FontBlackBerry.cpp:
2509         (WebCore::Font::drawComplexText):
2510         * platform/graphics/ca/GraphicsLayerCA.cpp:
2511         (WebCore::supportsAcceleratedFilterAnimations):
2512         (WebCore::GraphicsLayerCA::setContentsToImage):
2513         (WebCore::GraphicsLayerCA::contentsLayerForMedia):
2514         (WebCore::GraphicsLayerCA::computeVisibleRect):
2515         (WebCore::GraphicsLayerCA::updateGeometry):
2516         (WebCore::GraphicsLayerCA::ensureStructuralLayer):
2517         (WebCore::GraphicsLayerCA::updateContentsRects):
2518         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
2519         (WebCore::GraphicsLayerCA::setupContentsLayer):
2520         (WebCore::GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread):
2521         (WebCore::GraphicsLayerCA::computePixelAlignment):
2522         * platform/graphics/ca/GraphicsLayerCA.h:
2523         * platform/graphics/ca/PlatformCAFilters.h:
2524         * platform/graphics/ca/PlatformCALayer.h:
2525         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
2526         (WebCore::currentRunLoop):
2527         (WebCore::LayerFlushScheduler::schedule):
2528         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2529         (-[WebAnimationDelegate animationDidStart:]):
2530         (PlatformCALayerMac::setContentsScale):
2531         (PlatformCALayer::isWebLayer):
2532         (PlatformCALayer::setBoundsOnMainThread):
2533         (PlatformCALayer::setPositionOnMainThread):
2534         (PlatformCALayer::setAnchorPointOnMainThread):
2535         (PlatformCALayer::setTileSize):
2536         * platform/graphics/ca/mac/TileController.mm:
2537         (WebCore::TileController::platformCALayerPaintContents):
2538         (WebCore::TileController::removeAllTiles):
2539         (WebCore::TileController::removeAllSecondaryTiles):
2540         (WebCore::TileController::removeTilesInCohort):
2541         (WebCore::TileController::revalidateTiles):
2542         (WebCore::TileController::createTileLayer):
2543         * platform/graphics/cairo/FontCairoHarfbuzzNG.cpp:
2544         (WebCore::Font::drawComplexText):
2545         * platform/graphics/cg/BitmapImageCG.cpp:
2546         (WebCore::FrameData::clear):
2547         (WebCore::BitmapImage::BitmapImage):
2548         (WebCore::BitmapImage::checkForSolidColor):
2549         (WebCore::BitmapImage::draw):
2550         (WebCore::BitmapImage::copyUnscaledFrameAtIndex):
2551         * platform/graphics/cg/ColorCG.cpp:
2552         (WebCore::createCGColorWithDeviceWhite):
2553         (WebCore::createCGColorWithDeviceRGBA):
2554         (WebCore::Color::Color):
2555         * platform/graphics/cg/FloatPointCG.cpp:
2556         * platform/graphics/cg/FloatRectCG.cpp:
2557         * platform/graphics/cg/FloatSizeCG.cpp:
2558         * platform/graphics/cg/GradientCG.cpp:
2559         * platform/graphics/cg/GraphicsContextCG.cpp:
2560         (WebCore::sRGBColorSpaceRef):
2561         (WebCore::setStrokeAndFillColor):
2562         (WebCore::GraphicsContext::platformInit):
2563         * platform/graphics/cg/ImageBufferCG.cpp:
2564         (WebCore::createIOSurface):
2565         (WebCore::ImageBuffer::ImageBuffer):
2566         (WebCore::ImageBuffer::draw):
2567         (WebCore::jpegUTI):
2568         (WebCore::utiFromMIMEType):
2569         * platform/graphics/cg/ImageBufferDataCG.cpp:
2570         (WebCore::ImageBufferData::getData):
2571         (WebCore::ImageBufferData::putData):
2572         * platform/graphics/cg/ImageBufferDataCG.h:
2573         * platform/graphics/cg/ImageCG.cpp:
2574         (WebCore::drawPatternCallback):
2575         (WebCore::Image::drawPattern):
2576         * platform/graphics/cg/ImageSourceCG.cpp:
2577         (WebCore::ImageSource::ImageSource):
2578         (WebCore::imageSourceOptions):
2579         (WebCore::ImageSource::imageSourceOptions):
2580         (WebCore::ImageSource::frameSizeAtIndex):
2581         (WebCore::ImageSource::originalSize):
2582         (WebCore::ImageSource::createFrameAtIndex):
2583         * platform/graphics/cg/ImageSourceCGMac.mm:
2584         * platform/graphics/cg/IntPointCG.cpp:
2585         * platform/graphics/cg/IntRectCG.cpp:
2586         * platform/graphics/cg/IntSizeCG.cpp:
2587         * platform/graphics/cg/PDFDocumentImage.cpp:
2588         * platform/graphics/cg/PathCG.cpp:
2589         * platform/graphics/cg/PatternCG.cpp:
2590         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
2591         (WebCore::FontPlatformData::FontPlatformData):
2592         (WebCore::FontPlatformData::~FontPlatformData):
2593         (WebCore::FontPlatformData::platformDataInit):
2594         (WebCore::FontPlatformData::platformDataAssign):
2595         (WebCore::FontPlatformData::platformIsEqual):
2596         (WebCore::FontPlatformData::setFont):
2597         (WebCore::FontPlatformData::allowsLigatures):
2598         (WebCore::FontPlatformData::ctFont):
2599         * platform/graphics/ios/DisplayRefreshMonitorIOS.mm: Added.
2600         (WebCore::DisplayRefreshMonitor::~DisplayRefreshMonitor):
2601         (WebCore::DisplayRefreshMonitor::requestRefreshCallback):
2602         (WebCore::DisplayRefreshMonitor::displayLinkFired):
2603         * platform/graphics/ios/FontCacheIOS.mm: Added.
2604         * platform/graphics/ios/FontServicesIOS.h: Added.
2605         * platform/graphics/ios/FontServicesIOS.mm: Added.
2606         (WebCore::FontServicesIOS::FontServicesIOS):
2607         * platform/graphics/ios/GraphicsContext3DIOS.h: Added.
2608         * platform/graphics/ios/IconIOS.mm: Copied from Source/WebCore/platform/mac/DisplaySleepDisabler.cpp.
2609         * platform/graphics/ios/InbandTextTrackPrivateAVFIOS.h: Copied from Source/WebCore/platform/graphics/cg/ImageBufferDataCG.h.
2610         (WebCore::InbandTextTrackPrivateAVFIOS::create):
2611         (WebCore::InbandTextTrackPrivateAVFIOS::internalID):
2612         * platform/graphics/ios/InbandTextTrackPrivateAVFIOS.mm: Copied from Source/WebCore/platform/graphics/mac/IntRectMac.mm.
2613         (WebCore::InbandTextTrackPrivateAVFIOS::InbandTextTrackPrivateAVFIOS):
2614         (WebCore::InbandTextTrackPrivateAVFIOS::~InbandTextTrackPrivateAVFIOS):
2615         (WebCore::InbandTextTrackPrivateAVFIOS::kind):
2616         * platform/graphics/ios/MediaPlayerPrivateIOS.h: Added.
2617         * platform/graphics/ios/MediaPlayerPrivateIOS.mm: Added.
2618         * platform/graphics/ios/SimpleFontDataIOS.mm: Added.
2619         (WebCore::fontFamilyShouldNotBeUsedForArabic):
2620         (WebCore::fontHasVerticalGlyphs):
2621         (WebCore::SimpleFontData::platformInit):
2622         (WebCore::SimpleFontData::platformCharWidthInit):
2623         (WebCore::SimpleFontData::platformCreateScaledFontData):
2624         (WebCore::SimpleFontData::containsCharacters):
2625         (WebCore::SimpleFontData::determinePitch):
2626         (WebCore::SimpleFontData::platformWidthForGlyph):
2627         * platform/graphics/ios/TextTrackRepresentationIOS.h: Copied from Source/WebCore/platform/graphics/TextTrackRepresentation.cpp.
2628         * platform/graphics/ios/TextTrackRepresentationIOS.mm: Added.
2629         * platform/graphics/mac/ColorMac.h:
2630         * platform/graphics/mac/ComplexTextController.cpp:
2631         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
2632         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
2633         (WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
2634         * platform/graphics/mac/FloatPointMac.mm:
2635         * platform/graphics/mac/FloatRectMac.mm:
2636         * platform/graphics/mac/FloatSizeMac.mm:
2637         * platform/graphics/mac/FontCacheMac.mm:
2638         * platform/graphics/mac/FontComplexTextMac.cpp:
2639         (WebCore::Font::drawComplexText):
2640         (WebCore::Font::fontDataForCombiningCharacterSequence):
2641         * platform/graphics/mac/FontCustomPlatformData.cpp:
2642         * platform/graphics/mac/FontMac.mm:
2643         (WebCore::showLetterpressedGlyphsWithAdvances):
2644         (WebCore::Font::drawGlyphs):
2645         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
2646         (WebCore::GlyphPage::fill):
2647         * platform/graphics/mac/GraphicsContext3DMac.mm:
2648         (WebCore::GraphicsContext3D::GraphicsContext3D):
2649         (WebCore::GraphicsContext3D::~GraphicsContext3D):
2650         (WebCore::GraphicsContext3D::setRenderbufferStorageFromDrawable):
2651         (WebCore::GraphicsContext3D::makeContextCurrent):
2652         (WebCore::GraphicsContext3D::endPaint):
2653         * platform/graphics/mac/GraphicsContextMac.mm:
2654         (WebCore::GraphicsContext::drawFocusRing):
2655         (WebCore::createDotPattern):
2656         (WebCore::GraphicsContext::drawLineForDocumentMarker):
2657         * platform/graphics/mac/IconMac.mm:
2658         * platform/graphics/mac/ImageMac.mm:
2659         (WebCore::BitmapImage::invalidatePlatformData):
2660         * platform/graphics/mac/IntPointMac.mm:
2661         * platform/graphics/mac/IntRectMac.mm:
2662         * platform/graphics/mac/IntSizeMac.mm:
2663         * platform/graphics/mac/MediaPlayerProxy.h:
2664         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
2665         * platform/graphics/mac/SimpleFontDataMac.mm:
2666         * platform/graphics/mac/WebGLLayer.h:
2667         * platform/graphics/mac/WebGLLayer.mm:
2668         (-[WebGLLayer copyImageSnapshotWithColorSpace:]):
2669         (-[WebGLLayer display]):
2670         * platform/graphics/mac/WebLayer.mm:
2671         (WebCore::drawLayerContents):
2672         (-[WebSimpleLayer display]):
2673         (-[WebSimpleLayer drawInContext:]):
2674         * platform/graphics/mac/WebTiledLayer.mm:
2675         (+[WebTiledLayer shouldDrawOnMainThread]):
2676         (-[WebTiledLayer display]):
2677         (-[WebTiledLayer drawInContext:]):
2678         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
2679         (WebCore::Extensions3DOpenGL::blitFramebuffer):
2680         (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
2681         (WebCore::Extensions3DOpenGL::supportsExtension):
2682         (WebCore::Extensions3DOpenGL::drawBuffersEXT):
2683         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
2684         (WebCore::Extensions3DOpenGLCommon::Extensions3DOpenGLCommon):
2685         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
2686         (WebCore::GraphicsContext3D::reshapeFBOs):
2687         (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary):
2688         (WebCore::GraphicsContext3D::renderbufferStorage):
2689         (WebCore::GraphicsContext3D::getIntegerv):
2690         (WebCore::GraphicsContext3D::texImage2D):
2691         (WebCore::GraphicsContext3D::depthRange):
2692         (WebCore::GraphicsContext3D::clearDepth):
2693         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2694         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
2695         * platform/graphics/transforms/TransformationMatrix.cpp:
2696         (WebCore::TransformationMatrix::multiply):
2697         * platform/graphics/win/FontWin.cpp:
2698         (WebCore::Font::drawComplexText):
2699         * platform/graphics/wince/FontWinCE.cpp:
2700         (WebCore::Font::drawComplexText):
2701         * platform/ios/ContentFilterIOS.mm: Copied from Source/WebCore/platform/ContentFilter.h.
2702         * platform/ios/DeviceMotionClientIOS.h: Added.
2703         (WebCore::DeviceMotionClientIOS::create):
2704         * platform/ios/DeviceMotionClientIOS.mm: Added.
2705         * platform/ios/DeviceOrientationClientIOS.h: Added.
2706         (WebCore::DeviceOrientationClientIOS::create):
2707         * platform/ios/DeviceOrientationClientIOS.mm: Added.
2708         * platform/ios/KeyEventIOS.mm:
2709         * platform/ios/MIMETypeRegistryIOS.mm: Copied from Source/WebCore/platform/network/mac/CredentialStorageMac.mm.
2710         * platform/ios/MemoryPressureHandlerIOS.mm: Added.
2711         * platform/ios/PasteboardIOS.mm:
2712         (WebCore::Pasteboard::write):
2713         (WebCore::Pasteboard::resourceMIMEType):
2714         (WebCore::Pasteboard::writePlainText):
2715         (WebCore::Pasteboard::read):
2716         (WebCore::supportedImageTypes):
2717         (WebCore::Pasteboard::supportedPasteboardTypes):
2718         (WebCore::Pasteboard::hasData):
2719         (WebCore::Pasteboard::readString):
2720         * platform/ios/PlatformEventFactoryIOS.h: Copied from Source/WebCore/platform/mac/DisplaySleepDisabler.h.
2721         * platform/ios/PlatformEventFactoryIOS.mm: Added.
2722         * platform/ios/PlatformPasteboardIOS.mm:
2723         (WebCore::PlatformPasteboard::write):
2724         * platform/ios/PlatformScreenIOS.mm: Added.
2725         * platform/ios/PlatformSpeechSynthesizerIOS.mm: Added.
2726         * platform/ios/SSLKeyGeneratorIOS.cpp: Added.
2727         * platform/ios/ScrollAnimatorIOS.h: Copied from Source/WebCore/platform/mac/DisplaySleepDisabler.h.
2728         * platform/ios/ScrollAnimatorIOS.mm: Added.
2729         * platform/ios/ScrollViewIOS.mm: Added.
2730         * platform/ios/ScrollbarThemeIOS.h: Added.
2731         * platform/ios/ScrollbarThemeIOS.mm: Added.
2732         * platform/ios/SelectionRect.cpp: Added.
2733         * platform/ios/SelectionRect.h: Added.
2734         * platform/ios/SoundIOS.mm: Copied from Source/WebCore/platform/text/mac/CharsetData.h.
2735         * platform/ios/SystemMemoryIOS.cpp: Added.
2736         * platform/ios/ThemeIOS.h: Copied from Source/WebCore/platform/KillRingNone.cpp.
2737         * platform/ios/ThemeIOS.mm: Copied from Source/WebCore/platform/KillRingNone.cpp.
2738         * platform/ios/TileCache.h: Added.
2739         (WebCore::TileCache::isSpeculativeTileCreationEnabled):
2740         * platform/ios/TileCache.mm: Added.
2741         * platform/ios/TileGrid.h: Added.
2742         * platform/ios/TileGrid.mm: Added.
2743         * platform/ios/TileGridTile.h: Copied from Source/WebCore/platform/ContentFilter.h.
2744         * platform/ios/TileGridTile.mm: Added.
2745         * platform/ios/TileLayer.h: Copied from Source/WebCore/platform/mac/DisplaySleepDisabler.h.
2746         * platform/ios/TileLayer.mm: Added.
2747         * platform/ios/TileLayerPool.mm: Added.
2748         * platform/ios/WebCoreMotionManager.h: Copied from Source/WebCore/platform/KillRingNone.cpp.
2749         * platform/ios/WebCoreMotionManager.mm: Added.
2750         * platform/ios/WebCoreSystemInterfaceIOS.h: Added.
2751         * platform/ios/WebCoreSystemInterfaceIOS.mm: Added.
2752         * platform/ios/WebEvent.h: Added.
2753         * platform/ios/WebEvent.mm: Added.
2754         * platform/ios/WidgetIOS.mm: Added.
2755         * platform/mac/DisplaySleepDisabler.cpp:
2756         (WebCore::DisplaySleepDisabler::DisplaySleepDisabler):
2757         (WebCore::DisplaySleepDisabler::~DisplaySleepDisabler):
2758         * platform/mac/DisplaySleepDisabler.h:
2759         * platform/mac/FileSystemMac.mm:
2760         * platform/mac/KillRingMac.mm:
2761         * platform/mac/MemoryPressureHandlerMac.mm:
2762         (WebCore::MemoryPressureHandler::install):
2763         (WebCore::MemoryPressureHandler::releaseMemory):
2764         * platform/mac/PlatformClockCM.mm:
2765         (PlatformClockCM::PlatformClockCM):
2766         * platform/mac/SoftLinking.h:
2767         * platform/mac/SystemVersionMac.mm:
2768         * platform/mac/WebCoreFullScreenPlaceholderView.h:
2769         * platform/mac/WebCoreFullScreenPlaceholderView.mm:
2770         * platform/mac/WebCoreFullScreenWarningView.h:
2771         * platform/mac/WebCoreFullScreenWarningView.mm:
2772         * platform/mac/WebCoreFullScreenWindow.h:
2773         * platform/mac/WebCoreFullScreenWindow.mm:
2774         * platform/mac/WebCoreNSCellExtras.h:
2775         * platform/mac/WebCoreNSCellExtras.m:
2776         * platform/mac/WebCoreSystemInterface.h:
2777         * platform/mac/WebFontCache.mm:
2778         (+[WebFontCache fontWithFamily:traits:size:]):
2779         * platform/network/BlobRegistry.cpp:
2780         * platform/network/BlobRegistryImpl.cpp:
2781         * platform/network/Credential.h:
2782         * platform/network/CredentialStorage.cpp:
2783         (WebCore::CredentialStorage::set):
2784         (WebCore::CredentialStorage::clearCredentials):
2785         * platform/network/CredentialStorage.h:
2786         * platform/network/NetworkStateNotifier.h:
2787         * platform/network/ResourceHandle.cpp:
2788         (WebCore::builtinResourceHandleConstructorMap):
2789         (WebCore::ResourceHandle::continueWillSendRequest):
2790         (WebCore::ResourceHandle::continueDidReceiveResponse):
2791         (WebCore::ResourceHandle::continueShouldUseCredentialStorage):
2792         (WebCore::ResourceHandle::continueCanAuthenticateAgainstProtectionSpace):
2793         * platform/network/ResourceRequestBase.cpp:
2794         (WebCore::ResourceRequestBase::setDefaultAllowCookies):
2795         (WebCore::ResourceRequestBase::defaultAllowCookies):
2796         * platform/network/ResourceRequestBase.h:
2797         (WebCore::ResourceRequestBase::ResourceRequestBase):
2798         * platform/network/cf/CredentialStorageCFNet.cpp:
2799         (WebCore::CredentialStorage::saveToPersistentStorage):
2800         * platform/network/cf/DNSCFNet.cpp:
2801         * platform/network/cf/ProxyServerCFNet.cpp:
2802         * platform/network/cf/ResourceRequest.h:
2803         (WebCore::ResourceRequest::ResourceRequest):
2804         (WebCore::ResourceRequest::setMainResourceRequest):
2805         (WebCore::ResourceRequest::isMainResourceRequest):
2806         * platform/network/cf/ResourceRequestCFNet.cpp:
2807         (WebCore::ResourceRequest::updateFromDelegatePreservingOldHTTPBody):
2808         (WebCore::ResourceRequest::doUpdateResourceRequest):
2809         (WebCore::ResourceRequest::applyWebArchiveHackForMail):
2810         (WebCore::initializeHTTPConnectionSettingsOnStartup):
2811         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2812         (WebCore::SocketStreamHandle::reportErrorToClient):
2813         * platform/network/ios/NetworkStateNotifierIOS.cpp: Copied from Source/WebCore/platform/KillRingNone.cpp.
2814         (WebCore::NetworkStateNotifier::NetworkStateNotifier):
2815         (WebCore::NetworkStateNotifier::setIsOnLine):
2816         * platform/network/ios/QuickLook.h: Added.
2817         * platform/network/ios/QuickLook.mm: Added.
2818         * platform/network/ios/ResourceHandleIOS.mm: Added.
2819         * platform/network/ios/WebCoreURLResponseIOS.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
2820         * platform/network/ios/WebCoreURLResponseIOS.mm: Added.
2821         * platform/network/mac/AuthenticationMac.mm:
2822         (WebCore::mac):
2823         * platform/network/mac/CredentialStorageMac.mm:
2824         (WebCore::CredentialStorage::saveToPersistentStorage):
2825         * platform/network/mac/ResourceErrorMac.mm:
2826         (dictionaryThatCanCode):
2827         (-[WebCustomNSURLError encodeWithCoder:]):
2828         (NSErrorFromCFError):
2829         (WebCore::ResourceError::nsError):
2830         * platform/network/mac/ResourceHandleMac.mm:
2831         (WebCore::synchronousWillSendRequestEnabled):
2832         (WebCore::ResourceHandle::createNSURLConnection):
2833         (WebCore::ResourceHandle::start):
2834         (WebCore::ResourceHandle::schedule):
2835         (WebCore::ResourceHandle::unschedule):
2836         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
2837         (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
2838         * platform/network/mac/ResourceRequestMac.mm:
2839         (WebCore::ResourceRequest::ResourceRequest):
2840         (WebCore::ResourceRequest::updateNSURLRequest):
2841         (WebCore::ResourceRequest::applyWebArchiveHackForMail):
2842         (WebCore::ResourceRequest::useQuickLookResourceCachingQuirks):
2843         * platform/network/mac/UTIUtilities.mm:
2844         * platform/network/mac/WebCoreResourceHandleAsDelegate.mm:
2845         (-[WebCoreResourceHandleAsDelegate connectionShouldUseCredentialStorage:]):
2846         (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
2847         (-[WebCoreResourceHandleAsDelegate connection:didReceiveDataArray:]):
2848         (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
2849         (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
2850         (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
2851         * platform/sql/SQLiteDatabase.h:
2852         (WebCore::SQLiteDatabase::sqlite3Handle):
2853         * platform/sql/SQLiteFileSystem.cpp:
2854         (WebCore::SQLiteFileSystem::truncateDatabaseFile):
2855         * platform/sql/SQLiteFileSystem.h:
2856         * platform/sql/SQLiteTransaction.cpp:
2857         (WebCore::SQLiteTransaction::begin):
2858         (WebCore::SQLiteTransaction::commit):
2859         (WebCore::SQLiteTransaction::rollback):
2860         (WebCore::SQLiteTransaction::stop):
2861         * platform/sql/ios/SQLiteDatabaseTracker.cpp: Added.
2862         * platform/sql/ios/SQLiteDatabaseTracker.h: Copied from Source/WebCore/platform/MemoryPressureHandler.cpp.
2863         * platform/sql/ios/SQLiteDatabaseTrackerClient.h: Copied from Source/WebCore/platform/KillRingNone.cpp.
2864         * platform/text/PlatformLocale.cpp:
2865         * platform/text/PlatformLocale.h:
2866         * platform/text/TextBreakIteratorICU.cpp:
2867         (WebCore::cursorMovementIterator):
2868         * platform/text/TextCodecICU.cpp:
2869         (WebCore::TextCodecICU::registerEncodingNames):
2870         (WebCore::TextCodecICU::registerCodecs):
2871         * platform/text/TextEncodingRegistry.cpp:
2872         (WebCore::extendTextCodecMaps):
2873         * platform/text/cf/HyphenationCF.cpp:
2874         (WebCore::canHyphenate):
2875         * platform/text/ios/LocalizedDateCache.h: Copied from Source/WebCore/platform/MemoryPressureHandler.h.
2876         * platform/text/ios/LocalizedDateCache.mm: Added.
2877         * platform/text/mac/CharsetData.h:
2878         * platform/text/mac/LocaleMac.h:
2879         * platform/text/mac/LocaleMac.mm:
2880         (WebCore::LocaleMac::formatDateTime):
2881         (WebCore::LocaleMac::maximumWidthForDateType):
2882         * platform/text/mac/TextBoundaries.mm:
2883         (WebCore::isSkipCharacter):
2884         (WebCore::isWhitespaceCharacter):
2885         (WebCore::isWordDelimitingCharacter):
2886         (WebCore::isSymbolCharacter):
2887         (WebCore::isAmbiguousBoundaryCharacter):
2888         (WebCore::tokenizerForString):
2889         (WebCore::findSimpleWordBoundary):
2890         (WebCore::findComplexWordBoundary):
2891         (WebCore::findWordBoundary):
2892         (WebCore::findNextWordFromIndex):
2893         * platform/text/mac/TextCodecMac.cpp:
2894         * platform/text/mac/TextCodecMac.h:
2895
2896 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
2897
2898         Web Inspector: Consolidate developerExtrasEnabled to just InspectorEnvironment
2899         https://bugs.webkit.org/show_bug.cgi?id=126717
2900
2901         Reviewed by Timothy Hatcher.
2902
2903         They all route to InspectorEnvironment::developerExtrasEnabled, so make
2904         InspectorEnvironment available to all agents through InstrumentingAgents
2905         and use that where needed.
2906
2907         * inspector/InspectorAgent.cpp:
2908         (WebCore::InspectorAgent::InspectorAgent):
2909         * inspector/InspectorAgent.h:
2910         (WebCore::InspectorAgent::create):
2911         * inspector/InspectorConsoleAgent.cpp:
2912         (WebCore::InspectorConsoleAgent::addMessageToConsole):
2913         (WebCore::InspectorConsoleAgent::didFinishXHRLoading):
2914         (WebCore::InspectorConsoleAgent::didReceiveResponse):
2915         (WebCore::InspectorConsoleAgent::didFailLoading):
2916         (WebCore::InspectorConsoleAgent::addConsoleMessage):
2917         * inspector/InspectorConsoleAgent.h:
2918         * inspector/InspectorController.cpp:
2919         (WebCore::InspectorController::InspectorController):
2920         (WebCore::InspectorController::enabled):
2921         * inspector/InspectorInstrumentation.cpp:
2922         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
2923         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
2924         (WebCore::InspectorInstrumentation::frameDocumentUpdatedImpl):
2925         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
2926         (WebCore::InspectorInstrumentation::didCreateWebSocketImpl):
2927         * inspector/InstrumentingAgents.cpp:
2928         (WebCore::InstrumentingAgents::InstrumentingAgents):
2929         * inspector/InstrumentingAgents.h:
2930         (WebCore::InstrumentingAgents::create):
2931         (WebCore::InstrumentingAgents::inspectorEnvironment):
2932         * inspector/PageConsoleAgent.cpp:
2933         * inspector/PageConsoleAgent.h:
2934         * inspector/WorkerConsoleAgent.cpp:
2935         * inspector/WorkerConsoleAgent.h:
2936         * inspector/WorkerInspectorController.cpp:
2937         (WebCore::WorkerInspectorController::WorkerInspectorController):
2938
2939 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
2940
2941         Web Inspector: Remove Unnecessary InspectorAgent parameters
2942         https://bugs.webkit.org/show_bug.cgi?id=126712
2943
2944         Reviewed by Timothy Hatcher.
2945
2946         * inspector/InspectorController.cpp:
2947         (WebCore::InspectorController::InspectorController):
2948         * inspector/InspectorDOMDebuggerAgent.cpp:
2949         (WebCore::InspectorDOMDebuggerAgent::create):
2950         (WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
2951         * inspector/InspectorDOMDebuggerAgent.h:
2952         * inspector/InspectorPageAgent.cpp:
2953         (WebCore::InspectorPageAgent::create):
2954         (WebCore::InspectorPageAgent::InspectorPageAgent):
2955         * inspector/InspectorPageAgent.h:
2956
2957 2014-01-09  Antti Koivisto  <antti@apple.com>
2958
2959         Remove an accidentally left-behind static_cast.
2960
2961         * dom/ElementDescendantIterator.h:
2962         (WebCore::ElementDescendantIteratorAdapter<ElementType>::beginAt):
2963
2964 2014-01-09  Antti Koivisto  <antti@apple.com>
2965
2966         Replace ElementIteratorAdapter find() with beginAt()
2967         https://bugs.webkit.org/show_bug.cgi?id=126714
2968
2969         Reviewed by Andreas Kling.
2970
2971         ElementIteratorAdapter find() would return iterator for the argument element if it was
2972         of correct type and in the right subtree. This is not really what you would expect from find()
2973         so replace it with a simple beginAt() iterator construction function.
2974
2975         * dom/DocumentOrderedMap.cpp:
2976         (WebCore::DocumentOrderedMap::getAllElementsById):
2977         * dom/ElementChildIterator.h:
2978         (WebCore::ElementChildIteratorAdapter<ElementType>::beginAt):
2979         (WebCore::ElementChildConstIteratorAdapter<ElementType>::beginAt):
2980         * dom/ElementDescendantIterator.h:
2981         (WebCore::ElementDescendantIteratorAdapter<ElementType>::beginAt):
2982         (WebCore::ElementDescendantConstIteratorAdapter<ElementType>::beginAt):
2983         * html/HTMLFormElement.cpp:
2984         (WebCore::HTMLFormElement::formElementIndex):
2985         * html/HTMLTableRowsCollection.cpp:
2986         (WebCore::HTMLTableRowsCollection::rowAfter):
2987
2988 2014-01-09  Brian Burg  <bburg@apple.com>
2989
2990         REGRESSION (r160152): Selection drag snapshot doesn't appear or has the wrong content on Retina
2991         https://bugs.webkit.org/show_bug.cgi?id=125375
2992
2993         Reviewed by Darin Adler.
2994
2995         Move scaling of drag images by the device scale factor out of DragClient
2996         and into WebCore. This removes several redundant copies and scaling operations.
2997
2998         Fix scaling bugs that were cancelled out by over-allocating the backing store.
2999
3000         * page/DragController.cpp:
3001         (WebCore::DragController::startDrag): Scale the drag image for a link
3002         according to the device scale factor before giving it to the OS.
3003
3004         (WebCore::DragController::doImageDrag): Scale the drag image for an image
3005         according to the device scale factor before giving it to the OS.
3006
3007         * page/FrameSnapshotting.cpp:
3008         (WebCore::snapshotFrameRect): Don't pre-scale or clip the snapshot. The
3009         ImageBuffer does this already.
3010
3011         * platform/DragImage.cpp:
3012         (WebCore::createDragImageFromSnapshot): Don't scale the backing store
3013         when copying an ImageBuffer into an Image.
3014
3015         * platform/graphics/cg/ImageBufferCG.cpp:
3016         (WebCore::ImageBuffer::copyImage): Draw the image in user-space coordinates,
3017         not in backing-store coordinates. Remove unnecessary assertions. Crop the
3018         buffer before drawing the image into it.
3019
3020 2014-01-09  Myles C. Maxfield  <mmaxfield@apple.com>
3021
3022         Narrow underlines are too tall
3023         https://bugs.webkit.org/show_bug.cgi?id=126708
3024
3025         Reviewed by Simon Fraser.
3026
3027         I made a typo in r158392 and used was settings the line rect's
3028         height equal to its width. No one noticed because of the subsequent
3029         if statement.
3030
3031         Test: fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-tall-underlines.html
3032
3033         * platform/graphics/cg/GraphicsContextCG.cpp:
3034         (WebCore::computeLineBoundsAndAntialiasingModeForText):
3035
3036 2014-01-09  Antti Koivisto  <antti@apple.com>
3037
3038         DocumentOrderedMap should use iterator
3039         https://bugs.webkit.org/show_bug.cgi?id=126696
3040
3041         Reviewed by Andreas Kling.
3042
3043         * dom/DocumentOrderedMap.cpp:
3044         (WebCore::keyMatchesId):
3045         (WebCore::keyMatchesName):
3046         (WebCore::keyMatchesMapName):
3047         (WebCore::keyMatchesLowercasedMapName):
3048         (WebCore::keyMatchesLowercasedUsemap):
3049         (WebCore::keyMatchesLabelForAttribute):
3050         (WebCore::keyMatchesWindowNamedItem):
3051         (WebCore::keyMatchesDocumentNamedItem):
3052         
3053             Switch to Element references.
3054
3055         (WebCore::DocumentOrderedMap::add):
3056         (WebCore::DocumentOrderedMap::remove):
3057         (WebCore::DocumentOrderedMap::get):
3058         (WebCore::DocumentOrderedMap::getAllElementsById):
3059         
3060              Use element iterator instead of ElementTraversal.
3061
3062         * dom/DocumentOrderedMap.h:
3063
3064 2014-01-09  Beth Dakin  <bdakin@apple.com>
3065
3066         Margin tiles are not repainted when background color changes
3067         https://bugs.webkit.org/show_bug.cgi?id=126541
3068         -and corresponding-
3069         <rdar://problem/15578131>
3070
3071         Reviewed by Simon Fraser.
3072
3073         This patch adds an optional parameter to GraphicsLayer::setNeedsDisplayInRect, 
3074         RenderLayerBacking::setContentsNeedDisplay(), and 
3075         RenderLayer::setBackingNeedsRepaint() that is used to determine whether or not to 
3076         clip the invalidation rect to the size of the layer. Then whenever the margin 
3077         needs to be repainted, we can call setNeedsDisplayInRect() with a rect that 
3078         includes the margin, and also indicate that it should not be clipped.
3079
3080         GraphicsLayer now takes an optional parameter which is an enum called 
3081         ShouldClipToLayer.
3082         * WebCore.exp.in:
3083         * platform/graphics/GraphicsLayer.h:
3084         * platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp:
3085         (WebCore::GraphicsLayerBlackBerry::setNeedsDisplayInRect):
3086         * platform/graphics/blackberry/GraphicsLayerBlackBerry.h:
3087         * platform/graphics/ca/GraphicsLayerCA.cpp:
3088         (WebCore::GraphicsLayerCA::setNeedsDisplayInRect):
3089         * platform/graphics/ca/GraphicsLayerCA.h:
3090         * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
3091         (WebCore::GraphicsLayerTextureMapper::setNeedsDisplayInRect):
3092         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
3093         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
3094         (WebCore::CoordinatedGraphicsLayer::setNeedsDisplayInRect):
3095         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
3096
3097         Make TileController::bounds() a virtual function, and declare it on TiledBacking 
3098         so that we can call it from RenderLayerBacking.
3099         * platform/graphics/TiledBacking.h:
3100         * platform/graphics/ca/mac/TileController.h:
3101
3102         RenderLayer also now takes an optional parameter which is an enum called 
3103         ShouldClipToLayer.
3104         * rendering/RenderLayer.cpp:
3105         (WebCore::RenderLayer::calculateClipRects):
3106         * rendering/RenderLayer.h:
3107
3108         If the margin needs to be repainted, call GraphicsLayer::setNeedsDisplayInRect 
3109         with a big enough rect and a ShouldClipToLayer value of DoNotClipToLayer.
3110         * rendering/RenderLayerBacking.cpp:
3111         (WebCore::RenderLayerBacking::setContentsNeedDisplay):
3112         * rendering/RenderLayerBacking.h:
3113
3114         Whenever all of the root contents need to be repainted the margin will also need 
3115         to be repainted, so call setBackingNeedsRepaint() with the new parameter 
3116         indicating the the invalidation should NOT be clipped to the layer size.
3117         * rendering/RenderView.cpp:
3118         (WebCore::RenderView::repaintRootContents):
3119
3120 2014-01-09  Bear Travis  <betravis@adobe.com>
3121
3122         [CSS Shapes] Factor the ReferenceBox type out of BasicShapes
3123         https://bugs.webkit.org/show_bug.cgi?id=126648
3124
3125         Reviewed by Dirk Schulze.
3126
3127         Moving ReferenceBox out of BasicShapes and into RenderStyleConstants
3128         as the LayoutBox enum. Most of the changes are removing the BasicShape
3129         namespace.
3130
3131         Refactoring, no new tests.
3132
3133         * css/BasicShapeFunctions.cpp:
3134         (WebCore::valueForBox):
3135         (WebCore::boxForValue):
3136         (WebCore::valueForBasicShape):
3137         (WebCore::basicShapeForValue):
3138         * css/BasicShapeFunctions.h:
3139         * css/CSSBasicShapes.cpp:
3140         (WebCore::CSSBasicShapeRectangle::cssText):
3141         (WebCore::CSSBasicShapeRectangle::equals):
3142         (WebCore::CSSBasicShapeCircle::cssText):
3143         (WebCore::CSSBasicShapeCircle::equals):
3144         (WebCore::CSSDeprecatedBasicShapeCircle::cssText):
3145         (WebCore::CSSDeprecatedBasicShapeCircle::equals):
3146         (WebCore::CSSBasicShapeEllipse::cssText):
3147         (WebCore::CSSBasicShapeEllipse::equals):
3148         (WebCore::CSSDeprecatedBasicShapeEllipse::cssText):
3149         (WebCore::CSSDeprecatedBasicShapeEllipse::equals):
3150         (WebCore::CSSBasicShapePolygon::cssText):
3151         (WebCore::CSSBasicShapePolygon::equals):
3152         (WebCore::CSSBasicShapeInsetRectangle::cssText):
3153         (WebCore::CSSBasicShapeInsetRectangle::equals):
3154         (WebCore::CSSBasicShapeInset::cssText):
3155         * css/CSSBasicShapes.h:
3156         (WebCore::CSSBasicShape::layoutBox):
3157         (WebCore::CSSBasicShape::setLayoutBox):
3158         * css/CSSComputedStyleDeclaration.cpp:
3159         (WebCore::ComputedStyleExtractor::propertyValue):
3160         * css/CSSParser.cpp:
3161         (WebCore::CSSParser::parseShapeProperty):
3162         * css/DeprecatedStyleBuilder.cpp:
3163         (WebCore::ApplyPropertyClipPath::applyValue):
3164         (WebCore::ApplyPropertyShape::applyValue):
3165         * rendering/ClipPathOperation.h:
3166         (WebCore::ShapeClipPathOperation::setReferenceBox):
3167         (WebCore::ShapeClipPathOperation::referenceBox):
3168         (WebCore::ShapeClipPathOperation::ShapeClipPathOperation):
3169         (WebCore::BoxClipPathOperation::create):
3170         (WebCore::BoxClipPathOperation::referenceBox):
3171         (WebCore::BoxClipPathOperation::BoxClipPathOperation):
3172         * rendering/shapes/Shape.cpp:
3173         (WebCore::Shape::createLayoutBoxShape):
3174         * rendering/shapes/Shape.h:
3175         * rendering/shapes/ShapeInfo.cpp:
3176         (WebCore::ShapeInfo<RenderType>::computedShape):
3177         * rendering/shapes/ShapeInfo.h:
3178         (WebCore::ShapeInfo::setShapeSize):
3179         (WebCore::ShapeInfo::logicalTopOffset):
3180         (WebCore::ShapeInfo::logicalLeftOffset):
3181         * rendering/shapes/ShapeInsideInfo.h:
3182         * rendering/shapes/ShapeOutsideInfo.h:
3183         * rendering/style/BasicShapes.cpp:
3184         (WebCore::BasicShape::canBlend):
3185         (WebCore::BasicShape::referenceBoxSize):
3186         * rendering/style/BasicShapes.h:
3187         (WebCore::BasicShape::layoutBox):
3188         (WebCore::BasicShape::setLayoutBox):
3189         (WebCore::BasicShape::BasicShape):
3190         * rendering/style/RenderStyleConstants.h:
3191         * rendering/style/ShapeValue.h:
3192         (WebCore::ShapeValue::createLayoutBoxValue):
3193         (WebCore::ShapeValue::layoutBox):
3194         (WebCore::ShapeValue::ShapeValue):
3195
3196 2014-01-09  Tim Horton  <timothy_horton@apple.com>
3197
3198         PDFDocumentImage can be very slow to do the initial paint
3199         https://bugs.webkit.org/show_bug.cgi?id=126633
3200         <rdar://problem/15770980>
3201
3202         Reviewed by Simon Fraser.
3203
3204         * platform/graphics/cg/PDFDocumentImage.cpp:
3205         (WebCore::PDFDocumentImage::PDFDocumentImage):
3206         (WebCore::PDFDocumentImage::size):
3207         (WebCore::transformContextForPainting):
3208         (WebCore::PDFDocumentImage::computeBoundsForCurrentPage):
3209         (WebCore::applyRotationForPainting):
3210         (WebCore::PDFDocumentImage::drawPDFPage):
3211         * platform/graphics/cg/PDFDocumentImage.h:
3212         * platform/graphics/mac/PDFDocumentImageMac.mm:
3213         (WebCore::PDFDocumentImage::computeBoundsForCurrentPage):
3214         Store rotation from the PDF in degrees, since it can
3215         only be 0, 90, 180, or 270, and don't do any trig to
3216         perform the rotation, to avoid introducing minor rounding
3217         issues in the size.
3218
3219         Once we're going to paint, if the difference between the
3220         computed scale for each axis is due only to integer rounding
3221         of the image size, use the same scale for both axes, to avoid
3222         a CG slow-path which occurs whenever the scale is nonuniform.
3223
3224 2014-01-09  Antti Koivisto  <antti@apple.com>
3225
3226         Disconnect child frames iteratively
3227         https://bugs.webkit.org/show_bug.cgi?id=126700
3228
3229         Reviewed by Andreas Kling.
3230
3231         Use descendant iterator instead of recursion for traversal.
3232
3233         * dom/ContainerNode.cpp:
3234         (WebCore::willRemoveChild):
3235         (WebCore::willRemoveChildren):
3236         (WebCore::ContainerNode::disconnectDescendantFrames):
3237         * dom/ContainerNodeAlgorithms.cpp:
3238         (WebCore::assertConnectedSubrameCountIsConsistent):
3239         (WebCore::collectFrameOwners):
3240         (WebCore::disconnectSubframes):
3241         
3242             Get rid of the strange ChildFrameDisconnector class in favor of a function.
3243
3244         * dom/ContainerNodeAlgorithms.h:
3245         (WebCore::disconnectSubframesIfNeeded):
3246
3247 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
3248
3249         Unreviewed Windows build fix for r161563.
3250
3251         Remove reference to removed file.
3252
3253         * bindings/js/JSBindingsAllInOne.cpp:
3254
3255 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
3256
3257         Web Inspector: Move InjectedScript classes into JavaScriptCore
3258         https://bugs.webkit.org/show_bug.cgi?id=126598
3259
3260         Part 6: Put it all together. Make WebCore use the JavaScriptCore InjectedScript files.
3261
3262         Reviewed by Timothy Hatcher.
3263
3264         * CMakeLists.txt:
3265         * DerivedSources.cpp:
3266         * DerivedSources.make:
3267         * GNUmakefile.list.am:
3268         * UseJSC.cmake:
3269         * WebCore.vcxproj/WebCore.vcxproj:
3270         * WebCore.vcxproj/WebCore.vcxproj.filters:
3271         * WebCore.xcodeproj/project.pbxproj:
3272         Remove old InjectedScript files.
3273
3274         * ForwardingHeaders/inspector/InjectedScript.h: Added.
3275         * ForwardingHeaders/inspector/InjectedScriptBase.h: Added.
3276         * ForwardingHeaders/inspector/InjectedScriptHost.h: Added.
3277         * ForwardingHeaders/inspector/InjectedScriptManager.h: Added.
3278         * ForwardingHeaders/inspector/InjectedScriptModule.h: Added.
3279         * ForwardingHeaders/inspector/InspectorEnvironment.h: Added.
3280         Expose headers to WebCore.
3281
3282         * inspector/InspectorController.h:
3283         * inspector/InspectorController.cpp:
3284         (WebCore::InspectorController::InspectorController):
3285         (WebCore::InspectorController::developerExtrasEnabled):
3286         (WebCore::InspectorController::canAccessInspectedScriptState):
3287         (WebCore::InspectorController::functionCallHandler):
3288         (WebCore::InspectorController::evaluateHandler):
3289         (WebCore::InspectorController::willCallInjectedScriptFunction):
3290         (WebCore::InspectorController::didCallInjectedScriptFunction):
3291         * inspector/WorkerInspectorController.h:
3292         * inspector/WorkerInspectorController.cpp:
3293         (WebCore::WorkerInspectorController::WorkerInspectorController):
3294         (WebCore::WorkerInspectorController::functionCallHandler):
3295         (WebCore::WorkerInspectorController::evaluateHandler):
3296         (WebCore::WorkerInspectorController::willCallInjectedScriptFunction):
3297         (WebCore::WorkerInspectorController::didCallInjectedScriptFunction):
3298         Make both InspectorControllers in WebCore be InspectorEnvironments.
3299
3300         * bindings/js/JSMainThreadExecState.h:
3301         * bindings/js/JSMainThreadExecState.cpp:
3302         (WebCore::evaluateHandlerFromAnyThread):
3303         Make JSC::evaluate wrapper like the existing JSC::call wrapper.
3304         These will be the ScriptFunctionCall implementations when debugging
3305         a WebCore::Page or worker, instead of the pure JSC versions.
3306
3307         * inspector/PageInjectedScriptHost.h: Copied from Source/WebCore/inspector/CommandLineAPIModule.h.
3308         * inspector/PageInjectedScriptHost.cpp: Copied from Source/WebCore/inspector/PageInjectedScriptManager.cpp.
3309         (WebCore::PageInjectedScriptHost::type):
3310         (WebCore::PageInjectedScriptHost::isHTMLAllCollection):
3311         WebCore InjectedScriptHost implementation for DOM type handling.
3312
3313         * inspector/PageInjectedScriptManager.h:
3314         * inspector/PageInjectedScriptManager.cpp:
3315         (WebCore::PageInjectedScriptManager::PageInjectedScriptManager):
3316         (WebCore::PageInjectedScriptManager::discardInjectedScriptsFor):
3317         WebCore InjectedScriptManager implementation for CommandLineAPI and
3318         specialized DOMWindow injected script management.
3319
3320         * bindings/js/JSBindingsAllInOne.cpp:
3321         * inspector/CommandLineAPIHost.cpp:
3322         * inspector/CommandLineAPIHost.h:
3323         * inspector/CommandLineAPIModule.cpp:
3324         (WebCore::CommandLineAPIModule::host):
3325         * inspector/CommandLineAPIModule.h:
3326         * inspector/ConsoleMessage.cpp:
3327         (WebCore::ConsoleMessage::addToFrontend):
3328         * inspector/ConsoleMessage.h:
3329         * inspector/InjectedScriptCanvasModule.cpp:
3330         (WebCore::InjectedScriptCanvasModule::InjectedScriptCanvasModule):
3331         * inspector/InjectedScriptCanvasModule.h:
3332         * inspector/InspectorAllInOne.cpp:
3333         * inspector/InspectorCanvasAgent.cpp:
3334         * inspector/InspectorCanvasAgent.h:
3335         (WebCore::InspectorCanvasAgent::create):
3336         * inspector/InspectorConsoleAgent.cpp:
3337         (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
3338         * inspector/InspectorConsoleAgent.h:
3339         * inspector/InspectorDOMAgent.cpp:
3340         * inspector/InspectorDOMAgent.h:
3341         (WebCore::InspectorDOMAgent::create):
3342         * inspector/InspectorDebuggerAgent.cpp:
3343         * inspector/InspectorDebuggerAgent.h:
3344         (WebCore::InspectorDebuggerAgent::injectedScriptManager):
3345         * inspector/InspectorHeapProfilerAgent.cpp:
3346         (WebCore::InspectorHeapProfilerAgent::create):
3347         (WebCore::InspectorHeapProfilerAgent::InspectorHeapProfilerAgent):
3348         * inspector/InspectorHeapProfilerAgent.h:
3349         * inspector/InspectorIndexedDBAgent.cpp:
3350         * inspector/InspectorIndexedDBAgent.h:
3351         (WebCore::InspectorIndexedDBAgent::create):
3352         * inspector/InspectorPageAgent.cpp:
3353         * inspector/InspectorPageAgent.h:
3354         * inspector/InspectorProfilerAgent.cpp:
3355         (WebCore::PageProfilerAgent::PageProfilerAgent):
3356         (WebCore::InspectorProfilerAgent::create):
3357         (WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
3358         (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
3359         * inspector/InspectorProfilerAgent.h:
3360         * inspector/InspectorRuntimeAgent.cpp:
3361         * inspector/InspectorRuntimeAgent.h:
3362         (WebCore::InspectorRuntimeAgent::injectedScriptManager):
3363         * inspector/PageConsoleAgent.cpp:
3364         (WebCore::PageConsoleAgent::PageConsoleAgent):
3365         * inspector/PageConsoleAgent.h:
3366         (WebCore::PageConsoleAgent::create):
3367         * inspector/PageDebuggerAgent.cpp:
3368         * inspector/PageDebuggerAgent.h:
3369         * inspector/PageRuntimeAgent.cpp:
3370         * inspector/PageRuntimeAgent.h:
3371         (WebCore::PageRuntimeAgent::create):
3372         * inspector/WorkerConsoleAgent.cpp:
3373         (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
3374         * inspector/WorkerConsoleAgent.h:
3375         (WebCore::WorkerConsoleAgent::create):
3376         * inspector/WorkerDebuggerAgent.cpp:
3377         * inspector/WorkerDebuggerAgent.h:
3378         * inspector/WorkerRuntimeAgent.cpp:
3379         * inspector/WorkerRuntimeAgent.h:
3380         (WebCore::WorkerRuntimeAgent::create):
3381         Switch to using the Inspector namespace and JSC InjectedScript files.
3382
3383         * bindings/js/JSInjectedScriptManager.cpp: Removed.
3384         * inspector/InjectedScript.h: Removed.
3385         * inspector/InjectedScriptHost.cpp: Removed.
3386         * inspector/InjectedScriptHost.h: Removed.
3387         * inspector/InjectedScriptHost.idl: Removed.
3388
3389
3390         Part 4: Move all inspector scripts into JavaScriptCore and update generators.
3391
3392         With the updated location switch to using the appropriate INSPECTOR_SCRIPTS_DIR
3393         variable which defines where the scripts are.
3394
3395         * CMakeLists.txt:
3396         * DerivedSources.make:
3397         * GNUmakefile.am:
3398         * GNUmakefile.list.am:
3399         * WebCore.vcxproj/WebCore.vcxproj:
3400         * WebCore.vcxproj/WebCore.vcxproj.filters:
3401         * WebCore.xcodeproj/project.pbxproj:
3402
3403
3404         Part 1: Extract InspectorInstrumentationCookie class from InspectorInstrumentation.
3405
3406         Currently InjectedScriptBase uses InspectorInstrumentation directly
3407         to track calling into JavaScript for timeline purposes. We will remove
3408         the direct call from InjectedScriptBase and extracting the Cookie class
3409         will make that easier.
3410
3411         * CMakeLists.txt:
3412         * GNUmakefile.list.am:
3413         * WebCore.vcxproj/WebCore.vcxproj:
3414         * WebCore.vcxproj/WebCore.vcxproj.filters:
3415         * WebCore.xcodeproj/project.pbxproj:
3416         * inspector/InspectorAllInOne.cpp:
3417         * inspector/InspectorInstrumentation.cpp:
3418         * inspector/InspectorInstrumentation.h:
3419         * inspector/InspectorInstrumentationCookie.cpp: Added.
3420         (WebCore::InspectorInstrumentationCookie::InspectorInstrumentationCookie):
3421         (WebCore::InspectorInstrumentationCookie::operator=):
3422         (WebCore::InspectorInstrumentationCookie::~InspectorInstrumentationCookie):
3423         * inspector/InspectorInstrumentationCookie.h: Added.
3424         (WebCore::InspectorInstrumentationCookie::isValid):
3425         (WebCore::InspectorInstrumentationCookie::instrumentingAgents):
3426         (WebCore::InspectorInstrumentationCookie::hasMatchingTimelineAgentId):
3427
3428 2014-01-09  Pascal Jacquemart  <p.jacquemart@samsung.com>
3429
3430         Cannot select multiple non-adjacent items in a multiple select control with the keyboard only
3431         https://bugs.webkit.org/show_bug.cgi?id=15816
3432
3433         Reviewed by Chris Fleizach.
3434
3435         Test: fast/forms/listbox-non-contiguous-keyboard-selection.html
3436
3437         * html/HTMLSelectElement.cpp:
3438         (WebCore::HTMLSelectElement::HTMLSelectElement):
3439         New member m_allowsNonContiguousSelection defaults to false
3440         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
3441         Tracking CTRL modifier to start multiple non contiguous selection
3442         * html/HTMLSelectElement.h: New member m_allowsNonContiguousSelection
3443         (WebCore::HTMLSelectElement::allowsNonContiguousSelection): New getter
3444         * rendering/RenderListBox.cpp:
3445         (WebCore::RenderListBox::addFocusRingRects):
3446         Following implementation made for spatial navigation
3447
3448 2014-01-09  Seokju Kwon  <seokju@webkit.org>
3449
3450         Web Inspector: Remove unused overriding protocols.
3451         https://bugs.webkit.org/show_bug.cgi?id=126630
3452