Source/WebCore: Clean up exports and headers for iOS.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2
3         Clean up exports and headers for iOS.
4         
5         Don't use ENABLE() macro in an exported header.
6
7         * platform/ios/wak/WAKResponder.h:
8
9 2014-01-14  Daniel Bates  <dabates@apple.com>
10
11         [iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP6NSData to
12         section USE(QUICK_LOOK)
13
14         * WebCore.exp.in:
15
16 2014-01-14  Anders Carlsson  <andersca@apple.com>
17
18         Clean up DNSResolveQueue
19         https://bugs.webkit.org/show_bug.cgi?id=127007
20
21         Reviewed by Geoffrey Garen.
22
23         Move the shared() getter out of line and make it use NeverDestroyed.
24         Add a Timer member variable instead of inheriting from TimerBase. 
25         Use std::atomic<int> for the m_requestsInFlight member variable.
26
27         * platform/network/DNSResolveQueue.cpp:
28         (WebCore::DNSResolveQueue::shared):
29         (WebCore::DNSResolveQueue::DNSResolveQueue):
30         (WebCore::DNSResolveQueue::add):
31         (WebCore::DNSResolveQueue::timerFired):
32         * platform/network/DNSResolveQueue.h:
33         (WebCore::DNSResolveQueue::decrementRequestCount):
34
35 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
36
37         Two more exports for iOS.
38
39         * WebCore.exp.in:
40
41 2014-01-14  Csaba Osztrogonác  <ossy@webkit.org>
42
43         One more buildfix after r161999.
44
45         * Modules/webaudio/MediaStreamAudioSource.h:
46
47 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
48
49         Export __ZN7WebCore11FileChooser16chooseMediaFilesERKN3WTF6VectorINS1_6StringELm0ENS1_15CrashOnOverflowEEERKS3_PNS_4IconE
50         to fix WK1 iOS linking.
51
52         * WebCore.exp.in:
53
54 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
55
56         iOS build fixing: export required by iOS WebKit1.
57
58         * WebCore.exp.in:
59
60 2014-01-14  Commit Queue  <commit-queue@webkit.org>
61
62         Unreviewed, rolling out r162000.
63         http://trac.webkit.org/changeset/162000
64         https://bugs.webkit.org/show_bug.cgi?id=127009
65
66         API versioning is wrong (Requested by rfong on #webkit).
67
68         * WebCore.xcodeproj/project.pbxproj:
69         * html/HTMLCanvasElement.cpp:
70         (WebCore::HTMLCanvasElement::getContext):
71         * loader/FrameLoaderClient.h:
72         * loader/FrameLoaderTypes.h:
73         * page/ChromeClient.h:
74
75 2014-01-14  Bear Travis  <betravis@adobe.com>
76
77         [CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
78         https://bugs.webkit.org/show_bug.cgi?id=126719
79
80         Reviewed by Dirk Schulze.
81
82         The standard location for conversions to/from CSSPrimitiveValues is CSSPrimitiveValueMappings.
83         This patch moves the conversion for LayoutBoxes from BasicShapeFunctions to
84         CSSPrimitiveValueMappings.h.
85
86         Refactoring, no new tests.
87
88         * css/BasicShapeFunctions.cpp:
89         (WebCore::valueForBasicShape):
90         (WebCore::basicShapeForValue):
91         * css/CSSComputedStyleDeclaration.cpp:
92         (WebCore::ComputedStyleExtractor::propertyValue):
93         * css/CSSPrimitiveValueMappings.h:
94         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
95         (WebCore::CSSPrimitiveValue::operator LayoutBox):
96         * css/DeprecatedStyleBuilder.cpp:
97         (WebCore::ApplyPropertyClipPath::applyValue):
98         (WebCore::ApplyPropertyShape::applyValue):
99
100 2014-01-09  Roger Fong  <roger_fong@apple.com>
101
102         Add support for handling WebGL load policies.
103         https://bugs.webkit.org/show_bug.cgi?id=126935
104         <rdar://problem/15790448>.
105
106         Reviewed by Brent Fulgham.
107
108         * WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
109         * html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
110         (WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
111                                                   If it isn't, be sure to notify the frame loader client that
112                                                   the site is trying to create a WebGL context.
113         * loader/FrameLoaderClient.h:
114         (WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
115         * loader/FrameLoaderTypes.h:
116         * page/ChromeClient.h:
117         (WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.
118
119 2014-01-14  Anders Carlsson  <andersca@apple.com>
120
121         Get rid of ThreadRestrictionVerifier
122         https://bugs.webkit.org/show_bug.cgi?id=127004
123
124         Reviewed by Sam Weinig.
125
126         Remove now unneeded calls.
127
128         * loader/icon/IconDatabase.cpp:
129         (WebCore::IconDatabase::defaultIcon):
130         (WebCore::IconDatabase::setIconDataForIconURL):
131         (WebCore::IconDatabase::getOrCreateIconRecord):
132         (WebCore::IconDatabase::readFromDatabase):
133
134 2014-01-14  Daniel Bates  <dabates@apple.com>
135
136         [iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and QLContentDictionary()
137         https://bugs.webkit.org/show_bug.cgi?id=126999
138         <rdar://problem/15810305>
139
140         Reviewed by Joseph Pecoraro.
141
142         Fixes an issue where we may crash when subsequently accessing WebCore::QLPreviewConverterDictionary()
143         or WebCore::QLContentDictionary(). Currently neither of these functions retain'ed the NSMutable dictionary
144         returned by [NSMutableDictionary dictionary]. Instead, we should allocate and initialize NSMutableDictionary
145         directly to ensure that the dictionary is retained.
146
147         * platform/network/ios/QuickLook.mm:
148         (QLPreviewConverterDictionary):
149         (QLContentDictionary):
150
151 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
152
153         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
154         https://bugs.webkit.org/show_bug.cgi?id=126925
155
156         Reviewed by Dean Jackson.
157
158         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
159
160         * html/canvas/WebGLRenderingContext.cpp:
161         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
162
163 2014-01-14  Mark Rowe  <mrowe@apple.com>
164
165         WebCore icon database appears to leak sudden termination assertions
166         <https://webkit.org/b/126971> / <rdar://problem/15808797>
167
168         Introduce an RAII wrapper around disableSuddenTermination / enableSuddenTermination
169         and adopt it in IconDatabase to address the incorrect management of sudden termination.
170
171         IconDatabase now owns up to two SuddenTerminationDisabler objects. One ensures that
172         sudden termination is disabled while we're waiting on the sync timer to fire. The second
173         ensures that sudden termination is disabled while we're waiting on the sync thread to
174         process any pending work.
175
176         Reviewed by Alexey Proskuryakov.
177
178         * loader/icon/IconDatabase.cpp:
179         (WebCore::IconDatabase::IconDatabase):
180         (WebCore::IconDatabase::wakeSyncThread): Disable sudden termination until the sync thread
181         has finished this unit of work.
182         (WebCore::IconDatabase::scheduleOrDeferSyncTimer): Disable sudden termination until the
183         sync timer has fired.
184         (WebCore::IconDatabase::syncTimerFired): Clear the member variable to reenable sudden termination.
185         (WebCore::IconDatabase::syncThreadMainLoop): Taken ownership of the SuddenTerminationDisabler
186         instance when we start processing a unit of work. Discard the object when our work is complete.
187         * loader/icon/IconDatabase.h:
188         * platform/SuddenTermination.h:
189         (WebCore::SuddenTerminationDisabler::SuddenTerminationDisabler): Disable sudden termination when created.
190         (WebCore::SuddenTerminationDisabler::~SuddenTerminationDisabler): Enable it when destroyed.
191
192 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
193
194         Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
195         https://bugs.webkit.org/show_bug.cgi?id=126995
196
197         Reviewed by Timothy Hatcher.
198
199         * inspector/InspectorClient.h:
200         (WebCore::InspectorClient::parentProcessIdentifier):
201         Client method intended for WebKit2 so a WebProcess can link to its UIProcess.
202
203         * page/PageDebuggable.h:
204         * page/PageDebuggable.cpp:
205         (WebCore::PageDebuggable::parentProcessIdentifier):
206         Provide parent process identifier if there is one.
207
208 2014-01-14  Tim Horton  <timothy_horton@apple.com>
209
210         iOS WebKit2 build fixes, part 2
211
212         * WebCore.exp.in:
213         Export some more symbols.
214
215 2014-01-14  Brian J. Burg  <burg@cs.washington.edu>
216
217         Add ENABLE(WEB_REPLAY) feature flag to the build system
218         https://bugs.webkit.org/show_bug.cgi?id=126949
219
220         Reviewed by Joseph Pecoraro.
221
222         * Configurations/FeatureDefines.xcconfig:
223
224 2014-01-10  Jer Noble  <jer.noble@apple.com>
225
226         Crash in WebCore::MediaSourcePrivateAVFObjC::hasAudio const + 13
227         https://bugs.webkit.org/show_bug.cgi?id=126768
228
229         Reviewed by Eric Carlson.
230
231         Null-check m_mediaSourcePrivate before calling.
232
233         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
234         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasVideo):
235         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasAudio):
236         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekInternal):
237
238 2014-01-14  Piotr Grad  <p.grad@samsung.com>
239
240         [GStreamer] Playback rate is not set when pipeline is not ready.
241         https://bugs.webkit.org/show_bug.cgi?id=126692
242
243         Reviewed by Philippe Normand.
244
245         No new tests. Covered by existing tests.
246
247         Added new method updatePlaybackRate which is called when playback rate change is possible.
248         Added m_lastPlaybackRate in order to retrieve last correct playback rate and notify upper
249         layers about that setting playback rate failed.
250
251         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
252         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
253         (WebCore::MediaPlayerPrivateGStreamer::updatePlaybackRate):
254         (WebCore::MediaPlayerPrivateGStreamer::setRate):
255         (WebCore::MediaPlayerPrivateGStreamer::updateStates):
256         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
257
258 2014-01-14  Commit Queue  <commit-queue@webkit.org>
259
260         Unreviewed, rolling out r161978.
261         http://trac.webkit.org/changeset/161978
262         https://bugs.webkit.org/show_bug.cgi?id=126992
263
264         Test case causes crash on some hardware (Requested by bfulgham
265         on #webkit).
266
267         * html/canvas/WebGLRenderingContext.cpp:
268         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
269
270 2014-01-14  Commit Queue  <commit-queue@webkit.org>
271
272         Unreviewed, rolling out r161964 and r161965.
273         http://trac.webkit.org/changeset/161964
274         http://trac.webkit.org/changeset/161965
275         https://bugs.webkit.org/show_bug.cgi?id=126988
276
277         Tests do not pass on the bots because of slight color
278         differences. The tests should be redone with squared results
279         and blending that leads to stable colors. (Requested by krit_
280         on #webkit).
281
282         * platform/graphics/CrossfadeGeneratedImage.cpp:
283         (WebCore::CrossfadeGeneratedImage::draw):
284         * svg/graphics/SVGImage.cpp:
285         (WebCore::SVGImage::drawPatternForContainer):
286         * svg/graphics/SVGImage.h:
287         * svg/graphics/SVGImageForContainer.cpp:
288         (WebCore::SVGImageForContainer::drawPattern):
289
290 2014-01-14  Hans Muller  <hmuller@adobe.com>
291
292         [CSS Shapes] Shape images are now <image> types, not just URIs
293         https://bugs.webkit.org/show_bug.cgi?id=125224
294
295         Reviewed by Andreas Kling.
296
297         Added support for image-set valued shapes. Added an optional ResourceLoaderOptions
298         parameter to CSSImageSetValue::cachedImageSet() to enable CORS-enabled fetch of
299         image-set images. This change is based on a similar patch for ordinary shape image values:
300         https://bugs.webkit.org/show_bug.cgi?id=123114.
301
302         Tests: fast/shapes/shape-inside/shape-inside-image-set.html
303                fast/shapes/shape-outside-floats/shape-outside-image-set.html
304
305         * css/CSSImageSetValue.cpp:
306         (WebCore::CSSImageSetValue::cachedImageSet):
307         * css/CSSImageSetValue.h:
308         * css/CSSParser.cpp:
309         (WebCore::CSSParser::parseShapeProperty):
310         * css/DeprecatedStyleBuilder.cpp:
311         (WebCore::ApplyPropertyShape::applyValue):
312         * css/StyleResolver.cpp:
313         (WebCore::StyleResolver::loadPendingImage):
314         (WebCore::StyleResolver::loadPendingShapeImage):
315         * css/StyleResolver.h:
316         * rendering/shapes/Shape.cpp:
317         (WebCore::Shape::createShape):
318
319 2014-01-13  Chris Fleizach  <cfleizach@apple.com>
320
321         AX: Modernize AccessibilityChildrenVector loops
322         https://bugs.webkit.org/show_bug.cgi?id=126915
323
324         Reviewed by Anders Carlsson.
325
326         Change appropriate for loops to use the new style.
327         Use auto where appropriate.
328
329         * accessibility/AXObjectCache.cpp:
330         (WebCore::AXObjectCache::focusedImageMapUIElement):
331         * accessibility/AccessibilityARIAGrid.cpp:
332         (WebCore::AccessibilityARIAGrid::addRowDescendant):
333         * accessibility/AccessibilityARIAGridCell.cpp:
334         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
335         * accessibility/AccessibilityARIAGridRow.cpp:
336         (WebCore::AccessibilityARIAGridRow::disclosedRows):
337         (WebCore::AccessibilityARIAGridRow::disclosedByRow):
338         (WebCore::AccessibilityARIAGridRow::parentTable):
339         (WebCore::AccessibilityARIAGridRow::headerObject):
340         * accessibility/AccessibilityListBox.cpp:
341         (WebCore::AccessibilityListBox::addChildren):
342         (WebCore::AccessibilityListBox::setSelectedChildren):
343         (WebCore::AccessibilityListBox::selectedChildren):
344         * accessibility/AccessibilityListBoxOption.cpp:
345         (WebCore::AccessibilityListBoxOption::listBoxOptionIndex):
346         * accessibility/AccessibilityMenuList.cpp:
347         (WebCore::AccessibilityMenuList::didUpdateActiveOption):
348         * accessibility/AccessibilityMenuListPopup.cpp:
349         (WebCore::AccessibilityMenuListPopup::addChildren):
350         * accessibility/AccessibilityNodeObject.cpp:
351         (WebCore::AccessibilityNodeObject::insertChild):
352         (WebCore::AccessibilityNodeObject::selectedRadioButton):
353         (WebCore::AccessibilityNodeObject::selectedTabItem):
354         (WebCore::AccessibilityNodeObject::ariaLabeledByText):
355         * accessibility/AccessibilityObject.cpp:
356         (WebCore::appendChildrenToArray):
357         (WebCore::AccessibilityObject::clearChildren):
358         (WebCore::AccessibilityObject::ariaTreeRows):
359         (WebCore::AccessibilityObject::ariaTreeItemContent):
360         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
361         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
362         * accessibility/AccessibilityRenderObject.cpp:
363         (WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
364         (WebCore::AccessibilityRenderObject::ariaFlowToElements):
365         (WebCore::AccessibilityRenderObject::isTabItemSelected):
366         (WebCore::AccessibilityRenderObject::setSelectedRows):
367         (WebCore::AccessibilityRenderObject::ariaOwnsElements):
368         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
369         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
370         (WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
371         (WebCore::AccessibilityRenderObject::addHiddenChildren):
372         (WebCore::AccessibilityRenderObject::ariaSelectedRows):
373         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
374         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
375         (WebCore::AccessibilityRenderObject::tabChildren):
376         (WebCore::AccessibilityRenderObject::mathRadicandObject):
377         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
378         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
379         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
380         (WebCore::AccessibilityRenderObject::mathUnderObject):
381         (WebCore::AccessibilityRenderObject::mathOverObject):
382         (WebCore::AccessibilityRenderObject::mathBaseObject):
383         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
384         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
385         * accessibility/AccessibilityTable.cpp:
386         (WebCore::AccessibilityTable::columnHeaders):
387         (WebCore::AccessibilityTable::rowHeaders):
388         (WebCore::AccessibilityTable::visibleRows):
389         (WebCore::AccessibilityTable::cells):
390         (WebCore::AccessibilityTable::cellForColumnAndRow):
391         * accessibility/AccessibilityTableColumn.cpp:
392         (WebCore::AccessibilityTableColumn::headerObject):
393         * accessibility/AccessibilityTableHeaderContainer.cpp:
394         (WebCore::AccessibilityTableHeaderContainer::addChildren):
395         * accessibility/AccessibilityTableRow.cpp:
396         (WebCore::AccessibilityTableRow::headerObject):
397         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
398         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
399         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
400         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
401         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
402         (convertMathPairsToNSArray):
403         (-[WebAccessibilityObjectWrapperBase accessibilityTitle]):
404         (-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
405         (-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
406         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
407         (convertToNSArray):
408         (convertStringsToNSArray):
409         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
410         (-[WebAccessibilityObjectWrapper accessibilityIndexOfChild:]):
411         (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
412         (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):
413
414 2014-01-14  Brent Fulgham  <bfulgham@apple.com>
415
416         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
417         https://bugs.webkit.org/show_bug.cgi?id=126925
418
419         Reviewed by Dean Jackson.
420
421         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
422
423         * html/canvas/WebGLRenderingContext.cpp:
424         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
425
426 2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>
427
428         [SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
429         https://bugs.webkit.org/show_bug.cgi?id=126966
430
431         Reviewed by Gustavo Noronha Silva.
432
433         We don't really need to modify the Vector just to ignore the C
434         locale.
435
436         * platform/network/soup/SoupNetworkSession.cpp:
437         (WebCore::buildAcceptLanguages): Rework it to not modify the
438         passed vector to ignore the C locale when it's present.
439         (WebCore::SoupNetworkSession::setAcceptLanguages): Use const Vector<String>&.
440         * platform/network/soup/SoupNetworkSession.h:
441
442 2014-01-14  Piotr Grad  <p.grad@samsung.com>
443
444         HTMLMediaElement::potentiallyPlaying can be more simple.
445         https://bugs.webkit.org/show_bug.cgi?id=111
446
447         Reviewed by Eric Carlson.
448
449         Tests: No new tests, just refactorings.
450
451         Expression is simplified because the first 'if' statement depends on the same condition
452         as pausedToBuffer value.
453
454         * html/HTMLMediaElement.cpp:
455         (WebCore::HTMLMediaElement::parseAttribute):
456
457 2014-01-14  Andreas Kling  <akling@apple.com>
458
459         Remove deprecated DeferrableOneShotTimer constructor.
460         <https://webkit.org/b/126984>
461
462         Remove the deprecated constructor for callback functions that take
463         the timer by pointer instead of by reference.
464
465         This shrinks DeferrableOneShotTimer by 8 bytes.
466
467         Reviewed by Anders Carlsson.
468
469         * platform/Timer.h:
470         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
471
472 2014-01-14  Dirk Schulze  <krit@webkit.org>
473
474         Make CachedSVGDocument independent of CSS Filters
475         https://bugs.webkit.org/show_bug.cgi?id=126133
476
477         Reviewed by Antti Koivisto.
478
479         Clean-up the pendingSVGDocuments code in StyleResolver.
480         CachedSVGDocumentReference is responsible for requesting the
481         SVG document instead of WebKitCSSSVGDocumentValue.
482         CachedSVGDocumentReference can be used by other SVG resource like
483         clip-path and mask now so that these may load external resources
484         as well.
485         WebKitCSSSVGDocumentValue does not provide any further value
486         and will be removed in the next patch.
487
488         Refactoring, no new test cases.
489
490         * css/StyleResolver.cpp:
491         (WebCore::StyleResolver::loadPendingSVGDocuments):
492         (WebCore::StyleResolver::createFilterOperations):
493         * css/StyleResolver.h: Replace Map with a Set.
494         (WebCore::StyleResolver::State::pendingSVGDocuments): Use the Set from now on.
495         * loader/cache/CachedSVGDocumentReference.cpp:
496         (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
497         (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
498         (WebCore::CachedSVGDocumentReference::load):
499         * loader/cache/CachedSVGDocumentReference.h: Is responsible for 
500             requesting the SVG document.
501         (WebCore::CachedSVGDocumentReference::create):
502         (WebCore::CachedSVGDocumentReference::loadRequested):
503         * platform/graphics/filters/FilterOperation.cpp:
504         (WebCore::ReferenceFilterOperation::createCachedSVGDocumentReference):
505         * platform/graphics/filters/FilterOperation.h:
506
507 2014-01-14  Mario Sanchez Prada  <mario.prada@samsung.com>
508
509         [ATK] AXChildrenChanged notification handling is a performance black hole
510         https://bugs.webkit.org/show_bug.cgi?id=126970
511
512         Reviewed by Gustavo Noronha Silva.
513
514         Remove code that is causing a huge performance problem when
515         loading big pages, just to be able to emit the children-changed:add
516         signal at the exact time a child is added.
517
518         This removal does not imply that the signal won't be ever emitted,
519         just that it will be emitted a bit later (when the new child is
520         asynchronously added to the tree), which should be good enough
521         anyway for Accessible Technologies, without impacting perfformance
522         in such a negative way.
523
524         * accessibility/atk/AXObjectCacheAtk.cpp:
525         (WebCore::AXObjectCache::postPlatformNotification): Removed
526         extremely expensive referring loop when AXChildrenChanged is received.
527
528 2014-01-14  Mihai Tica  <mitica@adobe.com>
529
530         [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
531         when having -webkit-background-blending applied. Turns out the problem was
532         the blending parameter not being passed to WebCore::CrossfadeGeneratedImage::draw
533
534         https://bugs.webkit.org/show_bug.cgi?id=126887
535
536         Reviewed by Dirk Schulze.
537
538         Test: css3/compositing/background-blend-mode-crossfade-image.html
539
540         * platform/graphics/CrossfadeGeneratedImage.cpp:
541         (WebCore::CrossfadeGeneratedImage::draw): set blendMode on context.
542
543 2014-01-14  Mihai Tica  <mitica@adobe.com>
544
545         Background-blend-mode doesn't work for an element with an
546         SVG image as background and border-style or padding set.
547         The problem consisted in the drawing path using the default
548         blending parameter at all times.
549         https://bugs.webkit.org/show_bug.cgi?id=118894
550
551         Reviewed by Dirk Schulze.
552
553         Test: css3/compositing/background-blend-mode-data-uri-svg-image.html
554
555         * svg/graphics/SVGImage.cpp:
556         (WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
557         * svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
558         * svg/graphics/SVGImageForContainer.cpp:
559         (WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.
560
561 2014-01-14  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
562
563         Remove accidentally added PLATFORM(QT) from Source/WebCore/editing/EditorCommand.cpp after r161638
564         https://bugs.webkit.org/show_bug.cgi?id=126980
565
566         Reviewed by Andreas Kling.
567
568         * editing/EditorCommand.cpp:
569         (WebCore::createCommandMap):
570
571 2014-01-14  Mihnea Ovidenie  <mihnea@adobe.com>
572
573         [CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index
574         https://bugs.webkit.org/show_bug.cgi?id=126978
575
576         Reviewed by Antti Koivisto.
577
578         Return the list of fixed positioned layers sorted by z-index from
579         FlowThreadController::collectFixedPositionedLayers instead of manually sort it
580         every time we need it (RenderLayer::paintFixedLayersInNamedFlows, RenderLayer::hitTestFixedLayersInNamedFlows).
581         Refactoring covered by existing regions tests.
582
583         * rendering/FlowThreadController.cpp:
584         (WebCore::compareZIndex):
585         (WebCore::FlowThreadController::collectFixedPositionedLayers):
586         * rendering/RenderLayer.cpp:
587         (WebCore::RenderLayer::paintFixedLayersInNamedFlows):
588         (WebCore::RenderLayer::hitTestFixedLayersInNamedFlows):
589
590 2014-01-14  Andreas Kling  <akling@apple.com>
591
592         Pack ResourceLoaderOptions harder.
593         <https://webkit.org/b/126972>
594
595         Make all ResourceLoaderOptions members bitfields to reduce padding,
596         shrinking it from 28 to 4 bytes.
597
598         Reviewed by Antti Koivisto.
599
600         * loader/ResourceLoaderOptions.h:
601
602 2014-01-14  Andreas Kling  <akling@apple.com>
603
604         Pack ResourceError harder.
605         <https://webkit.org/b/126969>
606
607         Re-arrange the members of ResourceError to reduce padding,
608         shrinking it by 8 bytes.
609
610         Reviewed by Antti Koivisto.
611
612         * platform/network/ResourceErrorBase.h:
613         (WebCore::ResourceErrorBase::ResourceErrorBase):
614
615 2014-01-14  Andreas Kling  <akling@apple.com>
616
617         Pack RenderLayer harder.
618         <https://webkit.org/b/126967>
619
620         Re-arrange the members of ScrollableArea a bit so that RenderLayer
621         can combine its bitfields with the ones in ScrollableArea.
622         This makes RenderLayer fit into a snugger size class, saving 32 bytes
623         per layer.
624
625         296 kB progression on Membuster3.
626
627         Reviewed by Antti Koivisto.
628
629         * platform/ScrollableArea.cpp:
630         * platform/ScrollableArea.h:
631
632             Put bitfield members at the end of ScrollableArea so inheriting
633             classes can synergize with the padding.
634
635         * rendering/RenderLayer.h:
636
637             Make m_blendMode a bitfield to avoid bloating the class.
638
639 2014-01-13  Tim Horton  <timothy_horton@apple.com>
640
641         iOS WebCore build fixes
642
643         Add WebKit and WebKit2 as allowable clients of WebCore.
644
645         * Configurations/WebCore.xcconfig:
646
647 2014-01-13  Tim Horton  <timothy_horton@apple.com>
648
649         iOS WebKit2 build fixes, part 1
650
651         * WebCore.xcodeproj/project.pbxproj:
652         Move some headers to 'private', from 'project'.
653
654 2014-01-13  Commit Queue  <commit-queue@webkit.org>
655
656         Unreviewed, rolling out r161907.
657         http://trac.webkit.org/changeset/161907
658         https://bugs.webkit.org/show_bug.cgi?id=126963
659
660         fast/canvas/webgl/webgl-compressed-texture-size-limit.html
661         fails on many bots (Requested by ap on #webkit).
662
663         * html/canvas/WebGLRenderingContext.cpp:
664         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
665
666 2014-01-13  David Kilzer  <ddkilzer@apple.com>
667
668         Fix typedef of DragDataRef from id back to id<NSDraggingInfo>
669         <http://webkit.org/b/126958>
670         <rdar://problem/14814649>
671
672         Reviewed by Mark Rowe.
673
674         * WebCore.exp.in: Export different symbols based on
675         __has_feature(objc_protocol_qualifier_mangling) since clang
676         mangles the type differently with that change.
677
678         * platform/DragData.h:
679         * platform/mac/DragDataMac.mm:
680         (WebCore::DragData::DragData):
681         - Revert r154493 by switching back to id<NSDraggingInfo>.
682
683 2014-01-13  Commit Queue  <commit-queue@webkit.org>
684
685         Unreviewed, rolling out r161939.
686         http://trac.webkit.org/changeset/161939
687         https://bugs.webkit.org/show_bug.cgi?id=126956
688
689         didn't work with mac, of course (Requested by thorton on
690         #webkit).
691
692         * WebCore.xcodeproj/project.pbxproj:
693
694 2014-01-13  Tim Horton  <timothy_horton@apple.com>
695
696         iOS WebKit2 build fixes
697
698         * WebCore.xcodeproj/project.pbxproj:
699         Make some headers private instead of project for WK2's use.
700
701 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
702
703         Make NetworkStateNotifier.h a private header, needed by iOS.
704
705         * WebCore.xcodeproj/project.pbxproj:
706
707 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
708
709         More work towards getting iOS WK1 building.
710
711         Some more Private headers for iOS.
712
713         * WebCore.xcodeproj/project.pbxproj:
714
715 2014-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
716
717         Highlighting password field then making a Sticky Note via Safari Services exposes password
718         https://bugs.webkit.org/show_bug.cgi?id=126946
719
720         Reviewed by Enrica Casucci.
721
722         Using the Services menu has a slightly different codepath than Editor::copy() does. This
723         patch duplicates the canCopy() check that Editor::copy() does.
724
725         Testing is not possible because the Services menu is not accessible to our tests.
726
727         * editing/mac/EditorMac.mm:
728         (WebCore::Editor::stringSelectionForPasteboard):
729         (WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
730         (WebCore::Editor::dataSelectionForPasteboard):
731
732 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
733
734         [WebGL] Crash due to forceLostContext
735         https://bugs.webkit.org/show_bug.cgi?id=126947
736
737         Reviewed by Dean Jackson.
738
739         Covered by webgl/conformance/textures/origin-clean-conformance.html.
740
741         * html/canvas/WebGLRenderingContext.cpp:
742         (WebCore::WebGLRenderingContext::isContextLost): Make const.
743         (WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
744         a lost context.
745         * html/canvas/WebGLRenderingContext.h: isContextLost should be const.
746
747 2014-01-13  Martin Robinson  <mrobinson@igalia.com>
748
749         [GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
750         https://bugs.webkit.org/show_bug.cgi?id=126911
751
752         Reviewed by Daniel Bates.
753
754         * PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.
755
756 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
757
758         Use the Selector Code Generator for resolving style
759         https://bugs.webkit.org/show_bug.cgi?id=126199
760
761         Reviewed by Ryosuke Niwa.
762
763         * css/ElementRuleCollector.cpp:
764         (WebCore::ElementRuleCollector::ruleMatches):
765         * css/RuleSet.h:
766
767 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
768
769         Update the SelectorQuery code using compiled selector after r161196
770         https://bugs.webkit.org/show_bug.cgi?id=126860
771
772         Reviewed by Andreas Kling.
773
774         Update tree traversal code to the current traversal functions.
775
776         * dom/SelectorQuery.cpp:
777         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
778         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
779
780 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
781
782         Various iOS WebKit1 build fixes.
783
784         * WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
785         headers to be Private.
786
787 2014-01-13  Andreas Kling  <akling@apple.com>
788
789         Map RootInlineBox to containing region via bit+hashmap.
790         <https://webkit.org/b/126917>
791
792         The vas majority of RootInlineBox objects don't have a containing
793         RenderRegion, so let's store that in a bit+hashmap configuration
794         instead of having a dedicated pointer member for it.
795
796         148 kB progression on Membuster3.
797
798         Reviewed by Antti Koivisto.
799
800         * rendering/InlineFlowBox.h:
801         (WebCore::InlineFlowBox::InlineFlowBox):
802         * rendering/RootInlineBox.cpp:
803         (WebCore::RootInlineBox::RootInlineBox):
804
805             Added m_hasContainingRegion bit.
806
807         (WebCore::containingRegionMap):
808
809             Global map between RootInlineBox and RenderRegion.
810
811         (WebCore::RootInlineBox::~RootInlineBox):
812
813             Remove self from aforementioned global map if needed.
814
815         (WebCore::RootInlineBox::paint):
816
817             Tweak a condition to avoid double hash lookup.
818
819         * rendering/RootInlineBox.h:
820         (WebCore::RootInlineBox::containingRegion):
821         (WebCore::RootInlineBox::clearContainingRegion):
822         (WebCore::RootInlineBox::setContainingRegion):
823
824             Store the containing region in a bit+hashmap.
825
826 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
827
828         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
829         https://bugs.webkit.org/show_bug.cgi?id=126925
830
831         Reviewed by Dean Jackson.
832
833         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
834
835         * html/canvas/WebGLRenderingContext.cpp:
836         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
837
838 2014-01-13  Daniel Bates  <dabates@apple.com>
839
840         Add uint8_t specialization for WebCore::writeLittleEndian()
841         https://bugs.webkit.org/show_bug.cgi?id=126924
842
843         Reviewed by Darin Adler.
844
845         Specialize WebCore::writeLittleEndian() for datatype uint8_t so as to avoid
846         a compiler warning when right shifting a uint8_t by 8 because the result of
847         such a computation is undefined.
848
849         * bindings/js/SerializedScriptValue.cpp:
850         (WebCore::writeLittleEndian<uint8_t>): Added.
851
852 2014-01-13  Daniel Bates  <dabates@apple.com>
853
854         r161638 broke the Windows build
855         https://bugs.webkit.org/show_bug.cgi?id=126916
856
857         * DerivedSources.make:
858
859 2014-01-13  Eric Carlson  <eric.carlson@apple.com>
860
861         Allow MediaSessionManager to restrict media playback
862         https://bugs.webkit.org/show_bug.cgi?id=126780
863
864         Reviewed by Jer Noble.
865
866         Test: media/video-concurrent-playback.html
867
868         * WebCore.exp.in: Export functions needed by Internals.
869
870         Add HTMLMediaSession.
871         * WebCore.xcodeproj/project.pbxproj:
872         * CMakeLists.txt:
873         * GNUmakefile.list.am:
874         * WebCore.vcxproj/WebCore.vcxproj:
875         * WebCore.vcxproj/WebCore.vcxproj.filters:
876         * WebCore.xcodeproj/project.pbxproj:
877
878         Add a media session object to manage HTMLMediaElement restrictions.
879         * html/HTMLMediaSession.cpp: Added.
880         * html/HTMLMediaSession.h: Added.
881
882         Move media restriction management to a MediaSession.
883         * html/HTMLMediaElement.cpp:
884         (WebCore::HTMLMediaElement::HTMLMediaElement): Use the media session to manage restrictions.
885         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
886         (WebCore::HTMLMediaElement::insertedInto): Ditto.
887         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
888         (WebCore::HTMLMediaElement::loadInternal): Ditto.
889         (WebCore::HTMLMediaElement::loadResource): Ditto.
890         (WebCore::HTMLMediaElement::setReadyState): Ditto.
891         (WebCore::HTMLMediaElement::autoplay): Ditto.
892         (WebCore::HTMLMediaElement::play): Ditto.
893         (WebCore::HTMLMediaElement::pause): Ditto
894         (WebCore::HTMLMediaElement::pauseInternal): Ditto
895         (WebCore::HTMLMediaElement::suspend): Ditto
896         (WebCore::HTMLMediaElement::resume): Ditto.
897         (WebCore::HTMLMediaElement::updatePlayState): Tell media session playback is about to start.
898         (WebCore::HTMLMediaElement::deliverNotification): Ditto.
899         (WebCore::HTMLMediaElement::webkitShowPlaybackTargetPicker): Ditto.
900         (WebCore::HTMLMediaElement::mediaPlayerIsFullscreenPermitted): Ditto.
901         (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture): Ditto.
902         (WebCore::HTMLMediaElement::pausePlayback): New, allows the media session to pause playback.
903         * html/HTMLMediaElement.h:
904
905         * html/HTMLVideoElement.cpp:
906         (WebCore::HTMLVideoElement::webkitEnterFullscreen): Use the media session to manage restrictions.
907
908         * platform/audio/MediaSession.cpp:
909         (WebCore::MediaSession::beginInterruption): Add logging.
910         (WebCore::MediaSession::endInterruption): Ditto.
911         (WebCore::MediaSession::pauseSession): New, allows the session manager to pause playback.
912         * platform/audio/MediaSession.h:
913
914         Add per-media type restrictions.
915         * platform/audio/MediaSessionManager.cpp:
916         (WebCore::MediaSessionManager::MediaSessionManager): Initialize restrictions.
917         (WebCore::MediaSessionManager::addRestriction): New.
918         (WebCore::MediaSessionManager::removeRestriction): New.
919         (WebCore::MediaSessionManager::restrictions): New.
920         (WebCore::MediaSessionManager::sessionWillBeginPlayback): New. If only one session if the same
921             type is allowed to play, pause all others.
922         * platform/audio/MediaSessionManager.h:
923
924         * platform/audio/ios/MediaSessionManagerIOS.h: Added.
925         * platform/audio/ios/MediaSessionManagerIOS.mm: Added.
926         (WebCore::MediaSessionManager::sharedManager):
927         (WebCore::m_objcObserver):
928         (-[WebAVAudioSessionHelper initWithCallback:]):
929         (-[WebAVAudioSessionHelper dealloc]):
930         (-[WebAVAudioSessionHelper interruption:]):
931
932         * platform/audio/mac/AudioDestinationMac.h: Add pausePlayback.
933
934         Allow tests to set media session restrictions.
935         * testing/Internals.cpp:
936         * testing/Internals.h:
937         * testing/Internals.idl:
938
939 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
940
941         Fix the build more.
942
943         * xml/XMLHttpRequestProgressEventThrottle.cpp:
944         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
945
946 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
947
948         Fix the build.
949
950         * xml/XMLHttpRequestProgressEventThrottle.cpp:
951         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
952
953 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
954
955         Fix copy of SystemMemory.h in iOS WebKit build.
956         
957         Move SystemMemory.h from platform/SystemMemory.h to platform/ios/SystemMemory.h.
958         Add it to the project file.
959         Make it a Private header.
960         Add PLATFORM(IOS) #idfefs around its contents.
961
962         * WebCore.xcodeproj/project.pbxproj:
963         * platform/ios/SystemMemory.h: Renamed from Source/WebCore/platform/SystemMemory.h.
964
965 2014-01-13  Youenn Fablet  <youennf@gmail.com>
966
967         Dispatch a progress event before dispatching abort, error or timeout event
968         https://bugs.webkit.org/show_bug.cgi?id=126575
969
970         Reviewed by Alexey Proskuryakov.
971
972         Added sending of progress event after readystatechange event (switching to DONE state) in case of abort, error or timeout. 
973         Fixed assertions in XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload.
974
975         * xml/XMLHttpRequest.cpp:
976         (WebCore::XMLHttpRequest::dispatchErrorEvents): added sending of progress event before the specific error event
977         * xml/XMLHttpRequestProgressEventThrottle.cpp:
978         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): fixed assertion
979         * xml/XMLHttpRequestUpload.cpp:
980         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent): fixed assertion
981
982 2014-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
983
984         [SOUP] Add SoupNetworkSession class to wrap a SoupSession
985         https://bugs.webkit.org/show_bug.cgi?id=126813
986
987         Reviewed by Gustavo Noronha Silva.
988
989         Add SoupNetworkSession class that wraps a SoupSession and move all
990         the code related to the SoupSession from ResourceHandle to
991         SoupNetworkSession, including the static methods to get the
992         default session and create testing and private sessions.
993
994         * GNUmakefile.list.am: Add new files to compilation.
995         * PlatformEfl.cmake: Ditto.
996         * PlatformGTK.cmake: Ditto.
997         * platform/network/NetworkStorageSession.h: Use SoupNetworkSession
998         instead of SoupSession.
999         * platform/network/ResourceHandle.h:
1000         * platform/network/soup/CookieJarSoup.cpp:
1001         (WebCore::cookieJarForSession): Use SoupNetworkSession to get the
1002         SoupSession.
1003         * platform/network/soup/DNSSoup.cpp:
1004         (WebCore::DNSResolveQueue::platformResolve): Ditto.
1005         * platform/network/soup/NetworkStorageSessionSoup.cpp:
1006         (WebCore::NetworkStorageSession::NetworkStorageSession): Use
1007         SoupNetworkSession instead of SoupSession.
1008         (WebCore::NetworkStorageSession::~NetworkStorageSession):
1009         (WebCore::NetworkStorageSession::defaultStorageSession): Create a
1010         NetworkStorageSession with a NULL SoupNetworkSession which means
1011         that the default SoupNetworkSession will be used.
1012         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
1013         Call SoupNetworkSession::createPrivateBrowsingSession() to create
1014         the private session.
1015         (WebCore::NetworkStorageSession::switchToNewTestingSession): Call
1016         SoupNetworkSession::createTestingSession() to create the testing
1017         session.
1018         (WebCore::NetworkStorageSession::soupNetworkSession): Return the
1019         SoupNetworkSession or the default one.
1020         (WebCore::NetworkStorageSession::setSoupNetworkSession): Set a new
1021         SoupNetworkSession.
1022         * platform/network/soup/ResourceHandleSoup.cpp:
1023         (WebCore::sessionFromContext): Use SoupNetworkSession to get the
1024         SoupSession.
1025         (WebCore::ResourceHandleInternal::soupSession): Simply call
1026         sessionFromContext(), since ensureSessionIsInitialized() is no
1027         longer needed, because the SoupSession are now initialized in the
1028         SoupNetworkSession constructor.
1029         (WebCore::ResourceHandle::didStartRequest): Function to notify the
1030         ResourceHandle that current request has just started for web timing.
1031         * platform/network/soup/SoupNetworkSession.cpp: Added.
1032         (WebCore::soupLogPrinter): Logger callback.
1033         (WebCore::SoupNetworkSession::defaultSession): Return a reference
1034         to the default SoupNetworkSession.
1035         (WebCore::SoupNetworkSession::createPrivateBrowsingSession):
1036         Create a new private session.
1037         (WebCore::SoupNetworkSession::createTestingSession): Create a new
1038         testing session.
1039         (WebCore::SoupNetworkSession::createForSoupSession): Create a new
1040         SoupNetworkSession for the given SoupSession.
1041         (WebCore::authenticateCallback): Callback emitted by the
1042         SoupSession when the request needs authentication.
1043         (WebCore::requestStartedCallback): Callback emitted by the
1044         SoupSession when as request has just started.
1045         (WebCore::SoupNetworkSession::SoupNetworkSession):
1046         (WebCore::SoupNetworkSession::~SoupNetworkSession):
1047         (WebCore::SoupNetworkSession::setupLogger): Helper private
1048         function to setup the logger.
1049         (WebCore::SoupNetworkSession::setCookieJar): Set a new CookieJar
1050         in the session replacing the existing one.
1051         (WebCore::SoupNetworkSession::cookieJar): Return the current
1052         CookieJar of the session.
1053         (WebCore::SoupNetworkSession::setCache): Set a disk cache.
1054         (WebCore::SoupNetworkSession::cache): Return the current disk cache.
1055         (WebCore::SoupNetworkSession::setSSLPolicy): Set the SSL policy.
1056         (WebCore::SoupNetworkSession::sslPolicy): Get the current SSL policy.
1057         (WebCore::SoupNetworkSession::setHTTPProxy): Set the HTTP proxy.
1058         (WebCore::SoupNetworkSession::httpProxy): Get the current HTTP proxy.
1059         (WebCore::SoupNetworkSession::setupHTTPProxyFromEnvironment): Set
1060         the HTTP proxy using the environment variables.
1061         (WebCore::buildAcceptLanguages): Helper function build the accept
1062         language string in the format expected by soup (RFC 2616).
1063         (WebCore::SoupNetworkSession::setAcceptLanguages): Set the accept
1064         language for the given list of languages.
1065         * platform/network/soup/SoupNetworkSession.h: Added.
1066         (WebCore::SoupNetworkSession::soupSession): Return the SoupSession.
1067
1068 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
1069
1070         [WebGL] Error messages should use source code labels, not internal mangled symbols.
1071         https://bugs.webkit.org/show_bug.cgi?id=126832
1072
1073         Reviewed by Dean Jackson.
1074
1075         Revised fast/canvas/webgl/glsl-conformance.html.
1076
1077         * platform/graphics/ANGLEWebKitBridge.cpp:
1078         (WebCore::getSymbolInfo): Correct missing 'break'.
1079         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
1080         for SH_VARYINGS.
1081         * platform/graphics/GraphicsContext3D.h: Add new declarations.
1082         * platform/graphics/filters/CustomFilterValidatedProgram.cpp: Add case
1083         for SHADER_SYMBOL_TYPE_VARYING. This is a no-op to match existing
1084         behavior.
1085         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1086         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
1087         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
1088         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
1089         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
1090         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
1091
1092 2014-01-13  David Kilzer  <ddkilzer@apple.com>
1093
1094         [iOS] Include RenderElement.h to fix BaseChooserOnlyDateAndTimeInputType.cpp
1095
1096         Fixes the following build failure:
1097
1098             Undefined symbols for architecture x86_64:
1099               "__ZNK7WebCore13ContainerNode8rendererEv", referenced from:
1100                   __ZN7WebCore35BaseChooserOnlyDateAndTimeInputType22handleDOMActivateEventEPNS_5EventE in BaseChooserOnlyDateAndTimeInputType.o
1101
1102         * html/BaseChooserOnlyDateAndTimeInputType.cpp: Include
1103         RenderElement.h.
1104
1105 2014-01-13  Andy Estes  <aestes@apple.com>
1106
1107         [iOS] Build Fix: copy iOS-specific generated headers
1108
1109         * Configurations/WebCore.xcconfig: Excluded DOMTouch* and DOMGesture* headers on Mac.
1110         * WebCore.xcodeproj/project.pbxproj:
1111
1112 2014-01-13  Zalan Bujtas  <zalan@apple.com>
1113
1114         Enable SUBPIXEL_LAYOUT on Mac
1115         <https://webkit.org/b/126283>
1116
1117         Reviewed by Simon Fraser.
1118
1119         * Configurations/FeatureDefines.xcconfig:
1120
1121 2014-01-13  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
1122
1123         REGRESSION(r161715): Use of uninitialized value $ENV{"PLATFORM_NAME"}
1124         https://bugs.webkit.org/show_bug.cgi?id=126873
1125
1126         Reviewed by Csaba Osztrogonác.
1127
1128         * bindings/scripts/CodeGeneratorObjC.pm:
1129         * bindings/scripts/preprocessor.pm:
1130         (applyPreprocessor):
1131
1132 2014-01-13  Andreas Kling  <akling@apple.com>
1133
1134         CTTE: Autoscroll renderer is always a RenderBox.
1135         <https://webkit.org/b/126884>
1136
1137         Reviewed by Antti Koivisto.
1138
1139         * page/EventHandler.h:
1140         * page/EventHandler.cpp:
1141         (WebCore::EventHandler::autoscrollRenderer):
1142
1143             Make autoscrollRenderer() return a RenderBox*.
1144
1145         * rendering/RenderObject.cpp:
1146         (WebCore::RenderObject::willBeDestroyed):
1147         * rendering/RenderBox.cpp:
1148         (WebCore::RenderBox::willBeDestroyed):
1149
1150             Only check if the autoscroll renderer is being torn down
1151             in RenderBox::willBeDestroyed() since it's not relevant for
1152             other renderer types.
1153
1154 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
1155
1156         Text should be constructable.
1157         https://bugs.webkit.org/show_bug.cgi?id=115640
1158
1159         Reviewed by Csaba Osztrogonác.
1160
1161         http://dom.spec.whatwg.org/#interface-text
1162         Make Text constructable so that one can do "new Text('abc')"
1163         instead of "document.createTexte('abc')".
1164
1165         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
1166
1167         Test: fast/dom/Text/text-constructor.html
1168
1169         * dom/Text.cpp:
1170         (WebCore::Text::create):
1171         * dom/Text.h:
1172         * dom/Text.idl:
1173
1174 2014-01-13  Zan Dobersek  <zdobersek@igalia.com>
1175
1176         Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
1177         https://bugs.webkit.org/show_bug.cgi?id=126876
1178
1179         Reviewed by Andreas Kling.
1180
1181         AccessibilityObject::children() returns a reference to the Vector of that AccessibilityObject's children.
1182         The majority of callsites stores the return value in a temporary value instead of a reference, causing
1183         a copy each time. A reference to the return value should be used instead.
1184
1185         * accessibility/AXObjectCache.cpp:
1186         (WebCore::AXObjectCache::focusedImageMapUIElement):
1187         * accessibility/AccessibilityARIAGrid.cpp:
1188         (WebCore::AccessibilityARIAGrid::addRowDescendant):
1189         * accessibility/AccessibilityARIAGridCell.cpp:
1190         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
1191         (WebCore::AccessibilityARIAGridCell::columnIndexRange):
1192         * accessibility/AccessibilityARIAGridRow.cpp:
1193         (WebCore::AccessibilityARIAGridRow::headerObject):
1194         * accessibility/AccessibilityListBox.cpp:
1195         (WebCore::AccessibilityListBox::setSelectedChildren):
1196         * accessibility/AccessibilityListBox.h:
1197         * accessibility/AccessibilityNodeObject.cpp:
1198         (WebCore::AccessibilityNodeObject::insertChild):
1199         (WebCore::AccessibilityNodeObject::selectedRadioButton):
1200         (WebCore::AccessibilityNodeObject::selectedTabItem):
1201         * accessibility/AccessibilityObject.cpp:
1202         (WebCore::appendChildrenToArray):
1203         (WebCore::AccessibilityObject::ariaTreeRows):
1204         (WebCore::AccessibilityObject::ariaTreeItemContent):
1205         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
1206         * accessibility/AccessibilityRenderObject.cpp:
1207         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
1208         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
1209         (WebCore::AccessibilityRenderObject::addHiddenChildren):
1210         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
1211         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
1212         (WebCore::AccessibilityRenderObject::tabChildren):
1213         (WebCore::AccessibilityRenderObject::mathRadicandObject):
1214         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
1215         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
1216         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
1217         (WebCore::AccessibilityRenderObject::mathUnderObject):
1218         (WebCore::AccessibilityRenderObject::mathOverObject):
1219         (WebCore::AccessibilityRenderObject::mathBaseObject):
1220         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
1221         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
1222         * accessibility/AccessibilityTable.cpp:
1223         (WebCore::AccessibilityTable::cellForColumnAndRow):
1224         * accessibility/AccessibilityTableColumn.cpp:
1225         (WebCore::AccessibilityTableColumn::headerObject):
1226         * accessibility/AccessibilityTableRow.cpp:
1227         (WebCore::AccessibilityTableRow::headerObject):
1228         * accessibility/atk/AXObjectCacheAtk.cpp:
1229         (WebCore::getListObject):
1230         (WebCore::notifyChildrenSelectionChange):
1231         * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
1232         (webkitAccessibleHypertextGetLink):
1233         (webkitAccessibleHypertextGetNLinks):
1234         * accessibility/atk/WebKitAccessibleInterfaceSelection.cpp:
1235         (listObjectForSelection):
1236         (optionFromList):
1237         (webkitAccessibleSelectionSelectAllSelection):
1238         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1239         (getNChildrenForTable):
1240         (getChildForTable):
1241         (webkitAccessibleRefChild):
1242         (getIndexInParentForCellInRow):
1243         (getInterfaceMaskFromObject):
1244         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1245         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
1246         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
1247         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
1248         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1249         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
1250
1251 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
1252
1253         Comment should be consructable.
1254         https://bugs.webkit.org/show_bug.cgi?id=115642
1255
1256         Reviewed by Andreas Kling.
1257
1258         http://dom.spec.whatwg.org/#comment
1259         This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
1260
1261         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
1262
1263         Test: fast/dom/Comment/comment-constructor.html
1264
1265         * dom/Comment.cpp:
1266         (WebCore::Comment::create):
1267         * dom/Comment.h:
1268         * dom/Comment.idl:
1269
1270 2014-01-13  Commit Queue  <commit-queue@webkit.org>
1271
1272         Unreviewed, rolling out r161808.
1273         http://trac.webkit.org/changeset/161808
1274         https://bugs.webkit.org/show_bug.cgi?id=126874
1275
1276         This patch make several files to be always regenerated on
1277         every make (Requested by KaL on #webkit).
1278
1279         * GNUmakefile.am:
1280         * bindings/gobject/GNUmakefile.am:
1281
1282 2014-01-12  Commit Queue  <commit-queue@webkit.org>
1283
1284         Unreviewed, rolling out r161843.
1285         http://trac.webkit.org/changeset/161843
1286         https://bugs.webkit.org/show_bug.cgi?id=126871
1287
1288         Caused CSS custom filter tests to assert (Requested by smfr on
1289         #webkit).
1290
1291         * platform/graphics/ANGLEWebKitBridge.cpp:
1292         (WebCore::getSymbolInfo):
1293         (WebCore::ANGLEWebKitBridge::compileShaderSource):
1294         * platform/graphics/GraphicsContext3D.h:
1295         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1296         (WebCore::GraphicsContext3D::compileShader):
1297         (WebCore::GraphicsContext3D::getProgramInfoLog):
1298         (WebCore::GraphicsContext3D::getShaderInfoLog):
1299
1300 2014-01-12  Commit Queue  <commit-queue@webkit.org>
1301
1302         Unreviewed, rolling out r161840.
1303         http://trac.webkit.org/changeset/161840
1304         https://bugs.webkit.org/show_bug.cgi?id=126870
1305
1306         Caused jsscore and layout test failures (Requested by smfr on
1307         #webkit).
1308
1309         * bindings/objc/WebScriptObject.mm:
1310         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
1311         * editing/CompositeEditCommand.cpp:
1312         (WebCore::containsOnlyWhitespace):
1313         * editing/TypingCommand.cpp:
1314         (WebCore::TypingCommand::insertText):
1315         * editing/VisibleUnits.cpp:
1316         (WebCore::startOfParagraph):
1317         (WebCore::endOfParagraph):
1318         * html/parser/HTMLParserIdioms.cpp:
1319         (WebCore::stripLeadingAndTrailingHTMLSpaces):
1320         (WebCore::parseHTMLNonNegativeInteger):
1321         * inspector/ContentSearchUtils.cpp:
1322         (WebCore::ContentSearchUtils::createSearchRegexSource):
1323         * inspector/InspectorStyleSheet.cpp:
1324         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
1325         * inspector/InspectorStyleTextEditor.cpp:
1326         (WebCore::InspectorStyleTextEditor::insertProperty):
1327         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
1328         * platform/Length.cpp:
1329         (WebCore::newCoordsArray):
1330         * platform/LinkHash.cpp:
1331         (WebCore::visitedLinkHash):
1332         * platform/graphics/Color.cpp:
1333         (WebCore::Color::parseHexColor):
1334         (WebCore::Color::Color):
1335         * platform/graphics/TextRun.h:
1336         (WebCore::TextRun::TextRun):
1337         * platform/text/TextEncodingRegistry.cpp:
1338         (WebCore::atomicCanonicalTextEncodingName):
1339         * rendering/RenderBlock.cpp:
1340         (WebCore::RenderBlock::constructTextRun):
1341         * rendering/RenderCombineText.cpp:
1342         (WebCore::RenderCombineText::width):
1343         * svg/SVGFontElement.cpp:
1344         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
1345         * xml/XPathFunctions.cpp:
1346         (WebCore::XPath::FunId::evaluate):
1347         * xml/XPathNodeSet.h:
1348
1349 2014-01-12  Jinwoo Song  <jinwoo7.song@samsung.com>
1350
1351         Fix build warnings by unused parameter
1352         https://bugs.webkit.org/show_bug.cgi?id=126867
1353
1354         Reviewed by Gyuyoung Kim.
1355
1356         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp: 
1357         (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
1358
1359 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
1360
1361         Unreviewed build fix for WinCairo.
1362
1363         * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
1364         to locate SelectorCompiler.h.
1365
1366 2014-01-12  Maciej Stachowiak  <mjs@apple.com>
1367
1368         Fix iOS build breakage from http://trac.webkit.org/changeset/161844
1369         https://bugs.webkit.org/show_bug.cgi?id=126866
1370
1371         Reviewed by Simon Fraser.
1372
1373         * platform/text/TextBreakIteratorICU.cpp:
1374         (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
1375         which does not exist.
1376
1377 2014-01-12  Darin Adler  <darin@apple.com>
1378
1379         Add PLATFORM(COCOA) and USE(FOUNDATION)
1380         https://bugs.webkit.org/show_bug.cgi?id=126859
1381
1382         Reviewed by Anders Carlsson.
1383
1384         * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS)
1385         to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be
1386         a change in behavior that might be incorrect. Removed bogus comments in
1387         the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA),
1388         which exactly duplicates code that already exists in Platform.h.
1389
1390 2014-01-12  Darin Adler  <darin@apple.com>
1391
1392         Add deprecatedCharacters as a synonym for characters and convert most call sites
1393         https://bugs.webkit.org/show_bug.cgi?id=126858
1394
1395         Reviewed by Anders Carlsson.
1396
1397         * Modules/indexeddb/IDBKeyPath.cpp:
1398         (WebCore::IDBKeyPathLexer::IDBKeyPathLexer):
1399         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
1400         (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
1401         (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions):
1402         * accessibility/AccessibilityObject.cpp:
1403         (WebCore::AccessibilityObject::hasMisspelling):
1404         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1405         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
1406         * bindings/js/SerializedScriptValue.cpp:
1407         (WebCore::CloneSerializer::serialize):
1408         (WebCore::CloneSerializer::write):
1409         * dom/CharacterData.cpp:
1410         (WebCore::CharacterData::parserAppendData):
1411         * dom/Document.cpp:
1412         (WebCore::Document::parseQualifiedName):
1413         * editing/Editor.cpp:
1414         (WebCore::Editor::misspelledWordAtCaretOrRange):
1415         (WebCore::Editor::misspelledSelectionString):
1416         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
1417         * editing/TextCheckingHelper.cpp:
1418         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar):
1419         (WebCore::TextCheckingHelper::findFirstBadGrammar):
1420         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange):
1421         * editing/TextCheckingHelper.h:
1422         (WebCore::TextCheckingParagraph::textDeprecatedCharacters):
1423         * editing/TextIterator.cpp:
1424         (WebCore::collapsedSpaceLength):
1425         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
1426         (WebCore::containsKanaLetters):
1427         (WebCore::SearchBuffer::SearchBuffer):
1428         * editing/TextIterator.h:
1429         (WebCore::TextIterator::characters):
1430         * editing/VisiblePosition.cpp:
1431         (WebCore::VisiblePosition::characterAfter):
1432         * editing/VisibleUnits.cpp:
1433         (WebCore::wordBreakIteratorForMinOffsetBoundary):
1434         (WebCore::wordBreakIteratorForMaxOffsetBoundary):
1435         (WebCore::visualWordPosition):
1436         (WebCore::previousBoundary):
1437         (WebCore::nextBoundary):
1438         * fileapi/WebKitBlobBuilder.cpp:
1439         (WebCore::BlobBuilder::append):
1440         * html/FormDataList.cpp:
1441         (WebCore::FormDataList::appendString):
1442         * html/canvas/CanvasRenderingContext2D.cpp:
1443         (WebCore::normalizeSpaces):
1444         * html/parser/HTMLParserIdioms.cpp:
1445         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
1446         * html/parser/HTMLTreeBuilder.cpp:
1447         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
1448         * loader/appcache/ManifestParser.cpp:
1449         (WebCore::parseManifest):
1450         * page/ContentSecurityPolicy.cpp:
1451         (WebCore::isSourceListNone):
1452         (WebCore::CSPSourceList::parse):
1453         (WebCore::NonceDirective::parse):
1454         (WebCore::MediaListDirective::parse):
1455         (WebCore::CSPDirectiveList::parse):
1456         (WebCore::CSPDirectiveList::parseReportURI):
1457         (WebCore::CSPDirectiveList::parseReflectedXSS):
1458         (WebCore::ContentSecurityPolicy::didReceiveHeader):
1459         * page/PageSerializer.cpp:
1460         (WebCore::PageSerializer::serializeFrame):
1461         (WebCore::PageSerializer::serializeCSSStyleSheet):
1462         * platform/Length.cpp:
1463         (WebCore::newCoordsArray):
1464         (WebCore::newLengthArray):
1465         * platform/LinkHash.cpp:
1466         (WebCore::visitedURL):
1467         (WebCore::visitedLinkHash):
1468         * platform/SharedBuffer.cpp:
1469         (WebCore::utf8Buffer):
1470         * platform/URL.cpp:
1471         (WebCore::URL::port):
1472         (WebCore::encodeHostnames):
1473         * platform/graphics/StringTruncator.cpp:
1474         (WebCore::centerTruncateToBuffer):
1475         (WebCore::rightTruncateToBuffer):
1476         (WebCore::rightClipToCharacterBuffer):
1477         (WebCore::rightClipToWordBuffer):
1478         (WebCore::leftTruncateToBuffer):
1479         (WebCore::truncateString):
1480         (WebCore::StringTruncator::width):
1481         * platform/graphics/TextRun.h:
1482         (WebCore::TextRun::TextRun):
1483         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1484         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
1485         * platform/network/FormDataBuilder.cpp:
1486         (WebCore::FormDataBuilder::addFilenameToMultiPartHeader):
1487         * platform/sql/SQLiteStatement.cpp:
1488         (WebCore::SQLiteStatement::bindBlob):
1489         (WebCore::SQLiteStatement::bindText):
1490         * platform/text/DecodeEscapeSequences.h:
1491         (WebCore::decodeEscapeSequences):
1492         * platform/text/TextBreakIterator.cpp:
1493         (WebCore::numGraphemeClusters):
1494         (WebCore::numCharactersInGraphemeClusters):
1495         * platform/text/TextBreakIteratorICU.cpp:
1496         (WebCore::setUpIteratorWithRules):
1497         * platform/text/TextCodecICU.cpp:
1498         (WebCore::TextCodecICU::encode):
1499         * rendering/RenderBlock.cpp:
1500         (WebCore::RenderBlock::constructTextRun):
1501         * rendering/RenderListMarker.cpp:
1502         (WebCore::RenderListMarker::paint):
1503         * rendering/RenderText.cpp:
1504         (WebCore::maxWordFragmentWidth):
1505         (WebCore::RenderText::computePreferredLogicalWidths):
1506         (WebCore::RenderText::computeCanUseSimpleFontCodePath):
1507         * rendering/RenderText.h:
1508         (WebCore::RenderText::characters):
1509         (WebCore::RenderText::deprecatedCharacters):
1510         * rendering/line/BreakingContextInlineHeaders.h:
1511         (WebCore::tryHyphenating):
1512         * rendering/svg/SVGInlineTextBox.cpp:
1513         (WebCore::SVGInlineTextBox::constructTextRun):
1514         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
1515         (WebCore::processRenderSVGInlineText):
1516         * rendering/svg/SVGTextLayoutEngine.cpp:
1517         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
1518         * rendering/svg/SVGTextMetrics.cpp:
1519         (WebCore::SVGTextMetrics::measureCharacterRange):
1520         (WebCore::SVGTextMetrics::SVGTextMetrics):
1521         * rendering/svg/SVGTextMetricsBuilder.cpp:
1522         (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
1523         * svg/SVGAngle.cpp:
1524         (WebCore::SVGAngle::setValueAsString):
1525         * svg/SVGAnimateMotionElement.cpp:
1526         (WebCore::parsePoint):
1527         * svg/SVGAnimationElement.cpp:
1528         (WebCore::parseKeySplines):
1529         * svg/SVGFitToViewBox.cpp:
1530         (WebCore::SVGFitToViewBox::parseViewBox):
1531         * svg/SVGFontData.cpp:
1532         (WebCore::SVGFontData::applySVGGlyphSelection):
1533         * svg/SVGGlyphMap.h:
1534         (WebCore::SVGGlyphMap::addGlyph):
1535         (WebCore::SVGGlyphMap::collectGlyphsForString):
1536         * svg/SVGGlyphRefElement.cpp:
1537         (WebCore::SVGGlyphRefElement::parseAttribute):
1538         * svg/SVGLength.cpp:
1539         (WebCore::SVGLength::setValueAsString):
1540         * svg/SVGLengthList.cpp:
1541         (WebCore::SVGLengthList::parse):
1542         * svg/SVGNumberList.cpp:
1543         (WebCore::SVGNumberList::parse):
1544         * svg/SVGParserUtilities.cpp:
1545         (WebCore::parseNumberFromString):
1546         (WebCore::parseNumberOptionalNumber):
1547         (WebCore::parseRect):
1548         (WebCore::pointsListFromSVGData):
1549         (WebCore::parseGlyphName):
1550         (WebCore::parseKerningUnicodeString):
1551         (WebCore::parseDelimitedString):
1552         * svg/SVGPreserveAspectRatio.cpp:
1553         (WebCore::SVGPreserveAspectRatio::parse):
1554         * svg/SVGStringList.cpp:
1555         (WebCore::SVGStringList::parse):
1556         * svg/SVGTransformList.cpp:
1557         (WebCore::SVGTransformList::parse):
1558         * svg/SVGTransformable.cpp:
1559         (WebCore::SVGTransformable::parseTransformType):
1560         * svg/SVGViewSpec.cpp:
1561         (WebCore::SVGViewSpec::parseViewSpec):
1562         * svg/SVGZoomAndPan.h:
1563         (WebCore::SVGZoomAndPan::parseAttribute):
1564         * xml/XMLHttpRequest.cpp:
1565         (WebCore::XMLHttpRequest::send):
1566         * xml/XSLStyleSheetLibxslt.cpp:
1567         (WebCore::XSLStyleSheet::parseString):
1568         * xml/XSLTUnicodeSort.cpp:
1569         (WebCore::xsltUnicodeSortFunction):
1570         * xml/parser/XMLDocumentParserLibxml2.cpp:
1571         (WebCore::XMLDocumentParser::doWrite):
1572         (WebCore::parseAttributes):
1573         Use deprecatedCharacters instead of characters.
1574
1575 2014-01-12  Darin Adler  <darin@apple.com>
1576
1577         Add type checking to isEqual methods
1578         https://bugs.webkit.org/show_bug.cgi?id=126862
1579
1580         Reviewed by Anders Carlsson.
1581
1582         * page/ios/WebEventRegion.mm:
1583         (-[WebEventRegion isEqual:]): Add type checking on the argument.
1584         Add a FIXME about the lack of a hash method override. Formatted to match
1585         the usual WebKit coding style.
1586
1587 2014-01-12  Anders Carlsson  <andersca@apple.com>
1588
1589         Try to fix the 32-bit build.
1590
1591         * platform/text/icu/UTextProviderLatin1.cpp:
1592         (WebCore::uTextLatin1Clone):
1593         (WebCore::uTextLatin1Extract):
1594         (WebCore::uTextLatin1MapNativeIndexToUTF16):
1595
1596 2014-01-12  Anders Carlsson  <andersca@apple.com>
1597
1598         Remove all uses of AtomicallyInitializedStatic from WebCore
1599         https://bugs.webkit.org/show_bug.cgi?id=126861
1600
1601         Reviewed by Darin Adler.
1602
1603         * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
1604         (WebCore::transactions):
1605         * fileapi/ThreadableBlobRegistry.cpp:
1606         (WebCore::originMap):
1607         * platform/text/TextEncodingRegistry.cpp:
1608         (WebCore::encodingRegistryMutex):
1609         (WebCore::newTextCodec):
1610         (WebCore::atomicCanonicalTextEncodingName):
1611         (WebCore::dumpTextEncodingNameMap):
1612         * workers/DefaultSharedWorkerRepository.cpp:
1613         (WebCore::DefaultSharedWorkerRepository::instance):
1614
1615 2014-01-12  Anders Carlsson  <andersca@apple.com>
1616
1617         Use an std::atomic<uint32_t> when computing IDBDatabase transaction IDs
1618         https://bugs.webkit.org/show_bug.cgi?id=126853
1619
1620         Reviewed by Sam Weinig.
1621
1622         * Modules/indexeddb/IDBDatabase.cpp:
1623         (WebCore::IDBDatabase::nextTransactionId):
1624
1625 2014-01-12  Sam Weinig  <sam@webkit.org>
1626
1627         TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
1628         https://bugs.webkit.org/show_bug.cgi?id=126856
1629
1630         Reviewed by Darin Adler.
1631
1632         - Do some initial cleanup before adding complete Latin-1 support.
1633
1634         * platform/text/TextBreakIterator.cpp:
1635         Remove non-ICU acquireLineBreakIterator() implementation.
1636
1637         * platform/text/TextBreakIterator.h:
1638         - Changes acquireLineBreakIterator() to take a StringView.
1639
1640         * platform/text/TextBreakIteratorICU.cpp:
1641         - Refactor iterator initialization and setting of text on the iterator.
1642         - Add support for using a Latin-1 provider (this is not currently used).
1643
1644         * platform/text/icu/UTextProviderLatin1.cpp:
1645         * platform/text/icu/UTextProviderLatin1.h:
1646         - Add back non-context aware Latin-1 provider (from r129662).
1647         - Rename context aware provider.
1648
1649         * platform/text/icu/UTextProviderUTF16.cpp:
1650         * platform/text/icu/UTextProviderUTF16.h:
1651         - Rename context aware provider.
1652
1653 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
1654
1655         [WebGL] Error messages should use source code labels, not internal mangled symbols.
1656         https://bugs.webkit.org/show_bug.cgi?id=126832
1657
1658         Reviewed by Dean Jackson.
1659
1660         Revised fast/canvas/webgl/glsl-conformance.html.
1661
1662         * platform/graphics/ANGLEWebKitBridge.cpp:
1663         (WebCore::getSymbolInfo): Correct missing 'break'.
1664         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
1665         for SH_VARYINGS.
1666         * platform/graphics/GraphicsContext3D.h: Add new declarations.
1667         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1668         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
1669         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
1670         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
1671         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
1672         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
1673
1674 2014-01-12  Dan Bernstein  <mitz@apple.com>
1675
1676         Try to fix the Windows build after r161839.
1677
1678         * WebCore.vcxproj/WebCoreCommon.props:
1679
1680 2014-01-12  Darin Adler  <darin@apple.com>
1681
1682         Reduce use of String::characters
1683         https://bugs.webkit.org/show_bug.cgi?id=126854
1684
1685         Reviewed by Sam Weinig.
1686
1687         * bindings/objc/WebScriptObject.mm:
1688         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
1689         Get rid of unneeded code to turn a WTF::String into an NSString, since that's
1690         built into the WTF::String class.
1691
1692         * editing/CompositeEditCommand.cpp:
1693         (WebCore::containsOnlyWhitespace): Use WTF::String's [] operator instead of
1694         an explicit call to the characters function. Small performance cost.
1695         * editing/TypingCommand.cpp:
1696         (WebCore::TypingCommand::insertText): Ditto.
1697
1698         * editing/VisibleUnits.cpp:
1699         (WebCore::startOfParagraph): Use reverseFind instead of writing our own loop.
1700         (WebCore::endOfParagraph): Use find instead of writing our own loop.
1701
1702         * html/parser/HTMLParserIdioms.cpp:
1703         (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 instead of
1704         characters since we have already checked is8Bit.
1705         (WebCore::parseHTMLNonNegativeInteger): Ditto. Replace the length check with
1706         a check of isNull since a zero length string could be 8 bit, but it's not
1707         safe to call is8Bit on a null WTF::String. (That should probably be fixed.)
1708
1709         * inspector/ContentSearchUtils.cpp:
1710         (WebCore::ContentSearchUtils::createSearchRegexSource): Use StringBuilder
1711         instead of String in code that builds up a string one character at a time.
1712         The old way was ridiculously slow because it allocated a new string for every
1713         character; the new way still isn't all that efficient, but it's better. Also
1714         changed to use strchr instead of WTF::String::find for special characters.
1715
1716         * inspector/InspectorStyleSheet.cpp:
1717         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Use WTF::String's
1718         [] operator instead of an explicit call to the characters function.
1719         * inspector/InspectorStyleTextEditor.cpp:
1720         (WebCore::InspectorStyleTextEditor::insertProperty): Ditto.
1721         (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto.
1722         * platform/Length.cpp:
1723         (WebCore::newCoordsArray): Ditto.
1724
1725         * platform/LinkHash.cpp:
1726         (WebCore::visitedLinkHash): Use characters16 instead of characters since
1727         we have already checked is8Bit. Replace the length check with a check of
1728         isNull (as above in parseHTMLNonNegativeInteger).
1729
1730         * platform/graphics/Color.cpp:
1731         (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit.
1732         (WebCore::Color::Color): Ditto.
1733
1734         * platform/graphics/TextRun.h:
1735         (WebCore::TextRun::TextRun): Use characters16 instead of characters since
1736         we have already checked is8Bit. Replace the length check with a check of
1737         isNull (as above in parseHTMLNonNegativeInteger).
1738
1739         * platform/text/TextEncodingRegistry.cpp:
1740         (WebCore::atomicCanonicalTextEncodingName): Use characters16 instead of
1741         characters since we already checked is8Bit. Also use isEmpty instead of !length.
1742
1743         * rendering/RenderBlock.cpp:
1744         (WebCore::RenderBlock::constructTextRun): Use characters16 instead of characters
1745         since we have already checked is8Bit. Replace the length check with a check of
1746         isNull (as above in parseHTMLNonNegativeInteger).
1747
1748         * rendering/RenderCombineText.cpp:
1749         (WebCore::RenderCombineText::width): Check for zero length instead of checking
1750         for null characters.
1751
1752         * svg/SVGFontElement.cpp:
1753         (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Rewrite ligatures
1754         for loop and give local variables a better name. Construct the substring with
1755         the substring function. Still a really inefficient approach -- allocating a new
1756         string for every character is absurdly expensive.
1757
1758         * xml/XPathFunctions.cpp:
1759         (WebCore::XPath::FunId::evaluate): Use String instead of StringBuilder. Still
1760         not all that efficient, but better than before. Use substring to construct the
1761         substring.
1762
1763         * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for
1764         loop with this class.
1765
1766 2014-01-12  Benjamin Poulain  <benjamin@webkit.org>
1767
1768         Use the Selector Code Generator for matching in SelectorQuery
1769         https://bugs.webkit.org/show_bug.cgi?id=126185
1770
1771         Reviewed by Ryosuke Niwa.
1772
1773         Compile selectors on demand and use the generated binary to perform
1774         element matching in SelectorQuery.
1775
1776         Tests: fast/selectors/querySelector-long-adjacent-backtracking.html
1777                fast/selectors/querySelector-long-child-backtracking.html
1778                fast/selectors/querySelector-mixed-child-adjacent-backtracking.html
1779                fast/selectors/querySelector-multiple-simple-child-backtracking.html
1780                fast/selectors/querySelector-simple-adjacent-backtracking.html
1781                fast/selectors/querySelector-simple-child-backtracking.html
1782
1783         * dom/SelectorQuery.cpp:
1784         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
1785         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
1786         (WebCore::SelectorDataList::execute):
1787         * dom/SelectorQuery.h:
1788
1789 2014-01-12  Anders Carlsson  <andersca@apple.com>
1790
1791         Simplify creation of XMLHttpRequestStaticData
1792         https://bugs.webkit.org/show_bug.cgi?id=126852
1793
1794         Reviewed by Sam Weinig.
1795
1796         Add a staticData() getter that does the initialization and get rid of the explicit
1797         calls to initializeXMLHttpRequestStaticData().
1798
1799         * xml/XMLHttpRequest.cpp:
1800         (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
1801         (WebCore::staticData):
1802         (WebCore::XMLHttpRequest::XMLHttpRequest):
1803         (WebCore::XMLHttpRequest::isAllowedHTTPHeader):
1804
1805 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1806
1807         Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.
1808
1809         * platform/ios/WebCoreSystemInterfaceIOS.mm:
1810
1811 2014-01-12  Anders Carlsson  <andersca@apple.com>
1812
1813         Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
1814         https://bugs.webkit.org/show_bug.cgi?id=126851
1815
1816         Reviewed by Sam Weinig.
1817
1818         * Modules/webdatabase/DatabaseBackendBase.cpp:
1819         (WebCore::guidMutex):
1820         (WebCore::guidToVersionMap):
1821         (WebCore::updateGuidVersionMap):
1822         (WebCore::guidToDatabaseMap):
1823         (WebCore::guidForOriginAndName):
1824         (WebCore::DatabaseBackendBase::DatabaseBackendBase):
1825         (WebCore::DatabaseBackendBase::closeDatabase):
1826         (WebCore::DatabaseBackendBase::performOpenAndVerify):
1827         (WebCore::DatabaseBackendBase::getCachedVersion):
1828         (WebCore::DatabaseBackendBase::setCachedVersion):
1829
1830 2014-01-12  Dan Bernstein  <mitz@apple.com>
1831
1832         Try to fix the Windows build after r161830.
1833
1834         * platform/network/NetworkStateNotifier.h:
1835
1836 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1837
1838         Don't build JSTouch* and JSGesture* files on Mac.
1839
1840         * Configurations/WebCore.xcconfig:
1841
1842 2014-01-12  Anders Carlsson  <andersca@apple.com>
1843
1844         Clean up NetworkStateNotifier class
1845         https://bugs.webkit.org/show_bug.cgi?id=126850
1846
1847         Reviewed by Andreas Kling.
1848
1849         Use std::call_once instead of AtomicallyInitializedStatic and a std::function
1850         instead of a custom function pointer typedef.
1851
1852         * platform/network/NetworkStateNotifier.cpp:
1853         (WebCore::networkStateNotifier):
1854         (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
1855         (WebCore::NetworkStateNotifier::notifyNetworkStateChange):
1856         * platform/network/NetworkStateNotifier.h:
1857
1858 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1859
1860         Add implementations of Frame::viewportArguments() and
1861         Frame::setViewportArguments().
1862
1863         * page/ios/FrameIOS.mm:
1864         (WebCore::Frame::viewportArguments):
1865         (WebCore::Frame::setViewportArguments):
1866
1867 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1868
1869         Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.
1870
1871         * WebCore.xcodeproj/project.pbxproj:
1872
1873 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1874
1875         Stub out some DragImage functions for iOS.
1876         
1877         * WebCore.xcodeproj/project.pbxproj:
1878         * platform/ios/DragImageIOS.mm: Added.
1879         (WebCore::dragImageSize):
1880         (WebCore::scaleDragImage):
1881         (WebCore::createDragImageFromImage):
1882
1883 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1884
1885         We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
1886         not defined, because these are actually generic snapshotting
1887         functions.
1888
1889         * platform/DragImage.cpp:
1890
1891 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1892
1893         Fix linker errors: add DateTimeFormat.cpp to the project,
1894         and make DateInputType::DateInputType not inline.
1895
1896         * WebCore.xcodeproj/project.pbxproj:
1897         * html/DateInputType.cpp:
1898         (WebCore::DateInputType::DateInputType):
1899         * platform/DragImage.cpp:
1900
1901 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1902
1903         Fix a bunch of linker errors related to exported functions.
1904         I removed some iOS symbols from the .exp.in file; we may have
1905         to add some back.
1906
1907         * WebCore.exp.in:
1908
1909 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1910
1911         Add generated JSTouch* and JSGestureEvent.* files to the project.
1912
1913         * WebCore.xcodeproj/project.pbxproj:
1914
1915 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1916
1917         Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
1918         <http://webkit.org/b/126848>
1919
1920         Reviewed by Simon Fraser.
1921
1922         * platform/network/cf/AuthenticationCF.cpp:
1923         (WebCore::AuthenticationChallenge::setAuthenticationClient):
1924         Move implementation to here...
1925         * platform/network/cf/AuthenticationChallenge.h: ...from here.
1926         Remove duplicate header definitions inside USE(CFNETWORK).
1927
1928 2014-01-12  Sam Weinig  <sam@webkit.org>
1929
1930         Fix windows.
1931
1932         * WebCore.vcxproj/WebCore.vcxproj:
1933
1934 2014-01-12  Anders Carlsson  <andersca@apple.com>
1935
1936         Replace more uses of AtomicallyInitializedStatic with std::call_once
1937         https://bugs.webkit.org/show_bug.cgi?id=126847
1938
1939         Reviewed by Sam Weinig.
1940
1941         * crypto/CryptoAlgorithmRegistry.cpp:
1942         (WebCore::CryptoAlgorithmRegistry::shared):
1943         (WebCore::registryMutex):
1944         (WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
1945         (WebCore::CryptoAlgorithmRegistry::nameForIdentifier):
1946         (WebCore::CryptoAlgorithmRegistry::create):
1947         (WebCore::CryptoAlgorithmRegistry::registerAlgorithm):
1948         * crypto/CryptoAlgorithmRegistry.h:
1949         * inspector/WorkerDebuggerAgent.cpp:
1950         (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
1951         (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
1952         (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
1953         * workers/WorkerThread.cpp:
1954         (WebCore::threadSetMutex):
1955         (WebCore::workerThreads):
1956         (WebCore::WorkerThread::workerThreadCount):
1957         (WebCore::WorkerThread::WorkerThread):
1958         (WebCore::WorkerThread::~WorkerThread):
1959         (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
1960
1961 2014-01-11  Sam Weinig  <sam@webkit.org>
1962
1963         Split ICU UText providers out into their own files
1964         https://bugs.webkit.org/show_bug.cgi?id=126834
1965
1966         Reviewed by Anders Carlsson.
1967
1968         Moves the implementation of our custom UText providers out into
1969         their own files.
1970         - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
1971         - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
1972         - UTextProvider.h/cpp contains code common to all the providers.
1973
1974         * CMakeLists.txt:
1975         * GNUmakefile.list.am:
1976         * PlatformGTK.cmake:
1977         * WebCore.vcxproj/WebCoreCommon.props:
1978         * WebCore.vcxproj/copyForwardingHeaders.cmd:
1979         * WebCore.xcodeproj/project.pbxproj:
1980         * platform/text/TextAllInOne.cpp:
1981         * platform/text/TextBreakIteratorICU.cpp:
1982         (WebCore::setUpIterator):
1983         (WebCore::wordBreakIterator):
1984         (WebCore::acquireLineBreakIterator):
1985         (WebCore::sentenceBreakIterator):
1986         (WebCore::setUpIteratorWithRules):
1987         * platform/text/icu: Added.
1988         * platform/text/icu/UTextProvider.cpp: Added.
1989         (WebCore::fixPointer):
1990         (WebCore::uTextCloneImpl):
1991         * platform/text/icu/UTextProvider.h: Added.
1992         (WebCore::uTextProviderContext):
1993         (WebCore::uTextInitialize):
1994         (WebCore::uTextAccessPinIndex):
1995         (WebCore::uTextAccessInChunkOrOutOfRange):
1996         * platform/text/icu/UTextProviderLatin1.cpp: Added.
1997         * platform/text/icu/UTextProviderLatin1.h: Added.
1998         * platform/text/icu/UTextProviderUTF16.cpp: Added.
1999         * platform/text/icu/UTextProviderUTF16.h: Added.
2000
2001 2014-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>
2002
2003         Unreviewed. Fix make distcheck.
2004
2005         * GNUmakefile.list.am: Add missing files.
2006
2007 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
2008
2009         Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
2010         symbols.
2011
2012         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2013
2014 2014-01-12  Andreas Kling  <akling@apple.com>
2015
2016         REGRESSION(r160806): line-height is not applied when only present in :link style.
2017         <http://webkit.org/b/126839>
2018         <rdar://problem/15799899>
2019
2020         Reviewed by Antti Koivisto.
2021
2022         Test: fast/css/line-height-link-style.html
2023
2024         * css/StyleResolver.cpp:
2025         (WebCore::StyleResolver::CascadedProperties::Property::apply):
2026
2027             Use the CSSValue for SelectorChecker::MatchLink when applying
2028             style inside a link.
2029
2030 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2031
2032         [iOS] Fix link errors for iOS: Part 3
2033
2034         * WebCore.exp.in:
2035         - Move some Mac-only symbols to Mac-only section.
2036         * WebCore.xcodeproj/project.pbxproj:
2037         - Add missing references to AuthenticationCF.cpp and
2038           CookieJarCFNet.cpp.
2039
2040 2014-01-11  Anders Carlsson  <andersca@apple.com>
2041
2042         Remove unsafe uses of AtomicallyInitializedStatic
2043         https://bugs.webkit.org/show_bug.cgi?id=126838
2044
2045         Reviewed by Andreas Kling.
2046
2047         AtomicStrings are per thread so any static initialization of them is potentially dangerous
2048         unless it's certain that they're only ever used from the same thread.
2049         
2050         This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
2051         (This is highly unlikely to have any real negative performance impact since these two functions
2052         aren't called very frequently).
2053
2054         * loader/CrossOriginAccessControl.cpp:
2055         (WebCore::passesAccessControlCheck):
2056         * page/PerformanceResourceTiming.cpp:
2057         (WebCore::passesTimingAllowCheck):
2058
2059 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2060
2061         [iOS] Fix link errors for iOS: Part 2
2062
2063         * WebCore.exp.in:
2064         - Move some Mac-only symbols to Mac-only section.
2065
2066 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2067
2068         [iOS] First of many iOS fixes to WebCore.exp.in
2069
2070         * WebCore.exp.in:
2071         - Move some Mac-only symbols to Mac-only section.
2072         - Upstream some changes to iOS-only section.
2073
2074 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2075
2076         [iOS] Don't link to Mac-only frameworks when building iOS
2077         <http://webkit.org/b/126841>
2078
2079         * Configurations/WebCore.xcconfig:
2080         (OTHER_LDFLAGS_iphonesimulator): Remove common frameworks that
2081         are already in the Xcode project.
2082         (OTHER_LDFLAGS_macosx): Add Mac-only frameworks removed from the
2083         Xcode project.
2084         * Configurations/WebCoreTestShim.xcconfig:
2085         (OTHER_LDFLAGS[sdk=macosx*]): Link to Carbon.framework for Mac
2086         since it was removed from the Xcode project.
2087         * WebCore.xcodeproj/project.pbxproj: Remove Mac-only frameworks.
2088
2089 2014-01-12  Tobias Mueller  <tobiasmue@gnome.org>
2090
2091         --disable-dependency-tracking causes build failure due to missing directories
2092         https://bugs.webkit.org/show_bug.cgi?id=94488
2093         
2094         Reviewed by Gustavo Noronha Silva.
2095
2096         Ensure output directory existing
2097         before generating DerivedSources. This allows for
2098         --disable-dependency-tracking to be run.
2099
2100         * GNUmakefile.am: Added new target DerivedSources/ANGLE which is a directory to be created
2101         * bindings/gobject/GNUmakefile.am: Added new target DerivedSources/webkitdom which is a directory to be created
2102
2103 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2104
2105         [iOS] WebFontCache is Mac-only
2106
2107         * WebCore.exp.in: Move export to Mac-only section.
2108
2109 2014-01-12  David Kilzer  <ddkilzer@apple.com>
2110
2111         [iOS] Upstream WebEventRegion.{h|mm} to fix the build
2112
2113         * WebCore.xcodeproj/project.pbxproj: Add to project.
2114         * page/ios/WebEventRegion.h: Added.
2115         * page/ios/WebEventRegion.mm: Added.
2116         (-[WebEventRegion initWithPoints::::]):
2117         (-[WebEventRegion copyWithZone:]):
2118         (-[WebEventRegion description]):
2119         (-[WebEventRegion hitTest:]):
2120         (-[WebEventRegion isEqual:]):
2121         (-[WebEventRegion quad]):
2122
2123 2014-01-11  Anders Carlsson  <andersca@apple.com>
2124
2125         Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
2126         https://bugs.webkit.org/show_bug.cgi?id=126837
2127
2128         Reviewed by Sam Weinig.
2129
2130         Use std::call_once when constructing the HTTPHeaderSet.
2131
2132         * loader/CrossOriginAccessControl.cpp:
2133         (WebCore::isOnAccessControlResponseHeaderWhitelist):
2134
2135 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2136
2137         [iOS] Do not link to ApplicationServices.framework for iOS
2138         <http://webkit.org/b/126835>
2139
2140         Reviewed by Dan Bernstein.
2141
2142         * Configurations/WebCore.xcconfig:
2143         (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
2144         * WebCore.xcodeproj/project.pbxproj: Remove reference to
2145         ApplicationServices.framework.
2146
2147 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2148
2149         [iOS] Build fix for StyleResolver.cpp
2150
2151         * rendering/style/RenderStyle.h:
2152         (WebCore::RenderStyle::setCompositionFillColor): Added.
2153
2154 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2155
2156         [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
2157
2158         * rendering/RenderLayerCompositor.cpp:
2159         (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
2160         Fix use of std::make_unique<>() and add an adoptPtr() call.
2161
2162 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
2163
2164         [Mac] [Windows] Stop scheduling network requests in WebCore
2165         https://bugs.webkit.org/show_bug.cgi?id=126789
2166         <rdar://problem/15114727>
2167
2168         Reviewed by Sam Weinig.
2169
2170         We'll just send all requests to CFNetwork now, along with associated priorities.
2171
2172         * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
2173         for more than just pipelining.
2174         * loader/ResourceLoadScheduler.cpp:
2175         (WebCore::ResourceLoadScheduler::scheduleLoad):
2176         * platform/ios/WebCoreSystemInterfaceIOS.mm:
2177         * platform/mac/WebCoreSystemInterface.h:
2178         * platform/mac/WebCoreSystemInterface.mm:
2179         * platform/network/ResourceHandle.h: For syncronous requests, make it so that they
2180         don't count against HTTP connection limit, to avoid the possibility of hanging the process.
2181         * platform/network/cf/ResourceHandleCFNet.cpp:
2182         (WebCore::ResourceHandle::createCFURLConnection):
2183         (WebCore::ResourceHandle::start):
2184         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
2185         * platform/network/cf/ResourceRequestCFNet.cpp:
2186         (WebCore::ResourceRequest::doUpdatePlatformRequest):
2187         (WebCore::ResourceRequest::doUpdateResourceRequest):
2188         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
2189         (WebCore::initializeHTTPConnectionSettingsOnStartup):
2190         * platform/network/cf/ResourceRequestCFNet.h:
2191         (WebCore::toPlatformRequestPriority):
2192         * platform/network/mac/ResourceHandleMac.mm:
2193         (WebCore::ResourceHandle::createNSURLConnection):
2194         (WebCore::ResourceHandle::start):
2195         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
2196         * platform/network/mac/ResourceRequestMac.mm:
2197         (WebCore::ResourceRequest::doUpdateResourceRequest):
2198         (WebCore::ResourceRequest::doUpdatePlatformRequest):
2199
2200 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2201
2202         [iOS] Fix build failure in WebCore::findEndWordBoundary()
2203
2204         Filed Bug 126830 for the proper fix:
2205         <http://webkit.org/b/126830>
2206
2207         * editing/VisibleUnits.cpp:
2208         (WebCore::endWordBoundary): Switch back to using
2209         WebCore::findWordBoundary() on iOS.
2210
2211         * platform/text/mac/TextBoundaries.mm:
2212         (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
2213         that doesn't use NSAttributedString.
2214
2215 2014-01-11  Andy Estes  <aestes@apple.com>
2216
2217         [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
2218         https://bugs.webkit.org/show_bug.cgi?id=126829
2219
2220         Reviewed by Sam Weinig.
2221
2222         Some newly-upstreamed iOS text autosizing code needs to move to
2223         RenderBlockFlow in order to build.
2224
2225         * rendering/RenderBlock.cpp:
2226         (WebCore::RenderBlock::RenderBlock):
2227         * rendering/RenderBlock.h:
2228         * rendering/RenderBlockFlow.cpp:
2229         (WebCore::RenderBlockFlow::RenderBlockFlow):
2230         (WebCore::isVisibleRenderText):
2231         (WebCore::resizeTextPermitted):
2232         (WebCore::RenderBlockFlow::immediateLineCount):
2233         (WebCore::isNonBlocksOrNonFixedHeightListItems):
2234         (WebCore::oneLineTextMultiplier):
2235         (WebCore::textMultiplier):
2236         (WebCore::RenderBlockFlow::adjustComputedFontSizes):
2237         * rendering/RenderBlockFlow.h:
2238         (WebCore::RenderBlockFlow::resetComputedFontSize):
2239         * rendering/RenderObject.cpp:
2240         (WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
2241         (WebCore::RenderObject::resetTextAutosizing):
2242
2243 2014-01-11  Daniel Bates  <dabates@apple.com>
2244
2245         [iOS] Fix the build
2246
2247         Only call CGContextFlush() when building for OS X < 10.9.
2248
2249         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2250         (WebCore::ImageBufferBackingStoreCache::deallocate):
2251
2252 2014-01-11  Anders Carlsson  <andersca@apple.com>
2253
2254         InspectorAgentRegistry should use std::unique_ptr
2255         https://bugs.webkit.org/show_bug.cgi?id=126826
2256
2257         Reviewed by Sam Weinig.
2258
2259         * inspector/InspectorApplicationCacheAgent.h:
2260         * inspector/InspectorCSSAgent.h:
2261         * inspector/InspectorCanvasAgent.h:
2262         * inspector/InspectorController.cpp:
2263         (WebCore::InspectorController::InspectorController):
2264         * inspector/InspectorDOMAgent.h:
2265         * inspector/InspectorDOMDebuggerAgent.cpp:
2266         * inspector/InspectorDOMDebuggerAgent.h:
2267         * inspector/InspectorDOMStorageAgent.h:
2268         * inspector/InspectorDatabaseAgent.h:
2269         * inspector/InspectorHeapProfilerAgent.cpp:
2270         * inspector/InspectorHeapProfilerAgent.h:
2271         * inspector/InspectorIndexedDBAgent.h:
2272         * inspector/InspectorInputAgent.h:
2273         * inspector/InspectorLayerTreeAgent.h:
2274         * inspector/InspectorMemoryAgent.cpp:
2275         * inspector/InspectorMemoryAgent.h:
2276         * inspector/InspectorPageAgent.cpp:
2277         * inspector/InspectorPageAgent.h:
2278         * inspector/InspectorProfilerAgent.cpp:
2279         (WebCore::InspectorProfilerAgent::create):
2280         * inspector/InspectorProfilerAgent.h:
2281         * inspector/InspectorResourceAgent.h:
2282         * inspector/InspectorTimelineAgent.h:
2283         * inspector/InspectorWorkerAgent.cpp:
2284         * inspector/InspectorWorkerAgent.h:
2285         * inspector/PageConsoleAgent.h:
2286         * inspector/PageDebuggerAgent.cpp:
2287         * inspector/PageDebuggerAgent.h:
2288         * inspector/PageRuntimeAgent.h:
2289         * inspector/WorkerConsoleAgent.h:
2290         * inspector/WorkerDebuggerAgent.cpp:
2291         * inspector/WorkerDebuggerAgent.h:
2292         * inspector/WorkerInspectorController.cpp:
2293         (WebCore::WorkerInspectorController::WorkerInspectorController):
2294         * inspector/WorkerRuntimeAgent.h:
2295
2296 2014-01-11  Sam Weinig  <sam@webkit.org>
2297
2298         Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
2299         https://bugs.webkit.org/show_bug.cgi?id=126820
2300
2301         Reviewed by Anders Carlsson.
2302
2303         * CMakeLists.txt:
2304         * GNUmakefile.list.am:
2305         * WebCore.vcxproj/WebCore.vcxproj:
2306         * WebCore.vcxproj/WebCore.vcxproj.filters:
2307         * WebCore.xcodeproj/project.pbxproj:
2308         * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
2309         (WebCore::convertFloatToHalfFloat):
2310         (WebCore::FormatConverter::convert):
2311         * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
2312         (WebCore::FormatConverter::FormatConverter):
2313         (WebCore::FormatConverter::success):
2314         * platform/graphics/GraphicsContext3D.cpp:
2315         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
2316         (WebCore::GraphicsContext3D::computeImageSizeInBytes):
2317         (WebCore::GraphicsContext3D::packImageData):
2318         (WebCore::GraphicsContext3D::extractImageData):
2319         (WebCore::GraphicsContext3D::extractTextureData):
2320         (WebCore::GraphicsContext3D::packPixels):
2321         * platform/graphics/GraphicsContext3D.h:
2322         (WebCore::GraphicsContext3D::hasAlpha):
2323         (WebCore::GraphicsContext3D::hasColor):
2324
2325 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2326
2327         Fix updateScrollingLayerWithClient() for iOS.
2328         
2329         * rendering/RenderLayerCompositor.cpp:
2330         (WebCore::updateScrollingLayerWithClient):
2331
2332 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2333
2334         Unfork GraphicsContext::drawNativeImage for iOS
2335         https://bugs.webkit.org/show_bug.cgi?id=126824
2336
2337         Reviewed by Dean Jackson.
2338
2339         GraphicsContext::drawNativeImage had a different signature for iOS,
2340         which required #ifdefs at all the call sites. Unfork by passing the "scale"
2341         parameter everywhere (it's only used on iOS).
2342
2343         * WebCore.exp.in:
2344         * html/canvas/CanvasRenderingContext2D.cpp:
2345         (WebCore::CanvasRenderingContext2D::drawImage):
2346         * platform/graphics/GraphicsContext.h:
2347         * platform/graphics/cg/BitmapImageCG.cpp:
2348         (WebCore::BitmapImage::draw):
2349         * platform/graphics/cg/GraphicsContext3DCG.cpp:
2350         (WebCore::GraphicsContext3D::paintToCanvas):
2351         * platform/graphics/cg/GraphicsContextCG.cpp:
2352         (WebCore::GraphicsContext::platformInit):
2353         * platform/graphics/cg/ImageBufferCG.cpp:
2354         (WebCore::ImageBuffer::draw):
2355         * platform/graphics/ios/IconIOS.mm:
2356         (WebCore::Icon::paint):
2357
2358 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2359
2360         Work around USE(CFNETWORK) build failure on iOS.
2361
2362         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2363         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
2364
2365 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2366
2367         Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
2368         
2369         * loader/archive/cf/LegacyWebArchive.cpp:
2370
2371 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2372
2373         [iOS] Fix the easy half of the build errors in RenderBlock.cpp
2374
2375         * rendering/RenderBlock.cpp:
2376         (WebCore::isNonBlocksOrNonFixedHeightListItems):
2377         (WebCore::oneLineTextMultiplier):
2378         (WebCore::textMultiplier):
2379         (WebCore::RenderBlock::adjustComputedFontSizes):
2380
2381 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2382
2383         Change touch-related headers to include WebKitAdditions headers,
2384         which have been renamed to have IOS suffixes.
2385
2386         * WebCore.xcodeproj/project.pbxproj:
2387         * bindings/js/ios/TouchConstructors.cpp:
2388         * dom/Touch.h:
2389         * dom/TouchEvent.h:
2390         * dom/TouchList.h:
2391         * dom/ios/TouchEvents.cpp:
2392
2393 2014-01-11  Anders Carlsson  <andersca@apple.com>
2394
2395         ScriptDebugServer should use a separate member function for its timer handler
2396         https://bugs.webkit.org/show_bug.cgi?id=126819
2397
2398         Reviewed by Sam Weinig.
2399
2400         It's weird to have subclasses override a timer handler and sometimes invoke 
2401         the timer handler directly so make it a separate member function instead.
2402
2403         * bindings/js/PageScriptDebugServer.cpp:
2404         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
2405         * bindings/js/PageScriptDebugServer.h:
2406         * bindings/js/ScriptDebugServer.cpp:
2407         (WebCore::ScriptDebugServer::ScriptDebugServer):
2408         (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
2409         * bindings/js/ScriptDebugServer.h:
2410         * bindings/js/WorkerScriptDebugServer.cpp:
2411         (WebCore::WorkerScriptDebugServer::addListener):
2412         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
2413         * bindings/js/WorkerScriptDebugServer.h:
2414         * inspector/InspectorProfilerAgent.cpp:
2415         (WebCore::InspectorProfilerAgent::start):
2416
2417 2014-01-11  Anders Carlsson  <andersca@apple.com>
2418
2419         Simplify Timer and DeferrableOneShotTimer using std::function
2420         https://bugs.webkit.org/show_bug.cgi?id=126816
2421
2422         Reviewed by Sam Weinig.
2423
2424         * platform/Timer.h:
2425         (WebCore::Timer::Timer):
2426
2427 2014-01-11  Anders Carlsson  <andersca@apple.com>
2428
2429         CTTE Timer and DeferrableOneShotTimer
2430         https://bugs.webkit.org/show_bug.cgi?id=126814
2431
2432         Reviewed by Antti Koivisto.
2433
2434         Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
2435         take a reference instead of a pointer.
2436         Also, convert a bunch of classes over to using these new constructors.
2437
2438         * Modules/encryptedmedia/MediaKeySession.cpp:
2439         (WebCore::MediaKeySession::keyRequestTimerFired):
2440         (WebCore::MediaKeySession::addKeyTimerFired):
2441         * Modules/encryptedmedia/MediaKeySession.h:
2442         * Modules/geolocation/Geolocation.cpp:
2443         (WebCore::Geolocation::GeoNotifier::timerFired):
2444         (WebCore::Geolocation::resumeTimerFired):
2445         * Modules/geolocation/Geolocation.h:
2446         * Modules/indexeddb/IDBTransactionBackend.cpp:
2447         (WebCore::IDBTransactionBackend::taskTimerFired):
2448         * Modules/indexeddb/IDBTransactionBackend.h:
2449         * Modules/mediasource/SourceBuffer.cpp:
2450         (WebCore::SourceBuffer::appendBufferTimerFired):
2451         * Modules/mediasource/SourceBuffer.h:
2452         * Modules/notifications/Notification.cpp:
2453         (WebCore::Notification::taskTimerFired):
2454         * Modules/notifications/Notification.h:
2455         * Modules/notifications/NotificationCenter.cpp:
2456         (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
2457         * Modules/notifications/NotificationCenter.h:
2458         * accessibility/AXObjectCache.cpp:
2459         (WebCore::AXObjectCache::notificationPostTimerFired):
2460         * accessibility/AXObjectCache.h:
2461         * css/CSSFontSelector.cpp:
2462         (WebCore::CSSFontSelector::beginLoadTimerFired):
2463         * css/CSSFontSelector.h:
2464         * css/CSSImageGeneratorValue.cpp:
2465         (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
2466         * css/CSSImageGeneratorValue.h:
2467         * dom/Document.cpp:
2468         (WebCore::Document::visualUpdatesSuppressionTimerFired):
2469         (WebCore::Document::styleRecalcTimerFired):
2470         (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
2471         (WebCore::Document::sharedObjectPoolClearTimerFired):
2472         (WebCore::Document::styleResolverThrowawayTimerFired):
2473         (WebCore::Document::updateFocusAppearanceTimerFired):
2474         (WebCore::Document::resetHiddenFocusElementTimer):
2475         (WebCore::Document::pendingTasksTimerFired):
2476         (WebCore::Document::fullScreenChangeDelayTimerFired):
2477         (WebCore::Document::loadEventDelayTimerFired):
2478         (WebCore::Document::didAssociateFormControlsTimerFired):
2479         * dom/Document.h:
2480         * dom/EventSender.h:
2481         (WebCore::EventSender::timerFired):
2482         * dom/GenericEventQueue.cpp:
2483         (WebCore::GenericEventQueue::timerFired):
2484         * dom/GenericEventQueue.h:
2485         * dom/ScriptRunner.cpp:
2486         (WebCore::ScriptRunner::timerFired):
2487         * dom/ScriptRunner.h:
2488         * dom/ScriptedAnimationController.cpp:
2489         (WebCore::ScriptedAnimationController::animationTimerFired):
2490         * dom/ScriptedAnimationController.h:
2491         * editing/AlternativeTextController.cpp:
2492         (WebCore::AlternativeTextController::timerFired):
2493         * editing/AlternativeTextController.h:
2494         * editing/FrameSelection.cpp:
2495         (WebCore::FrameSelection::caretBlinkTimerFired):
2496         * editing/FrameSelection.h:
2497         * html/HTMLMediaElement.cpp:
2498         (WebCore::HTMLMediaElement::parseAttribute):
2499         * html/HTMLMediaElement.h:
2500         * html/HTMLPlugInElement.cpp:
2501         (WebCore::HTMLPlugInElement::swapRendererTimerFired):
2502         * html/HTMLPlugInElement.h:
2503         * html/HTMLPlugInImageElement.cpp:
2504         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
2505         (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
2506         * html/HTMLPlugInImageElement.h:
2507         * html/HTMLSourceElement.cpp:
2508         (WebCore::HTMLSourceElement::errorEventTimerFired):
2509         * html/HTMLSourceElement.h:
2510         * html/HTMLTrackElement.cpp:
2511         (WebCore::HTMLTrackElement::loadTimerFired):
2512         * html/HTMLTrackElement.h:
2513         * html/MediaController.cpp:
2514         (MediaController::asyncEventTimerFired):
2515         (MediaController::clearPositionTimerFired):
2516         (MediaController::timeupdateTimerFired):
2517         * html/MediaController.h:
2518         * html/MediaDocument.cpp:
2519         (WebCore::MediaDocument::replaceMediaElementTimerFired):
2520         * html/MediaDocument.h:
2521         * html/parser/HTMLParserScheduler.cpp:
2522         (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
2523         * html/parser/HTMLParserScheduler.h:
2524         * html/shadow/MediaControlElementTypes.cpp:
2525         (WebCore::MediaControlSeekButtonElement::seekTimerFired):
2526         * html/shadow/MediaControlElementTypes.h:
2527         * html/shadow/MediaControlElements.cpp:
2528         (WebCore::MediaControlPanelElement::transitionTimerFired):
2529         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
2530         * html/shadow/MediaControlElements.h:
2531         * html/shadow/MediaControls.cpp:
2532         (WebCore::MediaControls::hideFullscreenControlsTimerFired):
2533         * html/shadow/MediaControls.h:
2534         * html/track/LoadableTextTrack.cpp:
2535         (WebCore::LoadableTextTrack::loadTimerFired):
2536         * html/track/LoadableTextTrack.h:
2537         * inspector/InspectorCSSAgent.cpp:
2538         (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
2539         (WebCore::UpdateRegionLayoutTask::timerFired):
2540         (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
2541         (WebCore::ChangeRegionOversetTask::timerFired):
2542         * inspector/InspectorDOMAgent.cpp:
2543         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
2544         (WebCore::RevalidateStyleAttributeTask::timerFired):
2545         * inspector/InspectorFrontendClientLocal.cpp:
2546         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
2547         (WebCore::InspectorBackendDispatchTask::timerFired):
2548         * loader/DocumentLoader.cpp:
2549         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
2550         * loader/DocumentLoader.h:
2551         * loader/FrameLoader.cpp:
2552         (WebCore::FrameLoader::checkTimerFired):
2553         * loader/FrameLoader.h:
2554         * loader/ImageLoader.cpp:
2555         (WebCore::ImageLoader::timerFired):
2556         * loader/ImageLoader.h:
2557         * loader/LinkLoader.cpp:
2558         (WebCore::LinkLoader::linkLoadTimerFired):
2559         (WebCore::LinkLoader::linkLoadingErrorTimerFired):
2560         * loader/LinkLoader.h:
2561         * loader/NavigationScheduler.cpp:
2562         (WebCore::NavigationScheduler::timerFired):
2563         * loader/NavigationScheduler.h:
2564         * loader/PingLoader.cpp:
2565         (WebCore::PingLoader::PingLoader):
2566         * loader/PingLoader.h:
2567         (WebCore::PingLoader::timeoutTimerFired):
2568         * loader/ProgressTracker.cpp:
2569         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
2570         * loader/ProgressTracker.h:
2571         * loader/ResourceLoadScheduler.cpp:
2572         (WebCore::ResourceLoadScheduler::requestTimerFired):
2573         * loader/ResourceLoadScheduler.h:
2574         * loader/cache/CachedResource.cpp:
2575         (WebCore::CachedResource::decodedDataDeletionTimerFired):
2576         (WebCore::CachedResource::CachedResourceCallback::timerFired):
2577         * loader/cache/CachedResource.h:
2578         * loader/cache/CachedResourceLoader.cpp:
2579         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
2580         * loader/cache/CachedResourceLoader.h:
2581         * loader/icon/IconDatabase.cpp:
2582         (WebCore::IconDatabase::syncTimerFired):
2583         * loader/icon/IconDatabase.h:
2584         * page/AutoscrollController.cpp:
2585         (WebCore::AutoscrollController::autoscrollTimerFired):
2586         * page/AutoscrollController.h:
2587         * page/CaptionUserPreferences.cpp:
2588         (WebCore::CaptionUserPreferences::timerFired):
2589         * page/CaptionUserPreferences.h:
2590         * page/DeviceController.cpp:
2591         (WebCore::DeviceController::fireDeviceEvent):
2592         * page/DeviceController.h:
2593         * page/EventHandler.cpp:
2594         (WebCore::EventHandler::cursorUpdateTimerFired):
2595         (WebCore::EventHandler::autoHideCursorTimerFired):
2596         (WebCore::EventHandler::fakeMouseMoveEventTimerFired):
2597         (WebCore::EventHandler::hoverTimerFired):
2598         * page/EventHandler.h:
2599         * page/EventSource.cpp:
2600         (WebCore::EventSource::connectTimerFired):
2601         * page/EventSource.h:
2602         * page/FrameView.cpp:
2603         (WebCore::FrameView::deferredRepaintTimerFired):
2604         (WebCore::FrameView::layoutTimerFired):
2605         (WebCore::FrameView::postLayoutTimerFired):
2606         * page/FrameView.h:
2607         * page/PageThrottler.cpp:
2608         (WebCore::PageThrottler::throttleHysteresisTimerFired):
2609         * page/PageThrottler.h:
2610         * page/animation/AnimationController.cpp:
2611         (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
2612         (WebCore::AnimationControllerPrivate::animationTimerFired):
2613         * page/animation/AnimationControllerPrivate.h:
2614         * platform/Scrollbar.cpp:
2615         (WebCore::Scrollbar::autoscrollTimerFired):
2616         * platform/Scrollbar.h:
2617         * platform/Timer.h:
2618         (WebCore::Timer::Timer):
2619         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
2620         * platform/graphics/BitmapImage.cpp:
2621         (WebCore::BitmapImage::advanceAnimation):
2622         * platform/graphics/BitmapImage.h:
2623         * platform/graphics/MediaPlayer.cpp:
2624         (WebCore::MediaPlayer::reloadTimerFired):
2625         * platform/graphics/MediaPlayer.h:
2626         * platform/graphics/ca/mac/LayerPool.h:
2627         * platform/graphics/ca/mac/LayerPool.mm:
2628         (WebCore::LayerPool::pruneTimerFired):
2629         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2630         (WebCore::ImageBufferBackingStoreCache::timerFired):
2631         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
2632         * platform/graphics/cg/SubimageCacheWithTimer.cpp:
2633         (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
2634         * platform/graphics/cg/SubimageCacheWithTimer.h:
2635         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
2636         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2637         (WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
2638         * platform/mac/ScrollAnimatorMac.h:
2639         * platform/mac/ScrollAnimatorMac.mm:
2640         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
2641         (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
2642         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
2643         * platform/mock/DeviceOrientationClientMock.cpp:
2644         (WebCore::DeviceOrientationClientMock::timerFired):
2645         * platform/mock/DeviceOrientationClientMock.h:
2646         * platform/network/NetworkStateNotifier.h:
2647         * platform/network/ResourceHandle.cpp:
2648         (WebCore::ResourceHandle::failureTimerFired):
2649         * platform/network/ResourceHandle.h:
2650         * platform/network/ResourceHandleInternal.h:
2651         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2652         * platform/network/mac/NetworkStateNotifierMac.cpp:
2653         (WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
2654         * rendering/ImageQualityController.cpp:
2655         (WebCore::ImageQualityController::highQualityRepaintTimerFired):
2656         * rendering/ImageQualityController.h:
2657         * rendering/RenderButton.cpp:
2658         (WebCore::RenderButton::timerFired):
2659         * rendering/RenderButton.h:
2660         * rendering/RenderLayerCompositor.cpp:
2661         (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
2662         (WebCore::RenderLayerCompositor::layerFlushTimerFired):
2663         (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
2664         * rendering/RenderLayerCompositor.h:
2665         * rendering/RenderMarquee.cpp:
2666         (WebCore::RenderMarquee::timerFired):
2667         * rendering/RenderMarquee.h:
2668         * rendering/RenderNamedFlowThread.cpp:
2669         (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
2670         (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
2671         * rendering/RenderNamedFlowThread.h:
2672         * rendering/RenderProgress.cpp:
2673         (WebCore::RenderProgress::animationTimerFired):
2674         * rendering/RenderProgress.h:
2675
2676 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2677
2678         #ifdef out the contents of Touch* files for iOS.
2679         
2680         * dom/Touch.h:
2681         * dom/TouchEvent.h:
2682         * dom/TouchList.h:
2683
2684 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2685
2686         No need to include <ApplicationServices/ApplicationServices.h> in
2687         the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
2688
2689         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2690         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
2691
2692 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2693
2694         Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
2695         and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
2696
2697         * bindings/objc/DOMPrivate.h:
2698         * bindings/objc/DOMUIKitExtensions.h:
2699         * bindings/objc/DOMUIKitExtensions.mm:
2700
2701 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2702
2703         Fix use of GL_HALF_FLOAT_ARB on iOS.
2704
2705         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2706         (WebCore::GraphicsContext3D::texSubImage2D):
2707
2708 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2709
2710         Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
2711
2712         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2713
2714 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2715
2716         Fix use of nonexistent kCGColorSpaceSRGB on iOS.
2717
2718         * platform/graphics/cg/GraphicsContextCG.cpp:
2719         (WebCore::sRGBColorSpaceRef):
2720
2721 2014-01-11  Joseph Pecoraro  <pecoraro@apple.com>
2722
2723         Web Inspector: Some ScriptDebugServer Cleanup
2724         https://bugs.webkit.org/show_bug.cgi?id=126793
2725
2726         Reviewed by Timothy Hatcher.
2727
2728         * bindings/js/PageScriptDebugServer.cpp:
2729         (WebCore::PageScriptDebugServer::didContinue):
2730         (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
2731         Move the special iOS WebThread EventLoop nesting handling here.
2732
2733         * bindings/js/ScriptDebugServer.cpp:
2734         (WebCore::ScriptDebugServer::ScriptDebugServer):
2735         (WebCore::ScriptDebugServer::handlePause):
2736         * bindings/js/ScriptDebugServer.h:
2737         * inspector/InspectorDebuggerAgent.cpp:
2738         * inspector/InspectorDebuggerAgent.h:
2739         Remove unused headers and functions.
2740
2741 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2742
2743         [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
2744
2745         * platform/graphics/cg/ImageBufferCG.cpp:
2746         (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
2747         variables are only used by code protected by
2748         USE(IOSURFACE_CANVAS_BACKING_STORE).
2749
2750 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2751
2752         [iOS] Multisampling is not available on iOS
2753
2754         * platform/graphics/mac/GraphicsContext3DMac.mm:
2755         (WebCore::GraphicsContext3D::GraphicsContext3D):
2756
2757 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2758
2759         [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
2760
2761         * html/HTMLImageElement.cpp:
2762         (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
2763
2764 2014-01-10  Anders Carlsson  <andersca@apple.com>
2765
2766         Fix test crashes.
2767         
2768         * loader/ProgressTracker.cpp:
2769         (WebCore::ProgressTracker::~ProgressTracker):
2770         Comment out the call to progressTrackerDestroyed for now.
2771
2772 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2773
2774         [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
2775
2776         * rendering/RenderEmbeddedObject.cpp:
2777         (WebCore::RenderEmbeddedObject::canHaveChildren):
2778
2779 2014-01-10  Anders Carlsson  <andersca@apple.com>
2780
2781         Tweak ProgressTrackerClient functions
2782         https://bugs.webkit.org/show_bug.cgi?id=126808
2783
2784         Reviewed by Sam Weinig.
2785
2786         Rename the three progress state related member functions since it's up to the various
2787         WebKit implementations to decide what to do - not everyone wants to post a notification.
2788         Also add an originating progress frame parameter since WebKit2 doesn't report progress for
2789         subframe navigation and we need to be able to keep track of that.
2790         
2791         Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
2792
2793         * loader/EmptyClients.h:
2794         * loader/ProgressTracker.cpp:
2795         (WebCore::ProgressItem::ProgressItem):
2796         (WebCore::ProgressTracker::progressStarted):
2797         (WebCore::ProgressTracker::finalProgressComplete):
2798         (WebCore::ProgressTracker::incrementProgress):
2799         (WebCore::ProgressTracker::completeProgress):
2800         * loader/ProgressTrackerClient.h:
2801
2802 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2803
2804         [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
2805
2806         * rendering/style/StyleRareInheritedData.cpp:
2807
2808 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2809
2810         [iOS] Fix build of SubframeLoader.cpp
2811
2812         * loader/SubframeLoader.cpp:
2813         (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
2814         (WebCore::SubframeLoader::loadPlugin):
2815         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2816
2817 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2818
2819         Fix Mac after r161747. One part of that is iOS specific.
2820
2821         Unreviewed build fix.
2822
2823         * bindings/js/GCController.cpp:
2824         (WebCore::GCController::releaseExecutableMemory):
2825
2826 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2827
2828         [iOS] Fix GCController::releaseExecutableMemory
2829         https://bugs.webkit.org/show_bug.cgi?id=126805
2830
2831         Reviewed by Sam Weinig and Mark Lam.
2832
2833         VM::dynamicGlobalObject has since been replaced by VMEntryScope.
2834         Update to check entryScope instead of the dynamicGlobalObject.
2835         Also, make this non-iOS only.
2836
2837         * bindings/js/GCController.h:
2838         * bindings/js/GCController.cpp:
2839         (WebCore::GCController::releaseExecutableMemory):
2840
2841 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2842
2843         Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
2844
2845         There is now local variable mediaElement. Just call the
2846         functions since they are methods on this class.
2847
2848         Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
2849
2850         * html/HTMLMediaElement.cpp:
2851         (WebCore::HTMLMediaElement::parseAttribute):
2852
2853 2014-01-10  Anders Carlsson  <andersca@apple.com>
2854
2855         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2856         https://bugs.webkit.org/show_bug.cgi?id=126801
2857
2858         Reviewed by Sam Weinig.
2859
2860         * GNUmakefile.list.am:
2861         * WebCore.vcxproj/WebCore.vcxproj:
2862         * WebCore.vcxproj/WebCore.vcxproj.filters:
2863         * WebCore.xcodeproj/project.pbxproj:
2864         * loader/EmptyClients.cpp:
2865         (WebCore::fillWithEmptyClients):
2866         * loader/EmptyClients.h:
2867         * loader/FrameLoaderClient.h:
2868         * loader/ProgressTracker.cpp:
2869         (WebCore::ProgressTracker::ProgressTracker):
2870         (WebCore::ProgressTracker::~ProgressTracker):
2871         (WebCore::ProgressTracker::progressStarted):
2872         (WebCore::ProgressTracker::progressCompleted):
2873         (WebCore::ProgressTracker::finalProgressComplete):
2874         (WebCore::ProgressTracker::incrementProgress):
2875         * loader/ProgressTracker.h:
2876         * loader/ProgressTrackerClient.h: Added.
2877         (WebCore::ProgressTrackerClient::~ProgressTrackerClient):
2878         (WebCore::ProgressTrackerClient::progressTrackerDestroyed):
2879         (WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
2880         (WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
2881         * page/Page.cpp:
2882         (WebCore::Page::Page):
2883         (WebCore::Page::PageClients::PageClients):
2884         * page/Page.h:
2885
2886 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2887
2888         Fix RenderObject.o for iOS. Unreviewed build fix.
2889
2890         r156285 renamed firstChild() to firstChildSlow(), so update
2891         occurances in IOS_TEXT_AUTOSIZING code. Also account for a
2892         RenderObject::style reference / pointer change.
2893
2894         * rendering/RenderObject.cpp:
2895         (WebCore::RenderObject::traverseNext):
2896         (WebCore::includeNonFixedHeight):
2897
2898 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2899
2900         Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
2901
2902         Import CALayer, which Mac must have been getting some other way.
2903
2904         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2905
2906 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2907
2908         Fix TileGrid.o for iOS. Unreviewed build fix.
2909
2910         Explicitly use namespace std in std::pair.
2911
2912         * platform/ios/TileGrid.mm:
2913         (WebCore::isFartherAway):
2914         (WebCore::TileGrid::dropDistantTiles):
2915
2916 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2917
2918         Fix RenderImage.o for iOS. Unreviewed build fix.
2919
2920         inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
2921         without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
2922
2923         * rendering/RenderImage.cpp:
2924
2925 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2926
2927         [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
2928
2929         Fixes the following build error:
2930
2931             WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
2932             #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
2933                                  ^
2934
2935         * platform/Scrollbar.cpp:
2936         (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
2937
2938 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2939
2940         Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
2941
2942         WebCore::theme() returns a reference now, not a pointer.
2943
2944         * rendering/RenderFileUploadControl.cpp:
2945         (WebCore::RenderFileUploadControl::paintObject):
2946
2947 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2948
2949         Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
2950
2951         Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
2952         add the files to the Xcode project so they build.
2953
2954         * WebCore.xcodeproj/project.pbxproj:
2955         * html/shadow/YouTubeEmbedShadowElement.cpp: Added.
2956         (WebCore::YouTubeEmbedShadowElement::create):
2957         (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
2958         (WebCore::YouTubeEmbedShadowElement::pluginElement):
2959         (WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
2960         * html/shadow/YouTubeEmbedShadowElement.h: Added.
2961
2962 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2963
2964         [iOS] Update EditorIOS.mm to switch from pointers to references
2965
2966         * editing/ios/EditorIOS.mm:
2967         (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
2968         (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
2969         (WebCore::styleForSelectionStart):
2970         (WebCore::Editor::selectionInWebArchiveFormat):
2971         (WebCore::Editor::writeImageToPasteboard):
2972         (WebCore::Editor::WebContentReader::readWebArchive):
2973         (WebCore::Editor::WebContentReader::readRTFD):
2974         (WebCore::Editor::WebContentReader::readRTF):
2975         (WebCore::uniqueURLWithRelativePart):
2976         (WebCore::Editor::WebContentReader::readPlainText):
2977         (WebCore::Editor::webContentFromPasteboard):
2978         (WebCore::Editor::createFragmentAndAddResources):
2979         (WebCore::Editor::createFragmentForImageResourceAndAddResource):
2980
2981 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2982
2983         Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
2984         https://bugs.webkit.org/show_bug.cgi?id=126763
2985
2986         Reviewed by Timothy Hatcher.
2987
2988         No new tests, no observable change in functionality.
2989
2990         * CMakeLists.txt:
2991         * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
2992         * GNUmakefile.list.am:
2993         * WebCore.vcxproj/WebCore.vcxproj:
2994         * WebCore.vcxproj/WebCore.vcxproj.filters:
2995         * WebCore.xcodeproj/project.pbxproj:
2996         * inspector/InspectorAllInOne.cpp:
2997         InspectorAgent moved to JavaScriptCore. Include forwarding header.
2998
2999         * inspector/PageConsoleAgent.cpp:
3000         (WebCore::PageConsoleAgent::PageConsoleAgent):
3001         (WebCore::PageConsoleAgent::~PageConsoleAgent):
3002         * inspector/PageConsoleAgent.h:
3003         (WebCore::PageConsoleAgent::create):
3004         * inspector/InspectorApplicationCacheAgent.cpp:
3005         * inspector/InspectorApplicationCacheAgent.h:
3006         InspectorAgent was not used by these files, remove it.
3007
3008         * inspector/CommandLineAPIHost.cpp:
3009         * inspector/CommandLineAPIHost.h:
3010         (WebCore::CommandLineAPIHost::init):
3011         * inspector/InspectorInstrumentation.cpp:
3012         * inspector/InstrumentingAgents.h:
3013         (WebCore::InstrumentingAgents::inspectorAgent):
3014         (WebCore::InstrumentingAgents::setInspectorAgent):
3015         Switch to Inspector::InspectorAgent where applicable.
3016
3017         * inspector/InspectorController.cpp:
3018         (WebCore::InspectorController::InspectorController):
3019         * inspector/InspectorController.h:
3020         Manually add InspectorAgent to the InstrumentingAgents. It is one
3021         of the agents that is always available in InstrumentingAgents.
3022
3023 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3024
3025        Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
3026
3027         * WebCore.xcodeproj/project.pbxproj:
3028         * dom/Document.cpp:
3029         (WebCore::Document::Document):
3030         * rendering/TextAutoSizing.cpp: Added.
3031         (WebCore::cloneRenderStyleWithState):
3032         (WebCore::TextAutoSizingKey::TextAutoSizingKey):
3033         (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
3034         (WebCore::TextAutoSizingKey::operator=):
3035         (WebCore::TextAutoSizingKey::ref):
3036         (WebCore::TextAutoSizingKey::deref):
3037         (WebCore::TextAutoSizingValue::numNodes):
3038         (WebCore::TextAutoSizingValue::addNode):
3039         (WebCore::TextAutoSizingValue::adjustNodeSizes):
3040         (WebCore::TextAutoSizingValue::reset):
3041         * rendering/TextAutoSizing.h: Added.
3042         (WebCore::TextAutoSizingKey::doc):
3043         (WebCore::TextAutoSizingKey::style):
3044         (WebCore::TextAutoSizingKey::isValidDoc):
3045         (WebCore::TextAutoSizingKey::isValidStyle):
3046         (WebCore::TextAutoSizingKey::deletedKeyDoc):
3047         (WebCore::TextAutoSizingKey::deletedKeyStyle):
3048         (WebCore::operator==):
3049         (WebCore::TextAutoSizingHash::hash):
3050         (WebCore::TextAutoSizingHash::equal):
3051         (WebCore::TextAutoSizingValue::create):
3052         (WebCore::TextAutoSizingValue::TextAutoSizingValue):
3053
3054 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3055
3056         Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
3057
3058         Use of systemMemoryLevel was missing include of SystemMemory.h.
3059
3060         * platform/graphics/ca/GraphicsLayerCA.cpp:
3061
3062 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3063
3064         Fix iOS build.
3065
3066         * bindings/objc/DOM.mm:
3067         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
3068         * bindings/objc/DOMExtensions.h:
3069         * platform/DragImage.h:
3070
3071 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3072
3073         Fix iOS build.
3074         
3075         Generated DOMTouch* and DOMGesture* files need to be in the project.
3076         Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
3077         
3078         Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
3079
3080         * Configurations/WebCore.xcconfig:
3081         * WebCore.xcodeproj/project.pbxproj:
3082         * bindings/objc/DOMPrivate.h:
3083
3084 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3085
3086         Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
3087
3088         Typo referring to generated name. Should be "iOS" not "IOS".
3089
3090         * rendering/RenderThemeIOS.mm:
3091         (WebCore::RenderThemeIOS::mediaControlsScript):
3092
3093 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3094
3095         Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
3096
3097         The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
3098         it was using GSFonts. Just upstream a newer version of the file. Also
3099         explicitly namespace qualify std::pair.
3100
3101         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
3102         (AXAttributeStringSetStyle):
3103
3104 2014-01-10  Jinwoo Song  <jinwoo7.song@samsung.com>
3105
3106         Remove willRespondToTouchEvents() which was used by chromium port
3107         https://bugs.webkit.org/show_bug.cgi?id=126739
3108
3109         Reviewed by Alexey Proskuryakov.
3110
3111         willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
3112         However, it is not used anywhere after chromium port is removed.
3113
3114         * dom/Node.cpp:
3115         * dom/Node.h:
3116
3117 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3118
3119         Fix SystemVersionMac.o for iOS. Unreviewed build fix.
3120
3121         Add missing expected function. Maybe we can avoid including
3122         this file entirely on iOS, there was already a FIXME.
3123
3124         * platform/mac/SystemVersionMac.mm:
3125         (WebCore::systemMarketingVersion):
3126
3127 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3128
3129         Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
3130
3131         Add missing iOS method declarations.
3132
3133         * bindings/js/JSDOMWindowBase.h:
3134
3135 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3136
3137         Fix InputType.o for iOS. Unreviewed build fix.
3138
3139         The RuntimeEnabledFeatures function pointer type should have a
3140         const qualifier, because the implementations are all const.
3141
3142         * html/InputType.cpp:
3143
3144 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3145
3146         Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
3147
3148         Add missing MediaPlayerProxy Objective C methods and forward declarations.
3149
3150         * platform/graphics/mac/MediaPlayerProxy.h:
3151
3152 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3153
3154         Fix FrameSelection.o for iOS. Unreviewed build fix.
3155
3156         r160966 renamed rendererIsEditable to hasEditableStyle.
3157
3158         * editing/FrameSelection.cpp:
3159         (WebCore::FrameSelection::setSelectionFromNone):
3160
3161 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3162
3163         Fix DragData.o for iOS. Unreviewed build fix.
3164
3165         String m_pasteboardName is unused on iOS, so ifdef it out.
3166
3167         * platform/DragData.h:
3168
3169 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3170
3171         Fix FrameIOS.o for iOS. Unreviewed build fix.
3172
3173         Remove stale include to file that no longer exists. It was not needed.
3174
3175         * page/ios/FrameIOS.mm:
3176
3177 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3178
3179         Fix MonthInputType.o for iOS. Unreviewed build fix.
3180
3181         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
3182         the wrong class name lingered. Fix it to be the base class.
3183
3184         * html/TimeInputType.cpp:
3185         (WebCore::TimeInputType::TimeInputType):
3186
3187 2014-01-10  Andy Estes  <aestes@apple.com>
3188
3189         [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
3190
3191         * DerivedSources.make:
3192         * bindings/scripts/preprocessor.pm:
3193         (applyPreprocessor):
3194
3195 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3196
3197         Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
3198         for a non-iOS function.
3199
3200         * bindings/objc/DOMExtensions.h:
3201
3202 2014-01-10  David Kilzer  <ddkilzer@apple.com>
3203
3204         Clean up architectures in xcconfig files
3205         <http://webkit.org/b/126794>
3206
3207         Reviewed by Andy Estes.
3208
3209         * Configurations/Base.xcconfig:
3210         * Configurations/WebCore.xcconfig: Remove armv6.
3211         * DerivedSources.make: Remove armv6, armv7f. Sort.
3212         - Add new arch.
3213
3214 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3215
3216         Fix iOS build
3217
3218         * Configurations/WebCore.xcconfig:
3219         * css/DeprecatedStyleBuilder.cpp:
3220         (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
3221
3222 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3223
3224         Fix iOS build.
3225         
3226         * html/DateTimeLocalInputType.h:
3227         (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
3228         * loader/ios/DiskImageCacheIOS.h:
3229
3230 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3231
3232         iOS build fix: add StyleRareInheritedData::compositionFillColor
3233
3234         * rendering/style/RenderStyle.h:
3235         * rendering/style/StyleRareInheritedData.cpp:
3236         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
3237         (WebCore::StyleRareInheritedData::operator==):
3238         * rendering/style/StyleRareInheritedData.h:
3239
3240 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3241
3242         Fix MonthInputType.o for iOS. Unreviewed build fix.
3243
3244         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
3245         BaseMonthInputType typedef was removed. However a use of it lingered.
3246         Changing to match the base class name.
3247
3248         * html/MonthInputType.h:
3249         (WebCore::MonthInputType::MonthInputType):
3250
3251 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3252
3253         Fix RenderButton.o for iOS. Unreviewed build fix.
3254
3255         Missing prototype in header for override of the layout method.
3256
3257         * rendering/RenderButton.h:
3258
3259 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3260
3261         A couple of iOS build fixes.
3262
3263         * accessibility/ios/AXObjectCacheIOS.mm:
3264         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
3265         * html/canvas/CanvasRenderingContext2D.cpp:
3266         (WebCore::CanvasRenderingContext2D::drawImage):
3267
3268 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3269
3270         Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
3271
3272         PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
3273         so remove the stale implementations on iOS. Also, add a notImplemented version
3274         of screenColorProfile, which matches Mac and is unused in WebCore for this port.
3275
3276         * platform/ios/PlatformScreenIOS.mm:
3277         (WebCore::screenColorProfile):
3278
3279 2014-01-10  Anders Carlsson  <andersca@apple.com>
3280
3281         CTTE FrameTree
3282         https://bugs.webkit.org/show_bug.cgi?id=126795
3283
3284         Reviewed by Tim Horton.
3285
3286         * page/Frame.cpp:
3287         (WebCore::Frame::Frame):
3288         * page/FrameTree.cpp:
3289         (WebCore::FrameTree::transferChild):
3290         (WebCore::FrameTree::appendChild):
3291         (WebCore::FrameTree::actuallyAppendChild):
3292         (WebCore::FrameTree::uniqueChildName):
3293         (WebCore::FrameTree::scopedChild):
3294         (WebCore::FrameTree::scopedChildCount):
3295         (WebCore::FrameTree::child):
3296         (WebCore::FrameTree::find):
3297         (WebCore::FrameTree::isDescendantOf):
3298         (WebCore::FrameTree::traverseNext):
3299         (WebCore::FrameTree::traverseNextWithWrap):
3300         (WebCore::FrameTree::traversePreviousWithWrap):
3301         (WebCore::FrameTree::deepLastChild):
3302         (WebCore::FrameTree::top):
3303         * page/FrameTree.h:
3304         (WebCore::FrameTree::FrameTree):
3305
3306 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3307
3308         Fix iOS build.
3309
3310         * loader/ResourceLoader.h:
3311
3312 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3313
3314         Fix iOS build.
3315
3316         * platform/graphics/ImageSource.h:
3317         (WebCore::ImageSource::acceleratedImageDecodingEnabled):
3318         (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
3319
3320 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3321
3322         Unreviewed EFL build fix after r161678.
3323
3324         static_cast a size_t to unsigned long for %lu format string.
3325
3326         * page/Console.cpp:
3327         (WebCore::internalAddMessage):
3328
3329 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
3330
3331         Remove the BlackBerry port from trunk
3332         https://bugs.webkit.org/show_bug.cgi?id=126715
3333
3334         Reviewed by Anders Carlsson.
3335
3336         * html/canvas/WebGLRenderingContext.cpp:
3337         (WebCore::WebGLRenderingContext::readPixels):
3338         * platform/graphics/ImageBuffer.cpp:
3339         * platform/graphics/ImageBufferData.h:
3340         * platform/graphics/IntPoint.h:
3341         * platform/graphics/IntRect.h:
3342         * platform/graphics/IntSize.h:
3343         * platform/graphics/MediaPlayer.cpp:
3344         * platform/graphics/NativeImagePtr.h:
3345         * platform/graphics/OpenGLESShims.h:
3346         * platform/graphics/Path.cpp:
3347         (WebCore::Path::addPathForRoundedRect):
3348         * platform/graphics/Path.h:
3349         * platform/graphics/PlatformLayer.h:
3350         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
3351         * platform/graphics/filters/CustomFilterValidatedProgram.h:
3352         * platform/graphics/filters/FilterOperation.h:
3353         * platform/graphics/gpu/DrawingBuffer.cpp:
3354         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
3355         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
3356         (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
3357         * platform/graphics/opengl/Extensions3DOpenGLES.h:
3358         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
3359         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
3360         (WebCore::GraphicsContext3D::prepareTexture):
3361         (WebCore::GraphicsContext3D::bindFramebuffer):
3362         (WebCore::GraphicsContext3D::compileShader):
3363         (WebCore::GraphicsContext3D::copyTexImage2D):
3364         (WebCore::GraphicsContext3D::copyTexSubImage2D):
3365         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
3366         (WebCore::GraphicsContext3D::readPixels):
3367         (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
3368         (WebCore::GraphicsContext3D::reshapeFBOs):
3369         * platform/network/NetworkStateNotifier.h:
3370         * platform/network/ResourceHandle.h:
3371         * platform/network/ResourceHandleInternal.h:
3372         * platform/network/ResourceRequestBase.cpp:
3373
3374 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3375
3376         Fix CharsetData.cpp build for iOS
3377         https://bugs.webkit.org/show_bug.cgi?id=126792
3378
3379         Reviewed by Mark Rowe.
3380
3381         CharsetData.cpp should have an empty CharsetTable list for iOS.
3382         Achieve this with an iOS-specific encodings.txt file.
3383
3384         * DerivedSources.make:
3385         * WebCore.xcodeproj/project.pbxproj:
3386         * platform/text/mac/ios-encodings.txt: Added.
3387
3388 2014-01-10  Anders Carlsson  <andersca@apple.com>
3389
3390         CTTE in NavigationScheduler
3391         https://bugs.webkit.org/show_bug.cgi?id=126788
3392
3393         Reviewed by Tim Horton.
3394
3395         * inspector/InspectorInstrumentation.cpp:
3396         (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
3397         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
3398         * inspector/InspectorInstrumentation.h:
3399         (WebCore::InspectorInstrumentation::frameScheduledNavigation):
3400         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
3401         * inspector/InspectorPageAgent.cpp:
3402         (WebCore::InspectorPageAgent::frameScheduledNavigation):
3403         (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
3404         * inspector/InspectorPageAgent.h:
3405         * loader/NavigationScheduler.cpp:
3406         (WebCore::ScheduledNavigation::shouldStartTimer):
3407         (WebCore::ScheduledNavigation::didStartTimer):
3408         (WebCore::ScheduledNavigation::didStopTimer):
3409         (WebCore::NavigationScheduler::NavigationScheduler):
3410         (WebCore::NavigationScheduler::clear):
3411         (WebCore::NavigationScheduler::shouldScheduleNavigation):
3412         (WebCore::NavigationScheduler::scheduleRedirect):
3413         (WebCore::NavigationScheduler::mustLockBackForwardList):
3414         (WebCore::NavigationScheduler::scheduleLocationChange):
3415         (WebCore::NavigationScheduler::scheduleFormSubmission):
3416         (WebCore::NavigationScheduler::scheduleRefresh):
3417         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
3418         (WebCore::NavigationScheduler::timerFired):
3419         (WebCore::NavigationScheduler::schedule):
3420         (WebCore::NavigationScheduler::startTimer):
3421         (WebCore::NavigationScheduler::cancel):
3422         * loader/NavigationScheduler.h:
3423         * page/Frame.cpp:
3424         (WebCore::Frame::Frame):
3425
3426 2014-01-10  Myles C. Maxfield  <mmaxfield@apple.com>
3427
3428         CSS word-spacing property does not obey percentages
3429         https://bugs.webkit.org/show_bug.cgi?id=126674
3430
3431         Reviewed by Simon Fraser.
3432
3433         One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
3434         take percentages (of the width of the space character) in CSS3. In order to
3435         implement this, the datatype must be changed from a float to a Length, which
3436         can hold percentage values. Then, during layout, we can query the width of
3437         the space character and update the Font's word-spacing value appropriately.
3438         However, the RenderStyle still holds on to the Length (as a rare inherited
3439         value).
3440
3441         Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
3442                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
3443                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
3444
3445         * css/CSSComputedStyleDeclaration.cpp:
3446         (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
3447         of style's Length value.
3448         * css/CSSParser.cpp:
3449         (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
3450         parsed the same way.
3451         * css/DeprecatedStyleBuilder.cpp:
3452         (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
3453         CSSValue and set the style's word spacing with it.
3454         (WebCore::ApplyPropertyWordSpacing::createHandler):
3455         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
3456         * page/animation/CSSPropertyAnimation.cpp:
3457         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
3458         * rendering/RenderBlockLineLayout.cpp:
3459         (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
3460         of style's Length value.
3461         * rendering/RenderText.cpp:
3462         (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
3463         * rendering/SimpleLineLayout.cpp:
3464         (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
3465         if either the percentage or the length is nonzero.
3466         * rendering/line/BreakingContextInlineHeaders.h:
3467         (WebCore::BreakingContext::handleText): Use Font's computed value instead
3468         of style's Length value.
3469         * rendering/style/RenderStyle.cpp:
3470         (WebCore::RenderStyle::wordSpacing):
3471         (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
3472         percentage values, but hold on to the original Length.
3473         * rendering/style/RenderStyle.h:
3474         * rendering/style/StyleRareInheritedData.cpp:
3475         * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
3476
3477 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3478
3479         Fix the iOS build.
3480
3481         * platform/audio/mac/MediaSessionManagerMac.cpp:
3482
3483 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
3484
3485         iOS doesn't have <OpenGL/gl.h>; fix iOS build.
3486
3487         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
3488
3489 2014-01-10  Andy Estes  <aestes@apple.com>
3490
3491         [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
3492
3493         * bindings/scripts/CodeGeneratorObjC.pm:
3494         (ReadPublicInterfaces):
3495
3496 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3497
3498         Web Inspector: Remove unimplemented or static ScriptDebugServer features
3499         https://bugs.webkit.org/show_bug.cgi?id=126784
3500
3501         Reviewed by Timothy Hatcher.
3502
3503         These features are unimplemented in the backend, and unused by the
3504         current frontend. Most deal with features that were supported by v8
3505         and are as yet unimplemented by JSC. If we decide to add such features
3506         we can reimplement without conforming to an old implementation.
3507
3508         * bindings/js/ScriptDebugServer.cpp:
3509         * bindings/js/ScriptDebugServer.h:
3510         * bindings/js/ScriptProfiler.h:
3511         * inspector/InspectorDebuggerAgent.cpp:
3512         (WebCore::InspectorDebuggerAgent::disable):
3513         * inspector/InspectorDebuggerAgent.h:
3514         * inspector/InspectorPageAgent.cpp:
3515         (WebCore::InspectorPageAgent::reload):
3516         (WebCore::InspectorPageAgent::frameNavigated):
3517         * inspector/InspectorPageAgent.h:
3518         * inspector/InspectorProfilerAgent.cpp:
3519         * inspector/InspectorProfilerAgent.h:
3520         * inspector/PageDebuggerAgent.cpp:
3521         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
3522         * inspector/protocol/Page.json:
3523         * inspector/protocol/Profiler.json:
3524
3525 2014-01-10  David Kilzer  <ddkilzer@apple.com>
3526
3527         [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
3528
3529         Fixes the following build error:
3530
3531             WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
3532                 TileMap::iterator end = m_tiles.end();
3533                                   ^
3534
3535         * platform/ios/TileGrid.mm:
3536         (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
3537         variable now that the for loop uses an auto iterator.
3538
3539 2014-01-10  Dean Jackson  <dino@apple.com>
3540
3541         Implement OES texture half float linear
3