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