Add support for null StringViews
https://bugs.webkit.org/show_bug.cgi?id=126827

Reviewed by Anders Carlsson.

Source/WTF: 

- Do some style cleanup while in the neighborhood.

* wtf/text/StringView.h:
(WTF::StringView::StringView):
Add default constructor to create a null StringView.

(WTF::StringView::isNull):
Add isNull(), matching the semantics of String.

(WTF::StringView::operator bool):
Add an explicit operator bool() to allow use in if-statements. 

Tools: 

Add new test for StringView.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WTF/StringView.cpp: Added.
(TestWebKitAPI::TEST):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Fix the build

Only call CGContextFlush() when building for OS X < 10.9.

* platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
(WebCore::ImageBufferBackingStoreCache::deallocate):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
* inspector/InspectorAgentRegistry.h:

Remove an unused function.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix the build by introducing a constructor.

* inspector/InspectorAgentRegistry.cpp:
(Inspector::InspectorAgentRegistry::InspectorAgentRegistry):
* inspector/InspectorAgentRegistry.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[JSC] Revise typed array implementations to match ECMAScript and WebGL Specification
https://bugs.webkit.org/show_bug.cgi?id=126754

Patch by Dean Jackson <dino@apple.com> on 2014-01-11
Reviewed by Filip Pizlo.

Source/JavaScriptCore: 

The ECMAScript specification forbids calling the typed array
constructors without using "new". Change the call data to return
none so we throw and exception in these cases.

* runtime/JSGenericTypedArrayViewConstructorInlines.h:
(JSC::JSGenericTypedArrayViewConstructor<ViewClass>::getCallData):

LayoutTests: 

New test which checks that we throw an exception when calling
any of the typed array constructors without using "new".

* js/script-tests/typedarray-constructors.js: Added.
* js/typedarray-constructors-expected.txt: Added.
* js/typedarray-constructors.html: Added.
* resources/standalone-pre.js: Add missing 'shouldNotThrow'
method (duplicated from resources/js-test-pre.js)


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
https://bugs.webkit.org/show_bug.cgi?id=126829

Reviewed by Sam Weinig.

Some newly-upstreamed iOS text autosizing code needs to move to
RenderBlockFlow in order to build.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::RenderBlock):
* rendering/RenderBlock.h:
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::RenderBlockFlow):
(WebCore::isVisibleRenderText):
(WebCore::resizeTextPermitted):
(WebCore::RenderBlockFlow::immediateLineCount):
(WebCore::isNonBlocksOrNonFixedHeightListItems):
(WebCore::oneLineTextMultiplier):
(WebCore::textMultiplier):
(WebCore::RenderBlockFlow::adjustComputedFontSizes):
* rendering/RenderBlockFlow.h:
(WebCore::RenderBlockFlow::resetComputedFontSize):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
(WebCore::RenderObject::resetTextAutosizing):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try something else.

* inspector/InspectorAgentRegistry.cpp:
(Inspector::InspectorAgentRegistry::~InspectorAgentRegistry):
* inspector/InspectorAgentRegistry.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to prevent the Vector copy constructor from being instantiated.

* inspector/InspectorAgentRegistry.cpp:
(Inspector::InspectorAgentRegistry::InspectorAgentRegistry):
* inspector/InspectorAgentRegistry.h:

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