4c27df31c888c1ca714039d5612564b307802a3b
[WebKit-https.git] / Source / WTF / ChangeLog
1 2013-11-26  Drew Yao  <ayao@apple.com>
2
3         ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
4         https://bugs.webkit.org/show_bug.cgi?id=124757
5
6         Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
7         in order to help screen fuzzing bugs.
8
9         Reviewed by Brent Fulgham.
10
11         * wtf/Assertions.cpp:
12         * wtf/Assertions.h:
13
14 2013-11-24  Tim Horton  <timothy_horton@apple.com>
15
16         Upstream USE(IOSURFACE) from the iOS port
17         https://bugs.webkit.org/show_bug.cgi?id=124814
18
19         Reviewed by Sam Weinig.
20
21         Some code guarded by USE(IOSURFACE) was recently upstreamed,
22         but not the definition of WTF_USE_IOSURFACE itself.
23
24         * wtf/Platform.h:
25
26 2013-11-23  Xabier Rodriguez Calvar  <calvaris@igalia.com>
27
28         [GStreamer] Remove 0.10 codepath
29         https://bugs.webkit.org/show_bug.cgi?id=124534
30
31         Reviewed by Philippe Normand.
32
33         * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
34         only codepath now.
35
36 2013-11-21  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
37
38         Remove ENABLE_WORKERS
39         https://bugs.webkit.org/show_bug.cgi?id=105784
40
41         Reviewed by Darin Adler.
42
43         * wtf/FeatureDefines.h:
44         * wtf/nix/FeatureDefinesNix.h:
45
46 2013-11-21  Mark Rowe  <mrowe@apple.com>
47
48         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
49
50         Reviewed by Alexey Proskuryakov.
51
52         * Configurations/Base.xcconfig:
53
54 2013-11-20  Mark Lam  <mark.lam@apple.com>
55
56         Introducing VMEntryScope to update the VM stack limit.
57         https://bugs.webkit.org/show_bug.cgi?id=124634.
58
59         Reviewed by Geoffrey Garen.
60
61         * wtf/Platform.h:
62         * wtf/StackBounds.h:
63         (WTF::StackBounds::StackBounds):
64
65 2013-11-18  Filip Pizlo  <fpizlo@apple.com>
66
67         Allow the FTL debug dumps to include the new size field
68         https://bugs.webkit.org/show_bug.cgi?id=124479
69
70         Reviewed by Mark Hahnenberg.
71
72         * wtf/PrintStream.cpp:
73         (WTF::printInternal):
74         * wtf/PrintStream.h:
75
76 2013-11-17  Jer Noble  <jer.noble@apple.com>
77
78         [WTF] Media time should not have a constructor which accepts a single int or float.
79         https://bugs.webkit.org/show_bug.cgi?id=124470
80
81         Having a constructor taking a single number value, as it's very easy to accidentially mis-
82         initialize a MediaTime with a double (automatically casted to a int64_t).
83
84         Reviewed by Eric Carlson.
85
86         * wtf/MediaTime.h:
87
88 2013-11-18  Csaba Osztrogon√°c  <ossy@webkit.org>
89
90         URTBF after r159432 to make WinCairo build happy.
91
92         * wtf/text/WTFString.h:
93
94 2013-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
95
96         Unreviewed. Fix make distcheck.
97
98         * GNUmakefile.list.am: Add missing header file.
99
100 2013-11-16  Alexey Proskuryakov  <ap@apple.com>
101
102         Use uint8_t vectors for WebCrypto data
103         https://bugs.webkit.org/show_bug.cgi?id=124466
104
105         Reviewed by Sam Weinig.
106
107         Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
108         binary data, in which case "uint8_t*" is more common.
109
110         Changed encode functions that took "const char *" to "const void*", and decode
111         functions that took "Vector<char>&" now take an adapter class.
112
113         The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
114
115         * wtf/text/Base64.cpp:
116         (WTF::base64Encode):
117         (WTF::base64URLEncode):
118         (WTF::base64DecodeInternal):
119         (WTF::base64Decode):
120         (WTF::base64URLDecode):
121         * wtf/text/Base64.h:
122         (WTF::SignedOrUnsignedCharVectorAdapter):
123         (WTF::ConstSignedOrUnsignedCharVectorAdapter):
124         (WTF::base64Encode):
125         (WTF::base64URLEncode):
126
127 2013-11-15  Alexey Proskuryakov  <ap@apple.com>
128
129         Support exporting symmetric keys as JWK
130         https://bugs.webkit.org/show_bug.cgi?id=124442
131
132         Reviewed by Sam Weinig.
133
134         Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
135         Added this mode for encode, and removed policy arguments from exposed functions.
136
137         * wtf/text/Base64.cpp:
138         (WTF::base64EncodeInternal):
139         (WTF::base64URLEncode):
140         (WTF::base64URLDecode):
141         * wtf/text/Base64.h:
142         (WTF::base64URLEncode):
143
144 2013-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
145
146         Remove VTableSpectrum
147         https://bugs.webkit.org/show_bug.cgi?id=124427
148
149         Reviewed by Filip Pizlo.
150
151         * wtf/Platform.h:
152
153 2013-11-15  Jer Noble  <jer.noble@apple.com>
154
155         MediaTime addition and subtraction operators have errors when the rhs is infinite.
156         https://bugs.webkit.org/show_bug.cgi?id=124413
157
158         Reviewed by Eric Carlson.
159
160         Correctly account for infinities that can occur on the right-hand side of addition or
161         subtraction operators.
162
163         * wtf/MediaTime.cpp:
164         (WTF::MediaTime::operator+):
165         (WTF::MediaTime::operator-):
166
167 2013-11-14  Oliver Hunt  <oliver@apple.com>
168
169         Make CLoop easier to build, and make it work
170         https://bugs.webkit.org/show_bug.cgi?id=124359
171
172         Reviewed by Geoffrey Garen.
173
174         Make building with the CLoop forcibly enabled manually
175         disable the JITs
176
177         * wtf/Platform.h:
178
179 2013-11-14  Andreas Kling  <akling@apple.com>
180
181         FontDescription copies should share families list, not duplicate it.
182         <https://webkit.org/b/124338>
183
184         Add RefCountedArray::operator==.
185
186         Reviewed by Antti Koivisto.
187
188 2013-11-13  Anders Carlsson  <andersca@apple.com>
189
190         Add a Vector constructor that takes an std::initializer_list
191         https://bugs.webkit.org/show_bug.cgi?id=124287
192
193         Reviewed by Antti Koivisto.
194
195         * wtf/Compiler.h:
196         * wtf/Vector.h:
197         (WTF::Vector::Vector):
198
199 2013-11-12  Brent Fulgham  <bfulgham@apple.com>
200
201         [Win] Unreviewed gardening.
202
203         * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
204         in their proper directories.
205
206 2013-11-12  Alex Christensen  <achristensen@webkit.org>
207
208         Build GStreamer files on Windows.
209         https://bugs.webkit.org/show_bug.cgi?id=124180
210
211         Reviewed by Brent Fulgham.
212
213         * WTF.vcxproj/WTF.vcxproj:
214         * WTF.vcxproj/WTF.vcxproj.filters:
215         * WTF.vcxproj/copy-files.cmd:
216         Include gobject files in WinCairo build.
217
218 2013-11-09  Filip Pizlo  <fpizlo@apple.com>
219
220         Switch FTL GetById/PutById IC's over to using AnyRegCC
221         https://bugs.webkit.org/show_bug.cgi?id=124094
222
223         Reviewed by Sam Weinig.
224         
225         I needed to add another set operation, namely filter(), which is an in-place set
226         intersection.
227
228         * wtf/BitVector.cpp:
229         (WTF::BitVector::filterSlow):
230         * wtf/BitVector.h:
231         (WTF::BitVector::filter):
232
233 2013-11-10  Ryuan Choi  <ryuan.choi@samsung.com>
234
235         [EFL] Build break on Ubuntu 13.10
236         https://bugs.webkit.org/show_bug.cgi?id=124131
237
238         Reviewed by Gyuyoung Kim.
239
240         Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
241
242         * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
243
244 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
245
246         Move RunLoop from WebCore to WTF
247         https://bugs.webkit.org/show_bug.cgi?id=116606
248
249         Reviewed by Anders Carlsson.
250
251         With this change RunLoop can be used in JavaScriptCore too.
252
253         * GNUmakefile.list.am:
254         * WTF.vcxproj/WTF.vcxproj:
255         * WTF.xcodeproj/project.pbxproj:
256         * wtf/CMakeLists.txt:
257         * wtf/PlatformBlackBerry.cmake:
258         * wtf/PlatformEfl.cmake:
259         * wtf/PlatformGTK.cmake:
260         * wtf/PlatformWin.cmake:
261         * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
262         (WTF::RunLoop::Holder::Holder):
263         (WTF::RunLoop::Holder::runLoop):
264         (WTF::RunLoop::initializeMainRunLoop):
265         (WTF::RunLoop::current):
266         (WTF::RunLoop::main):
267         (WTF::RunLoop::isMain):
268         (WTF::RunLoop::performWork):
269         (WTF::RunLoop::dispatch):
270         * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
271         (WTF::RunLoop::TimerBase::startRepeating):
272         (WTF::RunLoop::TimerBase::startOneShot):
273         (WTF::RunLoop::TimerBase::isRepeating):
274         (WTF::RunLoop::Timer::Timer):
275         (WTF::RunLoop::Timer::fired):
276         * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
277         (WTF::RunLoop::RunLoop):
278         (WTF::RunLoop::~RunLoop):
279         (WTF::RunLoop::wakeUp):
280         * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
281         (WTF::RunLoop::performWork):
282         (WTF::RunLoop::RunLoop):
283         (WTF::RunLoop::~RunLoop):
284         (WTF::RunLoop::runForDuration):
285         (WTF::RunLoop::wakeUp):
286         (WTF::RunLoop::run):
287         (WTF::RunLoop::stop):
288         (WTF::RunLoop::TimerBase::timerFired):
289         (WTF::RunLoop::TimerBase::TimerBase):
290         (WTF::RunLoop::TimerBase::~TimerBase):
291         (WTF::RunLoop::TimerBase::start):
292         (WTF::RunLoop::TimerBase::stop):
293         (WTF::RunLoop::TimerBase::isActive):
294         * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
295         (WTF::RunLoop::RunLoop):
296         (WTF::RunLoop::~RunLoop):
297         (WTF::RunLoop::run):
298         (WTF::RunLoop::stop):
299         (WTF::RunLoop::wakeUpEvent):
300         (WTF::RunLoop::wakeUp):
301         (WTF::RunLoop::TimerBase::TimerBase):
302         (WTF::RunLoop::TimerBase::~TimerBase):
303         (WTF::RunLoop::TimerBase::timerFired):
304         (WTF::RunLoop::TimerBase::start):
305         (WTF::RunLoop::TimerBase::stop):
306         (WTF::RunLoop::TimerBase::isActive):
307         * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
308         (WTF::RunLoop::RunLoop):
309         (WTF::RunLoop::~RunLoop):
310         (WTF::RunLoop::run):
311         (WTF::RunLoop::innermostLoop):
312         (WTF::RunLoop::pushNestedMainLoop):
313         (WTF::RunLoop::popNestedMainLoop):
314         (WTF::RunLoop::stop):
315         (WTF::RunLoop::queueWork):
316         (WTF::RunLoop::wakeUp):
317         (WTF::RunLoop::TimerBase::TimerBase):
318         (WTF::RunLoop::TimerBase::~TimerBase):
319         (WTF::RunLoop::TimerBase::clearTimerSource):
320         (WTF::RunLoop::TimerBase::timerFiredCallback):
321         (WTF::RunLoop::TimerBase::start):
322         (WTF::RunLoop::TimerBase::stop):
323         (WTF::RunLoop::TimerBase::isActive):
324         * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
325         (WTF::RunLoop::RunLoopWndProc):
326         (WTF::RunLoop::wndProc):
327         (WTF::RunLoop::run):
328         (WTF::RunLoop::stop):
329         (WTF::RunLoop::registerRunLoopMessageWindowClass):
330         (WTF::RunLoop::RunLoop):
331         (WTF::RunLoop::~RunLoop):
332         (WTF::RunLoop::wakeUp):
333         (WTF::RunLoop::TimerBase::timerFired):
334         (WTF::generateTimerID):
335         (WTF::RunLoop::TimerBase::TimerBase):
336         (WTF::RunLoop::TimerBase::~TimerBase):
337         (WTF::RunLoop::TimerBase::start):
338         (WTF::RunLoop::TimerBase::stop):
339         (WTF::RunLoop::TimerBase::isActive):
340
341 2013-11-08  Alexey Proskuryakov  <ap@apple.com>
342
343         Make base64url decoding actually work
344         https://bugs.webkit.org/show_bug.cgi?id=124050
345
346         Reviewed by Sam Weinig.
347
348         * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
349         alphabet, put it into the map.
350
351 2013-11-07  Denis Nomiyama  <d.nomiyama@samsung.com>
352
353         [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
354         https://bugs.webkit.org/show_bug.cgi?id=50619
355
356         Reviewed by Martin Robinson.
357
358         Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
359         currently using Freetype.
360
361         * wtf/Platform.h:
362
363 2013-11-06  Daniel Bates  <dabates@apple.com>
364
365         [iOS] Upstream Letterpress effect
366         https://bugs.webkit.org/show_bug.cgi?id=123932
367
368         Reviewed by Sam Weinig.
369
370         Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
371         letterpress on iOS.
372
373         * wtf/FeatureDefines.h:
374
375 2013-11-06  Nick Diego Yamane  <nick.yamane@openbossa.org>
376
377         Disable "unused local typedefs" warning for GCC 4.7
378         https://bugs.webkit.org/show_bug.cgi?id=123913
379
380         Reviewed by Martin Robinson.
381
382         That warning was actually introduced in gcc 4.7.0.
383         See: http://gcc.gnu.org/gcc-4.7/changes.html
384
385         * wtf/Compiler.h:
386
387 2013-11-06  Daniel Bates  <dabates@apple.com>
388
389         Add ENABLE(TEXT_SELECTION)
390         https://bugs.webkit.org/show_bug.cgi?id=123827
391
392         Reviewed by Ryosuke Niwa.
393
394         Enable selection painting by default on all ports except iOS.
395
396         * wtf/FeatureDefines.h:
397
398 2013-11-04  Alexey Proskuryakov  <ap@apple.com>
399
400         Implement base64url encoding from RFC 4648
401         https://bugs.webkit.org/show_bug.cgi?id=123767
402
403         Reviewed by Sam Weinig.
404
405         No tests yet, will be covered by JWK tests for WebCrypto.
406
407         * wtf/text/Base64.cpp:
408         (WTF::base64EncodeInternal):
409         (WTF::base64Encode):
410         (WTF::base64URLEncode):
411         (WTF::base64DecodeInternal):
412         (WTF::base64Decode):
413         (WTF::base64URLDecode):
414         * wtf/text/Base64.h:
415         (WTF::base64URLEncode):
416
417 2013-11-04  Brent Fulgham  <bfulgham@apple.com>
418
419         [Win] User VersionStamper for official builds
420         https://bugs.webkit.org/show_bug.cgi?id=123758
421
422         Reviewed by Tim Horton.
423
424         * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
425
426 2013-11-01  Jer Noble  <jer.noble@apple.com>
427
428         [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
429         https://bugs.webkit.org/show_bug.cgi?id=123621
430
431         Reviewed by Eric Carlson.
432
433         Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
434         to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
435         MediaPlayerPrivateAVFoundationObjC.mm.
436
437         * wtf/Platform.h:
438
439 2013-11-02  Patrick Gansterer  <paroga@webkit.org>
440
441         Fix compilation of DateMath.cpp with MSVC
442         https://bugs.webkit.org/show_bug.cgi?id=123680
443
444         Reviewed by Darin Adler.
445
446         * wtf/DateMath.cpp:
447         (WTF::appendTwoDigitNumber): Help the compiler finding the
448         correct overload by casting the characters to LChar.
449
450 2013-11-02  Filip Pizlo  <fpizlo@apple.com>
451
452         LLVM assertion failures should funnel into WTF's crash handling
453         https://bugs.webkit.org/show_bug.cgi?id=123682
454
455         Reviewed by Geoffrey Garen.
456         
457         Give JSC some new toys to play with for crash handling.
458
459         * wtf/Assertions.cpp:
460         * wtf/Assertions.h:
461
462 2013-11-02  Patrick Gansterer  <paroga@webkit.org>
463
464         Fix UnicodeWchar after r157330.
465         https://bugs.webkit.org/show_bug.cgi?id=123668
466
467         Reviewed by Darin Adler.
468
469         * wtf/unicode/wchar/UnicodeWchar.cpp:
470         (unorm_normalize):
471         (u_strFoldCase):
472         (u_strToLower):
473         (u_strToUpper):
474         * wtf/unicode/wchar/UnicodeWchar.h:
475         (u_foldCase):
476         (u_isprint):
477         (u_isspace):
478
479 2013-11-02  Andreas Kling  <akling@apple.com>
480
481         Make remaining StringImpl functions return PassRef.
482         <https://webkit.org/b/123683>
483
484         Okay, this seems to work well! Let's go all in and convert the
485         remaining StringImpl functions to return PassRef<StringImpl> instead
486         of PassRefPtr where we know that null is never returned.
487
488         Reviewed by Anders Carlsson.
489
490 2013-11-02  Andreas Kling  <akling@apple.com>
491
492         StringImpl::upper() should return PassRef.
493         <https://webkit.org/b/123655>
494
495         Make upper() return PassRef<StringImpl>. Spotted and removed some
496         ref churning in implementations.
497
498         Reviewed by Darin Adler.
499
500 2013-11-01  Alexey Proskuryakov  <ap@apple.com>
501
502         Add WebCrypto AES-CBC
503         https://bugs.webkit.org/show_bug.cgi?id=123647
504
505         Reviewed by Anders Carlsson.
506
507         * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
508
509         * wtf/Vector.h: Added a comment to Vector constructor about how it is different
510         from std::vector.
511
512 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
513
514         Unreviewed extended attempt at Windows build fix after r158471.
515
516         * wtf/text/cf/AtomicStringCF.cpp:
517         * wtf/text/cf/StringCF.cpp:
518         * wtf/text/cf/StringImplCF.cpp:
519
520 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
521
522         Unreviewed attempt at Windows build fix after r158471.
523
524         * wtf/text/cf/AtomicStringCF.cpp:
525         * wtf/text/cf/StringCF.cpp:
526         * wtf/text/cf/StringImplCF.cpp:
527
528 2013-11-01  Andreas Kling  <akling@apple.com>
529
530         Make more StringImpl construction helpers return PassRef.
531         <https://webkit.org/b/123652>
532
533         Tweak another handful of StringImpl constructor functions to return
534         PassRef<StringImpl> instead of PassRefPtr.
535
536         Reviewed by Anders Carlsson.
537
538 2013-11-01  Andreas Kling  <akling@apple.com>
539
540         Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
541         <https://webkit.org/b/123639>
542
543         When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
544         operator new/delete overrides in every class.
545
546         This change makes allocations group up nicely in Instruments,
547         instead of being split between "WTF::fastMalloc" and "operator new"
548         depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
549
550         Reviewed by Anders Carlsson.
551
552 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
553
554         Move CF/Mac WTF String implementations down into WTF
555         https://bugs.webkit.org/show_bug.cgi?id=123635
556
557         Reviewed by Sam Weinig.
558
559         * WTF.vcxproj/WTF.vcxproj:
560         * WTF.vcxproj/WTF.vcxproj.filters:
561         * WTF.xcodeproj/project.pbxproj:
562         * wtf/text/AtomicString.h:
563         * wtf/text/StringImpl.h:
564         * wtf/text/WTFString.h:
565         * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
566         (WTF::AtomicString::add):
567         * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
568         (WTF::String::String):
569         (WTF::String::createCFString):
570         * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
571         (garbageCollectionEnabled):
572         (WTF::StringWrapperCFAllocator::retain):
573         (WTF::StringWrapperCFAllocator::release):
574         (WTF::StringWrapperCFAllocator::copyDescription):
575         (WTF::StringWrapperCFAllocator::allocate):
576         (WTF::StringWrapperCFAllocator::reallocate):
577         (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
578         (WTF::StringWrapperCFAllocator::deallocate):
579         (WTF::StringWrapperCFAllocator::preferredSize):
580         (WTF::StringWrapperCFAllocator::create):
581         (WTF::StringWrapperCFAllocator::allocator):
582         (WTF::StringImpl::createCFString):
583         * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
584         (WTF::StringImpl::operator NSString *):
585         * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
586         (WTF::String::String):
587
588 2013-11-01  Emilio Pozuelo Monfort  <pochu27@gmail.com>
589
590         HPPA build fixes
591         https://bugs.webkit.org/show_bug.cgi?id=123625
592
593         Original patch from John David Anglin <dave.anglin@bell.net>
594
595         Reviewed by Darin Adler.
596
597         * wtf/Platform.h:
598         * wtf/dtoa/utils.h:
599
600 2013-11-01  Patrick Gansterer  <paroga@webkit.org>
601
602         Buildfix for !USE(ICU_UNICODE) after 156968.
603
604         * wtf/unicode/CollatorDefault.cpp:
605         (WTF::Collator::userDefault):
606
607 2013-10-30  Oliver Hunt  <oliver@apple.com>
608
609         Implement basic ES6 Math functions
610         https://bugs.webkit.org/show_bug.cgi?id=123536
611
612         Reviewed by Michael Saboff.
613
614         Add basic implementations of necessary methods to MathExtras to
615         deal with MSVC not supplying them
616
617         * wtf/MathExtras.h:
618         (asinh):
619         (acosh):
620         (atanh):
621         (expm1):
622         (log1p):
623         (cbrt):
624
625 2013-10-30  Commit Queue  <commit-queue@webkit.org>
626
627         Unreviewed, rolling out r158299.
628         http://trac.webkit.org/changeset/158299
629         https://bugs.webkit.org/show_bug.cgi?id=123558
630
631         caused assertion failures in fast/canvas/canvas-color-
632         serialization.html and fast/forms/input-text-paste-
633         maxlength.html (Requested by rniwa on #webkit).
634
635         * wtf/text/StringStatics.cpp:
636         (WTF::StringImpl::empty):
637
638 2013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
639
640         Remove code for Mac Lion
641         https://bugs.webkit.org/show_bug.cgi?id=123542
642
643         Reviewed by Anders Carlsson.
644
645         * wtf/Platform.h:
646
647 2013-10-30  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
648
649         Remove PCRE workaround.
650         https://bugs.webkit.org/show_bug.cgi?id=123265
651
652         Reviewed by Brent Fulgham.
653
654         * wtf/text/StringStatics.cpp:
655         (WTF::StringImpl::empty):
656
657 2013-10-30  peavo@outlook.com  <peavo@outlook.com>
658
659         [Win] Compile errors when enabling DFG JIT.
660         https://bugs.webkit.org/show_bug.cgi?id=120998
661
662         Reviewed by Brent Fulgham.
663
664         * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
665         (WTF::initializeCompilationThreads):
666         * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
667         (WTF::ThreadingOnce::ThreadingOnce):
668         (WTF::ThreadingOnce::~ThreadingOnce):
669         (WTF::ThreadingOnce::callOnce):
670         * wtf/text/CString.h: Export needed symbols.
671
672 2013-10-30  Alex Christensen  <achristensen@webkit.org>
673
674         Disabled JIT on Win64.
675         https://bugs.webkit.org/show_bug.cgi?id=122472
676
677         Reviewed by Geoffrey Garen.
678
679         * wtf/Platform.h:
680         Disabled JIT on Win64.
681
682 2013-10-29  Andreas Kling  <akling@apple.com>
683
684         StringImpl::isolatedCopy() should return PassRef.
685         <https://webkit.org/b/123484>
686
687         Make isolatedCopy() return a PassRef<StringImpl>.
688
689         Reviewed by Anders Carlsson.
690
691 2013-10-29  Jer Noble  <jer.noble@apple.com>
692
693         [MSE] [Mac] Enable MediaSource on the Mac
694         https://bugs.webkit.org/show_bug.cgi?id=122484
695
696         Reviewed by Darin Adler.
697
698         Enable ENABLE_MEDIA_SOURCE.
699
700         * wtf/FeatureDefines.h:
701         * wtf/Platform.h: Force a clean build.
702
703 2013-10-29  Andreas Kling  <akling@apple.com>
704
705         StringImpl::adopt() should return PassRef.
706         <https://webkit.org/b/123456>
707
708         Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
709
710         Reviewed by Anders Carlsson.
711
712 2013-10-29  Jinwoo Song  <jinwoo7.song@samsung.com>
713
714         Re-enable simple line layout for EFL
715         https://bugs.webkit.org/show_bug.cgi?id=123402
716
717         Reviewed by Antti Koivisto.
718
719         * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
720
721 2013-10-28  Anders Carlsson  <andersca@apple.com>
722
723         RunLoop::dispatch should take an std::function
724         https://bugs.webkit.org/show_bug.cgi?id=123407
725
726         Reviewed by Andreas Kling.
727
728         * wtf/FunctionDispatcher.h:
729
730 2013-10-28  Andreas Kling  <akling@apple.com>
731
732         RenderElement::m_style should be a Ref.
733         <https://webkit.org/b/123401>
734
735         Added a Ref::replace() so we can Indiana Jones the new style in
736         RenderElement::setStyle() while keeping a handle on the old style
737         for a while longer.
738
739         Reviewed by Antti Koivisto.
740
741 2013-10-28  Carlos Garcia Campos  <cgarcia@igalia.com>
742
743         Unreviewed. Fix make distcheck.
744
745         * GNUmakefile.list.am: Remove unexistent file from compilation.
746
747 2013-10-28  Bastien Nocera <hadess@hadess.net>
748
749         Replace 0 timeouts g_timeout_add() by g_idle_add()
750         https://bugs.webkit.org/show_bug.cgi?id=123260
751
752         Reviewed by Carlos Garcia Campos.
753
754         A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
755         without the nagging feeling that the wrong API was used.
756
757         * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
758         of 0-timer.
759         (WTF::scheduleDispatchFunctionsOnMainThread):
760
761 2013-10-28  Zan Dobersek  <zdobersek@igalia.com>
762
763         Re-enable simple line layout for GTK
764         https://bugs.webkit.org/show_bug.cgi?id=123388
765
766         Reviewed by Andreas Kling.
767
768         * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
769
770 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
771
772         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
773         https://bugs.webkit.org/show_bug.cgi?id=123111
774
775         Reviewed by Timothy Hatcher.
776
777         * wtf/FeatureDefines.h:
778
779 2013-10-25  Jer Noble  <jer.noble@apple.com>
780
781         [WTF] Add a multiplication operator (and a few others) to MediaTime
782         https://bugs.webkit.org/show_bug.cgi?id=123137
783
784         Reviewed by Eric Carlson.
785
786         Add a multiplication operator and an inequality operator to the
787         MediaTime class for use by MSE.
788
789         * wtf/MediaTime.cpp:
790         (WTF::signum): Moved to top of file.
791         (WTF::MediaTime::operator*): Added.
792         (WTF::MediaTime::operator!=): Added.
793         * wtf/MediaTime.h:
794         (WTF::operator*): Added non-class version of operator*.
795
796 2013-10-24  Jer Noble  <jer.noble@apple.com>
797
798         [Mac] Add helper methods to convert CMTime <--> MediaTime
799         https://bugs.webkit.org/show_bug.cgi?id=123285
800
801         Reviewed by Eric Carlson.
802
803         Add a #ifdef header_h protector.
804
805         * wtf/MediaTime.h:
806
807 2013-10-24  Mark Rowe  <mrowe@apple.com>
808
809         Remove references to OS X 10.7 from Xcode configuration settings.
810
811         Now that we're not building for OS X 10.7 they're no longer needed.
812
813         Reviewed by Anders Carlsson.
814
815         * Configurations/Base.xcconfig:
816         * Configurations/DebugRelease.xcconfig:
817
818 2013-10-24  Mark Rowe  <mrowe@apple.com>
819
820         <rdar://problem/15312643> Prepare for the mysterious future.
821
822         Reviewed by David Kilzer.
823
824         * Configurations/Base.xcconfig:
825         * Configurations/DebugRelease.xcconfig:
826
827 2013-10-24  Commit Queue  <commit-queue@webkit.org>
828
829         Unreviewed, rolling out r157931.
830         http://trac.webkit.org/changeset/157931
831         https://bugs.webkit.org/show_bug.cgi?id=123284
832
833         Seems to have caused a lot of assertions on debug bots
834         (Requested by ap on #webkit).
835
836         * wtf/text/StringStatics.cpp:
837         (WTF::StringImpl::empty):
838
839 2013-10-24  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
840
841         Remove PCRE workaround.
842         https://bugs.webkit.org/show_bug.cgi?id=123265
843
844         Reviewed by Darin Adler.
845
846         * wtf/text/StringStatics.cpp:
847         (WTF::StringImpl::empty):
848
849 2013-10-24  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
850
851         Remove Clang workaround.
852         https://bugs.webkit.org/show_bug.cgi?id=123262
853
854         Reviewed by Anders Carlsson.
855
856         * wtf/CheckedArithmetic.h:
857         (WTF::Checked::Checked):
858
859 2013-10-24  Ryuan Choi  <ryuan.choi@samsung.com>
860
861         [EFL] Build break with latest EFL 1.8 libraries.
862         https://bugs.webkit.org/show_bug.cgi?id=123245
863
864         Reviewed by Gyuyoung Kim.
865
866         After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
867         Eo typedef and splitted header files which contain version macro.
868
869         * wtf/OwnPtrCommon.h: Changed Eo typedef.
870         * wtf/efl/RefPtrEfl.h: Ditto.
871
872 2013-10-24  Carlos Garcia Campos  <cgarcia@igalia.com>
873
874         [GObject bindings] Make EventTarget interface introspectable
875         https://bugs.webkit.org/show_bug.cgi?id=77835
876
877         Reviewed by Gustavo Noronha Silva.
878
879         Add support for use GRefPtr with GClosure.
880
881         * wtf/gobject/GRefPtr.cpp:
882         (WTF::refGPtr):
883         (WTF::derefGPtr):
884         * wtf/gobject/GRefPtr.h:
885         * wtf/gobject/GTypedefs.h:
886
887 2013-10-23  Anders Carlsson  <andersca@apple.com>
888
889         Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
890         https://bugs.webkit.org/show_bug.cgi?id=123228
891
892         Reviewed by Geoffrey Garen.
893
894         All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
895
896         * wtf/Atomics.h:
897         * wtf/ThreadSafeRefCounted.h:
898         (WTF::ThreadSafeRefCountedBase::ref):
899         (WTF::ThreadSafeRefCountedBase::refCount):
900         (WTF::ThreadSafeRefCountedBase::derefBase):
901
902 2013-10-23  Anders Carlsson  <andersca@apple.com>
903
904         Remove HAVE_XPC
905         https://bugs.webkit.org/show_bug.cgi?id=123226
906
907         Reviewed by Dan Bernstein.
908
909         HAVE_XPC has been true on Mac since Lion, so remove it.
910
911         * wtf/Platform.h:
912
913 2013-10-23  Andreas Kling  <akling@apple.com>
914
915         Make more StringImpl construction functions return PassRef.
916         <https://webkit.org/b/123203>
917
918         Knock out a couple more of the StringImpl construction helpers that
919         always return a non-null StringImpl.
920
921         Reviewed by Antti Koivisto.
922
923 2013-10-22  Filip Pizlo  <fpizlo@apple.com>
924
925         FTL should be able to do some simple inline caches using LLVM patchpoints
926         https://bugs.webkit.org/show_bug.cgi?id=123164
927
928         Reviewed by Mark Hahnenberg.
929         
930         This needed some better bitvector support, like merging (|=), excluding (&=~),
931         hashing, and bit counting.
932
933         * wtf/BitVector.cpp:
934         (WTF::BitVector::setSlow):
935         (WTF::BitVector::excludeSlow):
936         (WTF::BitVector::bitCountSlow):
937         (WTF::BitVector::equalsSlowCase):
938         (WTF::BitVector::hashSlowCase):
939         (WTF::BitVector::dump):
940         * wtf/BitVector.h:
941         (WTF::BitVector::merge):
942         (WTF::BitVector::exclude):
943         (WTF::BitVector::bitCount):
944         (WTF::BitVector::BitVector):
945         (WTF::BitVector::isEmptyValue):
946         (WTF::BitVector::isDeletedValue):
947         (WTF::BitVector::isEmptyOrDeletedValue):
948         (WTF::BitVector::operator==):
949         (WTF::BitVector::hash):
950         (WTF::BitVectorHash::hash):
951         (WTF::BitVectorHash::equal):
952         * wtf/HashTraits.h:
953         (WTF::CustomHashTraits::constructDeletedValue):
954         (WTF::CustomHashTraits::isDeletedValue):
955         (WTF::CustomHashTraits::emptyValue):
956         (WTF::CustomHashTraits::isEmptyValue):
957         * wtf/StdLibExtras.h:
958         (WTF::bitCount):
959
960 2013-10-23  Allan Sandfeld Jensen  <allan.jensen@digia.com>
961
962         Clean-up in Atomics.h
963         https://bugs.webkit.org/show_bug.cgi?id=123207
964
965         Reviewed by Anders Carlsson.
966
967         Atomics.h has two confusing and bit-rotted ifdefs with comments.
968
969         The first about CPU(SPARC64) was rendered obsolete when we switched
970         from __exchange_and_add to __sync_add_and_fetch.
971
972         The second was caused by a wrong definition that apparently only
973         caused trouble on GCC.
974
975         * wtf/Atomics.h:
976
977 2013-10-22  Andreas Kling  <akling@apple.com>
978
979         StringImpl::lower() should return a PassRef.
980         <https://webkit.org/b/123190>
981
982         Test the waters and hack enough of StringImpl to be able to return
983         a PassRef<StringImpl> from lower().
984
985         Also gave String a constructor that takes a PassRef<StringImpl>.
986
987         Reviewed by Antti Koivisto.
988
989 2013-10-22  Commit Queue  <commit-queue@webkit.org>
990
991         Unreviewed, rolling out r157835.
992         http://trac.webkit.org/changeset/157835
993         https://bugs.webkit.org/show_bug.cgi?id=123192
994
995         broke 32-bit builds (Requested by smfr on #webkit).
996
997         * wtf/MediaTime.cpp:
998         (WTF::signum):
999         * wtf/MediaTime.h:
1000
1001 2013-10-22  Jer Noble  <jer.noble@apple.com>
1002
1003         [WTF] Add a multiplication operator (and a few others) to MediaTime
1004         https://bugs.webkit.org/show_bug.cgi?id=123137
1005
1006         Reviewed by Eric Carlson.
1007
1008         Add a multiplication operator and an inequality operator to the
1009         MediaTime class for use by MSE.
1010
1011         * wtf/MediaTime.cpp:
1012         (WTF::signum): Moved to top of file.
1013         (WTF::MediaTime::operator*): Added.
1014         (WTF::MediaTime::operator!=): Added.
1015         * wtf/MediaTime.h:
1016         (WTF::operator*): Added non-class version of operator*.
1017
1018 2013-10-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1019
1020         Make TYPE_CASTS_BASE more flexible
1021         https://bugs.webkit.org/show_bug.cgi?id=122951
1022
1023         Reviewed by Andreas Kling.
1024
1025         TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
1026         to be used by other type casts. For instance, CSSValue, Accessibility and so on.
1027         This patch modifies TYPE_CASTS_BASE which can support other type casts.
1028
1029         Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
1030
1031         * wtf/Assertions.h:
1032
1033 2013-10-20  Filip Pizlo  <fpizlo@apple.com>
1034
1035         StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
1036         https://bugs.webkit.org/show_bug.cgi?id=123076
1037
1038         Reviewed by Sam Weinig.
1039         
1040         Teach BitVector how to efficiently merge (i.e. bitvector |=).
1041
1042         * wtf/BitVector.cpp:
1043         (WTF::BitVector::mergeSlow):
1044         * wtf/BitVector.h:
1045         (WTF::BitVector::merge):
1046         (WTF::BitVector::cleanseInlineBits):
1047
1048 2013-10-19  Jer Noble  <jer.noble@apple.com>
1049
1050         Unreviewed roll out of r157695; broke Mac builds.
1051
1052         * wtf/FeatureDefines.h:
1053
1054 2013-10-07  Jer Noble  <jer.noble@apple.com>
1055
1056         [MSE] [Mac] Enable MediaSource on the Mac
1057         https://bugs.webkit.org/show_bug.cgi?id=122484
1058
1059         Reviewed by Darin Adler.
1060
1061         Enable ENABLE_MEDIA_SOURCE.
1062
1063         * wtf/FeatureDefines.h:
1064
1065 2013-10-19  Andreas Kling  <akling@apple.com>
1066
1067         RefPtr::releaseNonNull() incorrectly increments the refcount.
1068         <https://webkit.org/b/123063>
1069
1070         Make releaseNonNull() use adoptRef(T&), mirroring release().
1071
1072         Reviewed by Anders Carlsson.
1073
1074 2013-10-18  Andreas Kling  <akling@apple.com>
1075
1076         Start passing RenderStyle around with PassRef.
1077         <https://webkit.org/b/123051>
1078
1079         Added some new PassRef tricks to make this patch possible.
1080
1081         Reviewed by Darin Adler.
1082
1083         * wtf/PassRef.h:
1084         (WTF::PassRef::get):
1085
1086             Added a get() helper to facilitate writing functions that
1087             construct a new object and call some functions on it before
1088             returning it.
1089
1090         (WTF::PassRef::dropRef):
1091
1092             This will deref() the referenced object and mark the PassRef
1093             as "passed." This is used in code paths where the PassRef is
1094             going to go out of scope with nobody to take it over.
1095
1096         (WTF::PassRef::leakRef):
1097
1098             Renamed takeReference() to leakRef() and made it public so
1099             we don't have to awkwardly sink the PassRef into a Ref for
1100             e.g static locals.
1101
1102         * wtf/RefPtr.h:
1103         (WTF::RefPtr::releaseNonNull):
1104
1105             Added RefPtr::releaseNonNull() for a convenient way of creating
1106             a PassRef<T> from a RefPtr<T>. This function may only be called
1107             if the RefPtr is known to be non-null.
1108
1109 2013-10-18  Filip Pizlo  <fpizlo@apple.com>
1110
1111         A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
1112         https://bugs.webkit.org/show_bug.cgi?id=122940
1113
1114         Reviewed by Oliver Hunt.
1115
1116         * GNUmakefile.list.am:
1117         * WTF.vcxproj/WTF.vcxproj:
1118         * WTF.xcodeproj/project.pbxproj:
1119         * wtf/BagToHashMap.h: Added.
1120         (WTF::toHashMap):
1121         * wtf/CMakeLists.txt:
1122
1123 2013-10-18  Anders Carlsson  <andersca@apple.com>
1124
1125         Remove spaces between template angle brackets
1126         https://bugs.webkit.org/show_bug.cgi?id=123040
1127
1128         Reviewed by Andreas Kling.
1129
1130         * wtf/AVLTree.h:
1131         * wtf/CheckedArithmetic.h:
1132         * wtf/Compression.h:
1133         * wtf/Functional.h:
1134         (WTF::R):
1135         * wtf/HashFunctions.h:
1136         * wtf/HashIterators.h:
1137         * wtf/HashSet.h:
1138         (WTF::::contains):
1139         * wtf/ListHashSet.h:
1140         (WTF::::contains):
1141         * wtf/RefCountedLeakCounter.cpp:
1142         * wtf/RetainPtr.h:
1143         * wtf/SentinelLinkedList.h:
1144         (WTF::::remove):
1145         * wtf/SizeLimits.cpp:
1146         * wtf/StreamBuffer.h:
1147         * wtf/Vector.h:
1148         * wtf/VectorTraits.h:
1149         * wtf/WeakPtr.h:
1150         (WTF::WeakReference::create):
1151         (WTF::WeakReference::createUnbound):
1152         (WTF::WeakPtr::WeakPtr):
1153         (WTF::WeakPtrFactory::WeakPtrFactory):
1154         * wtf/text/AtomicString.cpp:
1155         (WTF::AtomicString::add):
1156         (WTF::findString):
1157         * wtf/text/StringConcatenate.h:
1158         * wtf/text/StringImpl.h:
1159         * wtf/text/StringOperators.h:
1160         (WTF::operator+):
1161
1162 2013-10-18  Brendan Long  <b.long@cablelabs.com>
1163
1164         [GStreamer][GTK] Add GRefPtr::outPtr()
1165         https://bugs.webkit.org/show_bug.cgi?id=122996
1166
1167         Reviewed by Philippe Normand.
1168
1169         * wtf/gobject/GRefPtr.h:
1170         (WTF::GRefPtr::outPtr): Added.
1171
1172 2013-10-17  Geoffrey Garen  <ggaren@apple.com>
1173
1174         Tidied up the Vector<T> move constructor
1175         https://bugs.webkit.org/show_bug.cgi?id=122998
1176
1177         Reviewed by Anders Carlsson.
1178
1179         * wtf/Vector.h:
1180         (WTF::::Vector): Don't call swap() "weird". It's the way most std types
1181         implement move constructors.
1182
1183         Do inline this function, so the compiler can optimize away a logical
1184         move into a physical no-op.
1185
1186 2013-10-16  Filip Pizlo  <fpizlo@apple.com>
1187
1188         Introduce WTF::Bag and start using it for InlineCallFrameSet
1189         https://bugs.webkit.org/show_bug.cgi?id=122941
1190
1191         Reviewed by Geoffrey Garen.
1192         
1193         Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
1194         malloc per entry. No need to shrink afterwards.
1195
1196         * GNUmakefile.list.am:
1197         * WTF.vcxproj/WTF.vcxproj:
1198         * WTF.xcodeproj/project.pbxproj:
1199         * wtf/Bag.h: Added.
1200         (WTF::Bag::Bag):
1201         (WTF::Bag::~Bag):
1202         (WTF::Bag::add):
1203         (WTF::Bag::iterator::iterator):
1204         (WTF::Bag::iterator::operator!):
1205         (WTF::Bag::iterator::operator*):
1206         (WTF::Bag::iterator::operator++):
1207         (WTF::Bag::iterator::operator==):
1208         (WTF::Bag::begin):
1209         (WTF::Bag::end):
1210         (WTF::Bag::isEmpty):
1211         * wtf/CMakeLists.txt:
1212
1213 2013-10-17  Andreas Kling  <akling@apple.com>
1214
1215         Make it possible to assign a PassRef to a RefPtr.
1216         <https://webkit.org/b/122943>
1217
1218         We have to use std::move when constructing a RefPtr from a PassRef
1219         since there is no copy constructor for the latter.
1220
1221         Reviewed by Antti Koivisto.
1222
1223 2013-10-16  Ryuan Choi  <ryuan.choi@samsung.com>
1224
1225         Unreviewed build fix attempt on EFL port after r157520 and r157523
1226
1227         * wtf/PassRef.h: includes <utility>
1228
1229 2013-10-16  Darin Adler  <darin@apple.com>
1230
1231         Add PassRef and createRefCounted so we can improve creation of RefCounted objects
1232         https://bugs.webkit.org/show_bug.cgi?id=122904
1233
1234         Reviewed by Anders Carlsson.
1235
1236         * GNUmakefile.list.am: Added PassRef.h.
1237         * WTF.vcxproj/WTF.vcxproj: Ditto.
1238         * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
1239         * WTF.xcodeproj/project.pbxproj: Ditto.
1240         * wtf/CMakeLists.txt: Ditto.
1241
1242         * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
1243         the style-checking script expects.
1244
1245         * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
1246         is analogous to make_unique, but is for reference counted objects, and also
1247         assumes that new will never return null. Also includes an overload of adoptRef
1248         that takes a reference rather than a pointer.
1249
1250         * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
1251         Got rid of declarations that duplicate ones in there.
1252         (WTF::refIfNotNull): Use nullptr.
1253         (WTF::derefIfNotNull): Use nullptr.
1254         (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
1255         (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
1256         (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
1257         (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
1258         of an unused boolean.
1259         (WTF::PassRefPtr::leakRef): Use nullptr.
1260         (WTF::adoptRef): Use the adopt tag.
1261
1262         * wtf/Ref.h: Use Noncopyable instead of rolling our own.
1263         (WTF::Ref::Ref): Add an overload that takes a PassRef.
1264         (WTF::Ref::operator=): Ditto.
1265
1266         * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
1267         (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
1268         (WTF::RefPtr::release): Use nullptr.
1269         (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
1270         (WTF::RefPtr::operator=): Added overload that takes a PassRef.
1271         (WTF::RefPtr::clear): Use nullptr.
1272
1273         * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
1274         reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
1275         were missing before.
1276
1277 2013-10-15  Dean Jackson  <dino@apple.com>
1278
1279         Add ENABLE_WEB_ANIMATIONS flag
1280         https://bugs.webkit.org/show_bug.cgi?id=122871
1281
1282         Reviewed by Tim Horton.
1283
1284         Eventually might be http://dev.w3.org/fxtf/web-animations/
1285         but this is just engine-internal work at the moment.
1286
1287         * wtf/FeatureDefines.h:
1288
1289 2013-10-15  Daniel Bates  <dabates@apple.com>
1290
1291         [iOS] Upstream JavaScriptCore support for ARM64
1292         https://bugs.webkit.org/show_bug.cgi?id=122762
1293
1294         Reviewed by Oliver Hunt.
1295
1296         * Configurations/Base.xcconfig:
1297         * wtf/Atomics.h:
1298         (WTF::weakCompareAndSwap):
1299         (WTF::armV7_dmb):
1300         * wtf/FastMalloc.cpp:
1301         * wtf/Platform.h:
1302         * wtf/dtoa.cpp:
1303         * wtf/dtoa/utils.h:
1304         * wtf/text/ASCIIFastPath.h:
1305         (WTF::copyLCharsFromUCharSource):
1306         * wtf/text/StringImpl.h:
1307
1308 2013-10-14  Zan Dobersek  <zdobersek@igalia.com>
1309
1310         Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
1311         https://bugs.webkit.org/show_bug.cgi?id=122745
1312
1313         Reviewed by Anders Carlsson.
1314
1315         * wtf/PassOwnPtr.h:
1316         (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
1317         the static assertion should note that adoptRef should be used instead.
1318
1319 2013-10-14  Anders Carlsson  <andersca@apple.com>
1320
1321         WebKit Nightlies broken by r157374
1322         https://bugs.webkit.org/show_bug.cgi?id=122736
1323
1324         Reviewed by Andreas Kling.
1325
1326         Add back a callOnMainThread overload that Safari is using.
1327
1328         * wtf/MainThread.cpp:
1329         (WTF::callOnMainThread):
1330         * wtf/MainThread.h:
1331
1332 2013-10-13  Darin Adler  <darin@apple.com>
1333
1334         Deprecate or remove deleteAllValues functions; there are only a few call sites left
1335         https://bugs.webkit.org/show_bug.cgi?id=122738
1336
1337         Reviewed by Anders Carlsson.
1338
1339         * wtf/Deque.h: Deleted deleteAllValues.
1340         * wtf/HashMap.h: Ditto.
1341         * wtf/HashSet.h: Ditto.
1342         * wtf/ListHashSet.h: Ditto.
1343         * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
1344
1345 == Rolled over to ChangeLog-2013-10-13 ==