Rename DataFormatInteger to DataFormatInt32.

Rubber stamped by Mark Hahnenberg.

* bytecode/DataFormat.h:
(JSC::dataFormatToString):
(JSC::needDataFormatConversion):
(JSC::isJSInt32):
* bytecode/ValueRecovery.h:
(JSC::ValueRecovery::inGPR):
(JSC::ValueRecovery::displacedInJSStack):
* dfg/DFGGenerationInfo.h:
(JSC::DFG::GenerationInfo::initInteger):
(JSC::DFG::GenerationInfo::isJSInt32):
(JSC::DFG::GenerationInfo::fillInteger):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::silentSavePlanForGPR):
(JSC::DFG::SpeculativeJIT::checkConsistency):
(JSC::DFG::SpeculativeJIT::checkGeneratedTypeForToInt32):
(JSC::DFG::SpeculativeJIT::compileValueToInt32):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::spill):
(JSC::DFG::SpeculativeJIT::integerResult):
(JSC::DFG::SpeculativeJIT::jsValueResult):
(JSC::DFG::SpeculativeJIT::isInteger):
(JSC::DFG::IntegerOperand::format):
(JSC::DFG::SpeculateInt32Operand::format):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntStrict):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntStrict):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGValueSource.h:
(JSC::DFG::dataFormatToValueSourceKind):
(JSC::DFG::valueSourceKindToDataFormat):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename fillSpeculateInt to fillSpeculateInt32.

Rubber stamped by Mark Hahnenberg.

* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculateInt32Operand::gpr):
(JSC::DFG::SpeculateStrictInt32Operand::gpr):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32):
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32Strict):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32):
(JSC::DFG::SpeculativeJIT::fillSpecualteInt32Strict):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
HashSet should work with move only types
https://bugs.webkit.org/show_bug.cgi?id=121188

Reviewed by Geoffrey Garen.

Source/WTF:

* wtf/HashSet.h:
(WTF::HashSet::add):
Add a new rvalue reference overload and use std::move when calling HashTable::add.

* wtf/HashTable.h:
(WTF::IdentityHashTranslator::translate):
Change this to take an rvalue reference for the value so we can invoke the move assignment operator.

(WTF::HashTable::add):
Call the add member function template, using std::move to move the value.

(WTF::HashTable::add):
Add std::forward so we'll potentially move extra.

Tools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/MoveOnly.h: Added.
Move the MoveOnly class from Vector out into its own header.

* TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST):
Add aHashSet<MoveOnly> test.

* TestWebKitAPI/Tests/WTF/Vector.cpp:
Include MoveOnly.h.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove needsDataFormatConversion because it is unused.

Rubber stamped by Mark Hahnenberg.

* bytecode/DataFormat.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[MediaStream API] Updating NavigatorUserMediaError to match the spec
https://bugs.webkit.org/show_bug.cgi?id=120880

Reviewed by Darin Adler.
        
Merge https://chromium.googlesource.com/chromium/blink/+/f07305e49ddebaa166f5dee514bcc881a8efd341
by Tommy Widenflycht.

The Blink change did not have any test changes because they don't appear to have any tests 
for NavigatorUserMediaError. I can't add tests now because the MediaStream feature isn't enabled 
yet, so https://bugs.webkit.org/show_bug.cgi?id=121182 tracks adding tests.

* Modules/mediastream/NavigatorUserMediaError.h:
(WebCore::NavigatorUserMediaError::create):
(WebCore::NavigatorUserMediaError::name):
(WebCore::NavigatorUserMediaError::message):
(WebCore::NavigatorUserMediaError::constraintName):
(WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
* Modules/mediastream/NavigatorUserMediaError.idl:
* Modules/mediastream/UserMediaRequest.cpp:
(WebCore::UserMediaRequest::fail):
(WebCore::UserMediaRequest::failConstraint):
* Modules/mediastream/UserMediaRequest.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add HashSet::take
https://bugs.webkit.org/show_bug.cgi?id=121192

Reviewed by Darin Adler.

Source/WTF:

This is mostly done to see if we can use the new C++11 function declaration syntax,
and for parity with HashMap::take.

* wtf/HashMap.h:
* wtf/HashSet.h:

Tools:

Add a test for HashSet::take.

* TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Build fix for MoveOnly

* TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPICommon.props: Add
Tests to include search path.
* TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPICommonWinCairo.props:
Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make sure that layout is up-to-date when moving a WKView into a window, to avoid !needsLayout() assertions in RenderView::paint()
https://bugs.webkit.org/show_bug.cgi?id=121196

Reviewed by Tim Horton.

When a WKView was moved into a window, it was possible for us to paint
without ensuring that layout is up-to-date. Fix this by having
WebPage::setIsInWindow() update layout if we are moving to a window.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::setIsInWindow):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Improve the performance of image valued shapes
https://bugs.webkit.org/show_bug.cgi?id=120211

Reviewed by Alexandru Chiculita.

Replaced the implementation of RasterShapeIntervals with one based on the
new ShapeInterval<int> class. This eliminates the dependency the Region class
and delivers a 10X layout speedup for large image valued shapes.

This a just an implementation refactoring, no new tests were needed.

* rendering/shapes/RasterShape.cpp:
(WebCore::RasterShapeIntervals::appendInterval): Renamed this method, it was called addInterval().
(WebCore::shapeIntervalsContain):
(WebCore::RasterShapeIntervals::contains):
(WebCore::RasterShapeIntervals::getIntervalsInLine):
(WebCore::compareX1):
(WebCore::RasterShapeIntervals::firstIncludedIntervalY):
(WebCore::RasterShapeIntervals::getIncludedIntervals):
(WebCore::RasterShapeIntervals::getExcludedIntervals):
(WebCore::RasterShape::getExcludedIntervals):
(WebCore::RasterShape::getIncludedIntervals):
* rendering/shapes/RasterShape.h:
(WebCore::RasterShapeIntervals::RasterShapeIntervals): The constructor now takes a size argument which is used to allocate IntShapeIntervals storage.
(WebCore::RasterShapeIntervals::size):
(WebCore::RasterShapeIntervals::bounds):
(WebCore::RasterShapeIntervals::isEmpty):
(WebCore::RasterShapeIntervals::getIntervals):
* rendering/shapes/Shape.cpp:
(WebCore::Shape::createShape): Use appendInterval() instead of addInterval() (see above) and the new RasterShapeIntervals constructor.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155583 268f45cc-cd09-0410-ab3c-d52691b4dbfc