1 2014-01-24 Brent Fulgham <bfulgham@apple.com>
3 [Win] Convert some NMake files to MSBuild project files
4 https://bugs.webkit.org/show_bug.cgi?id=127579
6 Reviewed by Tim Horton.
8 * WTF.vcxproj/WTF.make: Removed.
9 * WTF.vcxproj/WTF.proj: Added.
11 2014-01-24 Anders Carlsson <andersca@apple.com>
13 Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
14 https://bugs.webkit.org/show_bug.cgi?id=127571
16 Reviewed by Antti Koivisto.
19 Add a CONSTEXPR define so we can still use constexpr on compilers that don't support them (MSVC).
22 Remove monotonicallyIncreasingTimeMS().
25 (std::literals::chrono_literals::operator _s):
26 (std::literals::chrono_literals::operator _ms):
27 Add _s and _ms literals. Once we switch over to C++14, we can drop them and just use the built-in ones.
29 2014-01-24 Anders Carlsson <andersca@apple.com>
31 The CXX_EXPLICIT_CONVERSIONS COMPILER_SUPPORTS macro has been removed, and all
32 compilers support explicit conversions now so simply remove the #ifdef.
36 2014-01-24 Darin Adler <darin@apple.com>
39 https://bugs.webkit.org/show_bug.cgi?id=127491
41 Reviewed by Anders Carlsson.
43 * wtf/Assertions.h: Remove COMPILER_SUPPORTS(CXX_STATIC_ASSERT), since
44 we now have that for all compilers that can build WebKit.
46 * wtf/Compiler.h: Removed always true feature flags, including:
47 COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES), COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES),
48 COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS), COMPILER_SUPPORTS(CXX_NULLPTR),
49 COMPILER_SUPPORTS(CXX_EXPLICIT_CONVERSIONS), COMPILER_SUPPORTS(CXX_STATIC_ASSERT),
50 COMPILER_SUPPORTS(CXX_OVERRIDE_CONTROL), COMPILER_SUPPORTS(CXX_STRONG_ENUMS), and
51 COMPILER_SUPPORTS(CXX_AUTO_TYPE). Sorted sections alphabetically. Separated out
52 nested #if and #else into separate checks for greater readability. Removed obsolete
53 check for COMPILER(RVCT). Removed unused COMPILER(GCCE) detection.
55 * wtf/RefPtr.h: Remove COMPILER_SUPPORTS(CXX_NULLPTR), since we now have
56 that for all compilers that can build WebKit.
57 * wtf/RetainPtr.h: Ditto.
59 2014-01-23 Max Vujovic <mvujovic@adobe.com>
61 Remove CSS Custom Filters code and tests
62 https://bugs.webkit.org/show_bug.cgi?id=127382
64 Reviewed by Simon Fraser.
66 * wtf/FeatureDefines.h:
68 2014-01-22 Brent Fulgham <bfulgham@apple.com>
70 [Win] Update project and solution files for 64-bit builds.
71 https://bugs.webkit.org/show_bug.cgi?id=127457
73 Reviewed by Eric Carlson.
75 * WTF.vcxproj/WTF.submit.sln: Add x64 targets.
76 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
78 2014-01-22 Myles C. Maxfield <mmaxfield@apple.com>
80 Remove CSS3_TEXT_DECORATION define
81 https://bugs.webkit.org/show_bug.cgi?id=127333
83 Reviewed by Simon Fraser.
85 This is required for unprefixing the text-decoration-* CSS properties.
89 2014-01-22 Jae Hyun Park <jae.park@company100.net>
91 Remove unnecessary include in Noncopyable.h
92 https://bugs.webkit.org/show_bug.cgi?id=127406
94 Reviewed by Anders Carlsson.
96 * wtf/Noncopyable.h: We don't need Compiler.h as of r162198.
98 2014-01-22 Carlos Garcia Campos <cgarcia@igalia.com>
101 https://bugs.webkit.org/show_bug.cgi?id=127170
103 Reviewed by Gustavo Noronha Silva.
105 The idea is to replace GOwnPtr with a template alias of
106 std:unique_ptr. Not everything can be replaced, though, because
107 GOwnPtr::outPtr() doesn't seem to be possible to implement with
108 unique_ptr. This smart pointer is more flexible than GOwnPtr and
109 allows to transfer the ownership of the pointer using
112 * GNUmakefile.list.am: Add new file to compilation.
113 * wtf/gobject/GUniquePtr.h: Added.
114 (WTF::GPtrDeleter::operator()):
116 2014-01-20 Anders Carlsson <andersca@apple.com>
118 Remove an unused member variable
119 https://bugs.webkit.org/show_bug.cgi?id=127295
121 Reviewed by Antti Koivisto.
123 * wtf/MainThread.cpp:
124 (WTF::FunctionWithContext::FunctionWithContext):
125 (WTF::FunctionWithContext::operator == ):
126 (WTF::dispatchFunctionsFromMainThread):
128 2014-01-20 Anders Carlsson <andersca@apple.com>
130 Remove MutexTryLocker
131 https://bugs.webkit.org/show_bug.cgi?id=127294
133 Reviewed by Antti Koivisto.
135 MutexTryLocker has been replaced with std::unique_lock with std::try_to_lock everywhere now.
137 * wtf/ThreadingPrimitives.h:
139 2014-01-19 Carlos Garcia Campos <cgarcia@igalia.com>
141 [GLIB] GVariant floating references are not correctly handled by GRefPtr
142 https://bugs.webkit.org/show_bug.cgi?id=127246
144 Reviewed by Martin Robinson.
146 GRefPtr should always use g_variant_ref_sink to deal with GVariant
147 floating references. In case of full references,
148 g_variant_ref_sink calls g_variant_ref, so it's safe to use it always.
150 * wtf/gobject/GRefPtr.cpp:
151 (WTF::refGPtr): Use g_variant_ref_sink().
153 2014-01-18 Anders Carlsson <andersca@apple.com>
155 Remove support for the viewsource attribute
156 https://bugs.webkit.org/show_bug.cgi?id=127232
158 Reviewed by Andreas Kling.
160 * wtf/FeatureDefines.h:
162 2014-01-18 Anders Carlsson <andersca@apple.com>
164 Remove ENABLE_THREADED_HTML_PARSER defines everywhere
165 https://bugs.webkit.org/show_bug.cgi?id=127225
167 Reviewed by Andreas Kling.
169 This concludes the removal of over 8.8 million lines of threaded parser code.
171 * wtf/FeatureDefines.h:
173 2014-01-17 Anders Carlsson <andersca@apple.com>
175 Add a callOnMainThreadAndWait variant in SocketStreamHandle
176 https://bugs.webkit.org/show_bug.cgi?id=127180
178 Reviewed by Geoffrey Garen.
180 Remove callOnMainThreadAndWait from WTF.
182 * wtf/MainThread.cpp:
185 2014-01-17 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
187 Remove workaround for compilers not supporting deleted functions
188 https://bugs.webkit.org/show_bug.cgi?id=127166
190 Reviewed by Andreas Kling.
196 2014-01-16 Benjamin Poulain <bpoulain@apple.com>
199 https://bugs.webkit.org/show_bug.cgi?id=127150
201 Reviewed by Alexey Proskuryakov.
203 * wtf/DisallowCType.h:
204 * wtf/FeatureDefines.h:
206 * wtf/PlatformNix.cmake: Removed.
209 2014-01-16 Anders Carlsson <andersca@apple.com>
212 https://bugs.webkit.org/show_bug.cgi?id=127149
214 Reviewed by Tim Horton.
218 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
220 Remove workaround for compilers not supporting explicit override control
221 https://bugs.webkit.org/show_bug.cgi?id=127111
223 Reviewed by Anders Carlsson.
225 Now all compilers support explicit override control, this workaround can be removed.
228 * wtf/FilePrintStream.h:
230 * wtf/StringPrintStream.h:
232 2014-01-16 Alberto Garcia <berto@igalia.com>
234 Source/WTF/wtf/Atomics.h:300: Error: bad register name `%bpl'
235 https://bugs.webkit.org/show_bug.cgi?id=126985
237 Reviewed by Csaba Osztrogonác.
239 Use the 'q' constraint to force using a register that allows
240 access to its lower byte.
243 (WTF::weakCompareAndSwap):
245 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
247 Fix unnecessary checks for Clang compiler if the compiler is MSVC.
248 https://bugs.webkit.org/show_bug.cgi?id=127037
250 Reviewed by Csaba Osztrogonác.
252 Inside the #if defined(_MSC_VER) there's no need for checking whether the compiler is not Clang.
256 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
258 Require at least GCC version 4.7
259 https://bugs.webkit.org/show_bug.cgi?id=127049
261 Reviewed by Csaba Osztrogonác.
263 r161770 added a template alias, so the minimum GCC version is 4.7 now.
265 Also fixed a typo in the error message about old MSVC version.
269 2014-01-15 Alberto Garcia <berto@igalia.com>
271 [GTK] v2.3.3 fails to build in Debian / FreeBSD
272 https://bugs.webkit.org/show_bug.cgi?id=126502
274 Reviewed by Mark Lam.
276 * wtf/Platform.h: Add LLINT support to FreeBSD.
278 2014-01-15 Anders Carlsson <andersca@apple.com>
280 Get rid of RefCountedCustomAllocated
281 https://bugs.webkit.org/show_bug.cgi?id=127051
283 Reviewed by Antti Koivisto.
285 It's not used anywhere anymore, get rid of it.
288 * wtf/SizeLimits.cpp:
290 2014-01-14 Anders Carlsson <andersca@apple.com>
292 And yet another build fix.
294 * wtf/SizeLimits.cpp:
296 2014-01-14 Anders Carlsson <andersca@apple.com>
300 * wtf/SizeLimits.cpp:
302 2014-01-14 Daniel Bates <dabates@apple.com>
304 [iOS] Enable WTF_USE_UIKIT_EDITING
308 2014-01-14 Daniel Bates <dabates@apple.com>
310 [iOS] Enable QuickLook
311 https://bugs.webkit.org/show_bug.cgi?id=126954
313 Reviewed by David Kilzer.
317 2014-01-14 Anders Carlsson <andersca@apple.com>
319 Get rid of ThreadRestrictionVerifier
320 https://bugs.webkit.org/show_bug.cgi?id=127004
322 Reviewed by Sam Weinig.
324 The ThreadRestrictionVerifier mechanism has been turned off for a while
325 since it doesn't really have a good solution for objects that are passed between threads.
326 Instead of having dead code in the tree, just get rid of it.
328 * GNUmakefile.list.am:
329 * WTF.vcxproj/WTF.vcxproj:
330 * WTF.vcxproj/WTF.vcxproj.filters:
331 * WTF.xcodeproj/project.pbxproj:
332 * wtf/CMakeLists.txt:
334 (WTF::RefCountedBase::ref):
335 (WTF::RefCountedBase::hasOneRef):
336 (WTF::RefCountedBase::refCount):
337 (WTF::RefCountedBase::derefBase):
338 * wtf/ThreadRestrictionVerifier.h: Removed.
340 2014-01-14 Benjamin Poulain <benjamin@webkit.org>
342 Enable the experimental selector code generator by default
343 https://bugs.webkit.org/show_bug.cgi?id=126953
345 Reviewed by Gavin Barraclough.
348 Enable CSS_SELECTOR_JIT on OS X x86_64 by default.
349 The feature is not ready to ship but it is stable enough to enable
350 for the bots and nightly.
352 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
354 Add ENABLE(WEB_REPLAY) feature flag to the build system
355 https://bugs.webkit.org/show_bug.cgi?id=126949
357 Reviewed by Joseph Pecoraro.
359 * wtf/FeatureDefines.h: for now, disable the flag by default.
361 2014-01-14 peavo@outlook.com <peavo@outlook.com>
363 [Win] Application name in user agent string is truncated.
364 https://bugs.webkit.org/show_bug.cgi?id=126810
366 Reviewed by Anders Carlsson.
368 * wtf/text/StringConcatenate.h:
369 (WTF::tryMakeString): Add missing 8 bit check for last argument.
371 2014-01-13 Anders Carlsson <andersca@apple.com>
373 Move another deprecated symbol to DeprecatedSymbolsUsedBySafari.mm
374 https://bugs.webkit.org/show_bug.cgi?id=126909
376 Reviewed by Ryosuke Niwa.
378 * wtf/MainThread.cpp:
380 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm:
381 (WTF::callOnMainThread):
383 2014-01-13 Anders Carlsson <andersca@apple.com>
387 * wtf/ThreadingWin.cpp:
388 (WTF::initializeThreading):
390 2014-01-13 Anders Carlsson <andersca@apple.com>
392 Remove AtomicallyInitializedStatic
393 https://bugs.webkit.org/show_bug.cgi?id=126864
395 Reviewed by Andreas Kling.
397 Remove the lockAtomicallyInitializedStaticMutex and unlockAtomicallyInitializedStaticMutex functions
398 everywhere except on Mac (where they unfortunately were used by Safari).
400 On Mac, add them to a separate file which will hold functions and symbols that we would like
401 to remove but that are used by Safari. Reimplement them in terms of std::call_once and std::mutex.
403 * WTF.xcodeproj/project.pbxproj:
405 * wtf/ThreadingPthreads.cpp:
406 (WTF::initializeThreading):
407 * wtf/ThreadingWin.cpp:
408 (WTF::initializeThreading):
409 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm: Added.
410 (WTF::atomicallyInitializedStaticMutex):
411 (WTF::lockAtomicallyInitializedStaticMutex):
412 (WTF::unlockAtomicallyInitializedStaticMutex):
414 2014-01-13 Commit Queue <commit-queue@webkit.org>
416 Unreviewed, rolling out r161855.
417 http://trac.webkit.org/changeset/161855
418 https://bugs.webkit.org/show_bug.cgi?id=126880
420 Sister commit of r161852 (Requested by kling on #webkit).
422 * wtf/ThreadingPthreads.cpp:
423 (WTF::initializeThreading):
425 2014-01-13 Commit Queue <commit-queue@webkit.org>
427 Unreviewed, rolling out r161852.
428 http://trac.webkit.org/changeset/161852
429 https://bugs.webkit.org/show_bug.cgi?id=126877
431 Broke ToT with system Safari (Requested by kling on #webkit).
434 * wtf/ThreadingPthreads.cpp:
435 (WTF::initializeThreading):
436 (WTF::lockAtomicallyInitializedStaticMutex):
437 (WTF::unlockAtomicallyInitializedStaticMutex):
438 * wtf/ThreadingWin.cpp:
439 (WTF::lockAtomicallyInitializedStaticMutex):
440 (WTF::unlockAtomicallyInitializedStaticMutex):
441 (WTF::initializeThreading):
443 2014-01-12 Commit Queue <commit-queue@webkit.org>
445 Unreviewed, rolling out r161840.
446 http://trac.webkit.org/changeset/161840
447 https://bugs.webkit.org/show_bug.cgi?id=126870
449 Caused jsscore and layout test failures (Requested by smfr on
452 * wtf/text/StringImpl.cpp:
453 (WTF::StringImpl::replace):
454 * wtf/text/WTFString.h:
455 (WTF::String::isAllSpecialCharacters):
457 2014-01-12 Dan Bernstein <mitz@apple.com>
459 Fix an assertion failure in initializeDates() when launching Safari, which was introduced in r161852.
461 Reviewed by Andy Estes.
463 * wtf/ThreadingPthreads.cpp:
464 (WTF::initializeThreading): Set isInitialized to true.
466 2014-01-12 Darin Adler <darin@apple.com>
468 Add PLATFORM(COCOA) and USE(FOUNDATION)
469 https://bugs.webkit.org/show_bug.cgi?id=126859
471 Reviewed by Anders Carlsson.
473 * wtf/Platform.h: Added PLATFORM(COCOA), which for now is set at exactly the same
474 times that PLATFORM(MAC) is. Added USE(FOUNDATION), which is set at the same times
475 that PLATFORM(COCOA) is. Re-organize the PLATFORM(MAC) and PLATFORM(IOS) settings
476 in the header so they are a bit easier to read. Put HAVE_LANGINFO_H in with the
477 rest of the OS(UNIX) settings and put HAVE_READLINE in with the rest of the
478 OS(DARWIN) settings. Tweak formatting a bit.
480 2014-01-12 Anders Carlsson <andersca@apple.com>
482 Remove AtomicallyInitializedStatic
483 https://bugs.webkit.org/show_bug.cgi?id=126864
485 Reviewed by Darin Adler.
488 * wtf/ThreadingPthreads.cpp:
489 (WTF::initializeThreading):
490 * wtf/ThreadingWin.cpp:
491 (WTF::initializeThreading):
493 2014-01-12 Darin Adler <darin@apple.com>
495 Add deprecatedCharacters as a synonym for characters and convert most call sites
496 https://bugs.webkit.org/show_bug.cgi?id=126858
498 Reviewed by Anders Carlsson.
500 * wtf/text/AtomicString.cpp:
501 (WTF::HashAndUTF8CharactersTranslator::equal):
502 (WTF::SubstringTranslator::hash):
503 (WTF::SubstringTranslator::equal):
504 * wtf/text/AtomicString.h:
505 (WTF::AtomicString::characters):
506 * wtf/text/Base64.cpp:
508 (WTF::base64URLDecode):
509 * wtf/text/StringBuilder.h:
510 (WTF::StringBuilder::characters):
511 (WTF::StringBuilder::deprecatedCharacters):
512 * wtf/text/StringImpl.cpp:
513 (WTF::StringImpl::getData16SlowCase):
514 (WTF::StringImpl::upper):
515 (WTF::StringImpl::lower):
516 (WTF::StringImpl::find):
517 (WTF::StringImpl::findIgnoringCase):
518 * wtf/text/StringImpl.h:
519 (WTF::StringImpl::characters):
520 (WTF::StringImpl::deprecatedCharacters):
521 (WTF::StringImpl::getCharacters<UChar>):
522 (WTF::equalIgnoringNullity):
523 * wtf/text/WTFString.cpp:
524 (WTF::String::append):
525 (WTF::String::appendInternal):
526 (WTF::String::insert):
527 (WTF::String::truncate):
528 (WTF::String::percentage):
529 * wtf/text/WTFString.h:
530 (WTF::String::characters):
531 (WTF::String::deprecatedCharacters):
532 (WTF::String::getCharactersWithUpconvert<UChar>):
534 Use deprecatedCharacters instead of characters.
536 2014-01-12 Anders Carlsson <andersca@apple.com>
538 Remove the last remaining uses of AtomicallyInitializedStatic
539 https://bugs.webkit.org/show_bug.cgi?id=126863
541 Reviewed by Darin Adler.
544 (WTF::hashTableStatsMutex):
545 (WTF::HashTableStats::recordCollisionAtCount):
546 (WTF::HashTableStats::dumpStats):
547 * wtf/unicode/icu/CollatorICU.cpp:
548 (WTF::cachedCollatorMutex):
549 (WTF::Collator::createCollator):
550 (WTF::Collator::releaseCollator):
552 2014-01-12 Darin Adler <darin@apple.com>
554 Reduce use of String::characters
555 https://bugs.webkit.org/show_bug.cgi?id=126854
557 Reviewed by Sam Weinig.
559 * wtf/text/StringImpl.cpp:
560 (WTF::StringImpl::replace): Use characters16 here since is8Bit was already checked.
561 * wtf/text/WTFString.h:
562 (WTF::String::isAllSpecialCharacters): Use characters16 here since is8Bit was
563 already checked. Also renamed "len" to "length".
565 2014-01-12 Anders Carlsson <andersca@apple.com>
567 Replace more uses of AtomicallyInitializedStatic with std::call_once
568 https://bugs.webkit.org/show_bug.cgi?id=126847
570 Reviewed by Sam Weinig.
573 Forward declare NeverDestroyed.
575 2014-01-11 Zan Dobersek <zdobersek@igalia.com>
577 Unreviewed build fix for ports using GCC after r161770.
579 * wtf/IteratorAdaptors.h:
580 (WTF::FilterIterator::operator*): Replicating r161797, the const qualifier for
581 FilterIterator::operator*() is removed since it clashes with some iterator types
582 that are also const, causing compilation failures with GCC.
584 2014-01-11 Anders Carlsson <andersca@apple.com>
586 Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
587 https://bugs.webkit.org/show_bug.cgi?id=126837
589 Reviewed by Sam Weinig.
592 (WTF::HashSet::HashSet):
593 Add a HashSet constructor that takes an initializer list.
595 2014-01-11 Sam Weinig <sam@webkit.org>
599 * wtf/IteratorAdaptors.h:
600 (WTF::TransformIterator::operator*):
602 2014-01-11 Sam Weinig <sam@webkit.org>
604 Add support for null StringViews
605 https://bugs.webkit.org/show_bug.cgi?id=126827
607 Reviewed by Anders Carlsson.
609 - Do some style cleanup while in the neighborhood.
611 * wtf/text/StringView.h:
612 (WTF::StringView::StringView):
613 Add default constructor to create a null StringView.
615 (WTF::StringView::isNull):
616 Add isNull(), matching the semantics of String.
618 (WTF::StringView::operator bool):
619 Add an explicit operator bool() to allow use in if-statements.
621 2014-01-11 Sam Weinig <sam@webkit.org>
623 Clean up iterator filter / iterator range code
624 https://bugs.webkit.org/show_bug.cgi?id=126817
626 Reviewed by Anders Carlsson.
628 - Renames IteratorPair to IteratorRange.
629 - Splits FilterIterator into FilterIterator (which now only filters) and
630 TransformIterator (which does the transform part of the old FilterIterator).
631 Move both of these to IteratorAdaptors.h
633 * GNUmakefile.list.am:
634 * WTF.vcxproj/WTF.vcxproj:
635 * WTF.vcxproj/WTF.vcxproj.filters:
636 * WTF.xcodeproj/project.pbxproj:
637 * wtf/CMakeLists.txt:
638 * wtf/FilterIterator.h: Removed.
642 (WTF::HashMap::keys):
643 (WTF::HashMap::values):
644 * wtf/RefPtrHashMap.h:
645 Update for rename to IteratorRange. Simplify by using makeIteratorRange().
647 * wtf/IteratorAdaptors.h: Copied from wtf/FilterIterator.h.
648 (WTF::FilterIterator::FilterIterator):
649 (WTF::FilterIterator::operator*):
650 (WTF::makeFilterIterator):
651 (WTF::TransformIterator::TransformIterator):
652 (WTF::TransformIterator::operator++):
653 (WTF::TransformIterator::operator*):
654 (WTF::TransformIterator::operator==):
655 (WTF::TransformIterator::operator!=):
656 (WTF::makeTransformIterator):
657 Split up filtering and transforming. Add makeFilterIterator() and makeTransformIterator()
660 * wtf/IteratorPair.h: Removed.
661 * wtf/IteratorRange.h: Copied from wtf/IteratorPair.h.
662 (WTF::IteratorRange::IteratorRange):
663 (WTF::makeIteratorRange):
664 Renamed to IteratorRange and adds makeIteratorRange() helper.
666 2014-01-10 David Kilzer <ddkilzer@apple.com>
668 Clean up architectures in xcconfig files
669 <http://webkit.org/b/126794>
671 Reviewed by Andy Estes.
673 * Configurations/Base.xcconfig:
676 2014-01-10 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
678 [EFL][JSC] Enable udis86 disassembler on efl.
679 https://bugs.webkit.org/show_bug.cgi?id=125502
681 Reviewed by Michael Saboff.
683 Enable udis86 disassembler on efl and fix build warnings.
686 Enable udis86 disassembler on EFL.
688 2014-01-10 Hunseop Jeong <hs85.jeong@samsung.com>
690 [EFL] Enable the DFG_JIT on ARMv7
691 https://bugs.webkit.org/show_bug.cgi?id=126742
693 Reviewed by Gyuyoung Kim.
695 Turn on ENABLE_DFG_JIT on ARMv7 for EFL.
699 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
701 Marking should be generational
702 https://bugs.webkit.org/show_bug.cgi?id=126552
704 Reviewed by Geoffrey Garen.
707 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
708 is used with smaller types than int32_t.
710 2014-01-09 Simon Fraser <simon.fraser@apple.com>
712 Enable async scrolling for iOS
713 https://bugs.webkit.org/show_bug.cgi?id=126730
715 Reviewed by Tim Horton.
717 Turn on ENABLE_ASYNC_SCROLLING for iOS.
719 * wtf/FeatureDefines.h:
721 2014-01-09 Anders Carlsson <andersca@apple.com>
723 Remove Blackberry and QNX bits from WTF
724 https://bugs.webkit.org/show_bug.cgi?id=126726
726 Reviewed by Benjamin Poulain.
728 * wtf/Assertions.cpp:
730 * wtf/CurrentTime.cpp:
731 (WTF::currentCPUTime):
733 * wtf/DisallowCType.h:
734 * wtf/FeatureDefines.h:
737 * wtf/NumberOfCores.cpp:
738 (WTF::numberOfProcessorCores):
739 * wtf/OSAllocatorPosix.cpp:
740 (WTF::OSAllocator::reserveUncommitted):
741 (WTF::OSAllocator::commit):
742 (WTF::OSAllocator::decommit):
744 * wtf/PlatformBlackBerry.cmake: Removed.
746 (WTF::computeRAMSize):
747 * wtf/StackBounds.cpp:
748 * wtf/ThreadingPthreads.cpp:
749 (WTF::initializeThreading):
750 (WTF::initializeCurrentThreadInternal):
751 * wtf/blackberry/MainThreadBlackBerry.cpp: Removed.
752 * wtf/blackberry/RunLoopBlackBerry.cpp: Removed.
753 * wtf/text/AtomicString.h:
754 * wtf/text/StringImpl.h:
755 * wtf/text/WTFString.h:
757 2014-01-09 Daniel Bates <dabates@apple.com>
759 [iOS] Upstream WebCore/platform changes
760 https://bugs.webkit.org/show_bug.cgi?id=126654
762 Rubber-stamped by David Kilzer.
764 * wtf/MainThread.cpp:
765 (WTF::canAccessThreadLocalDataForThread):
768 2014-01-09 Commit Queue <commit-queue@webkit.org>
770 Unreviewed, rolling out r161540.
771 http://trac.webkit.org/changeset/161540
772 https://bugs.webkit.org/show_bug.cgi?id=126704
774 Caused assertion failures on multiple tests (Requested by ap
778 (WTF::WordType>::count):
780 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
782 Marking should be generational
783 https://bugs.webkit.org/show_bug.cgi?id=126552
785 Reviewed by Geoffrey Garen.
788 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
789 is used with smaller types than int32_t.
791 2014-01-08 Anders Carlsson <andersca@apple.com>
793 Add WTF::StringView and use it for grammar checking
794 https://bugs.webkit.org/show_bug.cgi?id=126644
796 Reviewed by Antti Koivisto.
798 Add a new StringView class which is an immutable reference to either an 8-bit or a 16-bit string.
800 This makes it easier to pass substrings around without having to either copy string data
801 or upconvert and use UChar pointers.
803 The StringView class is very loosely based on the std::string_view class which is proposed for a future version of C++,
804 see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3609.html for more details.
806 * GNUmakefile.list.am:
807 * WTF.vcxproj/WTF.vcxproj:
808 * WTF.vcxproj/WTF.vcxproj.filters:
809 * WTF.xcodeproj/project.pbxproj:
810 * wtf/CMakeLists.txt:
812 * wtf/text/StringView.h: Added.
813 (WTF::StringView::StringView):
814 (WTF::StringView::empty):
815 (WTF::StringView::characters8):
816 (WTF::StringView::characters16):
817 (WTF::StringView::isEmpty):
818 (WTF::StringView::length):
819 (WTF::StringView::is8Bit):
820 (WTF::StringView::substring):
821 (WTF::StringView::toString):
822 (WTF::StringView::toStringWithoutCopying):
823 (WTF::StringView::encodedCharacters):
825 2014-01-07 David Farler <dfarler@apple.com>
827 [ASAN] Building with trunk clang corrupts sandbox profile with comment from Compiler.h
828 https://bugs.webkit.org/show_bug.cgi?id=124532
830 Reviewed by David Kilzer.
833 Remove this quirk - it does nothing.
835 2014-01-06 Filip Pizlo <fpizlo@apple.com>
837 Get rid of ENABLE(VALUE_PROFILER). It's on all the time now.
839 Rubber stamped by Mark Hahnenberg.
843 2014-01-06 Zan Dobersek <zdobersek@igalia.com>
845 Remove using directives for the std namespace from WTF
846 https://bugs.webkit.org/show_bug.cgi?id=126524
848 Reviewed by Alexey Proskuryakov.
850 Remove the using directives for the std namespace throughout the WTF code.
851 The more explicit std:: nested name specifier should be used instead.
854 (WTF::MediaTime::createWithFloat):
855 (WTF::MediaTime::createWithDouble):
856 * wtf/text/StringImpl.cpp:
857 (WTF::StringImpl::create):
858 (WTF::StringImpl::lower):
859 (WTF::StringImpl::upper):
860 (WTF::StringImpl::foldCase):
861 (WTF::StringImpl::find):
862 (WTF::StringImpl::findIgnoringCase):
863 (WTF::reverseFindInner):
864 (WTF::StringImpl::reverseFind):
865 (WTF::reverseFindIgnoringCaseInner):
866 (WTF::StringImpl::reverseFindIgnoringCase):
867 (WTF::StringImpl::replace):
868 (WTF::StringImpl::utf8ForCharacters):
869 (WTF::StringImpl::utf8ForRange):
870 * wtf/text/WTFString.cpp:
871 (WTF::String::append):
872 (WTF::String::appendInternal):
873 (WTF::String::insert):
874 (WTF::String::substringSharingImpl):
875 (WTF::String::fromUTF8):
876 (WTF::toIntegralType):
877 * wtf/win/RunLoopWin.cpp:
879 2014-01-03 Mark Hahnenberg <mhahnenberg@apple.com>
881 DoublyLinkedLists can't be concatenated
882 https://bugs.webkit.org/show_bug.cgi?id=125976
884 Reviewed by Filip Pizlo.
886 * wtf/DoublyLinkedList.h:
887 (WTF::DoublyLinkedList<T>::append):
889 2014-01-04 Zan Dobersek <zdobersek@igalia.com>
891 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
892 https://bugs.webkit.org/show_bug.cgi?id=126439
894 Reviewed by Andreas Kling.
896 * wtf/VectorTraits.h: Stop bringing std::pair into the current scope.
898 2014-01-02 Gavin Barraclough <barraclough@apple.com>
900 Refactor NSActivity handling code from ChildProcess to UserActivity
901 https://bugs.webkit.org/show_bug.cgi?id=126330
903 Reviewed by Sam Weinig.
905 UserActivity is a mechanism to express to the operating system (where appropriate)
906 that a user initiated activity is taking place, and as such that resources should be
907 made available to the process accordingly.
909 Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us
910 to hold different activity tokens for different user actions (which simplifies the
911 handling, and aides debugging since the token can more accurately express the activity
912 taking place), and also will allow us to avoid the layering difficulty of calling back
913 up the stack to WebKit to register that an activity is taking place.
916 - added HAVE_NS_ACTIVITY.
918 2013-12-30 Commit Queue <commit-queue@webkit.org>
920 Unreviewed, rolling out r161157, r161158, r161160, r161161,
921 r161163, and r161165.
922 http://trac.webkit.org/changeset/161157
923 http://trac.webkit.org/changeset/161158
924 http://trac.webkit.org/changeset/161160
925 http://trac.webkit.org/changeset/161161
926 http://trac.webkit.org/changeset/161163
927 http://trac.webkit.org/changeset/161165
928 https://bugs.webkit.org/show_bug.cgi?id=126332
930 Broke WebKit2 on Mountain Lion (Requested by ap on #webkit).
932 * GNUmakefile.list.am:
933 * WTF.vcxproj/WTF.vcxproj:
934 * WTF.vcxproj/WTF.vcxproj.filters:
935 * WTF.xcodeproj/project.pbxproj:
936 * wtf/CMakeLists.txt:
938 * wtf/PlatformWin.cmake:
939 * wtf/threads/BinarySemaphore.cpp: Added.
940 (WTF::BinarySemaphore::BinarySemaphore):
941 (WTF::BinarySemaphore::~BinarySemaphore):
942 (WTF::BinarySemaphore::signal):
943 (WTF::BinarySemaphore::wait):
944 * wtf/threads/BinarySemaphore.h: Added.
945 (WTF::BinarySemaphore::event):
946 * wtf/threads/win/BinarySemaphoreWin.cpp: Added.
947 (WTF::BinarySemaphore::BinarySemaphore):
948 (WTF::BinarySemaphore::~BinarySemaphore):
949 (WTF::BinarySemaphore::signal):
950 (WTF::BinarySemaphore::wait):
952 2013-12-30 Anders Carlsson <andersca@apple.com>
954 Replace yield() and pauseBriefly() with std::this_thread::yield()
955 https://bugs.webkit.org/show_bug.cgi?id=126105
957 Reviewed by Sam Weinig.
959 * wtf/ByteSpinLock.h:
960 (WTF::ByteSpinLock::lock):
962 * wtf/ThreadingPrimitives.h:
963 * wtf/ThreadingPthreads.cpp:
964 * wtf/ThreadingWin.cpp:
966 2013-12-30 Sam Weinig <sam@webkit.org>
968 Remove unnecessary non-const overload in IteratorPair
969 https://bugs.webkit.org/show_bug.cgi?id=126314
971 Reviewed by Anders Carlsson.
973 * wtf/IteratorPair.h:
975 2013-12-30 Sam Weinig <sam@webkit.org>
977 Remove WTF's BinarySemaphore
978 https://bugs.webkit.org/show_bug.cgi?id=126310
980 Reviewed by Anders Carlsson.
982 It's unused. Also remove the now empty wtf/threads directory.
984 * GNUmakefile.list.am:
985 * WTF.vcxproj/WTF.vcxproj:
986 * WTF.vcxproj/WTF.vcxproj.filters:
987 * WTF.xcodeproj/project.pbxproj:
988 * wtf/CMakeLists.txt:
990 * wtf/PlatformWin.cmake:
991 * wtf/threads: Removed.
992 * wtf/threads/BinarySemaphore.cpp: Removed.
993 * wtf/threads/BinarySemaphore.h: Removed.
994 * wtf/threads/win: Removed.
995 * wtf/threads/win/BinarySemaphoreWin.cpp: Removed.
997 2013-12-30 Roger Fong <roger_fong@apple.com>
999 [Windows] Unreviewed build fix following r160959.
1003 2013-12-30 Anders Carlsson <andersca@apple.com>
1005 Replace WTF::ThreadingOnce with std::call_once
1006 https://bugs.webkit.org/show_bug.cgi?id=126215
1008 Reviewed by Sam Weinig.
1010 * GNUmakefile.list.am:
1011 * wtf/CompilationThread.cpp:
1012 (WTF::initializeCompilationThreads):
1013 * wtf/ThreadingOnce.h: Removed.
1015 2013-12-26 Sam Weinig <sam@webkit.org>
1017 Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys() and HashMap::values() using IteratorPair
1018 https://bugs.webkit.org/show_bug.cgi?id=126253
1020 Reviewed by Anders Carlsson.
1022 * GNUmakefile.list.am:
1023 * WTF.vcxproj/WTF.vcxproj:
1024 * WTF.vcxproj/WTF.vcxproj.filters:
1025 * WTF.xcodeproj/project.pbxproj:
1026 * wtf/CMakeLists.txt:
1030 * wtf/RefPtrHashMap.h:
1031 Remove the old implementation of keys() and values() and replace it with one
1032 that uses IteratorPair.
1034 * wtf/FilterIterator.h: Copied from Source/WebKit2/Shared/FilterIterator.h.
1035 * wtf/IteratorPair.h: Copied from Source/WebKit2/Shared/IteratorPair.h.
1037 2013-12-27 Daniel Bates <dabates@apple.com>
1039 [iOS] Upstream WebCore/page changes
1040 https://bugs.webkit.org/show_bug.cgi?id=126180
1042 Reviewed by Darin Adler.
1044 * wtf/FeatureDefines.h: Define ENABLE_IOS_TOUCH_EVENTS to be enabled by default
1045 when building iOS with ENABLE(TOUCH_EVENTS).
1047 2013-12-25 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1049 [Nix] Building with DRAG_SUPPORT enabled
1050 https://bugs.webkit.org/show_bug.cgi?id=126233
1052 Reviewed by Daniel Bates.
1054 * wtf/nix/FeatureDefinesNix.h:
1056 2013-12-24 Commit Queue <commit-queue@webkit.org>
1058 Unreviewed, rolling out r160959.
1059 http://trac.webkit.org/changeset/160959
1060 https://bugs.webkit.org/show_bug.cgi?id=126222
1062 Caused Windows build to fail (Requested by rfong on #webkit).
1064 * wtf/ByteSpinLock.h:
1065 (WTF::ByteSpinLock::lock):
1067 * wtf/ThreadingPrimitives.h:
1068 (WTF::pauseBriefly):
1069 * wtf/ThreadingPthreads.cpp:
1071 * wtf/ThreadingWin.cpp:
1074 2013-12-23 Benjamin Poulain <bpoulain@apple.com>
1076 Fix the build after r161031
1078 I enabled ENABLE_CSS_SELECTOR_JIT by accident.
1082 2013-12-23 Zan Dobersek <zdobersek@igalia.com>
1084 [GTK] Clean up compiler optimizations flags for libWTF, libJSC
1085 https://bugs.webkit.org/show_bug.cgi?id=126157
1087 Reviewed by Gustavo Noronha Silva.
1089 * GNUmakefile.am: Remove the -fstrict-aliasing and -O3 compiler flags for libWTF.la. -O3 gets
1090 overridden by -O2 that's listed in CXXFLAGS (or -O0 in case of debug builds) and -fstrict-aliasing
1091 is enabled when -O2 is used (and shouldn't be enabled in debug builds anyway).
1093 2013-12-20 Anders Carlsson <andersca@apple.com>
1095 Replace yield() and pauseBriefly() with std::this_thread::yield()
1096 https://bugs.webkit.org/show_bug.cgi?id=126105
1098 Reviewed by Sam Weinig.
1100 * wtf/ByteSpinLock.h:
1101 (WTF::ByteSpinLock::lock):
1103 * wtf/ThreadingPrimitives.h:
1104 * wtf/ThreadingPthreads.cpp:
1105 * wtf/ThreadingWin.cpp:
1107 2013-12-20 Anders Carlsson <andersca@apple.com>
1109 Speed up case folding for 8-bit strings
1110 https://bugs.webkit.org/show_bug.cgi?id=126098
1112 Reviewed by Geoffrey Garen.
1114 Add a case folding lookup table for 8-bit strings and use it instead of calling down to u_foldCase.
1115 On a simple microbenchmark using a lookup table is about 15x faster.
1117 * wtf/text/StringHash.h:
1118 (WTF::CaseFoldingHash::foldCase):
1119 * wtf/text/StringImpl.cpp:
1120 (WTF::equalIgnoringCase):
1121 * wtf/text/StringImpl.h:
1123 2013-12-20 Myles C. Maxfield <mmaxfield@apple.com>
1125 Faster implementation of text-decoration-skip: ink
1126 https://bugs.webkit.org/show_bug.cgi?id=125718
1128 Reviewed by Simon Fraser.
1130 This creates a new preprocessor define, CSS3_TEXT_DECORATION_SKIP_INK,
1131 which enables the use of the text-decoration-skip: ink CSS value.
1132 Creating this new value simplifies the logic about when to enable the
1133 codepath for this CSS value.
1137 2013-12-20 Simon Fraser <simon.fraser@apple.com>
1139 Change "threaded scrolling" terminology to "asynchronous scrolling"
1140 https://bugs.webkit.org/show_bug.cgi?id=126094
1142 Reviewed by Tim Horton.
1144 Rename ENABLE_THREADED_SCROLLING to ENABLE_ASYNC_SCROLLING.
1146 * wtf/FeatureDefines.h:
1148 2013-12-20 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1150 Build fails in debug mode after r160834.
1151 https://bugs.webkit.org/show_bug.cgi?id=126059
1153 Reviewed by Csaba Osztrogonác.
1155 Debug mode build failed due to comparing signed and unsigned in
1156 ASSERT(). Now both values are unsigned.
1158 * wtf/dtoa/double-conversion.cc:
1160 2013-12-19 Alex Christensen <achristensen@webkit.org>
1162 Final preparations for GStreamer on Windows.
1163 https://bugs.webkit.org/show_bug.cgi?id=125958
1165 Reviewed by Benjamin Poulain.
1167 * WTF.vcxproj/WTFDebugWinCairo.props:
1168 * WTF.vcxproj/WTFReleaseWinCairo.props:
1169 Include WinCairo.props.
1171 Use GLib and GStreamer on WinCairo with video.
1173 2013-12-18 Daniel Bates <dabates@apple.com>
1175 WTF, JavaScriptCore fails to build with trunk clang: operators new, new[],
1176 delete, delete[] cannot be declared inline
1177 https://bugs.webkit.org/show_bug.cgi?id=124186
1178 <rdar://problem/15644039>
1180 Reviewed by Geoffrey Garen and Anders Carlsson.
1182 Following <http://llvm.org/viewvc/llvm-project?view=revision&revision=193044>
1183 (http://llvm.org/bugs/show_bug.cgi?id=17591>), Clang emits warnings when
1184 operator new, delete are inlined. Such definitions cannot be inline per
1185 replacement.functions (17.6.4.6/3) of the C++ standard. For now,
1186 disable these warnings instead of exporting these functions.
1190 2013-12-19 Hugo Parente Lima <hugo.lima@openbossa.org>
1192 WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
1193 https://bugs.webkit.org/show_bug.cgi?id=125936
1195 Reviewed by Anders Carlsson.
1197 * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
1199 2013-12-19 Peter Szanka <h868064@stud.u-szeged.hu>
1201 Delete RVCT related code parts.
1202 https://bugs.webkit.org/show_bug.cgi?id=125626
1204 Reviewed by Csaba Osztrogonác.
1206 * wtf/Compiler.h: follow-up fix for r160648, remove an unnecessary comment.
1208 2013-12-18 Alex Christensen <achristensen@webkit.org>
1210 [WinCairo] Preparation for GStreamer on Windows.
1211 https://bugs.webkit.org/show_bug.cgi?id=125946
1213 Reviewed by Brent Fulgham.
1215 * WTF.vcxproj/WTF.vcxproj:
1216 Use new GStreamer property sheets for WinCairo.
1218 2013-12-18 Mark Hahnenberg <mhahnenberg@apple.com>
1220 DFG should have a separate StoreBarrier node
1221 https://bugs.webkit.org/show_bug.cgi?id=125530
1223 Reviewed by Filip Pizlo.
1225 * wtf/Platform.h: Added an #define for ENABLE(GGC) which will be used for landing things related to GenGC.
1227 2013-12-16 Daniel Bates <dabates@apple.com>
1229 [iOS] Upstream WebCore/html changes
1230 https://bugs.webkit.org/show_bug.cgi?id=125765
1232 Reviewed by Darin Adler.
1234 Defined ENABLE_IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, enabled by default on iOS.
1236 * wtf/FeatureDefines.h:
1238 2013-12-17 Alex Christensen <achristensen@webkit.org>
1240 Compile fix for WebGL on Windows without GRAPHICS_SURFACE.
1241 https://bugs.webkit.org/show_bug.cgi?id=125867
1243 Reviewed by Martin Robinson.
1245 * wtf/FeatureDefines.h:
1246 Removed unused ENABLE_GLIB_SUPPORT macro.
1248 Don't use GRAPHICS_SURFACE for WebGL on Windows.
1250 2013-12-17 Alex Christensen <achristensen@webkit.org>
1252 [Win] Fixed linker error with GStreamer.
1253 https://bugs.webkit.org/show_bug.cgi?id=124861
1255 Reviewed by Martin Robinson.
1257 * wtf/gobject/GOwnPtr.cpp:
1259 * wtf/gobject/GOwnPtr.h:
1260 Added WTF_EXPORT_PRIVATE to freeOwnedGPtr<GError> declaration and definition.
1262 2013-12-17 Benjamin Poulain <benjamin@webkit.org>
1264 Add a simple register allocator to WebCore for x86_64
1265 https://bugs.webkit.org/show_bug.cgi?id=125771
1267 Reviewed by Geoffrey Garen.
1269 * wtf/Platform.h: Add a new flag "CSS_SELECTOR_JIT" to guard
1270 an experimental JIT compiler in WebCore.
1272 2013-12-16 Anders Carlsson <andersca@apple.com>
1274 Remove EnumClass.h from WTF
1275 https://bugs.webkit.org/show_bug.cgi?id=125820
1277 Reviewed by Darin Adler.
1279 All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
1281 * WTF.vcxproj/WTF.vcxproj:
1282 * WTF.vcxproj/WTF.vcxproj.filters:
1283 * WTF.xcodeproj/project.pbxproj:
1284 * wtf/CheckedArithmetic.h:
1285 * wtf/EnumClass.h: Removed.
1287 2013-12-16 Brent Fulgham <bfulgham@apple.com>
1289 [Win] Remove dead code after conversion to VS2013
1290 https://bugs.webkit.org/show_bug.cgi?id=125795
1292 Reviewed by Darin Adler.
1294 * wtf/Assertions.h: Include <inttypes.h> now that it exists.
1295 * wtf/Compiler.h: Update compiler checks for VS2013, and
1296 enable support for NEVER_INLINE
1297 * wtf/HashFunctions.h:
1298 (WTF::PtrHash::hash): Remove compiler workaround.
1299 * wtf/MathExtras.h: Remove C99 functions that are now supplied
1300 by the MS runtime library.
1301 * wtf/Platform.h: Remove old MSVC support flags.
1302 * wtf/StdLibExtras.h: Remove old MSVC workaround code.
1304 2013-12-16 Alex Christensen <achristensen@webkit.org>
1306 Fixed Win64 build on VS2013.
1307 https://bugs.webkit.org/show_bug.cgi?id=125753
1309 Reviewed by Brent Fulgham.
1311 * WTF.vcxproj/WTF.vcxproj:
1312 Added correct PlatformToolset for 64-bit builds.
1314 2013-12-16 Peter Szanka <h868064@stud.u-szeged.hu>
1316 Delete RVCT related code parts.
1317 https://bugs.webkit.org/show_bug.cgi?id=125626
1319 Reviewed by Darin Adler.
1326 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1328 [Win] Remove Pre-VS2013 support code.
1329 https://bugs.webkit.org/show_bug.cgi?id=125693
1331 Reviewed by Darin Adler.
1333 * wtf/StringPrintStream.cpp:
1334 (WTF::StringPrintStream::vprintf): Use va_copy, like a civilized person.
1336 2013-12-12 Darin Adler <darin@apple.com>
1338 Incorrect handling of non-ASCII characters in WTF::base64DecodeInternal
1339 https://bugs.webkit.org/show_bug.cgi?id=125658
1341 Reviewed by Alexey Proskuryakov.
1343 * wtf/text/Base64.cpp:
1344 (WTF::base64EncodeInternal): Use a reference to an array instead of a pointer
1345 for the table argument type so we check the size of the array at the call site.
1346 (WTF::base64DecodeInternal): Ditto. Also added an bounds check before using the
1347 table so we don't load some random value for non-ASCII characters.
1349 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1351 [Win] Unreviewed build fix after r160548
1353 * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
1354 the vs12_xp target for Makefile-based projects.
1356 2013-12-13 Anders Carlsson <andersca@apple.com>
1358 Require variadic templates to build WebKit
1359 https://bugs.webkit.org/show_bug.cgi?id=125701
1361 Reviewed by Andreas Kling.
1364 Add an #error if variadic templates are disabled.
1366 * wtf/NeverDestroyed.h:
1368 * wtf/StdLibExtras.h:
1369 Remove a bunch of COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #ifdefs.
1371 2013-12-13 Peter Szanka <h868064@stud.u-szeged.hu>
1373 Delete INTEL C compiler related code parts.
1374 https://bugs.webkit.org/show_bug.cgi?id=125625
1376 Reviewed by Darin Adler.
1381 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1383 [Win] Switch WebKit solution to Visual Studio 2013
1384 https://bugs.webkit.org/show_bug.cgi?id=125192
1386 Reviewed by Anders Carlsson.
1388 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
1389 * WTF.vcxproj/WTF.vcxproj.filters: Ditto
1391 2013-12-12 Brady Eidson <beidson@apple.com>
1393 DatabaseProcess IndexedDB: Establish a metadata backing store on disk
1394 https://bugs.webkit.org/show_bug.cgi?id=125258
1396 Reviewed by Alexey Proskuryakov, Anders Carlsson, and Tim Horton.
1398 * wtf/text/WTFString.h: Export toUInt64Strict().
1400 2013-12-12 Sam Weinig <sam@webkit.org>
1402 Replace uses of WTF::BitArray with std::bitset
1403 https://bugs.webkit.org/show_bug.cgi?id=125642
1405 Reviewed by Anders Carlsson.
1407 * GNUmakefile.list.am:
1408 * WTF.vcxproj/WTF.vcxproj:
1409 * WTF.vcxproj/WTF.vcxproj.filters:
1410 * WTF.xcodeproj/project.pbxproj:
1411 * wtf/BitArray.h: Removed.
1412 * wtf/CMakeLists.txt:
1414 2013-12-11 David Kilzer <ddkilzer@apple.com>
1416 Define m_hasBadParent in InlineBox if defined(ADDRESS_SANITIZER)
1417 <http://webkit.org/b/125329>
1419 Reviewed by Darin Adler.
1421 * wtf/Assertions.h: Define macro
1422 ASSERT_WITH_SECURITY_IMPLICATION_DISABLED based on whether
1423 ASSERT_WITH_SECURITY_IMPLICATION() is enabled.
1425 2013-12-11 Brendan Long <b.long@cablelabs.com>
1427 Type punning error in MD5.cpp
1428 https://bugs.webkit.org/show_bug.cgi?id=125412
1430 Reviewed by Darin Adler.
1433 (WTF::toLittleEndian): Renamed, and use memcpy instead of casting.
1434 (WTF::MD5::addBytes): Renamed reverseBytes to toLittleEndian.
1435 (WTF::MD5::checksum): Same, and use memcpy instead of casting to prevent type punning error.
1437 2013-12-11 Laszlo Vidacs <lac@inf.u-szeged.hu>
1439 Store SHA1 hash in std::array
1440 https://bugs.webkit.org/show_bug.cgi?id=125446
1442 Reviewed by Darin Adler.
1444 Change Vector to std::array and use typedef.
1447 (WTF::SHA1::computeHash):
1448 (WTF::SHA1::hexDigest):
1449 (WTF::SHA1::computeHexDigest):
1452 2013-12-11 Oliver Hunt <oliver@apple.com>
1454 Give Unique StringImpls a meaningful data pointer
1455 https://bugs.webkit.org/show_bug.cgi?id=125598
1457 Reviewed by Michael Saboff.
1459 Found by code inspection. If there is a collision in an Identifier
1460 table when comparing to a string literal we attempt to use the data
1461 pointer (essentially this ends up being a null termination check).
1463 Previously unique pointers just used the literal 1 as the data address
1464 but this obviously fails when dereferenced. Instead we now make the
1465 data pointer point to the location of the buffer pointer itself. As
1466 the buffer pointer is initialised to 0, this satisfies the requirement
1467 that the 0-length unique string is null terminated.
1469 * wtf/text/StringImpl.h:
1470 (WTF::StringImpl::StringImpl):
1472 2013-12-10 Anders Carlsson <andersca@apple.com>
1474 Add a HashMap constructor that takes an initializer list
1475 https://bugs.webkit.org/show_bug.cgi?id=125551
1477 Reviewed by Dan Bernstein.
1480 (WTF::HashMap::HashMap):
1482 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu>
1484 Use std::array when computing MD5 checksum
1485 https://bugs.webkit.org/show_bug.cgi?id=125509
1487 Reviewed by Anders Carlsson.
1489 Added MD5::Digest type and MD5::hashSize for computing MD5 checksum.
1492 (WTF::MD5::checksum):
1495 2013-12-10 Martin Robinson <mrobinson@igalia.com>
1497 Various fixes for the CMake GTK+ build
1499 Reviewed by Gustavo Noronha.
1501 * wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.
1503 2013-12-09 Sam Weinig <sam@webkit.org>
1506 https://bugs.webkit.org/show_bug.cgi?id=125478
1508 Reviewed by Anders Carlsson.
1510 * GNUmakefile.list.am:
1511 * WTF.vcxproj/WTF.vcxproj:
1512 * WTF.vcxproj/WTF.vcxproj.filters:
1513 * WTF.xcodeproj/project.pbxproj:
1514 * wtf/CMakeLists.txt:
1515 * wtf/FixedArray.h: Removed.
1517 2013-12-09 Sam Weinig <sam@webkit.org>
1519 Replace use of WTF::FixedArray with std::array
1520 https://bugs.webkit.org/show_bug.cgi?id=125475
1522 Reviewed by Anders Carlsson.
1526 * wtf/SixCharacterHash.cpp:
1527 (WTF::integerToSixCharacterHashString):
1528 * wtf/SixCharacterHash.h:
1530 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com>
1532 [Win] Support compiling with VS2013
1533 https://bugs.webkit.org/show_bug.cgi?id=125353
1535 Reviewed by Anders Carlsson.
1537 * wtf/Compiler.h: Show proper features for VS2012 and VS2013.
1538 * wtf/MathExtras.h: Don't implement common C99 routines when
1539 they are available through the runtime libraries.
1541 (WTF::RetainPtr::operator bool): Added.
1542 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique
1545 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
1547 Define SHA1 hash size in SHA1.h and use it at various places.
1548 https://bugs.webkit.org/show_bug.cgi?id=125345
1550 Reviewed by Darin Adler.
1552 Use SHA1::hashSize instead of local variables.
1554 * wtf/SHA1.h: define SHA1 hash size
1556 2013-12-05 Iain Lane <iain.lane@canonical.com>
1558 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED) from Atomics.cpp since it is
1560 https://bugs.webkit.org/show_bug.cgi?id=124502
1562 Reviewed by Anders Carlsson.
1566 2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
1568 Enable HTMLTemplateElement by default
1569 https://bugs.webkit.org/show_bug.cgi?id=123851
1571 Reviewed by Antti Koivisto.
1573 * wtf/FeatureDefines.h:
1575 2013-12-04 Dan Bernstein <mitz@apple.com>
1577 Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
1578 https://bugs.webkit.org/show_bug.cgi?id=125242
1580 Reviewed by Sam Weinig.
1582 * wtf/Platform.h: Removed definitions of WTF_USE_SECURITY_FRAMEWORK, and defined
1583 HAVE_SEC_IDENTITY and HAVE_SEC_KEYCHAIN.
1585 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
1587 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1588 https://bugs.webkit.org/show_bug.cgi?id=124613
1590 Reviewed by Timothy Hatcher.
1592 * wtf/ios/WebCoreThread.cpp:
1593 * wtf/ios/WebCoreThread.h:
1594 Expose WebThreadRun/WebThreadRunSync iOS methods defined in WebCore through
1595 WTF so that JavaScriptCore can use it. Another such method already existed.
1597 2013-12-03 Mark Lam <mark.lam@apple.com>
1599 testapi test crashes on Windows in WTF::Vector<wchar_t,64,WTF::UnsafeVectorOverflow>::size().
1600 https://bugs.webkit.org/show_bug.cgi?id=121972.
1602 Reviewed by Brent Fulgham.
1604 * wtf/OSAllocatorWin.cpp:
1605 (WTF::OSAllocator::decommit):
1606 (WTF::OSAllocator::releaseDecommitted):
1607 - Added a check to ensure that the bytes to decommit / release is not 0.
1608 On Windows, a 0 length passed to VirtualFree() has a special meaning,
1609 and it's not "decommit / release nothing" as one would expect. Adding
1610 this check makes OSAllocatorWin consistent with OSAllocatorPosix for
1613 2013-12-02 Mark Lam <mark.lam@apple.com>
1615 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER.
1616 https://bugs.webkit.org/show_bug.cgi?id=123809.
1618 Reviewed by Geoffrey Garen.
1621 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
1623 2013-11-30 peavo@outlook.com <peavo@outlook.com>
1625 [Win] Some JavaScript date tests are failing.
1626 https://bugs.webkit.org/show_bug.cgi?id=124946
1628 Reviewed by Brent Fulgham.
1630 Use native Win32 api functions to compute Daylight saving time offset.
1633 (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
1634 (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
1636 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1638 Nix Upstream: Updating Nix WTF files
1639 https://bugs.webkit.org/show_bug.cgi?id=124980
1641 Reviewed by Csaba Osztrogonác.
1643 Just to sync our private repo files and the trunk, as part of the upstream process.
1645 * wtf/DisallowCType.h:
1646 * wtf/PlatformNix.cmake:
1647 * wtf/nix/FeatureDefinesNix.h:
1648 * wtf/nix/PlatformNix.h:
1649 * wtf/nix/RunLoopNix.cpp: Added.
1651 2013-11-28 Antti Koivisto <antti@apple.com>
1653 Remove feature: CSS variables
1654 https://bugs.webkit.org/show_bug.cgi?id=114119
1656 Reviewed by Andreas Kling.
1658 * wtf/FeatureDefines.h:
1660 2013-11-26 Filip Pizlo <fpizlo@apple.com>
1662 Do bytecode validation as part of testing
1663 https://bugs.webkit.org/show_bug.cgi?id=124913
1665 Reviewed by Oliver Hunt.
1667 * GNUmakefile.list.am:
1668 * WTF.vcxproj/WTF.vcxproj:
1669 * WTF.xcodeproj/project.pbxproj:
1670 * wtf/CMakeLists.txt:
1671 * wtf/FastBitVector.cpp: Added.
1672 (WTF::FastBitVector::dump):
1673 * wtf/FastBitVector.h:
1674 (WTF::FastBitVector::resize):
1675 (WTF::FastBitVector::bitCount):
1676 (WTF::FastBitVector::arrayLength):
1678 2013-11-27 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1680 Remove Sparc specific code.
1681 https://bugs.webkit.org/show_bug.cgi?id=124941
1683 Reviewed by Michael Saboff.
1685 Sparc is not supported, remove leftover code.
1690 2013-11-26 Marcelo Lira <marcelo.lira@openbossa.org>
1692 Nix upstreaming - Adding build files and supporting scripts
1693 https://bugs.webkit.org/show_bug.cgi?id=118367
1695 Reviewed by Ryosuke Niwa.
1697 * wtf/FeatureDefines.h:
1699 * wtf/PlatformNix.cmake: Added.
1701 2013-11-26 Drew Yao <ayao@apple.com>
1703 ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
1704 https://bugs.webkit.org/show_bug.cgi?id=124757
1706 Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
1707 in order to help screen fuzzing bugs.
1709 Reviewed by Brent Fulgham.
1711 * wtf/Assertions.cpp:
1714 2013-11-24 Tim Horton <timothy_horton@apple.com>
1716 Upstream USE(IOSURFACE) from the iOS port
1717 https://bugs.webkit.org/show_bug.cgi?id=124814
1719 Reviewed by Sam Weinig.
1721 Some code guarded by USE(IOSURFACE) was recently upstreamed,
1722 but not the definition of WTF_USE_IOSURFACE itself.
1726 2013-11-23 Xabier Rodriguez Calvar <calvaris@igalia.com>
1728 [GStreamer] Remove 0.10 codepath
1729 https://bugs.webkit.org/show_bug.cgi?id=124534
1731 Reviewed by Philippe Normand.
1733 * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
1736 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1738 Remove ENABLE_WORKERS
1739 https://bugs.webkit.org/show_bug.cgi?id=105784
1741 Reviewed by Darin Adler.
1743 * wtf/FeatureDefines.h:
1744 * wtf/nix/FeatureDefinesNix.h:
1746 2013-11-21 Mark Rowe <mrowe@apple.com>
1748 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1750 Reviewed by Alexey Proskuryakov.
1752 * Configurations/Base.xcconfig:
1754 2013-11-20 Mark Lam <mark.lam@apple.com>
1756 Introducing VMEntryScope to update the VM stack limit.
1757 https://bugs.webkit.org/show_bug.cgi?id=124634.
1759 Reviewed by Geoffrey Garen.
1762 * wtf/StackBounds.h:
1763 (WTF::StackBounds::StackBounds):
1765 2013-11-18 Filip Pizlo <fpizlo@apple.com>
1767 Allow the FTL debug dumps to include the new size field
1768 https://bugs.webkit.org/show_bug.cgi?id=124479
1770 Reviewed by Mark Hahnenberg.
1772 * wtf/PrintStream.cpp:
1773 (WTF::printInternal):
1774 * wtf/PrintStream.h:
1776 2013-11-17 Jer Noble <jer.noble@apple.com>
1778 [WTF] Media time should not have a constructor which accepts a single int or float.
1779 https://bugs.webkit.org/show_bug.cgi?id=124470
1781 Having a constructor taking a single number value, as it's very easy to accidentially mis-
1782 initialize a MediaTime with a double (automatically casted to a int64_t).
1784 Reviewed by Eric Carlson.
1788 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
1790 URTBF after r159432 to make WinCairo build happy.
1792 * wtf/text/WTFString.h:
1794 2013-11-18 Carlos Garcia Campos <cgarcia@igalia.com>
1796 Unreviewed. Fix make distcheck.
1798 * GNUmakefile.list.am: Add missing header file.
1800 2013-11-16 Alexey Proskuryakov <ap@apple.com>
1802 Use uint8_t vectors for WebCrypto data
1803 https://bugs.webkit.org/show_bug.cgi?id=124466
1805 Reviewed by Sam Weinig.
1807 Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
1808 binary data, in which case "uint8_t*" is more common.
1810 Changed encode functions that took "const char *" to "const void*", and decode
1811 functions that took "Vector<char>&" now take an adapter class.
1813 The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
1815 * wtf/text/Base64.cpp:
1816 (WTF::base64Encode):
1817 (WTF::base64URLEncode):
1818 (WTF::base64DecodeInternal):
1819 (WTF::base64Decode):
1820 (WTF::base64URLDecode):
1821 * wtf/text/Base64.h:
1822 (WTF::SignedOrUnsignedCharVectorAdapter):
1823 (WTF::ConstSignedOrUnsignedCharVectorAdapter):
1824 (WTF::base64Encode):
1825 (WTF::base64URLEncode):
1827 2013-11-15 Alexey Proskuryakov <ap@apple.com>
1829 Support exporting symmetric keys as JWK
1830 https://bugs.webkit.org/show_bug.cgi?id=124442
1832 Reviewed by Sam Weinig.
1834 Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
1835 Added this mode for encode, and removed policy arguments from exposed functions.
1837 * wtf/text/Base64.cpp:
1838 (WTF::base64EncodeInternal):
1839 (WTF::base64URLEncode):
1840 (WTF::base64URLDecode):
1841 * wtf/text/Base64.h:
1842 (WTF::base64URLEncode):
1844 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com>
1846 Remove VTableSpectrum
1847 https://bugs.webkit.org/show_bug.cgi?id=124427
1849 Reviewed by Filip Pizlo.
1853 2013-11-15 Jer Noble <jer.noble@apple.com>
1855 MediaTime addition and subtraction operators have errors when the rhs is infinite.
1856 https://bugs.webkit.org/show_bug.cgi?id=124413
1858 Reviewed by Eric Carlson.
1860 Correctly account for infinities that can occur on the right-hand side of addition or
1861 subtraction operators.
1863 * wtf/MediaTime.cpp:
1864 (WTF::MediaTime::operator+):
1865 (WTF::MediaTime::operator-):
1867 2013-11-14 Oliver Hunt <oliver@apple.com>
1869 Make CLoop easier to build, and make it work
1870 https://bugs.webkit.org/show_bug.cgi?id=124359
1872 Reviewed by Geoffrey Garen.
1874 Make building with the CLoop forcibly enabled manually
1879 2013-11-14 Andreas Kling <akling@apple.com>
1881 FontDescription copies should share families list, not duplicate it.
1882 <https://webkit.org/b/124338>
1884 Add RefCountedArray::operator==.
1886 Reviewed by Antti Koivisto.
1888 2013-11-13 Anders Carlsson <andersca@apple.com>
1890 Add a Vector constructor that takes an std::initializer_list
1891 https://bugs.webkit.org/show_bug.cgi?id=124287
1893 Reviewed by Antti Koivisto.
1897 (WTF::Vector::Vector):
1899 2013-11-12 Brent Fulgham <bfulgham@apple.com>
1901 [Win] Unreviewed gardening.
1903 * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
1904 in their proper directories.
1906 2013-11-12 Alex Christensen <achristensen@webkit.org>
1908 Build GStreamer files on Windows.
1909 https://bugs.webkit.org/show_bug.cgi?id=124180
1911 Reviewed by Brent Fulgham.
1913 * WTF.vcxproj/WTF.vcxproj:
1914 * WTF.vcxproj/WTF.vcxproj.filters:
1915 * WTF.vcxproj/copy-files.cmd:
1916 Include gobject files in WinCairo build.
1918 2013-11-09 Filip Pizlo <fpizlo@apple.com>
1920 Switch FTL GetById/PutById IC's over to using AnyRegCC
1921 https://bugs.webkit.org/show_bug.cgi?id=124094
1923 Reviewed by Sam Weinig.
1925 I needed to add another set operation, namely filter(), which is an in-place set
1928 * wtf/BitVector.cpp:
1929 (WTF::BitVector::filterSlow):
1931 (WTF::BitVector::filter):
1933 2013-11-10 Ryuan Choi <ryuan.choi@samsung.com>
1935 [EFL] Build break on Ubuntu 13.10
1936 https://bugs.webkit.org/show_bug.cgi?id=124131
1938 Reviewed by Gyuyoung Kim.
1940 Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
1942 * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
1944 2013-11-09 Patrick Gansterer <paroga@webkit.org>
1946 Move RunLoop from WebCore to WTF
1947 https://bugs.webkit.org/show_bug.cgi?id=116606
1949 Reviewed by Anders Carlsson.
1951 With this change RunLoop can be used in JavaScriptCore too.
1953 * GNUmakefile.list.am:
1954 * WTF.vcxproj/WTF.vcxproj:
1955 * WTF.xcodeproj/project.pbxproj:
1956 * wtf/CMakeLists.txt:
1957 * wtf/PlatformBlackBerry.cmake:
1958 * wtf/PlatformEfl.cmake:
1959 * wtf/PlatformGTK.cmake:
1960 * wtf/PlatformWin.cmake:
1961 * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
1962 (WTF::RunLoop::Holder::Holder):
1963 (WTF::RunLoop::Holder::runLoop):
1964 (WTF::RunLoop::initializeMainRunLoop):
1965 (WTF::RunLoop::current):
1966 (WTF::RunLoop::main):
1967 (WTF::RunLoop::isMain):
1968 (WTF::RunLoop::performWork):
1969 (WTF::RunLoop::dispatch):
1970 * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
1971 (WTF::RunLoop::TimerBase::startRepeating):
1972 (WTF::RunLoop::TimerBase::startOneShot):
1973 (WTF::RunLoop::TimerBase::isRepeating):
1974 (WTF::RunLoop::Timer::Timer):
1975 (WTF::RunLoop::Timer::fired):
1976 * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
1977 (WTF::RunLoop::RunLoop):
1978 (WTF::RunLoop::~RunLoop):
1979 (WTF::RunLoop::wakeUp):
1980 * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
1981 (WTF::RunLoop::performWork):
1982 (WTF::RunLoop::RunLoop):
1983 (WTF::RunLoop::~RunLoop):
1984 (WTF::RunLoop::runForDuration):
1985 (WTF::RunLoop::wakeUp):
1986 (WTF::RunLoop::run):
1987 (WTF::RunLoop::stop):
1988 (WTF::RunLoop::TimerBase::timerFired):
1989 (WTF::RunLoop::TimerBase::TimerBase):
1990 (WTF::RunLoop::TimerBase::~TimerBase):
1991 (WTF::RunLoop::TimerBase::start):
1992 (WTF::RunLoop::TimerBase::stop):
1993 (WTF::RunLoop::TimerBase::isActive):
1994 * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
1995 (WTF::RunLoop::RunLoop):
1996 (WTF::RunLoop::~RunLoop):
1997 (WTF::RunLoop::run):
1998 (WTF::RunLoop::stop):
1999 (WTF::RunLoop::wakeUpEvent):
2000 (WTF::RunLoop::wakeUp):
2001 (WTF::RunLoop::TimerBase::TimerBase):
2002 (WTF::RunLoop::TimerBase::~TimerBase):
2003 (WTF::RunLoop::TimerBase::timerFired):
2004 (WTF::RunLoop::TimerBase::start):
2005 (WTF::RunLoop::TimerBase::stop):
2006 (WTF::RunLoop::TimerBase::isActive):
2007 * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
2008 (WTF::RunLoop::RunLoop):
2009 (WTF::RunLoop::~RunLoop):
2010 (WTF::RunLoop::run):
2011 (WTF::RunLoop::innermostLoop):
2012 (WTF::RunLoop::pushNestedMainLoop):
2013 (WTF::RunLoop::popNestedMainLoop):
2014 (WTF::RunLoop::stop):
2015 (WTF::RunLoop::queueWork):
2016 (WTF::RunLoop::wakeUp):
2017 (WTF::RunLoop::TimerBase::TimerBase):
2018 (WTF::RunLoop::TimerBase::~TimerBase):
2019 (WTF::RunLoop::TimerBase::clearTimerSource):
2020 (WTF::RunLoop::TimerBase::timerFiredCallback):
2021 (WTF::RunLoop::TimerBase::start):
2022 (WTF::RunLoop::TimerBase::stop):
2023 (WTF::RunLoop::TimerBase::isActive):
2024 * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
2025 (WTF::RunLoop::RunLoopWndProc):
2026 (WTF::RunLoop::wndProc):
2027 (WTF::RunLoop::run):
2028 (WTF::RunLoop::stop):
2029 (WTF::RunLoop::registerRunLoopMessageWindowClass):
2030 (WTF::RunLoop::RunLoop):
2031 (WTF::RunLoop::~RunLoop):
2032 (WTF::RunLoop::wakeUp):
2033 (WTF::RunLoop::TimerBase::timerFired):
2034 (WTF::generateTimerID):
2035 (WTF::RunLoop::TimerBase::TimerBase):
2036 (WTF::RunLoop::TimerBase::~TimerBase):
2037 (WTF::RunLoop::TimerBase::start):
2038 (WTF::RunLoop::TimerBase::stop):
2039 (WTF::RunLoop::TimerBase::isActive):
2041 2013-11-08 Alexey Proskuryakov <ap@apple.com>
2043 Make base64url decoding actually work
2044 https://bugs.webkit.org/show_bug.cgi?id=124050
2046 Reviewed by Sam Weinig.
2048 * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
2049 alphabet, put it into the map.
2051 2013-11-07 Denis Nomiyama <d.nomiyama@samsung.com>
2053 [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
2054 https://bugs.webkit.org/show_bug.cgi?id=50619
2056 Reviewed by Martin Robinson.
2058 Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
2059 currently using Freetype.
2063 2013-11-06 Daniel Bates <dabates@apple.com>
2065 [iOS] Upstream Letterpress effect
2066 https://bugs.webkit.org/show_bug.cgi?id=123932
2068 Reviewed by Sam Weinig.
2070 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
2073 * wtf/FeatureDefines.h:
2075 2013-11-06 Nick Diego Yamane <nick.yamane@openbossa.org>
2077 Disable "unused local typedefs" warning for GCC 4.7
2078 https://bugs.webkit.org/show_bug.cgi?id=123913
2080 Reviewed by Martin Robinson.
2082 That warning was actually introduced in gcc 4.7.0.
2083 See: http://gcc.gnu.org/gcc-4.7/changes.html
2087 2013-11-06 Daniel Bates <dabates@apple.com>
2089 Add ENABLE(TEXT_SELECTION)
2090 https://bugs.webkit.org/show_bug.cgi?id=123827
2092 Reviewed by Ryosuke Niwa.
2094 Enable selection painting by default on all ports except iOS.
2096 * wtf/FeatureDefines.h:
2098 2013-11-04 Alexey Proskuryakov <ap@apple.com>
2100 Implement base64url encoding from RFC 4648
2101 https://bugs.webkit.org/show_bug.cgi?id=123767
2103 Reviewed by Sam Weinig.
2105 No tests yet, will be covered by JWK tests for WebCrypto.
2107 * wtf/text/Base64.cpp:
2108 (WTF::base64EncodeInternal):
2109 (WTF::base64Encode):
2110 (WTF::base64URLEncode):
2111 (WTF::base64DecodeInternal):
2112 (WTF::base64Decode):
2113 (WTF::base64URLDecode):
2114 * wtf/text/Base64.h:
2115 (WTF::base64URLEncode):
2117 2013-11-04 Brent Fulgham <bfulgham@apple.com>
2119 [Win] User VersionStamper for official builds
2120 https://bugs.webkit.org/show_bug.cgi?id=123758
2122 Reviewed by Tim Horton.
2124 * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
2126 2013-11-01 Jer Noble <jer.noble@apple.com>
2128 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
2129 https://bugs.webkit.org/show_bug.cgi?id=123621
2131 Reviewed by Eric Carlson.
2133 Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
2134 to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
2135 MediaPlayerPrivateAVFoundationObjC.mm.
2139 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2141 Fix compilation of DateMath.cpp with MSVC
2142 https://bugs.webkit.org/show_bug.cgi?id=123680
2144 Reviewed by Darin Adler.
2147 (WTF::appendTwoDigitNumber): Help the compiler finding the
2148 correct overload by casting the characters to LChar.
2150 2013-11-02 Filip Pizlo <fpizlo@apple.com>
2152 LLVM assertion failures should funnel into WTF's crash handling
2153 https://bugs.webkit.org/show_bug.cgi?id=123682
2155 Reviewed by Geoffrey Garen.
2157 Give JSC some new toys to play with for crash handling.
2159 * wtf/Assertions.cpp:
2162 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2164 Fix UnicodeWchar after r157330.
2165 https://bugs.webkit.org/show_bug.cgi?id=123668
2167 Reviewed by Darin Adler.
2169 * wtf/unicode/wchar/UnicodeWchar.cpp:
2174 * wtf/unicode/wchar/UnicodeWchar.h:
2179 2013-11-02 Andreas Kling <akling@apple.com>
2181 Make remaining StringImpl functions return PassRef.
2182 <https://webkit.org/b/123683>
2184 Okay, this seems to work well! Let's go all in and convert the
2185 remaining StringImpl functions to return PassRef<StringImpl> instead
2186 of PassRefPtr where we know that null is never returned.
2188 Reviewed by Anders Carlsson.
2190 2013-11-02 Andreas Kling <akling@apple.com>
2192 StringImpl::upper() should return PassRef.
2193 <https://webkit.org/b/123655>
2195 Make upper() return PassRef<StringImpl>. Spotted and removed some
2196 ref churning in implementations.
2198 Reviewed by Darin Adler.
2200 2013-11-01 Alexey Proskuryakov <ap@apple.com>
2202 Add WebCrypto AES-CBC
2203 https://bugs.webkit.org/show_bug.cgi?id=123647
2205 Reviewed by Anders Carlsson.
2207 * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
2209 * wtf/Vector.h: Added a comment to Vector constructor about how it is different
2212 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2214 Unreviewed extended attempt at Windows build fix after r158471.
2216 * wtf/text/cf/AtomicStringCF.cpp:
2217 * wtf/text/cf/StringCF.cpp:
2218 * wtf/text/cf/StringImplCF.cpp:
2220 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2222 Unreviewed attempt at Windows build fix after r158471.
2224 * wtf/text/cf/AtomicStringCF.cpp:
2225 * wtf/text/cf/StringCF.cpp:
2226 * wtf/text/cf/StringImplCF.cpp:
2228 2013-11-01 Andreas Kling <akling@apple.com>
2230 Make more StringImpl construction helpers return PassRef.
2231 <https://webkit.org/b/123652>
2233 Tweak another handful of StringImpl constructor functions to return
2234 PassRef<StringImpl> instead of PassRefPtr.
2236 Reviewed by Anders Carlsson.
2238 2013-11-01 Andreas Kling <akling@apple.com>
2240 Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
2241 <https://webkit.org/b/123639>
2243 When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
2244 operator new/delete overrides in every class.
2246 This change makes allocations group up nicely in Instruments,
2247 instead of being split between "WTF::fastMalloc" and "operator new"
2248 depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
2250 Reviewed by Anders Carlsson.
2252 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2254 Move CF/Mac WTF String implementations down into WTF
2255 https://bugs.webkit.org/show_bug.cgi?id=123635
2257 Reviewed by Sam Weinig.
2259 * WTF.vcxproj/WTF.vcxproj:
2260 * WTF.vcxproj/WTF.vcxproj.filters:
2261 * WTF.xcodeproj/project.pbxproj:
2262 * wtf/text/AtomicString.h:
2263 * wtf/text/StringImpl.h:
2264 * wtf/text/WTFString.h:
2265 * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
2266 (WTF::AtomicString::add):
2267 * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
2268 (WTF::String::String):
2269 (WTF::String::createCFString):
2270 * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
2271 (garbageCollectionEnabled):
2272 (WTF::StringWrapperCFAllocator::retain):
2273 (WTF::StringWrapperCFAllocator::release):
2274 (WTF::StringWrapperCFAllocator::copyDescription):
2275 (WTF::StringWrapperCFAllocator::allocate):
2276 (WTF::StringWrapperCFAllocator::reallocate):
2277 (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
2278 (WTF::StringWrapperCFAllocator::deallocate):
2279 (WTF::StringWrapperCFAllocator::preferredSize):
2280 (WTF::StringWrapperCFAllocator::create):
2281 (WTF::StringWrapperCFAllocator::allocator):
2282 (WTF::StringImpl::createCFString):
2283 * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
2284 (WTF::StringImpl::operator NSString *):
2285 * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
2286 (WTF::String::String):
2288 2013-11-01 Emilio Pozuelo Monfort <pochu27@gmail.com>
2291 https://bugs.webkit.org/show_bug.cgi?id=123625
2293 Original patch from John David Anglin <dave.anglin@bell.net>
2295 Reviewed by Darin Adler.
2300 2013-11-01 Patrick Gansterer <paroga@webkit.org>
2302 Buildfix for !USE(ICU_UNICODE) after 156968.
2304 * wtf/unicode/CollatorDefault.cpp:
2305 (WTF::Collator::userDefault):
2307 2013-10-30 Oliver Hunt <oliver@apple.com>
2309 Implement basic ES6 Math functions
2310 https://bugs.webkit.org/show_bug.cgi?id=123536
2312 Reviewed by Michael Saboff.
2314 Add basic implementations of necessary methods to MathExtras to
2315 deal with MSVC not supplying them
2325 2013-10-30 Commit Queue <commit-queue@webkit.org>
2327 Unreviewed, rolling out r158299.
2328 http://trac.webkit.org/changeset/158299
2329 https://bugs.webkit.org/show_bug.cgi?id=123558
2331 caused assertion failures in fast/canvas/canvas-color-
2332 serialization.html and fast/forms/input-text-paste-
2333 maxlength.html (Requested by rniwa on #webkit).
2335 * wtf/text/StringStatics.cpp:
2336 (WTF::StringImpl::empty):
2338 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
2340 Remove code for Mac Lion
2341 https://bugs.webkit.org/show_bug.cgi?id=123542
2343 Reviewed by Anders Carlsson.
2347 2013-10-30 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2349 Remove PCRE workaround.
2350 https://bugs.webkit.org/show_bug.cgi?id=123265
2352 Reviewed by Brent Fulgham.
2354 * wtf/text/StringStatics.cpp:
2355 (WTF::StringImpl::empty):
2357 2013-10-30 peavo@outlook.com <peavo@outlook.com>
2359 [Win] Compile errors when enabling DFG JIT.
2360 https://bugs.webkit.org/show_bug.cgi?id=120998
2362 Reviewed by Brent Fulgham.
2364 * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
2365 (WTF::initializeCompilationThreads):
2366 * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
2367 (WTF::ThreadingOnce::ThreadingOnce):
2368 (WTF::ThreadingOnce::~ThreadingOnce):
2369 (WTF::ThreadingOnce::callOnce):
2370 * wtf/text/CString.h: Export needed symbols.
2372 2013-10-30 Alex Christensen <achristensen@webkit.org>
2374 Disabled JIT on Win64.
2375 https://bugs.webkit.org/show_bug.cgi?id=122472
2377 Reviewed by Geoffrey Garen.
2380 Disabled JIT on Win64.
2382 2013-10-29 Andreas Kling <akling@apple.com>
2384 StringImpl::isolatedCopy() should return PassRef.
2385 <https://webkit.org/b/123484>
2387 Make isolatedCopy() return a PassRef<StringImpl>.
2389 Reviewed by Anders Carlsson.
2391 2013-10-29 Jer Noble <jer.noble@apple.com>
2393 [MSE] [Mac] Enable MediaSource on the Mac
2394 https://bugs.webkit.org/show_bug.cgi?id=122484
2396 Reviewed by Darin Adler.
2398 Enable ENABLE_MEDIA_SOURCE.
2400 * wtf/FeatureDefines.h:
2401 * wtf/Platform.h: Force a clean build.
2403 2013-10-29 Andreas Kling <akling@apple.com>
2405 StringImpl::adopt() should return PassRef.
2406 <https://webkit.org/b/123456>
2408 Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
2410 Reviewed by Anders Carlsson.
2412 2013-10-29 Jinwoo Song <jinwoo7.song@samsung.com>
2414 Re-enable simple line layout for EFL
2415 https://bugs.webkit.org/show_bug.cgi?id=123402
2417 Reviewed by Antti Koivisto.
2419 * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
2421 2013-10-28 Anders Carlsson <andersca@apple.com>
2423 RunLoop::dispatch should take an std::function
2424 https://bugs.webkit.org/show_bug.cgi?id=123407
2426 Reviewed by Andreas Kling.
2428 * wtf/FunctionDispatcher.h:
2430 2013-10-28 Andreas Kling <akling@apple.com>
2432 RenderElement::m_style should be a Ref.
2433 <https://webkit.org/b/123401>
2435 Added a Ref::replace() so we can Indiana Jones the new style in
2436 RenderElement::setStyle() while keeping a handle on the old style
2439 Reviewed by Antti Koivisto.
2441 2013-10-28 Carlos Garcia Campos <cgarcia@igalia.com>
2443 Unreviewed. Fix make distcheck.
2445 * GNUmakefile.list.am: Remove unexistent file from compilation.
2447 2013-10-28 Bastien Nocera <hadess@hadess.net>
2449 Replace 0 timeouts g_timeout_add() by g_idle_add()
2450 https://bugs.webkit.org/show_bug.cgi?id=123260
2452 Reviewed by Carlos Garcia Campos.
2454 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
2455 without the nagging feeling that the wrong API was used.
2457 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
2459 (WTF::scheduleDispatchFunctionsOnMainThread):
2461 2013-10-28 Zan Dobersek <zdobersek@igalia.com>
2463 Re-enable simple line layout for GTK
2464 https://bugs.webkit.org/show_bug.cgi?id=123388
2466 Reviewed by Andreas Kling.
2468 * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
2470 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
2472 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2473 https://bugs.webkit.org/show_bug.cgi?id=123111
2475 Reviewed by Timothy Hatcher.
2477 * wtf/FeatureDefines.h:
2479 2013-10-25 Jer Noble <jer.noble@apple.com>
2481 [WTF] Add a multiplication operator (and a few others) to MediaTime
2482 https://bugs.webkit.org/show_bug.cgi?id=123137
2484 Reviewed by Eric Carlson.
2486 Add a multiplication operator and an inequality operator to the
2487 MediaTime class for use by MSE.
2489 * wtf/MediaTime.cpp:
2490 (WTF::signum): Moved to top of file.
2491 (WTF::MediaTime::operator*): Added.
2492 (WTF::MediaTime::operator!=): Added.
2494 (WTF::operator*): Added non-class version of operator*.
2496 2013-10-24 Jer Noble <jer.noble@apple.com>
2498 [Mac] Add helper methods to convert CMTime <--> MediaTime
2499 https://bugs.webkit.org/show_bug.cgi?id=123285
2501 Reviewed by Eric Carlson.
2503 Add a #ifdef header_h protector.
2507 2013-10-24 Mark Rowe <mrowe@apple.com>
2509 Remove references to OS X 10.7 from Xcode configuration settings.
2511 Now that we're not building for OS X 10.7 they're no longer needed.
2513 Reviewed by Anders Carlsson.
2515 * Configurations/Base.xcconfig:
2516 * Configurations/DebugRelease.xcconfig:
2518 2013-10-24 Mark Rowe <mrowe@apple.com>
2520 <rdar://problem/15312643> Prepare for the mysterious future.
2522 Reviewed by David Kilzer.
2524 * Configurations/Base.xcconfig:
2525 * Configurations/DebugRelease.xcconfig:
2527 2013-10-24 Commit Queue <commit-queue@webkit.org>
2529 Unreviewed, rolling out r157931.
2530 http://trac.webkit.org/changeset/157931
2531 https://bugs.webkit.org/show_bug.cgi?id=123284
2533 Seems to have caused a lot of assertions on debug bots
2534 (Requested by ap on #webkit).
2536 * wtf/text/StringStatics.cpp:
2537 (WTF::StringImpl::empty):
2539 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2541 Remove PCRE workaround.
2542 https://bugs.webkit.org/show_bug.cgi?id=123265
2544 Reviewed by Darin Adler.
2546 * wtf/text/StringStatics.cpp:
2547 (WTF::StringImpl::empty):
2549 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2551 Remove Clang workaround.
2552 https://bugs.webkit.org/show_bug.cgi?id=123262
2554 Reviewed by Anders Carlsson.
2556 * wtf/CheckedArithmetic.h:
2557 (WTF::Checked::Checked):
2559 2013-10-24 Ryuan Choi <ryuan.choi@samsung.com>
2561 [EFL] Build break with latest EFL 1.8 libraries.
2562 https://bugs.webkit.org/show_bug.cgi?id=123245
2564 Reviewed by Gyuyoung Kim.
2566 After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
2567 Eo typedef and splitted header files which contain version macro.
2569 * wtf/OwnPtrCommon.h: Changed Eo typedef.
2570 * wtf/efl/RefPtrEfl.h: Ditto.
2572 2013-10-24 Carlos Garcia Campos <cgarcia@igalia.com>
2574 [GObject bindings] Make EventTarget interface introspectable
2575 https://bugs.webkit.org/show_bug.cgi?id=77835
2577 Reviewed by Gustavo Noronha Silva.
2579 Add support for use GRefPtr with GClosure.
2581 * wtf/gobject/GRefPtr.cpp:
2584 * wtf/gobject/GRefPtr.h:
2585 * wtf/gobject/GTypedefs.h:
2587 2013-10-23 Anders Carlsson <andersca@apple.com>
2589 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
2590 https://bugs.webkit.org/show_bug.cgi?id=123228
2592 Reviewed by Geoffrey Garen.
2594 All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
2597 * wtf/ThreadSafeRefCounted.h:
2598 (WTF::ThreadSafeRefCountedBase::ref):
2599 (WTF::ThreadSafeRefCountedBase::refCount):
2600 (WTF::ThreadSafeRefCountedBase::derefBase):
2602 2013-10-23 Anders Carlsson <andersca@apple.com>
2605 https://bugs.webkit.org/show_bug.cgi?id=123226
2607 Reviewed by Dan Bernstein.
2609 HAVE_XPC has been true on Mac since Lion, so remove it.
2613 2013-10-23 Andreas Kling <akling@apple.com>
2615 Make more StringImpl construction functions return PassRef.
2616 <https://webkit.org/b/123203>
2618 Knock out a couple more of the StringImpl construction helpers that
2619 always return a non-null StringImpl.
2621 Reviewed by Antti Koivisto.
2623 2013-10-22 Filip Pizlo <fpizlo@apple.com>
2625 FTL should be able to do some simple inline caches using LLVM patchpoints
2626 https://bugs.webkit.org/show_bug.cgi?id=123164
2628 Reviewed by Mark Hahnenberg.
2630 This needed some better bitvector support, like merging (|=), excluding (&=~),
2631 hashing, and bit counting.
2633 * wtf/BitVector.cpp:
2634 (WTF::BitVector::setSlow):
2635 (WTF::BitVector::excludeSlow):
2636 (WTF::BitVector::bitCountSlow):
2637 (WTF::BitVector::equalsSlowCase):
2638 (WTF::BitVector::hashSlowCase):
2639 (WTF::BitVector::dump):
2641 (WTF::BitVector::merge):
2642 (WTF::BitVector::exclude):
2643 (WTF::BitVector::bitCount):
2644 (WTF::BitVector::BitVector):
2645 (WTF::BitVector::isEmptyValue):
2646 (WTF::BitVector::isDeletedValue):
2647 (WTF::BitVector::isEmptyOrDeletedValue):
2648 (WTF::BitVector::operator==):
2649 (WTF::BitVector::hash):
2650 (WTF::BitVectorHash::hash):
2651 (WTF::BitVectorHash::equal):
2653 (WTF::CustomHashTraits::constructDeletedValue):
2654 (WTF::CustomHashTraits::isDeletedValue):
2655 (WTF::CustomHashTraits::emptyValue):
2656 (WTF::CustomHashTraits::isEmptyValue):
2657 * wtf/StdLibExtras.h:
2660 2013-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com>
2662 Clean-up in Atomics.h
2663 https://bugs.webkit.org/show_bug.cgi?id=123207
2665 Reviewed by Anders Carlsson.
2667 Atomics.h has two confusing and bit-rotted ifdefs with comments.
2669 The first about CPU(SPARC64) was rendered obsolete when we switched
2670 from __exchange_and_add to __sync_add_and_fetch.
2672 The second was caused by a wrong definition that apparently only
2673 caused trouble on GCC.
2677 2013-10-22 Andreas Kling <akling@apple.com>
2679 StringImpl::lower() should return a PassRef.
2680 <https://webkit.org/b/123190>
2682 Test the waters and hack enough of StringImpl to be able to return
2683 a PassRef<StringImpl> from lower().
2685 Also gave String a constructor that takes a PassRef<StringImpl>.
2687 Reviewed by Antti Koivisto.
2689 2013-10-22 Commit Queue <commit-queue@webkit.org>
2691 Unreviewed, rolling out r157835.
2692 http://trac.webkit.org/changeset/157835
2693 https://bugs.webkit.org/show_bug.cgi?id=123192
2695 broke 32-bit builds (Requested by smfr on #webkit).
2697 * wtf/MediaTime.cpp:
2701 2013-10-22 Jer Noble <jer.noble@apple.com>
2703 [WTF] Add a multiplication operator (and a few others) to MediaTime
2704 https://bugs.webkit.org/show_bug.cgi?id=123137
2706 Reviewed by Eric Carlson.
2708 Add a multiplication operator and an inequality operator to the
2709 MediaTime class for use by MSE.
2711 * wtf/MediaTime.cpp:
2712 (WTF::signum): Moved to top of file.
2713 (WTF::MediaTime::operator*): Added.
2714 (WTF::MediaTime::operator!=): Added.
2716 (WTF::operator*): Added non-class version of operator*.
2718 2013-10-21 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2720 Make TYPE_CASTS_BASE more flexible
2721 https://bugs.webkit.org/show_bug.cgi?id=122951
2723 Reviewed by Andreas Kling.
2725 TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
2726 to be used by other type casts. For instance, CSSValue, Accessibility and so on.
2727 This patch modifies TYPE_CASTS_BASE which can support other type casts.
2729 Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
2733 2013-10-20 Filip Pizlo <fpizlo@apple.com>
2735 StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
2736 https://bugs.webkit.org/show_bug.cgi?id=123076
2738 Reviewed by Sam Weinig.
2740 Teach BitVector how to efficiently merge (i.e. bitvector |=).
2742 * wtf/BitVector.cpp:
2743 (WTF::BitVector::mergeSlow):
2745 (WTF::BitVector::merge):
2746 (WTF::BitVector::cleanseInlineBits):
2748 2013-10-19 Jer Noble <jer.noble@apple.com>
2750 Unreviewed roll out of r157695; broke Mac builds.
2752 * wtf/FeatureDefines.h:
2754 2013-10-07 Jer Noble <jer.noble@apple.com>
2756 [MSE] [Mac] Enable MediaSource on the Mac
2757 https://bugs.webkit.org/show_bug.cgi?id=122484
2759 Reviewed by Darin Adler.
2761 Enable ENABLE_MEDIA_SOURCE.
2763 * wtf/FeatureDefines.h:
2765 2013-10-19 Andreas Kling <akling@apple.com>
2767 RefPtr::releaseNonNull() incorrectly increments the refcount.
2768 <https://webkit.org/b/123063>
2770 Make releaseNonNull() use adoptRef(T&), mirroring release().
2772 Reviewed by Anders Carlsson.
2774 2013-10-18 Andreas Kling <akling@apple.com>
2776 Start passing RenderStyle around with PassRef.
2777 <https://webkit.org/b/123051>
2779 Added some new PassRef tricks to make this patch possible.
2781 Reviewed by Darin Adler.
2784 (WTF::PassRef::get):
2786 Added a get() helper to facilitate writing functions that
2787 construct a new object and call some functions on it before
2790 (WTF::PassRef::dropRef):
2792 This will deref() the referenced object and mark the PassRef
2793 as "passed." This is used in code paths where the PassRef is
2794 going to go out of scope with nobody to take it over.
2796 (WTF::PassRef::leakRef):
2798 Renamed takeReference() to leakRef() and made it public so
2799 we don't have to awkwardly sink the PassRef into a Ref for
2803 (WTF::RefPtr::releaseNonNull):
2805 Added RefPtr::releaseNonNull() for a convenient way of creating
2806 a PassRef<T> from a RefPtr<T>. This function may only be called
2807 if the RefPtr is known to be non-null.
2809 2013-10-18 Filip Pizlo <fpizlo@apple.com>
2811 A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
2812 https://bugs.webkit.org/show_bug.cgi?id=122940
2814 Reviewed by Oliver Hunt.
2816 * GNUmakefile.list.am:
2817 * WTF.vcxproj/WTF.vcxproj:
2818 * WTF.xcodeproj/project.pbxproj:
2819 * wtf/BagToHashMap.h: Added.
2821 * wtf/CMakeLists.txt:
2823 2013-10-18 Anders Carlsson <andersca@apple.com>
2825 Remove spaces between template angle brackets
2826 https://bugs.webkit.org/show_bug.cgi?id=123040
2828 Reviewed by Andreas Kling.
2831 * wtf/CheckedArithmetic.h:
2832 * wtf/Compression.h:
2835 * wtf/HashFunctions.h:
2836 * wtf/HashIterators.h:
2839 * wtf/ListHashSet.h:
2841 * wtf/RefCountedLeakCounter.cpp:
2843 * wtf/SentinelLinkedList.h:
2845 * wtf/SizeLimits.cpp:
2846 * wtf/StreamBuffer.h:
2848 * wtf/VectorTraits.h:
2850 (WTF::WeakReference::create):
2851 (WTF::WeakReference::createUnbound):
2852 (WTF::WeakPtr::WeakPtr):
2853 (WTF::WeakPtrFactory::WeakPtrFactory):
2854 * wtf/text/AtomicString.cpp:
2855 (WTF::AtomicString::add):
2857 * wtf/text/StringConcatenate.h:
2858 * wtf/text/StringImpl.h:
2859 * wtf/text/StringOperators.h:
2862 2013-10-18 Brendan Long <b.long@cablelabs.com>
2864 [GStreamer][GTK] Add GRefPtr::outPtr()
2865 https://bugs.webkit.org/show_bug.cgi?id=122996
2867 Reviewed by Philippe Normand.
2869 * wtf/gobject/GRefPtr.h:
2870 (WTF::GRefPtr::outPtr): Added.
2872 2013-10-17 Geoffrey Garen <ggaren@apple.com>
2874 Tidied up the Vector<T> move constructor
2875 https://bugs.webkit.org/show_bug.cgi?id=122998
2877 Reviewed by Anders Carlsson.
2880 (WTF::::Vector): Don't call swap() "weird". It's the way most std types
2881 implement move constructors.
2883 Do inline this function, so the compiler can optimize away a logical
2884 move into a physical no-op.
2886 2013-10-16 Filip Pizlo <fpizlo@apple.com>
2888 Introduce WTF::Bag and start using it for InlineCallFrameSet
2889 https://bugs.webkit.org/show_bug.cgi?id=122941
2891 Reviewed by Geoffrey Garen.
2893 Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
2894 malloc per entry. No need to shrink afterwards.
2896 * GNUmakefile.list.am:
2897 * WTF.vcxproj/WTF.vcxproj:
2898 * WTF.xcodeproj/project.pbxproj:
2903 (WTF::Bag::iterator::iterator):
2904 (WTF::Bag::iterator::operator!):
2905 (WTF::Bag::iterator::operator*):
2906 (WTF::Bag::iterator::operator++):
2907 (WTF::Bag::iterator::operator==):
2910 (WTF::Bag::isEmpty):
2911 * wtf/CMakeLists.txt:
2913 2013-10-17 Andreas Kling <akling@apple.com>
2915 Make it possible to assign a PassRef to a RefPtr.
2916 <https://webkit.org/b/122943>
2918 We have to use std::move when constructing a RefPtr from a PassRef
2919 since there is no copy constructor for the latter.
2921 Reviewed by Antti Koivisto.
2923 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com>
2925 Unreviewed build fix attempt on EFL port after r157520 and r157523
2927 * wtf/PassRef.h: includes <utility>
2929 2013-10-16 Darin Adler <darin@apple.com>
2931 Add PassRef and createRefCounted so we can improve creation of RefCounted objects
2932 https://bugs.webkit.org/show_bug.cgi?id=122904
2934 Reviewed by Anders Carlsson.
2936 * GNUmakefile.list.am: Added PassRef.h.
2937 * WTF.vcxproj/WTF.vcxproj: Ditto.
2938 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
2939 * WTF.xcodeproj/project.pbxproj: Ditto.
2940 * wtf/CMakeLists.txt: Ditto.
2942 * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
2943 the style-checking script expects.
2945 * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
2946 is analogous to make_unique, but is for reference counted objects, and also
2947 assumes that new will never return null. Also includes an overload of adoptRef
2948 that takes a reference rather than a pointer.
2950 * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
2951 Got rid of declarations that duplicate ones in there.
2952 (WTF::refIfNotNull): Use nullptr.
2953 (WTF::derefIfNotNull): Use nullptr.
2954 (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
2955 (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
2956 (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
2957 (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
2958 of an unused boolean.
2959 (WTF::PassRefPtr::leakRef): Use nullptr.
2960 (WTF::adoptRef): Use the adopt tag.
2962 * wtf/Ref.h: Use Noncopyable instead of rolling our own.
2963 (WTF::Ref::Ref): Add an overload that takes a PassRef.
2964 (WTF::Ref::operator=): Ditto.
2966 * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
2967 (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
2968 (WTF::RefPtr::release): Use nullptr.
2969 (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
2970 (WTF::RefPtr::operator=): Added overload that takes a PassRef.
2971 (WTF::RefPtr::clear): Use nullptr.
2973 * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
2974 reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
2975 were missing before.
2977 2013-10-15 Dean Jackson <dino@apple.com>
2979 Add ENABLE_WEB_ANIMATIONS flag
2980 https://bugs.webkit.org/show_bug.cgi?id=122871
2982 Reviewed by Tim Horton.
2984 Eventually might be http://dev.w3.org/fxtf/web-animations/
2985 but this is just engine-internal work at the moment.
2987 * wtf/FeatureDefines.h:
2989 2013-10-15 Daniel Bates <dabates@apple.com>
2991 [iOS] Upstream JavaScriptCore support for ARM64
2992 https://bugs.webkit.org/show_bug.cgi?id=122762
2994 Reviewed by Oliver Hunt.
2996 * Configurations/Base.xcconfig:
2998 (WTF::weakCompareAndSwap):
3000 * wtf/FastMalloc.cpp:
3004 * wtf/text/ASCIIFastPath.h:
3005 (WTF::copyLCharsFromUCharSource):
3006 * wtf/text/StringImpl.h:
3008 2013-10-14 Zan Dobersek <zdobersek@igalia.com>
3010 Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
3011 https://bugs.webkit.org/show_bug.cgi?id=122745
3013 Reviewed by Anders Carlsson.
3016 (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
3017 the static assertion should note that adoptRef should be used instead.
3019 2013-10-14 Anders Carlsson <andersca@apple.com>
3021 WebKit Nightlies broken by r157374
3022 https://bugs.webkit.org/show_bug.cgi?id=122736
3024 Reviewed by Andreas Kling.
3026 Add back a callOnMainThread overload that Safari is using.
3028 * wtf/MainThread.cpp:
3029 (WTF::callOnMainThread):
3032 2013-10-13 Darin Adler <darin@apple.com>
3034 Deprecate or remove deleteAllValues functions; there are only a few call sites left
3035 https://bugs.webkit.org/show_bug.cgi?id=122738
3037 Reviewed by Anders Carlsson.
3039 * wtf/Deque.h: Deleted deleteAllValues.
3040 * wtf/HashMap.h: Ditto.
3041 * wtf/HashSet.h: Ditto.
3042 * wtf/ListHashSet.h: Ditto.
3043 * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
3045 == Rolled over to ChangeLog-2013-10-13 ==