1 2014-01-27 Joseph Pecoraro <pecoraro@apple.com>
3 WebCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
4 https://bugs.webkit.org/show_bug.cgi?id=127671
6 Reviewed by Ryosuke Niwa.
8 * wtf/text/WTFString.h:
11 2014-01-27 Jer Noble <jer.noble@apple.com>
13 [WK2] callOnMainThread() from main thread sometimes results in ASSERTs.
14 https://bugs.webkit.org/show_bug.cgi?id=127370
16 Reviewed by Alexey Proskuryakov.
18 When WEB_THREAD is enabled, and callOnMainThread() is called from the main
19 thread, if the web thread is locked, a timer is set and the passed-in function
20 is called on the next run-loop. However, by that time the web thread may have
21 been unlocked, and isMainThread() will no longer return true, resulting in
24 Instead, scheduleDispatchFunctionsOnMainThread() should check isWebThread(),
25 which is equivalent to isMainThread() when the WEB_THREAD is disabled, but
26 will do the correct thing when WEB_THREAD is enabled.
28 * wtf/mac/MainThreadMac.mm:
29 (WTF::scheduleDispatchFunctionsOnMainThread):
31 2014-01-27 Dan Bernstein <mitz@apple.com>
35 * wtf/ThreadSafeRefCounted.h: Added a necessary #include.
37 2014-01-25 Sam Weinig <sam@webkit.org>
39 Remove unused support for DRAGGABLE_REGION
40 https://bugs.webkit.org/show_bug.cgi?id=127642
42 Reviewed by Simon Fraser.
44 * wtf/FeatureDefines.h:
46 2014-01-25 Joseph Pecoraro <pecoraro@apple.com>
48 Add FALLTHROUGH and -Wimplicit-fallthrough to warn about unannotated implicit fallthroughs in switches
49 https://bugs.webkit.org/show_bug.cgi?id=127637
51 Reviewed by Darin Adler.
53 For information about [[clang::fallthrough]], see:
54 <http://clang.llvm.org/docs/LanguageExtensions.html#the-clang-fallthrough-attribute>
56 * Configurations/Base.xcconfig:
57 Enable -Wimplicit-fallthrough warnings.
60 Define FALLTHROUGH on clang and fallback to outputing nothing when unsupported.
62 * wtf/dtoa/fast-dtoa.cc:
63 * wtf/unicode/UTF8.cpp:
64 (WTF::Unicode::convertLatin1ToUTF8):
65 (WTF::Unicode::convertUTF16ToUTF8):
66 (WTF::Unicode::isLegalUTF8):
67 (WTF::Unicode::readUTF8Sequence):
68 Explicitly annotate implicit fallthroughs with FALLTHROUGH.
70 2014-01-25 Darin Adler <darin@apple.com>
72 Call deprecatedCharacters instead of characters at more call sites
73 https://bugs.webkit.org/show_bug.cgi?id=127631
75 Reviewed by Sam Weinig.
77 * wtf/text/StringImpl.cpp:
78 (WTF::StringImpl::replace):
79 * wtf/text/WTFString.h:
80 (WTF::String::isAllSpecialCharacters):
83 2014-01-25 Darin Adler <darin@apple.com>
85 Add a new separate LChar.h header file, to be used after we remove Unicode.h
86 https://bugs.webkit.org/show_bug.cgi?id=127630
88 Reviewed by Sam Weinig.
90 * GNUmakefile.list.am: Added the new file
91 * WTF.vcxproj/WTF.vcxproj: Ditto.
92 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
93 * WTF.xcodeproj/project.pbxproj: Ditto.
94 * wtf/CMakeLists.txt: Ditto.
95 * wtf/text/LChar.h: Added.
97 2014-01-25 Darin Adler <darin@apple.com>
99 Get rid of ICU_UNICODE and WCHAR_UNICODE remnants
100 https://bugs.webkit.org/show_bug.cgi?id=127623
102 Reviewed by Anders Carlsson.
104 * wtf/CMakeLists.txt: Removed WTF_USE_ICU_UNICODE and
105 WTF_USE_WCHAR_UNICODE since they are true and false respectively.
107 * wtf/Platform.h: Removed code to set WTF_USE_ICU_UNICODE.
109 * wtf/unicode/Collator.h: Removed ifdefs.
110 * wtf/unicode/CollatorDefault.cpp: Ditto.
111 * wtf/unicode/Unicode.h: Ditto.
112 * wtf/unicode/icu/CollatorICU.cpp: Ditto.
114 2014-01-25 Anders Carlsson <andersca@apple.com>
116 Remove atomicIncrement/atomicDecrement
117 https://bugs.webkit.org/show_bug.cgi?id=127625
119 Reviewed by Andreas Kling.
121 Replace atomicIncrement/atomicDecrement with std::atomic.
124 * wtf/RefCountedLeakCounter.cpp:
125 (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
126 (WTF::RefCountedLeakCounter::increment):
127 (WTF::RefCountedLeakCounter::decrement):
128 * wtf/RefCountedLeakCounter.h:
129 * wtf/ThreadSafeRefCounted.h:
130 (WTF::ThreadSafeRefCountedBase::ref):
131 (WTF::ThreadSafeRefCountedBase::refCount):
132 (WTF::ThreadSafeRefCountedBase::derefBase):
134 2014-01-25 Anders Carlsson <andersca@apple.com>
136 Modernize HashTable threading code
137 https://bugs.webkit.org/show_bug.cgi?id=127621
139 Reviewed by Darin Adler.
141 Use std::mutex and std::atomic instead of WTF threading primitives.
143 * wtf/DynamicAnnotations.h:
144 Include Platform.h here since this file relies on USE macros.
147 (WTF::HashTableStats::recordCollisionAtCount):
148 Change this to take an unsigned.
150 (WTF::HashTableStats::dumpStats):
152 (WTF::KeyTraits>::HashTable):
153 (WTF::KeyTraits>::remove):
154 (WTF::KeyTraits>::invalidateIterators):
155 Use a single probe counter.
158 (WTF::removeIterator):
160 2014-01-25 Darin Adler <darin@apple.com>
162 Restore alphabetical order in Compiler.h
163 https://bugs.webkit.org/show_bug.cgi?id=127620
165 Reviewed by Sam Weinig.
167 * wtf/Compiler.h: Resorted some things into alphabetical order
169 2014-01-24 Brent Fulgham <bfulgham@apple.com>
171 [Win] Convert some NMake files to MSBuild project files
172 https://bugs.webkit.org/show_bug.cgi?id=127579
174 Reviewed by Tim Horton.
176 * WTF.vcxproj/WTF.make: Removed.
177 * WTF.vcxproj/WTF.proj: Added.
179 2014-01-24 Anders Carlsson <andersca@apple.com>
181 Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
182 https://bugs.webkit.org/show_bug.cgi?id=127571
184 Reviewed by Antti Koivisto.
187 Add a CONSTEXPR define so we can still use constexpr on compilers that don't support them (MSVC).
190 Remove monotonicallyIncreasingTimeMS().
192 * wtf/StdLibExtras.h:
193 (std::literals::chrono_literals::operator _s):
194 (std::literals::chrono_literals::operator _ms):
195 Add _s and _ms literals. Once we switch over to C++14, we can drop them and just use the built-in ones.
197 2014-01-24 Anders Carlsson <andersca@apple.com>
199 The CXX_EXPLICIT_CONVERSIONS COMPILER_SUPPORTS macro has been removed, and all
200 compilers support explicit conversions now so simply remove the #ifdef.
204 2014-01-24 Darin Adler <darin@apple.com>
207 https://bugs.webkit.org/show_bug.cgi?id=127491
209 Reviewed by Anders Carlsson.
211 * wtf/Assertions.h: Remove COMPILER_SUPPORTS(CXX_STATIC_ASSERT), since
212 we now have that for all compilers that can build WebKit.
214 * wtf/Compiler.h: Removed always true feature flags, including:
215 COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES), COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES),
216 COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS), COMPILER_SUPPORTS(CXX_NULLPTR),
217 COMPILER_SUPPORTS(CXX_EXPLICIT_CONVERSIONS), COMPILER_SUPPORTS(CXX_STATIC_ASSERT),
218 COMPILER_SUPPORTS(CXX_OVERRIDE_CONTROL), COMPILER_SUPPORTS(CXX_STRONG_ENUMS), and
219 COMPILER_SUPPORTS(CXX_AUTO_TYPE). Sorted sections alphabetically. Separated out
220 nested #if and #else into separate checks for greater readability. Removed obsolete
221 check for COMPILER(RVCT). Removed unused COMPILER(GCCE) detection.
223 * wtf/RefPtr.h: Remove COMPILER_SUPPORTS(CXX_NULLPTR), since we now have
224 that for all compilers that can build WebKit.
225 * wtf/RetainPtr.h: Ditto.
227 2014-01-23 Max Vujovic <mvujovic@adobe.com>
229 Remove CSS Custom Filters code and tests
230 https://bugs.webkit.org/show_bug.cgi?id=127382
232 Reviewed by Simon Fraser.
234 * wtf/FeatureDefines.h:
236 2014-01-22 Brent Fulgham <bfulgham@apple.com>
238 [Win] Update project and solution files for 64-bit builds.
239 https://bugs.webkit.org/show_bug.cgi?id=127457
241 Reviewed by Eric Carlson.
243 * WTF.vcxproj/WTF.submit.sln: Add x64 targets.
244 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
246 2014-01-22 Myles C. Maxfield <mmaxfield@apple.com>
248 Remove CSS3_TEXT_DECORATION define
249 https://bugs.webkit.org/show_bug.cgi?id=127333
251 Reviewed by Simon Fraser.
253 This is required for unprefixing the text-decoration-* CSS properties.
257 2014-01-22 Jae Hyun Park <jae.park@company100.net>
259 Remove unnecessary include in Noncopyable.h
260 https://bugs.webkit.org/show_bug.cgi?id=127406
262 Reviewed by Anders Carlsson.
264 * wtf/Noncopyable.h: We don't need Compiler.h as of r162198.
266 2014-01-22 Carlos Garcia Campos <cgarcia@igalia.com>
269 https://bugs.webkit.org/show_bug.cgi?id=127170
271 Reviewed by Gustavo Noronha Silva.
273 The idea is to replace GOwnPtr with a template alias of
274 std:unique_ptr. Not everything can be replaced, though, because
275 GOwnPtr::outPtr() doesn't seem to be possible to implement with
276 unique_ptr. This smart pointer is more flexible than GOwnPtr and
277 allows to transfer the ownership of the pointer using
280 * GNUmakefile.list.am: Add new file to compilation.
281 * wtf/gobject/GUniquePtr.h: Added.
282 (WTF::GPtrDeleter::operator()):
284 2014-01-20 Anders Carlsson <andersca@apple.com>
286 Remove an unused member variable
287 https://bugs.webkit.org/show_bug.cgi?id=127295
289 Reviewed by Antti Koivisto.
291 * wtf/MainThread.cpp:
292 (WTF::FunctionWithContext::FunctionWithContext):
293 (WTF::FunctionWithContext::operator == ):
294 (WTF::dispatchFunctionsFromMainThread):
296 2014-01-20 Anders Carlsson <andersca@apple.com>
298 Remove MutexTryLocker
299 https://bugs.webkit.org/show_bug.cgi?id=127294
301 Reviewed by Antti Koivisto.
303 MutexTryLocker has been replaced with std::unique_lock with std::try_to_lock everywhere now.
305 * wtf/ThreadingPrimitives.h:
307 2014-01-19 Carlos Garcia Campos <cgarcia@igalia.com>
309 [GLIB] GVariant floating references are not correctly handled by GRefPtr
310 https://bugs.webkit.org/show_bug.cgi?id=127246
312 Reviewed by Martin Robinson.
314 GRefPtr should always use g_variant_ref_sink to deal with GVariant
315 floating references. In case of full references,
316 g_variant_ref_sink calls g_variant_ref, so it's safe to use it always.
318 * wtf/gobject/GRefPtr.cpp:
319 (WTF::refGPtr): Use g_variant_ref_sink().
321 2014-01-18 Anders Carlsson <andersca@apple.com>
323 Remove support for the viewsource attribute
324 https://bugs.webkit.org/show_bug.cgi?id=127232
326 Reviewed by Andreas Kling.
328 * wtf/FeatureDefines.h:
330 2014-01-18 Anders Carlsson <andersca@apple.com>
332 Remove ENABLE_THREADED_HTML_PARSER defines everywhere
333 https://bugs.webkit.org/show_bug.cgi?id=127225
335 Reviewed by Andreas Kling.
337 This concludes the removal of over 8.8 million lines of threaded parser code.
339 * wtf/FeatureDefines.h:
341 2014-01-17 Anders Carlsson <andersca@apple.com>
343 Add a callOnMainThreadAndWait variant in SocketStreamHandle
344 https://bugs.webkit.org/show_bug.cgi?id=127180
346 Reviewed by Geoffrey Garen.
348 Remove callOnMainThreadAndWait from WTF.
350 * wtf/MainThread.cpp:
353 2014-01-17 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
355 Remove workaround for compilers not supporting deleted functions
356 https://bugs.webkit.org/show_bug.cgi?id=127166
358 Reviewed by Andreas Kling.
364 2014-01-16 Benjamin Poulain <bpoulain@apple.com>
367 https://bugs.webkit.org/show_bug.cgi?id=127150
369 Reviewed by Alexey Proskuryakov.
371 * wtf/DisallowCType.h:
372 * wtf/FeatureDefines.h:
374 * wtf/PlatformNix.cmake: Removed.
377 2014-01-16 Anders Carlsson <andersca@apple.com>
380 https://bugs.webkit.org/show_bug.cgi?id=127149
382 Reviewed by Tim Horton.
386 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
388 Remove workaround for compilers not supporting explicit override control
389 https://bugs.webkit.org/show_bug.cgi?id=127111
391 Reviewed by Anders Carlsson.
393 Now all compilers support explicit override control, this workaround can be removed.
396 * wtf/FilePrintStream.h:
398 * wtf/StringPrintStream.h:
400 2014-01-16 Alberto Garcia <berto@igalia.com>
402 Source/WTF/wtf/Atomics.h:300: Error: bad register name `%bpl'
403 https://bugs.webkit.org/show_bug.cgi?id=126985
405 Reviewed by Csaba Osztrogonác.
407 Use the 'q' constraint to force using a register that allows
408 access to its lower byte.
411 (WTF::weakCompareAndSwap):
413 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
415 Fix unnecessary checks for Clang compiler if the compiler is MSVC.
416 https://bugs.webkit.org/show_bug.cgi?id=127037
418 Reviewed by Csaba Osztrogonác.
420 Inside the #if defined(_MSC_VER) there's no need for checking whether the compiler is not Clang.
424 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
426 Require at least GCC version 4.7
427 https://bugs.webkit.org/show_bug.cgi?id=127049
429 Reviewed by Csaba Osztrogonác.
431 r161770 added a template alias, so the minimum GCC version is 4.7 now.
433 Also fixed a typo in the error message about old MSVC version.
437 2014-01-15 Alberto Garcia <berto@igalia.com>
439 [GTK] v2.3.3 fails to build in Debian / FreeBSD
440 https://bugs.webkit.org/show_bug.cgi?id=126502
442 Reviewed by Mark Lam.
444 * wtf/Platform.h: Add LLINT support to FreeBSD.
446 2014-01-15 Anders Carlsson <andersca@apple.com>
448 Get rid of RefCountedCustomAllocated
449 https://bugs.webkit.org/show_bug.cgi?id=127051
451 Reviewed by Antti Koivisto.
453 It's not used anywhere anymore, get rid of it.
456 * wtf/SizeLimits.cpp:
458 2014-01-14 Anders Carlsson <andersca@apple.com>
460 And yet another build fix.
462 * wtf/SizeLimits.cpp:
464 2014-01-14 Anders Carlsson <andersca@apple.com>
468 * wtf/SizeLimits.cpp:
470 2014-01-14 Daniel Bates <dabates@apple.com>
472 [iOS] Enable WTF_USE_UIKIT_EDITING
476 2014-01-14 Daniel Bates <dabates@apple.com>
478 [iOS] Enable QuickLook
479 https://bugs.webkit.org/show_bug.cgi?id=126954
481 Reviewed by David Kilzer.
485 2014-01-14 Anders Carlsson <andersca@apple.com>
487 Get rid of ThreadRestrictionVerifier
488 https://bugs.webkit.org/show_bug.cgi?id=127004
490 Reviewed by Sam Weinig.
492 The ThreadRestrictionVerifier mechanism has been turned off for a while
493 since it doesn't really have a good solution for objects that are passed between threads.
494 Instead of having dead code in the tree, just get rid of it.
496 * GNUmakefile.list.am:
497 * WTF.vcxproj/WTF.vcxproj:
498 * WTF.vcxproj/WTF.vcxproj.filters:
499 * WTF.xcodeproj/project.pbxproj:
500 * wtf/CMakeLists.txt:
502 (WTF::RefCountedBase::ref):
503 (WTF::RefCountedBase::hasOneRef):
504 (WTF::RefCountedBase::refCount):
505 (WTF::RefCountedBase::derefBase):
506 * wtf/ThreadRestrictionVerifier.h: Removed.
508 2014-01-14 Benjamin Poulain <benjamin@webkit.org>
510 Enable the experimental selector code generator by default
511 https://bugs.webkit.org/show_bug.cgi?id=126953
513 Reviewed by Gavin Barraclough.
516 Enable CSS_SELECTOR_JIT on OS X x86_64 by default.
517 The feature is not ready to ship but it is stable enough to enable
518 for the bots and nightly.
520 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
522 Add ENABLE(WEB_REPLAY) feature flag to the build system
523 https://bugs.webkit.org/show_bug.cgi?id=126949
525 Reviewed by Joseph Pecoraro.
527 * wtf/FeatureDefines.h: for now, disable the flag by default.
529 2014-01-14 peavo@outlook.com <peavo@outlook.com>
531 [Win] Application name in user agent string is truncated.
532 https://bugs.webkit.org/show_bug.cgi?id=126810
534 Reviewed by Anders Carlsson.
536 * wtf/text/StringConcatenate.h:
537 (WTF::tryMakeString): Add missing 8 bit check for last argument.
539 2014-01-13 Anders Carlsson <andersca@apple.com>
541 Move another deprecated symbol to DeprecatedSymbolsUsedBySafari.mm
542 https://bugs.webkit.org/show_bug.cgi?id=126909
544 Reviewed by Ryosuke Niwa.
546 * wtf/MainThread.cpp:
548 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm:
549 (WTF::callOnMainThread):
551 2014-01-13 Anders Carlsson <andersca@apple.com>
555 * wtf/ThreadingWin.cpp:
556 (WTF::initializeThreading):
558 2014-01-13 Anders Carlsson <andersca@apple.com>
560 Remove AtomicallyInitializedStatic
561 https://bugs.webkit.org/show_bug.cgi?id=126864
563 Reviewed by Andreas Kling.
565 Remove the lockAtomicallyInitializedStaticMutex and unlockAtomicallyInitializedStaticMutex functions
566 everywhere except on Mac (where they unfortunately were used by Safari).
568 On Mac, add them to a separate file which will hold functions and symbols that we would like
569 to remove but that are used by Safari. Reimplement them in terms of std::call_once and std::mutex.
571 * WTF.xcodeproj/project.pbxproj:
573 * wtf/ThreadingPthreads.cpp:
574 (WTF::initializeThreading):
575 * wtf/ThreadingWin.cpp:
576 (WTF::initializeThreading):
577 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm: Added.
578 (WTF::atomicallyInitializedStaticMutex):
579 (WTF::lockAtomicallyInitializedStaticMutex):
580 (WTF::unlockAtomicallyInitializedStaticMutex):
582 2014-01-13 Commit Queue <commit-queue@webkit.org>
584 Unreviewed, rolling out r161855.
585 http://trac.webkit.org/changeset/161855
586 https://bugs.webkit.org/show_bug.cgi?id=126880
588 Sister commit of r161852 (Requested by kling on #webkit).
590 * wtf/ThreadingPthreads.cpp:
591 (WTF::initializeThreading):
593 2014-01-13 Commit Queue <commit-queue@webkit.org>
595 Unreviewed, rolling out r161852.
596 http://trac.webkit.org/changeset/161852
597 https://bugs.webkit.org/show_bug.cgi?id=126877
599 Broke ToT with system Safari (Requested by kling on #webkit).
602 * wtf/ThreadingPthreads.cpp:
603 (WTF::initializeThreading):
604 (WTF::lockAtomicallyInitializedStaticMutex):
605 (WTF::unlockAtomicallyInitializedStaticMutex):
606 * wtf/ThreadingWin.cpp:
607 (WTF::lockAtomicallyInitializedStaticMutex):
608 (WTF::unlockAtomicallyInitializedStaticMutex):
609 (WTF::initializeThreading):
611 2014-01-12 Commit Queue <commit-queue@webkit.org>
613 Unreviewed, rolling out r161840.
614 http://trac.webkit.org/changeset/161840
615 https://bugs.webkit.org/show_bug.cgi?id=126870
617 Caused jsscore and layout test failures (Requested by smfr on
620 * wtf/text/StringImpl.cpp:
621 (WTF::StringImpl::replace):
622 * wtf/text/WTFString.h:
623 (WTF::String::isAllSpecialCharacters):
625 2014-01-12 Dan Bernstein <mitz@apple.com>
627 Fix an assertion failure in initializeDates() when launching Safari, which was introduced in r161852.
629 Reviewed by Andy Estes.
631 * wtf/ThreadingPthreads.cpp:
632 (WTF::initializeThreading): Set isInitialized to true.
634 2014-01-12 Darin Adler <darin@apple.com>
636 Add PLATFORM(COCOA) and USE(FOUNDATION)
637 https://bugs.webkit.org/show_bug.cgi?id=126859
639 Reviewed by Anders Carlsson.
641 * wtf/Platform.h: Added PLATFORM(COCOA), which for now is set at exactly the same
642 times that PLATFORM(MAC) is. Added USE(FOUNDATION), which is set at the same times
643 that PLATFORM(COCOA) is. Re-organize the PLATFORM(MAC) and PLATFORM(IOS) settings
644 in the header so they are a bit easier to read. Put HAVE_LANGINFO_H in with the
645 rest of the OS(UNIX) settings and put HAVE_READLINE in with the rest of the
646 OS(DARWIN) settings. Tweak formatting a bit.
648 2014-01-12 Anders Carlsson <andersca@apple.com>
650 Remove AtomicallyInitializedStatic
651 https://bugs.webkit.org/show_bug.cgi?id=126864
653 Reviewed by Darin Adler.
656 * wtf/ThreadingPthreads.cpp:
657 (WTF::initializeThreading):
658 * wtf/ThreadingWin.cpp:
659 (WTF::initializeThreading):
661 2014-01-12 Darin Adler <darin@apple.com>
663 Add deprecatedCharacters as a synonym for characters and convert most call sites
664 https://bugs.webkit.org/show_bug.cgi?id=126858
666 Reviewed by Anders Carlsson.
668 * wtf/text/AtomicString.cpp:
669 (WTF::HashAndUTF8CharactersTranslator::equal):
670 (WTF::SubstringTranslator::hash):
671 (WTF::SubstringTranslator::equal):
672 * wtf/text/AtomicString.h:
673 (WTF::AtomicString::characters):
674 * wtf/text/Base64.cpp:
676 (WTF::base64URLDecode):
677 * wtf/text/StringBuilder.h:
678 (WTF::StringBuilder::characters):
679 (WTF::StringBuilder::deprecatedCharacters):
680 * wtf/text/StringImpl.cpp:
681 (WTF::StringImpl::getData16SlowCase):
682 (WTF::StringImpl::upper):
683 (WTF::StringImpl::lower):
684 (WTF::StringImpl::find):
685 (WTF::StringImpl::findIgnoringCase):
686 * wtf/text/StringImpl.h:
687 (WTF::StringImpl::characters):
688 (WTF::StringImpl::deprecatedCharacters):
689 (WTF::StringImpl::getCharacters<UChar>):
690 (WTF::equalIgnoringNullity):
691 * wtf/text/WTFString.cpp:
692 (WTF::String::append):
693 (WTF::String::appendInternal):
694 (WTF::String::insert):
695 (WTF::String::truncate):
696 (WTF::String::percentage):
697 * wtf/text/WTFString.h:
698 (WTF::String::characters):
699 (WTF::String::deprecatedCharacters):
700 (WTF::String::getCharactersWithUpconvert<UChar>):
702 Use deprecatedCharacters instead of characters.
704 2014-01-12 Anders Carlsson <andersca@apple.com>
706 Remove the last remaining uses of AtomicallyInitializedStatic
707 https://bugs.webkit.org/show_bug.cgi?id=126863
709 Reviewed by Darin Adler.
712 (WTF::hashTableStatsMutex):
713 (WTF::HashTableStats::recordCollisionAtCount):
714 (WTF::HashTableStats::dumpStats):
715 * wtf/unicode/icu/CollatorICU.cpp:
716 (WTF::cachedCollatorMutex):
717 (WTF::Collator::createCollator):
718 (WTF::Collator::releaseCollator):
720 2014-01-12 Darin Adler <darin@apple.com>
722 Reduce use of String::characters
723 https://bugs.webkit.org/show_bug.cgi?id=126854
725 Reviewed by Sam Weinig.
727 * wtf/text/StringImpl.cpp:
728 (WTF::StringImpl::replace): Use characters16 here since is8Bit was already checked.
729 * wtf/text/WTFString.h:
730 (WTF::String::isAllSpecialCharacters): Use characters16 here since is8Bit was
731 already checked. Also renamed "len" to "length".
733 2014-01-12 Anders Carlsson <andersca@apple.com>
735 Replace more uses of AtomicallyInitializedStatic with std::call_once
736 https://bugs.webkit.org/show_bug.cgi?id=126847
738 Reviewed by Sam Weinig.
741 Forward declare NeverDestroyed.
743 2014-01-11 Zan Dobersek <zdobersek@igalia.com>
745 Unreviewed build fix for ports using GCC after r161770.
747 * wtf/IteratorAdaptors.h:
748 (WTF::FilterIterator::operator*): Replicating r161797, the const qualifier for
749 FilterIterator::operator*() is removed since it clashes with some iterator types
750 that are also const, causing compilation failures with GCC.
752 2014-01-11 Anders Carlsson <andersca@apple.com>
754 Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
755 https://bugs.webkit.org/show_bug.cgi?id=126837
757 Reviewed by Sam Weinig.
760 (WTF::HashSet::HashSet):
761 Add a HashSet constructor that takes an initializer list.
763 2014-01-11 Sam Weinig <sam@webkit.org>
767 * wtf/IteratorAdaptors.h:
768 (WTF::TransformIterator::operator*):
770 2014-01-11 Sam Weinig <sam@webkit.org>
772 Add support for null StringViews
773 https://bugs.webkit.org/show_bug.cgi?id=126827
775 Reviewed by Anders Carlsson.
777 - Do some style cleanup while in the neighborhood.
779 * wtf/text/StringView.h:
780 (WTF::StringView::StringView):
781 Add default constructor to create a null StringView.
783 (WTF::StringView::isNull):
784 Add isNull(), matching the semantics of String.
786 (WTF::StringView::operator bool):
787 Add an explicit operator bool() to allow use in if-statements.
789 2014-01-11 Sam Weinig <sam@webkit.org>
791 Clean up iterator filter / iterator range code
792 https://bugs.webkit.org/show_bug.cgi?id=126817
794 Reviewed by Anders Carlsson.
796 - Renames IteratorPair to IteratorRange.
797 - Splits FilterIterator into FilterIterator (which now only filters) and
798 TransformIterator (which does the transform part of the old FilterIterator).
799 Move both of these to IteratorAdaptors.h
801 * GNUmakefile.list.am:
802 * WTF.vcxproj/WTF.vcxproj:
803 * WTF.vcxproj/WTF.vcxproj.filters:
804 * WTF.xcodeproj/project.pbxproj:
805 * wtf/CMakeLists.txt:
806 * wtf/FilterIterator.h: Removed.
810 (WTF::HashMap::keys):
811 (WTF::HashMap::values):
812 * wtf/RefPtrHashMap.h:
813 Update for rename to IteratorRange. Simplify by using makeIteratorRange().
815 * wtf/IteratorAdaptors.h: Copied from wtf/FilterIterator.h.
816 (WTF::FilterIterator::FilterIterator):
817 (WTF::FilterIterator::operator*):
818 (WTF::makeFilterIterator):
819 (WTF::TransformIterator::TransformIterator):
820 (WTF::TransformIterator::operator++):
821 (WTF::TransformIterator::operator*):
822 (WTF::TransformIterator::operator==):
823 (WTF::TransformIterator::operator!=):
824 (WTF::makeTransformIterator):
825 Split up filtering and transforming. Add makeFilterIterator() and makeTransformIterator()
828 * wtf/IteratorPair.h: Removed.
829 * wtf/IteratorRange.h: Copied from wtf/IteratorPair.h.
830 (WTF::IteratorRange::IteratorRange):
831 (WTF::makeIteratorRange):
832 Renamed to IteratorRange and adds makeIteratorRange() helper.
834 2014-01-10 David Kilzer <ddkilzer@apple.com>
836 Clean up architectures in xcconfig files
837 <http://webkit.org/b/126794>
839 Reviewed by Andy Estes.
841 * Configurations/Base.xcconfig:
844 2014-01-10 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
846 [EFL][JSC] Enable udis86 disassembler on efl.
847 https://bugs.webkit.org/show_bug.cgi?id=125502
849 Reviewed by Michael Saboff.
851 Enable udis86 disassembler on efl and fix build warnings.
854 Enable udis86 disassembler on EFL.
856 2014-01-10 Hunseop Jeong <hs85.jeong@samsung.com>
858 [EFL] Enable the DFG_JIT on ARMv7
859 https://bugs.webkit.org/show_bug.cgi?id=126742
861 Reviewed by Gyuyoung Kim.
863 Turn on ENABLE_DFG_JIT on ARMv7 for EFL.
867 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
869 Marking should be generational
870 https://bugs.webkit.org/show_bug.cgi?id=126552
872 Reviewed by Geoffrey Garen.
875 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
876 is used with smaller types than int32_t.
878 2014-01-09 Simon Fraser <simon.fraser@apple.com>
880 Enable async scrolling for iOS
881 https://bugs.webkit.org/show_bug.cgi?id=126730
883 Reviewed by Tim Horton.
885 Turn on ENABLE_ASYNC_SCROLLING for iOS.
887 * wtf/FeatureDefines.h:
889 2014-01-09 Anders Carlsson <andersca@apple.com>
891 Remove Blackberry and QNX bits from WTF
892 https://bugs.webkit.org/show_bug.cgi?id=126726
894 Reviewed by Benjamin Poulain.
896 * wtf/Assertions.cpp:
898 * wtf/CurrentTime.cpp:
899 (WTF::currentCPUTime):
901 * wtf/DisallowCType.h:
902 * wtf/FeatureDefines.h:
905 * wtf/NumberOfCores.cpp:
906 (WTF::numberOfProcessorCores):
907 * wtf/OSAllocatorPosix.cpp:
908 (WTF::OSAllocator::reserveUncommitted):
909 (WTF::OSAllocator::commit):
910 (WTF::OSAllocator::decommit):
912 * wtf/PlatformBlackBerry.cmake: Removed.
914 (WTF::computeRAMSize):
915 * wtf/StackBounds.cpp:
916 * wtf/ThreadingPthreads.cpp:
917 (WTF::initializeThreading):
918 (WTF::initializeCurrentThreadInternal):
919 * wtf/blackberry/MainThreadBlackBerry.cpp: Removed.
920 * wtf/blackberry/RunLoopBlackBerry.cpp: Removed.
921 * wtf/text/AtomicString.h:
922 * wtf/text/StringImpl.h:
923 * wtf/text/WTFString.h:
925 2014-01-09 Daniel Bates <dabates@apple.com>
927 [iOS] Upstream WebCore/platform changes
928 https://bugs.webkit.org/show_bug.cgi?id=126654
930 Rubber-stamped by David Kilzer.
932 * wtf/MainThread.cpp:
933 (WTF::canAccessThreadLocalDataForThread):
936 2014-01-09 Commit Queue <commit-queue@webkit.org>
938 Unreviewed, rolling out r161540.
939 http://trac.webkit.org/changeset/161540
940 https://bugs.webkit.org/show_bug.cgi?id=126704
942 Caused assertion failures on multiple tests (Requested by ap
946 (WTF::WordType>::count):
948 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
950 Marking should be generational
951 https://bugs.webkit.org/show_bug.cgi?id=126552
953 Reviewed by Geoffrey Garen.
956 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
957 is used with smaller types than int32_t.
959 2014-01-08 Anders Carlsson <andersca@apple.com>
961 Add WTF::StringView and use it for grammar checking
962 https://bugs.webkit.org/show_bug.cgi?id=126644
964 Reviewed by Antti Koivisto.
966 Add a new StringView class which is an immutable reference to either an 8-bit or a 16-bit string.
968 This makes it easier to pass substrings around without having to either copy string data
969 or upconvert and use UChar pointers.
971 The StringView class is very loosely based on the std::string_view class which is proposed for a future version of C++,
972 see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3609.html for more details.
974 * GNUmakefile.list.am:
975 * WTF.vcxproj/WTF.vcxproj:
976 * WTF.vcxproj/WTF.vcxproj.filters:
977 * WTF.xcodeproj/project.pbxproj:
978 * wtf/CMakeLists.txt:
980 * wtf/text/StringView.h: Added.
981 (WTF::StringView::StringView):
982 (WTF::StringView::empty):
983 (WTF::StringView::characters8):
984 (WTF::StringView::characters16):
985 (WTF::StringView::isEmpty):
986 (WTF::StringView::length):
987 (WTF::StringView::is8Bit):
988 (WTF::StringView::substring):
989 (WTF::StringView::toString):
990 (WTF::StringView::toStringWithoutCopying):
991 (WTF::StringView::encodedCharacters):
993 2014-01-07 David Farler <dfarler@apple.com>
995 [ASAN] Building with trunk clang corrupts sandbox profile with comment from Compiler.h
996 https://bugs.webkit.org/show_bug.cgi?id=124532
998 Reviewed by David Kilzer.
1001 Remove this quirk - it does nothing.
1003 2014-01-06 Filip Pizlo <fpizlo@apple.com>
1005 Get rid of ENABLE(VALUE_PROFILER). It's on all the time now.
1007 Rubber stamped by Mark Hahnenberg.
1011 2014-01-06 Zan Dobersek <zdobersek@igalia.com>
1013 Remove using directives for the std namespace from WTF
1014 https://bugs.webkit.org/show_bug.cgi?id=126524
1016 Reviewed by Alexey Proskuryakov.
1018 Remove the using directives for the std namespace throughout the WTF code.
1019 The more explicit std:: nested name specifier should be used instead.
1021 * wtf/MediaTime.cpp:
1022 (WTF::MediaTime::createWithFloat):
1023 (WTF::MediaTime::createWithDouble):
1024 * wtf/text/StringImpl.cpp:
1025 (WTF::StringImpl::create):
1026 (WTF::StringImpl::lower):
1027 (WTF::StringImpl::upper):
1028 (WTF::StringImpl::foldCase):
1029 (WTF::StringImpl::find):
1030 (WTF::StringImpl::findIgnoringCase):
1031 (WTF::reverseFindInner):
1032 (WTF::StringImpl::reverseFind):
1033 (WTF::reverseFindIgnoringCaseInner):
1034 (WTF::StringImpl::reverseFindIgnoringCase):
1035 (WTF::StringImpl::replace):
1036 (WTF::StringImpl::utf8ForCharacters):
1037 (WTF::StringImpl::utf8ForRange):
1038 * wtf/text/WTFString.cpp:
1039 (WTF::String::append):
1040 (WTF::String::appendInternal):
1041 (WTF::String::insert):
1042 (WTF::String::substringSharingImpl):
1043 (WTF::String::fromUTF8):
1044 (WTF::toIntegralType):
1045 * wtf/win/RunLoopWin.cpp:
1047 2014-01-03 Mark Hahnenberg <mhahnenberg@apple.com>
1049 DoublyLinkedLists can't be concatenated
1050 https://bugs.webkit.org/show_bug.cgi?id=125976
1052 Reviewed by Filip Pizlo.
1054 * wtf/DoublyLinkedList.h:
1055 (WTF::DoublyLinkedList<T>::append):
1057 2014-01-04 Zan Dobersek <zdobersek@igalia.com>
1059 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
1060 https://bugs.webkit.org/show_bug.cgi?id=126439
1062 Reviewed by Andreas Kling.
1064 * wtf/VectorTraits.h: Stop bringing std::pair into the current scope.
1066 2014-01-02 Gavin Barraclough <barraclough@apple.com>
1068 Refactor NSActivity handling code from ChildProcess to UserActivity
1069 https://bugs.webkit.org/show_bug.cgi?id=126330
1071 Reviewed by Sam Weinig.
1073 UserActivity is a mechanism to express to the operating system (where appropriate)
1074 that a user initiated activity is taking place, and as such that resources should be
1075 made available to the process accordingly.
1077 Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us
1078 to hold different activity tokens for different user actions (which simplifies the
1079 handling, and aides debugging since the token can more accurately express the activity
1080 taking place), and also will allow us to avoid the layering difficulty of calling back
1081 up the stack to WebKit to register that an activity is taking place.
1084 - added HAVE_NS_ACTIVITY.
1086 2013-12-30 Commit Queue <commit-queue@webkit.org>
1088 Unreviewed, rolling out r161157, r161158, r161160, r161161,
1089 r161163, and r161165.
1090 http://trac.webkit.org/changeset/161157
1091 http://trac.webkit.org/changeset/161158
1092 http://trac.webkit.org/changeset/161160
1093 http://trac.webkit.org/changeset/161161
1094 http://trac.webkit.org/changeset/161163
1095 http://trac.webkit.org/changeset/161165
1096 https://bugs.webkit.org/show_bug.cgi?id=126332
1098 Broke WebKit2 on Mountain Lion (Requested by ap on #webkit).
1100 * GNUmakefile.list.am:
1101 * WTF.vcxproj/WTF.vcxproj:
1102 * WTF.vcxproj/WTF.vcxproj.filters:
1103 * WTF.xcodeproj/project.pbxproj:
1104 * wtf/CMakeLists.txt:
1106 * wtf/PlatformWin.cmake:
1107 * wtf/threads/BinarySemaphore.cpp: Added.
1108 (WTF::BinarySemaphore::BinarySemaphore):
1109 (WTF::BinarySemaphore::~BinarySemaphore):
1110 (WTF::BinarySemaphore::signal):
1111 (WTF::BinarySemaphore::wait):
1112 * wtf/threads/BinarySemaphore.h: Added.
1113 (WTF::BinarySemaphore::event):
1114 * wtf/threads/win/BinarySemaphoreWin.cpp: Added.
1115 (WTF::BinarySemaphore::BinarySemaphore):
1116 (WTF::BinarySemaphore::~BinarySemaphore):
1117 (WTF::BinarySemaphore::signal):
1118 (WTF::BinarySemaphore::wait):
1120 2013-12-30 Anders Carlsson <andersca@apple.com>
1122 Replace yield() and pauseBriefly() with std::this_thread::yield()
1123 https://bugs.webkit.org/show_bug.cgi?id=126105
1125 Reviewed by Sam Weinig.
1127 * wtf/ByteSpinLock.h:
1128 (WTF::ByteSpinLock::lock):
1130 * wtf/ThreadingPrimitives.h:
1131 * wtf/ThreadingPthreads.cpp:
1132 * wtf/ThreadingWin.cpp:
1134 2013-12-30 Sam Weinig <sam@webkit.org>
1136 Remove unnecessary non-const overload in IteratorPair
1137 https://bugs.webkit.org/show_bug.cgi?id=126314
1139 Reviewed by Anders Carlsson.
1141 * wtf/IteratorPair.h:
1143 2013-12-30 Sam Weinig <sam@webkit.org>
1145 Remove WTF's BinarySemaphore
1146 https://bugs.webkit.org/show_bug.cgi?id=126310
1148 Reviewed by Anders Carlsson.
1150 It's unused. Also remove the now empty wtf/threads directory.
1152 * GNUmakefile.list.am:
1153 * WTF.vcxproj/WTF.vcxproj:
1154 * WTF.vcxproj/WTF.vcxproj.filters:
1155 * WTF.xcodeproj/project.pbxproj:
1156 * wtf/CMakeLists.txt:
1158 * wtf/PlatformWin.cmake:
1159 * wtf/threads: Removed.
1160 * wtf/threads/BinarySemaphore.cpp: Removed.
1161 * wtf/threads/BinarySemaphore.h: Removed.
1162 * wtf/threads/win: Removed.
1163 * wtf/threads/win/BinarySemaphoreWin.cpp: Removed.
1165 2013-12-30 Roger Fong <roger_fong@apple.com>
1167 [Windows] Unreviewed build fix following r160959.
1171 2013-12-30 Anders Carlsson <andersca@apple.com>
1173 Replace WTF::ThreadingOnce with std::call_once
1174 https://bugs.webkit.org/show_bug.cgi?id=126215
1176 Reviewed by Sam Weinig.
1178 * GNUmakefile.list.am:
1179 * wtf/CompilationThread.cpp:
1180 (WTF::initializeCompilationThreads):
1181 * wtf/ThreadingOnce.h: Removed.
1183 2013-12-26 Sam Weinig <sam@webkit.org>
1185 Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys() and HashMap::values() using IteratorPair
1186 https://bugs.webkit.org/show_bug.cgi?id=126253
1188 Reviewed by Anders Carlsson.
1190 * GNUmakefile.list.am:
1191 * WTF.vcxproj/WTF.vcxproj:
1192 * WTF.vcxproj/WTF.vcxproj.filters:
1193 * WTF.xcodeproj/project.pbxproj:
1194 * wtf/CMakeLists.txt:
1198 * wtf/RefPtrHashMap.h:
1199 Remove the old implementation of keys() and values() and replace it with one
1200 that uses IteratorPair.
1202 * wtf/FilterIterator.h: Copied from Source/WebKit2/Shared/FilterIterator.h.
1203 * wtf/IteratorPair.h: Copied from Source/WebKit2/Shared/IteratorPair.h.
1205 2013-12-27 Daniel Bates <dabates@apple.com>
1207 [iOS] Upstream WebCore/page changes
1208 https://bugs.webkit.org/show_bug.cgi?id=126180
1210 Reviewed by Darin Adler.
1212 * wtf/FeatureDefines.h: Define ENABLE_IOS_TOUCH_EVENTS to be enabled by default
1213 when building iOS with ENABLE(TOUCH_EVENTS).
1215 2013-12-25 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1217 [Nix] Building with DRAG_SUPPORT enabled
1218 https://bugs.webkit.org/show_bug.cgi?id=126233
1220 Reviewed by Daniel Bates.
1222 * wtf/nix/FeatureDefinesNix.h:
1224 2013-12-24 Commit Queue <commit-queue@webkit.org>
1226 Unreviewed, rolling out r160959.
1227 http://trac.webkit.org/changeset/160959
1228 https://bugs.webkit.org/show_bug.cgi?id=126222
1230 Caused Windows build to fail (Requested by rfong on #webkit).
1232 * wtf/ByteSpinLock.h:
1233 (WTF::ByteSpinLock::lock):
1235 * wtf/ThreadingPrimitives.h:
1236 (WTF::pauseBriefly):
1237 * wtf/ThreadingPthreads.cpp:
1239 * wtf/ThreadingWin.cpp:
1242 2013-12-23 Benjamin Poulain <bpoulain@apple.com>
1244 Fix the build after r161031
1246 I enabled ENABLE_CSS_SELECTOR_JIT by accident.
1250 2013-12-23 Zan Dobersek <zdobersek@igalia.com>
1252 [GTK] Clean up compiler optimizations flags for libWTF, libJSC
1253 https://bugs.webkit.org/show_bug.cgi?id=126157
1255 Reviewed by Gustavo Noronha Silva.
1257 * GNUmakefile.am: Remove the -fstrict-aliasing and -O3 compiler flags for libWTF.la. -O3 gets
1258 overridden by -O2 that's listed in CXXFLAGS (or -O0 in case of debug builds) and -fstrict-aliasing
1259 is enabled when -O2 is used (and shouldn't be enabled in debug builds anyway).
1261 2013-12-20 Anders Carlsson <andersca@apple.com>
1263 Replace yield() and pauseBriefly() with std::this_thread::yield()
1264 https://bugs.webkit.org/show_bug.cgi?id=126105
1266 Reviewed by Sam Weinig.
1268 * wtf/ByteSpinLock.h:
1269 (WTF::ByteSpinLock::lock):
1271 * wtf/ThreadingPrimitives.h:
1272 * wtf/ThreadingPthreads.cpp:
1273 * wtf/ThreadingWin.cpp:
1275 2013-12-20 Anders Carlsson <andersca@apple.com>
1277 Speed up case folding for 8-bit strings
1278 https://bugs.webkit.org/show_bug.cgi?id=126098
1280 Reviewed by Geoffrey Garen.
1282 Add a case folding lookup table for 8-bit strings and use it instead of calling down to u_foldCase.
1283 On a simple microbenchmark using a lookup table is about 15x faster.
1285 * wtf/text/StringHash.h:
1286 (WTF::CaseFoldingHash::foldCase):
1287 * wtf/text/StringImpl.cpp:
1288 (WTF::equalIgnoringCase):
1289 * wtf/text/StringImpl.h:
1291 2013-12-20 Myles C. Maxfield <mmaxfield@apple.com>
1293 Faster implementation of text-decoration-skip: ink
1294 https://bugs.webkit.org/show_bug.cgi?id=125718
1296 Reviewed by Simon Fraser.
1298 This creates a new preprocessor define, CSS3_TEXT_DECORATION_SKIP_INK,
1299 which enables the use of the text-decoration-skip: ink CSS value.
1300 Creating this new value simplifies the logic about when to enable the
1301 codepath for this CSS value.
1305 2013-12-20 Simon Fraser <simon.fraser@apple.com>
1307 Change "threaded scrolling" terminology to "asynchronous scrolling"
1308 https://bugs.webkit.org/show_bug.cgi?id=126094
1310 Reviewed by Tim Horton.
1312 Rename ENABLE_THREADED_SCROLLING to ENABLE_ASYNC_SCROLLING.
1314 * wtf/FeatureDefines.h:
1316 2013-12-20 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1318 Build fails in debug mode after r160834.
1319 https://bugs.webkit.org/show_bug.cgi?id=126059
1321 Reviewed by Csaba Osztrogonác.
1323 Debug mode build failed due to comparing signed and unsigned in
1324 ASSERT(). Now both values are unsigned.
1326 * wtf/dtoa/double-conversion.cc:
1328 2013-12-19 Alex Christensen <achristensen@webkit.org>
1330 Final preparations for GStreamer on Windows.
1331 https://bugs.webkit.org/show_bug.cgi?id=125958
1333 Reviewed by Benjamin Poulain.
1335 * WTF.vcxproj/WTFDebugWinCairo.props:
1336 * WTF.vcxproj/WTFReleaseWinCairo.props:
1337 Include WinCairo.props.
1339 Use GLib and GStreamer on WinCairo with video.
1341 2013-12-18 Daniel Bates <dabates@apple.com>
1343 WTF, JavaScriptCore fails to build with trunk clang: operators new, new[],
1344 delete, delete[] cannot be declared inline
1345 https://bugs.webkit.org/show_bug.cgi?id=124186
1346 <rdar://problem/15644039>
1348 Reviewed by Geoffrey Garen and Anders Carlsson.
1350 Following <http://llvm.org/viewvc/llvm-project?view=revision&revision=193044>
1351 (http://llvm.org/bugs/show_bug.cgi?id=17591>), Clang emits warnings when
1352 operator new, delete are inlined. Such definitions cannot be inline per
1353 replacement.functions (17.6.4.6/3) of the C++ standard. For now,
1354 disable these warnings instead of exporting these functions.
1358 2013-12-19 Hugo Parente Lima <hugo.lima@openbossa.org>
1360 WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
1361 https://bugs.webkit.org/show_bug.cgi?id=125936
1363 Reviewed by Anders Carlsson.
1365 * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
1367 2013-12-19 Peter Szanka <h868064@stud.u-szeged.hu>
1369 Delete RVCT related code parts.
1370 https://bugs.webkit.org/show_bug.cgi?id=125626
1372 Reviewed by Csaba Osztrogonác.
1374 * wtf/Compiler.h: follow-up fix for r160648, remove an unnecessary comment.
1376 2013-12-18 Alex Christensen <achristensen@webkit.org>
1378 [WinCairo] Preparation for GStreamer on Windows.
1379 https://bugs.webkit.org/show_bug.cgi?id=125946
1381 Reviewed by Brent Fulgham.
1383 * WTF.vcxproj/WTF.vcxproj:
1384 Use new GStreamer property sheets for WinCairo.
1386 2013-12-18 Mark Hahnenberg <mhahnenberg@apple.com>
1388 DFG should have a separate StoreBarrier node
1389 https://bugs.webkit.org/show_bug.cgi?id=125530
1391 Reviewed by Filip Pizlo.
1393 * wtf/Platform.h: Added an #define for ENABLE(GGC) which will be used for landing things related to GenGC.
1395 2013-12-16 Daniel Bates <dabates@apple.com>
1397 [iOS] Upstream WebCore/html changes
1398 https://bugs.webkit.org/show_bug.cgi?id=125765
1400 Reviewed by Darin Adler.
1402 Defined ENABLE_IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, enabled by default on iOS.
1404 * wtf/FeatureDefines.h:
1406 2013-12-17 Alex Christensen <achristensen@webkit.org>
1408 Compile fix for WebGL on Windows without GRAPHICS_SURFACE.
1409 https://bugs.webkit.org/show_bug.cgi?id=125867
1411 Reviewed by Martin Robinson.
1413 * wtf/FeatureDefines.h:
1414 Removed unused ENABLE_GLIB_SUPPORT macro.
1416 Don't use GRAPHICS_SURFACE for WebGL on Windows.
1418 2013-12-17 Alex Christensen <achristensen@webkit.org>
1420 [Win] Fixed linker error with GStreamer.
1421 https://bugs.webkit.org/show_bug.cgi?id=124861
1423 Reviewed by Martin Robinson.
1425 * wtf/gobject/GOwnPtr.cpp:
1427 * wtf/gobject/GOwnPtr.h:
1428 Added WTF_EXPORT_PRIVATE to freeOwnedGPtr<GError> declaration and definition.
1430 2013-12-17 Benjamin Poulain <benjamin@webkit.org>
1432 Add a simple register allocator to WebCore for x86_64
1433 https://bugs.webkit.org/show_bug.cgi?id=125771
1435 Reviewed by Geoffrey Garen.
1437 * wtf/Platform.h: Add a new flag "CSS_SELECTOR_JIT" to guard
1438 an experimental JIT compiler in WebCore.
1440 2013-12-16 Anders Carlsson <andersca@apple.com>
1442 Remove EnumClass.h from WTF
1443 https://bugs.webkit.org/show_bug.cgi?id=125820
1445 Reviewed by Darin Adler.
1447 All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
1449 * WTF.vcxproj/WTF.vcxproj:
1450 * WTF.vcxproj/WTF.vcxproj.filters:
1451 * WTF.xcodeproj/project.pbxproj:
1452 * wtf/CheckedArithmetic.h:
1453 * wtf/EnumClass.h: Removed.
1455 2013-12-16 Brent Fulgham <bfulgham@apple.com>
1457 [Win] Remove dead code after conversion to VS2013
1458 https://bugs.webkit.org/show_bug.cgi?id=125795
1460 Reviewed by Darin Adler.
1462 * wtf/Assertions.h: Include <inttypes.h> now that it exists.
1463 * wtf/Compiler.h: Update compiler checks for VS2013, and
1464 enable support for NEVER_INLINE
1465 * wtf/HashFunctions.h:
1466 (WTF::PtrHash::hash): Remove compiler workaround.
1467 * wtf/MathExtras.h: Remove C99 functions that are now supplied
1468 by the MS runtime library.
1469 * wtf/Platform.h: Remove old MSVC support flags.
1470 * wtf/StdLibExtras.h: Remove old MSVC workaround code.
1472 2013-12-16 Alex Christensen <achristensen@webkit.org>
1474 Fixed Win64 build on VS2013.
1475 https://bugs.webkit.org/show_bug.cgi?id=125753
1477 Reviewed by Brent Fulgham.
1479 * WTF.vcxproj/WTF.vcxproj:
1480 Added correct PlatformToolset for 64-bit builds.
1482 2013-12-16 Peter Szanka <h868064@stud.u-szeged.hu>
1484 Delete RVCT related code parts.
1485 https://bugs.webkit.org/show_bug.cgi?id=125626
1487 Reviewed by Darin Adler.
1494 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1496 [Win] Remove Pre-VS2013 support code.
1497 https://bugs.webkit.org/show_bug.cgi?id=125693
1499 Reviewed by Darin Adler.
1501 * wtf/StringPrintStream.cpp:
1502 (WTF::StringPrintStream::vprintf): Use va_copy, like a civilized person.
1504 2013-12-12 Darin Adler <darin@apple.com>
1506 Incorrect handling of non-ASCII characters in WTF::base64DecodeInternal
1507 https://bugs.webkit.org/show_bug.cgi?id=125658
1509 Reviewed by Alexey Proskuryakov.
1511 * wtf/text/Base64.cpp:
1512 (WTF::base64EncodeInternal): Use a reference to an array instead of a pointer
1513 for the table argument type so we check the size of the array at the call site.
1514 (WTF::base64DecodeInternal): Ditto. Also added an bounds check before using the
1515 table so we don't load some random value for non-ASCII characters.
1517 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1519 [Win] Unreviewed build fix after r160548
1521 * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
1522 the vs12_xp target for Makefile-based projects.
1524 2013-12-13 Anders Carlsson <andersca@apple.com>
1526 Require variadic templates to build WebKit
1527 https://bugs.webkit.org/show_bug.cgi?id=125701
1529 Reviewed by Andreas Kling.
1532 Add an #error if variadic templates are disabled.
1534 * wtf/NeverDestroyed.h:
1536 * wtf/StdLibExtras.h:
1537 Remove a bunch of COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #ifdefs.
1539 2013-12-13 Peter Szanka <h868064@stud.u-szeged.hu>
1541 Delete INTEL C compiler related code parts.
1542 https://bugs.webkit.org/show_bug.cgi?id=125625
1544 Reviewed by Darin Adler.
1549 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1551 [Win] Switch WebKit solution to Visual Studio 2013
1552 https://bugs.webkit.org/show_bug.cgi?id=125192
1554 Reviewed by Anders Carlsson.
1556 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
1557 * WTF.vcxproj/WTF.vcxproj.filters: Ditto
1559 2013-12-12 Brady Eidson <beidson@apple.com>
1561 DatabaseProcess IndexedDB: Establish a metadata backing store on disk
1562 https://bugs.webkit.org/show_bug.cgi?id=125258
1564 Reviewed by Alexey Proskuryakov, Anders Carlsson, and Tim Horton.
1566 * wtf/text/WTFString.h: Export toUInt64Strict().
1568 2013-12-12 Sam Weinig <sam@webkit.org>
1570 Replace uses of WTF::BitArray with std::bitset
1571 https://bugs.webkit.org/show_bug.cgi?id=125642
1573 Reviewed by Anders Carlsson.
1575 * GNUmakefile.list.am:
1576 * WTF.vcxproj/WTF.vcxproj:
1577 * WTF.vcxproj/WTF.vcxproj.filters:
1578 * WTF.xcodeproj/project.pbxproj:
1579 * wtf/BitArray.h: Removed.
1580 * wtf/CMakeLists.txt:
1582 2013-12-11 David Kilzer <ddkilzer@apple.com>
1584 Define m_hasBadParent in InlineBox if defined(ADDRESS_SANITIZER)
1585 <http://webkit.org/b/125329>
1587 Reviewed by Darin Adler.
1589 * wtf/Assertions.h: Define macro
1590 ASSERT_WITH_SECURITY_IMPLICATION_DISABLED based on whether
1591 ASSERT_WITH_SECURITY_IMPLICATION() is enabled.
1593 2013-12-11 Brendan Long <b.long@cablelabs.com>
1595 Type punning error in MD5.cpp
1596 https://bugs.webkit.org/show_bug.cgi?id=125412
1598 Reviewed by Darin Adler.
1601 (WTF::toLittleEndian): Renamed, and use memcpy instead of casting.
1602 (WTF::MD5::addBytes): Renamed reverseBytes to toLittleEndian.
1603 (WTF::MD5::checksum): Same, and use memcpy instead of casting to prevent type punning error.
1605 2013-12-11 Laszlo Vidacs <lac@inf.u-szeged.hu>
1607 Store SHA1 hash in std::array
1608 https://bugs.webkit.org/show_bug.cgi?id=125446
1610 Reviewed by Darin Adler.
1612 Change Vector to std::array and use typedef.
1615 (WTF::SHA1::computeHash):
1616 (WTF::SHA1::hexDigest):
1617 (WTF::SHA1::computeHexDigest):
1620 2013-12-11 Oliver Hunt <oliver@apple.com>
1622 Give Unique StringImpls a meaningful data pointer
1623 https://bugs.webkit.org/show_bug.cgi?id=125598
1625 Reviewed by Michael Saboff.
1627 Found by code inspection. If there is a collision in an Identifier
1628 table when comparing to a string literal we attempt to use the data
1629 pointer (essentially this ends up being a null termination check).
1631 Previously unique pointers just used the literal 1 as the data address
1632 but this obviously fails when dereferenced. Instead we now make the
1633 data pointer point to the location of the buffer pointer itself. As
1634 the buffer pointer is initialised to 0, this satisfies the requirement
1635 that the 0-length unique string is null terminated.
1637 * wtf/text/StringImpl.h:
1638 (WTF::StringImpl::StringImpl):
1640 2013-12-10 Anders Carlsson <andersca@apple.com>
1642 Add a HashMap constructor that takes an initializer list
1643 https://bugs.webkit.org/show_bug.cgi?id=125551
1645 Reviewed by Dan Bernstein.
1648 (WTF::HashMap::HashMap):
1650 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu>
1652 Use std::array when computing MD5 checksum
1653 https://bugs.webkit.org/show_bug.cgi?id=125509
1655 Reviewed by Anders Carlsson.
1657 Added MD5::Digest type and MD5::hashSize for computing MD5 checksum.
1660 (WTF::MD5::checksum):
1663 2013-12-10 Martin Robinson <mrobinson@igalia.com>
1665 Various fixes for the CMake GTK+ build
1667 Reviewed by Gustavo Noronha.
1669 * wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.
1671 2013-12-09 Sam Weinig <sam@webkit.org>
1674 https://bugs.webkit.org/show_bug.cgi?id=125478
1676 Reviewed by Anders Carlsson.
1678 * GNUmakefile.list.am:
1679 * WTF.vcxproj/WTF.vcxproj:
1680 * WTF.vcxproj/WTF.vcxproj.filters:
1681 * WTF.xcodeproj/project.pbxproj:
1682 * wtf/CMakeLists.txt:
1683 * wtf/FixedArray.h: Removed.
1685 2013-12-09 Sam Weinig <sam@webkit.org>
1687 Replace use of WTF::FixedArray with std::array
1688 https://bugs.webkit.org/show_bug.cgi?id=125475
1690 Reviewed by Anders Carlsson.
1694 * wtf/SixCharacterHash.cpp:
1695 (WTF::integerToSixCharacterHashString):
1696 * wtf/SixCharacterHash.h:
1698 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com>
1700 [Win] Support compiling with VS2013
1701 https://bugs.webkit.org/show_bug.cgi?id=125353
1703 Reviewed by Anders Carlsson.
1705 * wtf/Compiler.h: Show proper features for VS2012 and VS2013.
1706 * wtf/MathExtras.h: Don't implement common C99 routines when
1707 they are available through the runtime libraries.
1709 (WTF::RetainPtr::operator bool): Added.
1710 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique
1713 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
1715 Define SHA1 hash size in SHA1.h and use it at various places.
1716 https://bugs.webkit.org/show_bug.cgi?id=125345
1718 Reviewed by Darin Adler.
1720 Use SHA1::hashSize instead of local variables.
1722 * wtf/SHA1.h: define SHA1 hash size
1724 2013-12-05 Iain Lane <iain.lane@canonical.com>
1726 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED) from Atomics.cpp since it is
1728 https://bugs.webkit.org/show_bug.cgi?id=124502
1730 Reviewed by Anders Carlsson.
1734 2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
1736 Enable HTMLTemplateElement by default
1737 https://bugs.webkit.org/show_bug.cgi?id=123851
1739 Reviewed by Antti Koivisto.
1741 * wtf/FeatureDefines.h:
1743 2013-12-04 Dan Bernstein <mitz@apple.com>
1745 Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
1746 https://bugs.webkit.org/show_bug.cgi?id=125242
1748 Reviewed by Sam Weinig.
1750 * wtf/Platform.h: Removed definitions of WTF_USE_SECURITY_FRAMEWORK, and defined
1751 HAVE_SEC_IDENTITY and HAVE_SEC_KEYCHAIN.
1753 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
1755 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1756 https://bugs.webkit.org/show_bug.cgi?id=124613
1758 Reviewed by Timothy Hatcher.
1760 * wtf/ios/WebCoreThread.cpp:
1761 * wtf/ios/WebCoreThread.h:
1762 Expose WebThreadRun/WebThreadRunSync iOS methods defined in WebCore through
1763 WTF so that JavaScriptCore can use it. Another such method already existed.
1765 2013-12-03 Mark Lam <mark.lam@apple.com>
1767 testapi test crashes on Windows in WTF::Vector<wchar_t,64,WTF::UnsafeVectorOverflow>::size().
1768 https://bugs.webkit.org/show_bug.cgi?id=121972.
1770 Reviewed by Brent Fulgham.
1772 * wtf/OSAllocatorWin.cpp:
1773 (WTF::OSAllocator::decommit):
1774 (WTF::OSAllocator::releaseDecommitted):
1775 - Added a check to ensure that the bytes to decommit / release is not 0.
1776 On Windows, a 0 length passed to VirtualFree() has a special meaning,
1777 and it's not "decommit / release nothing" as one would expect. Adding
1778 this check makes OSAllocatorWin consistent with OSAllocatorPosix for
1781 2013-12-02 Mark Lam <mark.lam@apple.com>
1783 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER.
1784 https://bugs.webkit.org/show_bug.cgi?id=123809.
1786 Reviewed by Geoffrey Garen.
1789 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
1791 2013-11-30 peavo@outlook.com <peavo@outlook.com>
1793 [Win] Some JavaScript date tests are failing.
1794 https://bugs.webkit.org/show_bug.cgi?id=124946
1796 Reviewed by Brent Fulgham.
1798 Use native Win32 api functions to compute Daylight saving time offset.
1801 (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
1802 (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
1804 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1806 Nix Upstream: Updating Nix WTF files
1807 https://bugs.webkit.org/show_bug.cgi?id=124980
1809 Reviewed by Csaba Osztrogonác.
1811 Just to sync our private repo files and the trunk, as part of the upstream process.
1813 * wtf/DisallowCType.h:
1814 * wtf/PlatformNix.cmake:
1815 * wtf/nix/FeatureDefinesNix.h:
1816 * wtf/nix/PlatformNix.h:
1817 * wtf/nix/RunLoopNix.cpp: Added.
1819 2013-11-28 Antti Koivisto <antti@apple.com>
1821 Remove feature: CSS variables
1822 https://bugs.webkit.org/show_bug.cgi?id=114119
1824 Reviewed by Andreas Kling.
1826 * wtf/FeatureDefines.h:
1828 2013-11-26 Filip Pizlo <fpizlo@apple.com>
1830 Do bytecode validation as part of testing
1831 https://bugs.webkit.org/show_bug.cgi?id=124913
1833 Reviewed by Oliver Hunt.
1835 * GNUmakefile.list.am:
1836 * WTF.vcxproj/WTF.vcxproj:
1837 * WTF.xcodeproj/project.pbxproj:
1838 * wtf/CMakeLists.txt:
1839 * wtf/FastBitVector.cpp: Added.
1840 (WTF::FastBitVector::dump):
1841 * wtf/FastBitVector.h:
1842 (WTF::FastBitVector::resize):
1843 (WTF::FastBitVector::bitCount):
1844 (WTF::FastBitVector::arrayLength):
1846 2013-11-27 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1848 Remove Sparc specific code.
1849 https://bugs.webkit.org/show_bug.cgi?id=124941
1851 Reviewed by Michael Saboff.
1853 Sparc is not supported, remove leftover code.
1858 2013-11-26 Marcelo Lira <marcelo.lira@openbossa.org>
1860 Nix upstreaming - Adding build files and supporting scripts
1861 https://bugs.webkit.org/show_bug.cgi?id=118367
1863 Reviewed by Ryosuke Niwa.
1865 * wtf/FeatureDefines.h:
1867 * wtf/PlatformNix.cmake: Added.
1869 2013-11-26 Drew Yao <ayao@apple.com>
1871 ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
1872 https://bugs.webkit.org/show_bug.cgi?id=124757
1874 Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
1875 in order to help screen fuzzing bugs.
1877 Reviewed by Brent Fulgham.
1879 * wtf/Assertions.cpp:
1882 2013-11-24 Tim Horton <timothy_horton@apple.com>
1884 Upstream USE(IOSURFACE) from the iOS port
1885 https://bugs.webkit.org/show_bug.cgi?id=124814
1887 Reviewed by Sam Weinig.
1889 Some code guarded by USE(IOSURFACE) was recently upstreamed,
1890 but not the definition of WTF_USE_IOSURFACE itself.
1894 2013-11-23 Xabier Rodriguez Calvar <calvaris@igalia.com>
1896 [GStreamer] Remove 0.10 codepath
1897 https://bugs.webkit.org/show_bug.cgi?id=124534
1899 Reviewed by Philippe Normand.
1901 * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
1904 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1906 Remove ENABLE_WORKERS
1907 https://bugs.webkit.org/show_bug.cgi?id=105784
1909 Reviewed by Darin Adler.
1911 * wtf/FeatureDefines.h:
1912 * wtf/nix/FeatureDefinesNix.h:
1914 2013-11-21 Mark Rowe <mrowe@apple.com>
1916 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1918 Reviewed by Alexey Proskuryakov.
1920 * Configurations/Base.xcconfig:
1922 2013-11-20 Mark Lam <mark.lam@apple.com>
1924 Introducing VMEntryScope to update the VM stack limit.
1925 https://bugs.webkit.org/show_bug.cgi?id=124634.
1927 Reviewed by Geoffrey Garen.
1930 * wtf/StackBounds.h:
1931 (WTF::StackBounds::StackBounds):
1933 2013-11-18 Filip Pizlo <fpizlo@apple.com>
1935 Allow the FTL debug dumps to include the new size field
1936 https://bugs.webkit.org/show_bug.cgi?id=124479
1938 Reviewed by Mark Hahnenberg.
1940 * wtf/PrintStream.cpp:
1941 (WTF::printInternal):
1942 * wtf/PrintStream.h:
1944 2013-11-17 Jer Noble <jer.noble@apple.com>
1946 [WTF] Media time should not have a constructor which accepts a single int or float.
1947 https://bugs.webkit.org/show_bug.cgi?id=124470
1949 Having a constructor taking a single number value, as it's very easy to accidentially mis-
1950 initialize a MediaTime with a double (automatically casted to a int64_t).
1952 Reviewed by Eric Carlson.
1956 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
1958 URTBF after r159432 to make WinCairo build happy.
1960 * wtf/text/WTFString.h:
1962 2013-11-18 Carlos Garcia Campos <cgarcia@igalia.com>
1964 Unreviewed. Fix make distcheck.
1966 * GNUmakefile.list.am: Add missing header file.
1968 2013-11-16 Alexey Proskuryakov <ap@apple.com>
1970 Use uint8_t vectors for WebCrypto data
1971 https://bugs.webkit.org/show_bug.cgi?id=124466
1973 Reviewed by Sam Weinig.
1975 Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
1976 binary data, in which case "uint8_t*" is more common.
1978 Changed encode functions that took "const char *" to "const void*", and decode
1979 functions that took "Vector<char>&" now take an adapter class.
1981 The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
1983 * wtf/text/Base64.cpp:
1984 (WTF::base64Encode):
1985 (WTF::base64URLEncode):
1986 (WTF::base64DecodeInternal):
1987 (WTF::base64Decode):
1988 (WTF::base64URLDecode):
1989 * wtf/text/Base64.h:
1990 (WTF::SignedOrUnsignedCharVectorAdapter):
1991 (WTF::ConstSignedOrUnsignedCharVectorAdapter):
1992 (WTF::base64Encode):
1993 (WTF::base64URLEncode):
1995 2013-11-15 Alexey Proskuryakov <ap@apple.com>
1997 Support exporting symmetric keys as JWK
1998 https://bugs.webkit.org/show_bug.cgi?id=124442
2000 Reviewed by Sam Weinig.
2002 Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
2003 Added this mode for encode, and removed policy arguments from exposed functions.
2005 * wtf/text/Base64.cpp:
2006 (WTF::base64EncodeInternal):
2007 (WTF::base64URLEncode):
2008 (WTF::base64URLDecode):
2009 * wtf/text/Base64.h:
2010 (WTF::base64URLEncode):
2012 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com>
2014 Remove VTableSpectrum
2015 https://bugs.webkit.org/show_bug.cgi?id=124427
2017 Reviewed by Filip Pizlo.
2021 2013-11-15 Jer Noble <jer.noble@apple.com>
2023 MediaTime addition and subtraction operators have errors when the rhs is infinite.
2024 https://bugs.webkit.org/show_bug.cgi?id=124413
2026 Reviewed by Eric Carlson.
2028 Correctly account for infinities that can occur on the right-hand side of addition or
2029 subtraction operators.
2031 * wtf/MediaTime.cpp:
2032 (WTF::MediaTime::operator+):
2033 (WTF::MediaTime::operator-):
2035 2013-11-14 Oliver Hunt <oliver@apple.com>
2037 Make CLoop easier to build, and make it work
2038 https://bugs.webkit.org/show_bug.cgi?id=124359
2040 Reviewed by Geoffrey Garen.
2042 Make building with the CLoop forcibly enabled manually
2047 2013-11-14 Andreas Kling <akling@apple.com>
2049 FontDescription copies should share families list, not duplicate it.
2050 <https://webkit.org/b/124338>
2052 Add RefCountedArray::operator==.
2054 Reviewed by Antti Koivisto.
2056 2013-11-13 Anders Carlsson <andersca@apple.com>
2058 Add a Vector constructor that takes an std::initializer_list
2059 https://bugs.webkit.org/show_bug.cgi?id=124287
2061 Reviewed by Antti Koivisto.
2065 (WTF::Vector::Vector):
2067 2013-11-12 Brent Fulgham <bfulgham@apple.com>
2069 [Win] Unreviewed gardening.
2071 * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
2072 in their proper directories.
2074 2013-11-12 Alex Christensen <achristensen@webkit.org>
2076 Build GStreamer files on Windows.
2077 https://bugs.webkit.org/show_bug.cgi?id=124180
2079 Reviewed by Brent Fulgham.
2081 * WTF.vcxproj/WTF.vcxproj:
2082 * WTF.vcxproj/WTF.vcxproj.filters:
2083 * WTF.vcxproj/copy-files.cmd:
2084 Include gobject files in WinCairo build.
2086 2013-11-09 Filip Pizlo <fpizlo@apple.com>
2088 Switch FTL GetById/PutById IC's over to using AnyRegCC
2089 https://bugs.webkit.org/show_bug.cgi?id=124094
2091 Reviewed by Sam Weinig.
2093 I needed to add another set operation, namely filter(), which is an in-place set
2096 * wtf/BitVector.cpp:
2097 (WTF::BitVector::filterSlow):
2099 (WTF::BitVector::filter):
2101 2013-11-10 Ryuan Choi <ryuan.choi@samsung.com>
2103 [EFL] Build break on Ubuntu 13.10
2104 https://bugs.webkit.org/show_bug.cgi?id=124131
2106 Reviewed by Gyuyoung Kim.
2108 Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
2110 * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
2112 2013-11-09 Patrick Gansterer <paroga@webkit.org>
2114 Move RunLoop from WebCore to WTF
2115 https://bugs.webkit.org/show_bug.cgi?id=116606
2117 Reviewed by Anders Carlsson.
2119 With this change RunLoop can be used in JavaScriptCore too.
2121 * GNUmakefile.list.am:
2122 * WTF.vcxproj/WTF.vcxproj:
2123 * WTF.xcodeproj/project.pbxproj:
2124 * wtf/CMakeLists.txt:
2125 * wtf/PlatformBlackBerry.cmake:
2126 * wtf/PlatformEfl.cmake:
2127 * wtf/PlatformGTK.cmake:
2128 * wtf/PlatformWin.cmake:
2129 * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
2130 (WTF::RunLoop::Holder::Holder):
2131 (WTF::RunLoop::Holder::runLoop):
2132 (WTF::RunLoop::initializeMainRunLoop):
2133 (WTF::RunLoop::current):
2134 (WTF::RunLoop::main):
2135 (WTF::RunLoop::isMain):
2136 (WTF::RunLoop::performWork):
2137 (WTF::RunLoop::dispatch):
2138 * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
2139 (WTF::RunLoop::TimerBase::startRepeating):
2140 (WTF::RunLoop::TimerBase::startOneShot):
2141 (WTF::RunLoop::TimerBase::isRepeating):
2142 (WTF::RunLoop::Timer::Timer):
2143 (WTF::RunLoop::Timer::fired):
2144 * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
2145 (WTF::RunLoop::RunLoop):
2146 (WTF::RunLoop::~RunLoop):
2147 (WTF::RunLoop::wakeUp):
2148 * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
2149 (WTF::RunLoop::performWork):
2150 (WTF::RunLoop::RunLoop):
2151 (WTF::RunLoop::~RunLoop):
2152 (WTF::RunLoop::runForDuration):
2153 (WTF::RunLoop::wakeUp):
2154 (WTF::RunLoop::run):
2155 (WTF::RunLoop::stop):
2156 (WTF::RunLoop::TimerBase::timerFired):
2157 (WTF::RunLoop::TimerBase::TimerBase):
2158 (WTF::RunLoop::TimerBase::~TimerBase):
2159 (WTF::RunLoop::TimerBase::start):
2160 (WTF::RunLoop::TimerBase::stop):
2161 (WTF::RunLoop::TimerBase::isActive):
2162 * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
2163 (WTF::RunLoop::RunLoop):
2164 (WTF::RunLoop::~RunLoop):
2165 (WTF::RunLoop::run):
2166 (WTF::RunLoop::stop):
2167 (WTF::RunLoop::wakeUpEvent):
2168 (WTF::RunLoop::wakeUp):
2169 (WTF::RunLoop::TimerBase::TimerBase):
2170 (WTF::RunLoop::TimerBase::~TimerBase):
2171 (WTF::RunLoop::TimerBase::timerFired):
2172 (WTF::RunLoop::TimerBase::start):
2173 (WTF::RunLoop::TimerBase::stop):
2174 (WTF::RunLoop::TimerBase::isActive):
2175 * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
2176 (WTF::RunLoop::RunLoop):
2177 (WTF::RunLoop::~RunLoop):
2178 (WTF::RunLoop::run):
2179 (WTF::RunLoop::innermostLoop):
2180 (WTF::RunLoop::pushNestedMainLoop):
2181 (WTF::RunLoop::popNestedMainLoop):
2182 (WTF::RunLoop::stop):
2183 (WTF::RunLoop::queueWork):
2184 (WTF::RunLoop::wakeUp):
2185 (WTF::RunLoop::TimerBase::TimerBase):
2186 (WTF::RunLoop::TimerBase::~TimerBase):
2187 (WTF::RunLoop::TimerBase::clearTimerSource):
2188 (WTF::RunLoop::TimerBase::timerFiredCallback):
2189 (WTF::RunLoop::TimerBase::start):
2190 (WTF::RunLoop::TimerBase::stop):
2191 (WTF::RunLoop::TimerBase::isActive):
2192 * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
2193 (WTF::RunLoop::RunLoopWndProc):
2194 (WTF::RunLoop::wndProc):
2195 (WTF::RunLoop::run):
2196 (WTF::RunLoop::stop):
2197 (WTF::RunLoop::registerRunLoopMessageWindowClass):
2198 (WTF::RunLoop::RunLoop):
2199 (WTF::RunLoop::~RunLoop):
2200 (WTF::RunLoop::wakeUp):
2201 (WTF::RunLoop::TimerBase::timerFired):
2202 (WTF::generateTimerID):
2203 (WTF::RunLoop::TimerBase::TimerBase):
2204 (WTF::RunLoop::TimerBase::~TimerBase):
2205 (WTF::RunLoop::TimerBase::start):
2206 (WTF::RunLoop::TimerBase::stop):
2207 (WTF::RunLoop::TimerBase::isActive):
2209 2013-11-08 Alexey Proskuryakov <ap@apple.com>
2211 Make base64url decoding actually work
2212 https://bugs.webkit.org/show_bug.cgi?id=124050
2214 Reviewed by Sam Weinig.
2216 * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
2217 alphabet, put it into the map.
2219 2013-11-07 Denis Nomiyama <d.nomiyama@samsung.com>
2221 [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
2222 https://bugs.webkit.org/show_bug.cgi?id=50619
2224 Reviewed by Martin Robinson.
2226 Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
2227 currently using Freetype.
2231 2013-11-06 Daniel Bates <dabates@apple.com>
2233 [iOS] Upstream Letterpress effect
2234 https://bugs.webkit.org/show_bug.cgi?id=123932
2236 Reviewed by Sam Weinig.
2238 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
2241 * wtf/FeatureDefines.h:
2243 2013-11-06 Nick Diego Yamane <nick.yamane@openbossa.org>
2245 Disable "unused local typedefs" warning for GCC 4.7
2246 https://bugs.webkit.org/show_bug.cgi?id=123913
2248 Reviewed by Martin Robinson.
2250 That warning was actually introduced in gcc 4.7.0.
2251 See: http://gcc.gnu.org/gcc-4.7/changes.html
2255 2013-11-06 Daniel Bates <dabates@apple.com>
2257 Add ENABLE(TEXT_SELECTION)
2258 https://bugs.webkit.org/show_bug.cgi?id=123827
2260 Reviewed by Ryosuke Niwa.
2262 Enable selection painting by default on all ports except iOS.
2264 * wtf/FeatureDefines.h:
2266 2013-11-04 Alexey Proskuryakov <ap@apple.com>
2268 Implement base64url encoding from RFC 4648
2269 https://bugs.webkit.org/show_bug.cgi?id=123767
2271 Reviewed by Sam Weinig.
2273 No tests yet, will be covered by JWK tests for WebCrypto.
2275 * wtf/text/Base64.cpp:
2276 (WTF::base64EncodeInternal):
2277 (WTF::base64Encode):
2278 (WTF::base64URLEncode):
2279 (WTF::base64DecodeInternal):
2280 (WTF::base64Decode):
2281 (WTF::base64URLDecode):
2282 * wtf/text/Base64.h:
2283 (WTF::base64URLEncode):
2285 2013-11-04 Brent Fulgham <bfulgham@apple.com>
2287 [Win] User VersionStamper for official builds
2288 https://bugs.webkit.org/show_bug.cgi?id=123758
2290 Reviewed by Tim Horton.
2292 * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
2294 2013-11-01 Jer Noble <jer.noble@apple.com>
2296 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
2297 https://bugs.webkit.org/show_bug.cgi?id=123621
2299 Reviewed by Eric Carlson.
2301 Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
2302 to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
2303 MediaPlayerPrivateAVFoundationObjC.mm.
2307 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2309 Fix compilation of DateMath.cpp with MSVC
2310 https://bugs.webkit.org/show_bug.cgi?id=123680
2312 Reviewed by Darin Adler.
2315 (WTF::appendTwoDigitNumber): Help the compiler finding the
2316 correct overload by casting the characters to LChar.
2318 2013-11-02 Filip Pizlo <fpizlo@apple.com>
2320 LLVM assertion failures should funnel into WTF's crash handling
2321 https://bugs.webkit.org/show_bug.cgi?id=123682
2323 Reviewed by Geoffrey Garen.
2325 Give JSC some new toys to play with for crash handling.
2327 * wtf/Assertions.cpp:
2330 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2332 Fix UnicodeWchar after r157330.
2333 https://bugs.webkit.org/show_bug.cgi?id=123668
2335 Reviewed by Darin Adler.
2337 * wtf/unicode/wchar/UnicodeWchar.cpp:
2342 * wtf/unicode/wchar/UnicodeWchar.h:
2347 2013-11-02 Andreas Kling <akling@apple.com>
2349 Make remaining StringImpl functions return PassRef.
2350 <https://webkit.org/b/123683>
2352 Okay, this seems to work well! Let's go all in and convert the
2353 remaining StringImpl functions to return PassRef<StringImpl> instead
2354 of PassRefPtr where we know that null is never returned.
2356 Reviewed by Anders Carlsson.
2358 2013-11-02 Andreas Kling <akling@apple.com>
2360 StringImpl::upper() should return PassRef.
2361 <https://webkit.org/b/123655>
2363 Make upper() return PassRef<StringImpl>. Spotted and removed some
2364 ref churning in implementations.
2366 Reviewed by Darin Adler.
2368 2013-11-01 Alexey Proskuryakov <ap@apple.com>
2370 Add WebCrypto AES-CBC
2371 https://bugs.webkit.org/show_bug.cgi?id=123647
2373 Reviewed by Anders Carlsson.
2375 * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
2377 * wtf/Vector.h: Added a comment to Vector constructor about how it is different
2380 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2382 Unreviewed extended attempt at Windows build fix after r158471.
2384 * wtf/text/cf/AtomicStringCF.cpp:
2385 * wtf/text/cf/StringCF.cpp:
2386 * wtf/text/cf/StringImplCF.cpp:
2388 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2390 Unreviewed attempt at Windows build fix after r158471.
2392 * wtf/text/cf/AtomicStringCF.cpp:
2393 * wtf/text/cf/StringCF.cpp:
2394 * wtf/text/cf/StringImplCF.cpp:
2396 2013-11-01 Andreas Kling <akling@apple.com>
2398 Make more StringImpl construction helpers return PassRef.
2399 <https://webkit.org/b/123652>
2401 Tweak another handful of StringImpl constructor functions to return
2402 PassRef<StringImpl> instead of PassRefPtr.
2404 Reviewed by Anders Carlsson.
2406 2013-11-01 Andreas Kling <akling@apple.com>
2408 Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
2409 <https://webkit.org/b/123639>
2411 When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
2412 operator new/delete overrides in every class.
2414 This change makes allocations group up nicely in Instruments,
2415 instead of being split between "WTF::fastMalloc" and "operator new"
2416 depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
2418 Reviewed by Anders Carlsson.
2420 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2422 Move CF/Mac WTF String implementations down into WTF
2423 https://bugs.webkit.org/show_bug.cgi?id=123635
2425 Reviewed by Sam Weinig.
2427 * WTF.vcxproj/WTF.vcxproj:
2428 * WTF.vcxproj/WTF.vcxproj.filters:
2429 * WTF.xcodeproj/project.pbxproj:
2430 * wtf/text/AtomicString.h:
2431 * wtf/text/StringImpl.h:
2432 * wtf/text/WTFString.h:
2433 * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
2434 (WTF::AtomicString::add):
2435 * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
2436 (WTF::String::String):
2437 (WTF::String::createCFString):
2438 * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
2439 (garbageCollectionEnabled):
2440 (WTF::StringWrapperCFAllocator::retain):
2441 (WTF::StringWrapperCFAllocator::release):
2442 (WTF::StringWrapperCFAllocator::copyDescription):
2443 (WTF::StringWrapperCFAllocator::allocate):
2444 (WTF::StringWrapperCFAllocator::reallocate):
2445 (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
2446 (WTF::StringWrapperCFAllocator::deallocate):
2447 (WTF::StringWrapperCFAllocator::preferredSize):
2448 (WTF::StringWrapperCFAllocator::create):
2449 (WTF::StringWrapperCFAllocator::allocator):
2450 (WTF::StringImpl::createCFString):
2451 * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
2452 (WTF::StringImpl::operator NSString *):
2453 * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
2454 (WTF::String::String):
2456 2013-11-01 Emilio Pozuelo Monfort <pochu27@gmail.com>
2459 https://bugs.webkit.org/show_bug.cgi?id=123625
2461 Original patch from John David Anglin <dave.anglin@bell.net>
2463 Reviewed by Darin Adler.
2468 2013-11-01 Patrick Gansterer <paroga@webkit.org>
2470 Buildfix for !USE(ICU_UNICODE) after 156968.
2472 * wtf/unicode/CollatorDefault.cpp:
2473 (WTF::Collator::userDefault):
2475 2013-10-30 Oliver Hunt <oliver@apple.com>
2477 Implement basic ES6 Math functions
2478 https://bugs.webkit.org/show_bug.cgi?id=123536
2480 Reviewed by Michael Saboff.
2482 Add basic implementations of necessary methods to MathExtras to
2483 deal with MSVC not supplying them
2493 2013-10-30 Commit Queue <commit-queue@webkit.org>
2495 Unreviewed, rolling out r158299.
2496 http://trac.webkit.org/changeset/158299
2497 https://bugs.webkit.org/show_bug.cgi?id=123558
2499 caused assertion failures in fast/canvas/canvas-color-
2500 serialization.html and fast/forms/input-text-paste-
2501 maxlength.html (Requested by rniwa on #webkit).
2503 * wtf/text/StringStatics.cpp:
2504 (WTF::StringImpl::empty):
2506 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
2508 Remove code for Mac Lion
2509 https://bugs.webkit.org/show_bug.cgi?id=123542
2511 Reviewed by Anders Carlsson.
2515 2013-10-30 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2517 Remove PCRE workaround.
2518 https://bugs.webkit.org/show_bug.cgi?id=123265
2520 Reviewed by Brent Fulgham.
2522 * wtf/text/StringStatics.cpp:
2523 (WTF::StringImpl::empty):
2525 2013-10-30 peavo@outlook.com <peavo@outlook.com>
2527 [Win] Compile errors when enabling DFG JIT.
2528 https://bugs.webkit.org/show_bug.cgi?id=120998
2530 Reviewed by Brent Fulgham.
2532 * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
2533 (WTF::initializeCompilationThreads):
2534 * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
2535 (WTF::ThreadingOnce::ThreadingOnce):
2536 (WTF::ThreadingOnce::~ThreadingOnce):
2537 (WTF::ThreadingOnce::callOnce):
2538 * wtf/text/CString.h: Export needed symbols.
2540 2013-10-30 Alex Christensen <achristensen@webkit.org>
2542 Disabled JIT on Win64.
2543 https://bugs.webkit.org/show_bug.cgi?id=122472
2545 Reviewed by Geoffrey Garen.
2548 Disabled JIT on Win64.
2550 2013-10-29 Andreas Kling <akling@apple.com>
2552 StringImpl::isolatedCopy() should return PassRef.
2553 <https://webkit.org/b/123484>
2555 Make isolatedCopy() return a PassRef<StringImpl>.
2557 Reviewed by Anders Carlsson.
2559 2013-10-29 Jer Noble <jer.noble@apple.com>
2561 [MSE] [Mac] Enable MediaSource on the Mac
2562 https://bugs.webkit.org/show_bug.cgi?id=122484
2564 Reviewed by Darin Adler.
2566 Enable ENABLE_MEDIA_SOURCE.
2568 * wtf/FeatureDefines.h:
2569 * wtf/Platform.h: Force a clean build.
2571 2013-10-29 Andreas Kling <akling@apple.com>
2573 StringImpl::adopt() should return PassRef.
2574 <https://webkit.org/b/123456>
2576 Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
2578 Reviewed by Anders Carlsson.
2580 2013-10-29 Jinwoo Song <jinwoo7.song@samsung.com>
2582 Re-enable simple line layout for EFL
2583 https://bugs.webkit.org/show_bug.cgi?id=123402
2585 Reviewed by Antti Koivisto.
2587 * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
2589 2013-10-28 Anders Carlsson <andersca@apple.com>
2591 RunLoop::dispatch should take an std::function
2592 https://bugs.webkit.org/show_bug.cgi?id=123407
2594 Reviewed by Andreas Kling.
2596 * wtf/FunctionDispatcher.h:
2598 2013-10-28 Andreas Kling <akling@apple.com>
2600 RenderElement::m_style should be a Ref.
2601 <https://webkit.org/b/123401>
2603 Added a Ref::replace() so we can Indiana Jones the new style in
2604 RenderElement::setStyle() while keeping a handle on the old style
2607 Reviewed by Antti Koivisto.
2609 2013-10-28 Carlos Garcia Campos <cgarcia@igalia.com>
2611 Unreviewed. Fix make distcheck.
2613 * GNUmakefile.list.am: Remove unexistent file from compilation.
2615 2013-10-28 Bastien Nocera <hadess@hadess.net>
2617 Replace 0 timeouts g_timeout_add() by g_idle_add()
2618 https://bugs.webkit.org/show_bug.cgi?id=123260
2620 Reviewed by Carlos Garcia Campos.
2622 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
2623 without the nagging feeling that the wrong API was used.
2625 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
2627 (WTF::scheduleDispatchFunctionsOnMainThread):
2629 2013-10-28 Zan Dobersek <zdobersek@igalia.com>
2631 Re-enable simple line layout for GTK
2632 https://bugs.webkit.org/show_bug.cgi?id=123388
2634 Reviewed by Andreas Kling.
2636 * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
2638 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
2640 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2641 https://bugs.webkit.org/show_bug.cgi?id=123111
2643 Reviewed by Timothy Hatcher.
2645 * wtf/FeatureDefines.h:
2647 2013-10-25 Jer Noble <jer.noble@apple.com>
2649 [WTF] Add a multiplication operator (and a few others) to MediaTime
2650 https://bugs.webkit.org/show_bug.cgi?id=123137
2652 Reviewed by Eric Carlson.
2654 Add a multiplication operator and an inequality operator to the
2655 MediaTime class for use by MSE.
2657 * wtf/MediaTime.cpp:
2658 (WTF::signum): Moved to top of file.
2659 (WTF::MediaTime::operator*): Added.
2660 (WTF::MediaTime::operator!=): Added.
2662 (WTF::operator*): Added non-class version of operator*.
2664 2013-10-24 Jer Noble <jer.noble@apple.com>
2666 [Mac] Add helper methods to convert CMTime <--> MediaTime
2667 https://bugs.webkit.org/show_bug.cgi?id=123285
2669 Reviewed by Eric Carlson.
2671 Add a #ifdef header_h protector.
2675 2013-10-24 Mark Rowe <mrowe@apple.com>
2677 Remove references to OS X 10.7 from Xcode configuration settings.
2679 Now that we're not building for OS X 10.7 they're no longer needed.
2681 Reviewed by Anders Carlsson.
2683 * Configurations/Base.xcconfig:
2684 * Configurations/DebugRelease.xcconfig:
2686 2013-10-24 Mark Rowe <mrowe@apple.com>
2688 <rdar://problem/15312643> Prepare for the mysterious future.
2690 Reviewed by David Kilzer.
2692 * Configurations/Base.xcconfig:
2693 * Configurations/DebugRelease.xcconfig:
2695 2013-10-24 Commit Queue <commit-queue@webkit.org>
2697 Unreviewed, rolling out r157931.
2698 http://trac.webkit.org/changeset/157931
2699 https://bugs.webkit.org/show_bug.cgi?id=123284
2701 Seems to have caused a lot of assertions on debug bots
2702 (Requested by ap on #webkit).
2704 * wtf/text/StringStatics.cpp:
2705 (WTF::StringImpl::empty):
2707 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2709 Remove PCRE workaround.
2710 https://bugs.webkit.org/show_bug.cgi?id=123265
2712 Reviewed by Darin Adler.
2714 * wtf/text/StringStatics.cpp:
2715 (WTF::StringImpl::empty):
2717 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2719 Remove Clang workaround.
2720 https://bugs.webkit.org/show_bug.cgi?id=123262
2722 Reviewed by Anders Carlsson.
2724 * wtf/CheckedArithmetic.h:
2725 (WTF::Checked::Checked):
2727 2013-10-24 Ryuan Choi <ryuan.choi@samsung.com>
2729 [EFL] Build break with latest EFL 1.8 libraries.
2730 https://bugs.webkit.org/show_bug.cgi?id=123245
2732 Reviewed by Gyuyoung Kim.
2734 After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
2735 Eo typedef and splitted header files which contain version macro.
2737 * wtf/OwnPtrCommon.h: Changed Eo typedef.
2738 * wtf/efl/RefPtrEfl.h: Ditto.
2740 2013-10-24 Carlos Garcia Campos <cgarcia@igalia.com>
2742 [GObject bindings] Make EventTarget interface introspectable
2743 https://bugs.webkit.org/show_bug.cgi?id=77835
2745 Reviewed by Gustavo Noronha Silva.
2747 Add support for use GRefPtr with GClosure.
2749 * wtf/gobject/GRefPtr.cpp:
2752 * wtf/gobject/GRefPtr.h:
2753 * wtf/gobject/GTypedefs.h:
2755 2013-10-23 Anders Carlsson <andersca@apple.com>
2757 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
2758 https://bugs.webkit.org/show_bug.cgi?id=123228
2760 Reviewed by Geoffrey Garen.
2762 All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
2765 * wtf/ThreadSafeRefCounted.h:
2766 (WTF::ThreadSafeRefCountedBase::ref):
2767 (WTF::ThreadSafeRefCountedBase::refCount):
2768 (WTF::ThreadSafeRefCountedBase::derefBase):
2770 2013-10-23 Anders Carlsson <andersca@apple.com>
2773 https://bugs.webkit.org/show_bug.cgi?id=123226
2775 Reviewed by Dan Bernstein.
2777 HAVE_XPC has been true on Mac since Lion, so remove it.
2781 2013-10-23 Andreas Kling <akling@apple.com>
2783 Make more StringImpl construction functions return PassRef.
2784 <https://webkit.org/b/123203>
2786 Knock out a couple more of the StringImpl construction helpers that
2787 always return a non-null StringImpl.
2789 Reviewed by Antti Koivisto.
2791 2013-10-22 Filip Pizlo <fpizlo@apple.com>
2793 FTL should be able to do some simple inline caches using LLVM patchpoints
2794 https://bugs.webkit.org/show_bug.cgi?id=123164
2796 Reviewed by Mark Hahnenberg.
2798 This needed some better bitvector support, like merging (|=), excluding (&=~),
2799 hashing, and bit counting.
2801 * wtf/BitVector.cpp:
2802 (WTF::BitVector::setSlow):
2803 (WTF::BitVector::excludeSlow):
2804 (WTF::BitVector::bitCountSlow):
2805 (WTF::BitVector::equalsSlowCase):
2806 (WTF::BitVector::hashSlowCase):
2807 (WTF::BitVector::dump):
2809 (WTF::BitVector::merge):
2810 (WTF::BitVector::exclude):
2811 (WTF::BitVector::bitCount):
2812 (WTF::BitVector::BitVector):
2813 (WTF::BitVector::isEmptyValue):
2814 (WTF::BitVector::isDeletedValue):
2815 (WTF::BitVector::isEmptyOrDeletedValue):
2816 (WTF::BitVector::operator==):
2817 (WTF::BitVector::hash):
2818 (WTF::BitVectorHash::hash):
2819 (WTF::BitVectorHash::equal):
2821 (WTF::CustomHashTraits::constructDeletedValue):
2822 (WTF::CustomHashTraits::isDeletedValue):
2823 (WTF::CustomHashTraits::emptyValue):
2824 (WTF::CustomHashTraits::isEmptyValue):
2825 * wtf/StdLibExtras.h:
2828 2013-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com>
2830 Clean-up in Atomics.h
2831 https://bugs.webkit.org/show_bug.cgi?id=123207
2833 Reviewed by Anders Carlsson.
2835 Atomics.h has two confusing and bit-rotted ifdefs with comments.
2837 The first about CPU(SPARC64) was rendered obsolete when we switched
2838 from __exchange_and_add to __sync_add_and_fetch.
2840 The second was caused by a wrong definition that apparently only
2841 caused trouble on GCC.
2845 2013-10-22 Andreas Kling <akling@apple.com>
2847 StringImpl::lower() should return a PassRef.
2848 <https://webkit.org/b/123190>
2850 Test the waters and hack enough of StringImpl to be able to return
2851 a PassRef<StringImpl> from lower().
2853 Also gave String a constructor that takes a PassRef<StringImpl>.
2855 Reviewed by Antti Koivisto.
2857 2013-10-22 Commit Queue <commit-queue@webkit.org>
2859 Unreviewed, rolling out r157835.
2860 http://trac.webkit.org/changeset/157835
2861 https://bugs.webkit.org/show_bug.cgi?id=123192
2863 broke 32-bit builds (Requested by smfr on #webkit).
2865 * wtf/MediaTime.cpp:
2869 2013-10-22 Jer Noble <jer.noble@apple.com>
2871 [WTF] Add a multiplication operator (and a few others) to MediaTime
2872 https://bugs.webkit.org/show_bug.cgi?id=123137
2874 Reviewed by Eric Carlson.
2876 Add a multiplication operator and an inequality operator to the
2877 MediaTime class for use by MSE.
2879 * wtf/MediaTime.cpp:
2880 (WTF::signum): Moved to top of file.
2881 (WTF::MediaTime::operator*): Added.
2882 (WTF::MediaTime::operator!=): Added.
2884 (WTF::operator*): Added non-class version of operator*.
2886 2013-10-21 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2888 Make TYPE_CASTS_BASE more flexible
2889 https://bugs.webkit.org/show_bug.cgi?id=122951
2891 Reviewed by Andreas Kling.
2893 TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
2894 to be used by other type casts. For instance, CSSValue, Accessibility and so on.
2895 This patch modifies TYPE_CASTS_BASE which can support other type casts.
2897 Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
2901 2013-10-20 Filip Pizlo <fpizlo@apple.com>
2903 StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
2904 https://bugs.webkit.org/show_bug.cgi?id=123076
2906 Reviewed by Sam Weinig.
2908 Teach BitVector how to efficiently merge (i.e. bitvector |=).
2910 * wtf/BitVector.cpp:
2911 (WTF::BitVector::mergeSlow):
2913 (WTF::BitVector::merge):
2914 (WTF::BitVector::cleanseInlineBits):
2916 2013-10-19 Jer Noble <jer.noble@apple.com>
2918 Unreviewed roll out of r157695; broke Mac builds.
2920 * wtf/FeatureDefines.h:
2922 2013-10-07 Jer Noble <jer.noble@apple.com>
2924 [MSE] [Mac] Enable MediaSource on the Mac
2925 https://bugs.webkit.org/show_bug.cgi?id=122484
2927 Reviewed by Darin Adler.
2929 Enable ENABLE_MEDIA_SOURCE.
2931 * wtf/FeatureDefines.h:
2933 2013-10-19 Andreas Kling <akling@apple.com>
2935 RefPtr::releaseNonNull() incorrectly increments the refcount.
2936 <https://webkit.org/b/123063>
2938 Make releaseNonNull() use adoptRef(T&), mirroring release().
2940 Reviewed by Anders Carlsson.
2942 2013-10-18 Andreas Kling <akling@apple.com>
2944 Start passing RenderStyle around with PassRef.
2945 <https://webkit.org/b/123051>
2947 Added some new PassRef tricks to make this patch possible.
2949 Reviewed by Darin Adler.
2952 (WTF::PassRef::get):
2954 Added a get() helper to facilitate writing functions that
2955 construct a new object and call some functions on it before
2958 (WTF::PassRef::dropRef):
2960 This will deref() the referenced object and mark the PassRef
2961 as "passed." This is used in code paths where the PassRef is
2962 going to go out of scope with nobody to take it over.
2964 (WTF::PassRef::leakRef):
2966 Renamed takeReference() to leakRef() and made it public so
2967 we don't have to awkwardly sink the PassRef into a Ref for
2971 (WTF::RefPtr::releaseNonNull):
2973 Added RefPtr::releaseNonNull() for a convenient way of creating
2974 a PassRef<T> from a RefPtr<T>. This function may only be called
2975 if the RefPtr is known to be non-null.
2977 2013-10-18 Filip Pizlo <fpizlo@apple.com>
2979 A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
2980 https://bugs.webkit.org/show_bug.cgi?id=122940
2982 Reviewed by Oliver Hunt.
2984 * GNUmakefile.list.am:
2985 * WTF.vcxproj/WTF.vcxproj:
2986 * WTF.xcodeproj/project.pbxproj:
2987 * wtf/BagToHashMap.h: Added.
2989 * wtf/CMakeLists.txt:
2991 2013-10-18 Anders Carlsson <andersca@apple.com>
2993 Remove spaces between template angle brackets
2994 https://bugs.webkit.org/show_bug.cgi?id=123040
2996 Reviewed by Andreas Kling.
2999 * wtf/CheckedArithmetic.h:
3000 * wtf/Compression.h:
3003 * wtf/HashFunctions.h:
3004 * wtf/HashIterators.h:
3007 * wtf/ListHashSet.h:
3009 * wtf/RefCountedLeakCounter.cpp:
3011 * wtf/SentinelLinkedList.h:
3013 * wtf/SizeLimits.cpp:
3014 * wtf/StreamBuffer.h:
3016 * wtf/VectorTraits.h:
3018 (WTF::WeakReference::create):
3019 (WTF::WeakReference::createUnbound):
3020 (WTF::WeakPtr::WeakPtr):
3021 (WTF::WeakPtrFactory::WeakPtrFactory):
3022 * wtf/text/AtomicString.cpp:
3023 (WTF::AtomicString::add):
3025 * wtf/text/StringConcatenate.h:
3026 * wtf/text/StringImpl.h:
3027 * wtf/text/StringOperators.h:
3030 2013-10-18 Brendan Long <b.long@cablelabs.com>
3032 [GStreamer][GTK] Add GRefPtr::outPtr()
3033 https://bugs.webkit.org/show_bug.cgi?id=122996
3035 Reviewed by Philippe Normand.
3037 * wtf/gobject/GRefPtr.h:
3038 (WTF::GRefPtr::outPtr): Added.
3040 2013-10-17 Geoffrey Garen <ggaren@apple.com>
3042 Tidied up the Vector<T> move constructor
3043 https://bugs.webkit.org/show_bug.cgi?id=122998
3045 Reviewed by Anders Carlsson.
3048 (WTF::::Vector): Don't call swap() "weird". It's the way most std types
3049 implement move constructors.
3051 Do inline this function, so the compiler can optimize away a logical
3052 move into a physical no-op.
3054 2013-10-16 Filip Pizlo <fpizlo@apple.com>
3056 Introduce WTF::Bag and start using it for InlineCallFrameSet
3057 https://bugs.webkit.org/show_bug.cgi?id=122941
3059 Reviewed by Geoffrey Garen.
3061 Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
3062 malloc per entry. No need to shrink afterwards.
3064 * GNUmakefile.list.am:
3065 * WTF.vcxproj/WTF.vcxproj:
3066 * WTF.xcodeproj/project.pbxproj:
3071 (WTF::Bag::iterator::iterator):
3072 (WTF::Bag::iterator::operator!):
3073 (WTF::Bag::iterator::operator*):
3074 (WTF::Bag::iterator::operator++):
3075 (WTF::Bag::iterator::operator==):
3078 (WTF::Bag::isEmpty):
3079 * wtf/CMakeLists.txt:
3081 2013-10-17 Andreas Kling <akling@apple.com>
3083 Make it possible to assign a PassRef to a RefPtr.
3084 <https://webkit.org/b/122943>
3086 We have to use std::move when constructing a RefPtr from a PassRef
3087 since there is no copy constructor for the latter.
3089 Reviewed by Antti Koivisto.
3091 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com>
3093 Unreviewed build fix attempt on EFL port after r157520 and r157523
3095 * wtf/PassRef.h: includes <utility>
3097 2013-10-16 Darin Adler <darin@apple.com>
3099 Add PassRef and createRefCounted so we can improve creation of RefCounted objects
3100 https://bugs.webkit.org/show_bug.cgi?id=122904
3102 Reviewed by Anders Carlsson.
3104 * GNUmakefile.list.am: Added PassRef.h.
3105 * WTF.vcxproj/WTF.vcxproj: Ditto.
3106 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
3107 * WTF.xcodeproj/project.pbxproj: Ditto.
3108 * wtf/CMakeLists.txt: Ditto.
3110 * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
3111 the style-checking script expects.
3113 * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
3114 is analogous to make_unique, but is for reference counted objects, and also
3115 assumes that new will never return null. Also includes an overload of adoptRef
3116 that takes a reference rather than a pointer.
3118 * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
3119 Got rid of declarations that duplicate ones in there.
3120 (WTF::refIfNotNull): Use nullptr.
3121 (WTF::derefIfNotNull): Use nullptr.
3122 (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
3123 (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
3124 (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
3125 (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
3126 of an unused boolean.
3127 (WTF::PassRefPtr::leakRef): Use nullptr.
3128 (WTF::adoptRef): Use the adopt tag.
3130 * wtf/Ref.h: Use Noncopyable instead of rolling our own.
3131 (WTF::Ref::Ref): Add an overload that takes a PassRef.
3132 (WTF::Ref::operator=): Ditto.
3134 * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
3135 (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
3136 (WTF::RefPtr::release): Use nullptr.
3137 (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
3138 (WTF::RefPtr::operator=): Added overload that takes a PassRef.
3139 (WTF::RefPtr::clear): Use nullptr.
3141 * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
3142 reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
3143 were missing before.
3145 2013-10-15 Dean Jackson <dino@apple.com>
3147 Add ENABLE_WEB_ANIMATIONS flag
3148 https://bugs.webkit.org/show_bug.cgi?id=122871
3150 Reviewed by Tim Horton.
3152 Eventually might be http://dev.w3.org/fxtf/web-animations/
3153 but this is just engine-internal work at the moment.
3155 * wtf/FeatureDefines.h:
3157 2013-10-15 Daniel Bates <dabates@apple.com>
3159 [iOS] Upstream JavaScriptCore support for ARM64
3160 https://bugs.webkit.org/show_bug.cgi?id=122762
3162 Reviewed by Oliver Hunt.
3164 * Configurations/Base.xcconfig:
3166 (WTF::weakCompareAndSwap):
3168 * wtf/FastMalloc.cpp:
3172 * wtf/text/ASCIIFastPath.h:
3173 (WTF::copyLCharsFromUCharSource):
3174 * wtf/text/StringImpl.h:
3176 2013-10-14 Zan Dobersek <zdobersek@igalia.com>
3178 Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
3179 https://bugs.webkit.org/show_bug.cgi?id=122745
3181 Reviewed by Anders Carlsson.
3184 (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
3185 the static assertion should note that adoptRef should be used instead.
3187 2013-10-14 Anders Carlsson <andersca@apple.com>
3189 WebKit Nightlies broken by r157374
3190 https://bugs.webkit.org/show_bug.cgi?id=122736
3192 Reviewed by Andreas Kling.
3194 Add back a callOnMainThread overload that Safari is using.
3196 * wtf/MainThread.cpp:
3197 (WTF::callOnMainThread):
3200 2013-10-13 Darin Adler <darin@apple.com>
3202 Deprecate or remove deleteAllValues functions; there are only a few call sites left
3203 https://bugs.webkit.org/show_bug.cgi?id=122738
3205 Reviewed by Anders Carlsson.
3207 * wtf/Deque.h: Deleted deleteAllValues.
3208 * wtf/HashMap.h: Ditto.
3209 * wtf/HashSet.h: Ditto.
3210 * wtf/ListHashSet.h: Ditto.
3211 * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
3213 == Rolled over to ChangeLog-2013-10-13 ==