WebKit-https.git
7 years ago[iOS] Do not link to ApplicationServices.framework for iOS
ddkilzer@apple.com [Sun, 12 Jan 2014 05:59:44 +0000 (05:59 +0000)]
[iOS] Do not link to ApplicationServices.framework for iOS
<http://webkit.org/b/126835>

Reviewed by Dan Bernstein.

* Configurations/WebCore.xcconfig:
(OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
* WebCore.xcodeproj/project.pbxproj: Remove reference to
ApplicationServices.framework.

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

7 years ago[iOS] Build fix for StyleResolver.cpp
ddkilzer@apple.com [Sun, 12 Jan 2014 05:27:21 +0000 (05:27 +0000)]
[iOS] Build fix for StyleResolver.cpp

* rendering/style/RenderStyle.h:
(WebCore::RenderStyle::setCompositionFillColor): Added.

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

7 years ago[iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
ddkilzer@apple.com [Sun, 12 Jan 2014 04:56:31 +0000 (04:56 +0000)]
[iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
Fix use of std::make_unique<>() and add an adoptPtr() call.

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

7 years agoFix the EFL build.
weinig@apple.com [Sun, 12 Jan 2014 04:33:34 +0000 (04:33 +0000)]
Fix the EFL build.

* wtf/IteratorAdaptors.h:
(WTF::TransformIterator::operator*):

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

7 years ago[Mac] [Windows] Stop scheduling network requests in WebCore
ap@apple.com [Sun, 12 Jan 2014 04:20:13 +0000 (04:20 +0000)]
[Mac] [Windows] Stop scheduling network requests in WebCore
https://bugs.webkit.org/show_bug.cgi?id=126789
<rdar://problem/15114727>

Source/WebCore:

Reviewed by Sam Weinig.

We'll just send all requests to CFNetwork now, along with associated priorities.

* WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
for more than just pipelining.
* loader/ResourceLoadScheduler.cpp:
(WebCore::ResourceLoadScheduler::scheduleLoad):
* platform/ios/WebCoreSystemInterfaceIOS.mm:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
* platform/network/ResourceHandle.h: For syncronous requests, make it so that they
don't count against HTTP connection limit, to avoid the possibility of hanging the process.
* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::ResourceHandle::createCFURLConnection):
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::platformLoadResourceSynchronously):
* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::ResourceRequest::doUpdatePlatformRequest):
(WebCore::ResourceRequest::doUpdateResourceRequest):
(WebCore::initializeMaximumHTTPConnectionCountPerHost):
(WebCore::initializeHTTPConnectionSettingsOnStartup):
* platform/network/cf/ResourceRequestCFNet.h:
(WebCore::toPlatformRequestPriority):
* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::createNSURLConnection):
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::platformLoadResourceSynchronously):
* platform/network/mac/ResourceRequestMac.mm:
(WebCore::ResourceRequest::doUpdateResourceRequest):
(WebCore::ResourceRequest::doUpdatePlatformRequest):

Source/WebKit/mac:

Reviewed by Sam Weinig.

* WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
for new WKSI function names.

Source/WebKit2:

Reviewed by Sam Weinig.

* NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm:
(WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost):
We no longer need the trick with 7 connections, as synchronous requests always have
the right of way.

* UIProcess/API/C/WKContext.cpp: Removed long obsolete functions.

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface):
Updated for new WKSI function names.

WebKitLibraries:

Update WKSI.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceMavericks.a:
* libWebKitSystemInterfaceMountainLion.a:

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

7 years ago[iOS] Fix build failure in WebCore::findEndWordBoundary()
ddkilzer@apple.com [Sun, 12 Jan 2014 04:13:43 +0000 (04:13 +0000)]
[iOS] Fix build failure in WebCore::findEndWordBoundary()

Filed Bug 126830 for the proper fix:
<http://webkit.org/b/126830>

* editing/VisibleUnits.cpp:
(WebCore::endWordBoundary): Switch back to using
WebCore::findWordBoundary() on iOS.

* platform/text/mac/TextBoundaries.mm:
(WebCore::findEndWordBoundary): Add FIXME for iOS implementation
that doesn't use NSAttributedString.

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

7 years ago[WebGL] Correct uniform input validation for texture sampler uniforms
bfulgham@apple.com [Sun, 12 Jan 2014 03:53:39 +0000 (03:53 +0000)]
[WebGL] Correct uniform input validation for texture sampler uniforms
https://bugs.webkit.org/show_bug.cgi?id=126775

Reviewed by Anders Carlsson.

* fast/canvas/webgl/uniform-samplers-test-expected.txt: Added.
* fast/canvas/webgl/uniform-samplers-test.html: Corrected resource
includes when moving from khronos suite to our fast suite.
* resources/js-test-pre.js:
(expectTrue): Added.

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

7 years agoTry again to fix the build.
andersca@apple.com [Sun, 12 Jan 2014 03:23:25 +0000 (03:23 +0000)]
Try again to fix the build.

* inspector/InspectorAgentRegistry.cpp:
* inspector/InspectorAgentRegistry.h:

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

7 years agoTry to prevent the Vector copy constructor from being instantiated.
andersca@apple.com [Sun, 12 Jan 2014 03:00:51 +0000 (03:00 +0000)]
Try to prevent the Vector copy constructor from being instantiated.

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

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

7 years agoTry something else.
andersca@apple.com [Sun, 12 Jan 2014 02:56:20 +0000 (02:56 +0000)]
Try something else.

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

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

7 years ago[iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
aestes@apple.com [Sun, 12 Jan 2014 02:51:25 +0000 (02:51 +0000)]
[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: https://svn.webkit.org/repository/webkit/trunk@161790 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[JSC] Revise typed array implementations to match ECMAScript and WebGL Specification
bfulgham@apple.com [Sun, 12 Jan 2014 02:51:19 +0000 (02:51 +0000)]
[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: https://svn.webkit.org/repository/webkit/trunk@161789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoTry to fix the build by introducing a constructor.
andersca@apple.com [Sun, 12 Jan 2014 02:49:22 +0000 (02:49 +0000)]
Try to fix the build by introducing a constructor.

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

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

7 years ago* inspector/InspectorAgentRegistry.h:
andersca@apple.com [Sun, 12 Jan 2014 02:43:33 +0000 (02:43 +0000)]
* inspector/InspectorAgentRegistry.h:

Remove an unused function.

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

7 years ago[iOS] Fix the build
dbates@webkit.org [Sun, 12 Jan 2014 02:25:07 +0000 (02:25 +0000)]
[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: https://svn.webkit.org/repository/webkit/trunk@161786 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoAdd support for null StringViews
weinig@apple.com [Sun, 12 Jan 2014 01:54:22 +0000 (01:54 +0000)]
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: https://svn.webkit.org/repository/webkit/trunk@161785 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoInspectorAgentRegistry should use std::unique_ptr
andersca@apple.com [Sun, 12 Jan 2014 00:54:27 +0000 (00:54 +0000)]
InspectorAgentRegistry should use std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=126826

Reviewed by Sam Weinig.

Source/JavaScriptCore:

* inspector/InspectorAgentRegistry.cpp:
(Inspector::InspectorAgentRegistry::append):
* inspector/InspectorAgentRegistry.h:
* inspector/JSGlobalObjectInspectorController.cpp:
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
* inspector/agents/InspectorAgent.h:

Source/WebCore:

* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorCSSAgent.h:
* inspector/InspectorCanvasAgent.h:
* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMDebuggerAgent.cpp:
* inspector/InspectorDOMDebuggerAgent.h:
* inspector/InspectorDOMStorageAgent.h:
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorHeapProfilerAgent.cpp:
* inspector/InspectorHeapProfilerAgent.h:
* inspector/InspectorIndexedDBAgent.h:
* inspector/InspectorInputAgent.h:
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorMemoryAgent.cpp:
* inspector/InspectorMemoryAgent.h:
* inspector/InspectorPageAgent.cpp:
* inspector/InspectorPageAgent.h:
* inspector/InspectorProfilerAgent.cpp:
(WebCore::InspectorProfilerAgent::create):
* inspector/InspectorProfilerAgent.h:
* inspector/InspectorResourceAgent.h:
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWorkerAgent.cpp:
* inspector/InspectorWorkerAgent.h:
* inspector/PageConsoleAgent.h:
* inspector/PageDebuggerAgent.cpp:
* inspector/PageDebuggerAgent.h:
* inspector/PageRuntimeAgent.h:
* inspector/WorkerConsoleAgent.h:
* inspector/WorkerDebuggerAgent.cpp:
* inspector/WorkerDebuggerAgent.h:
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::WorkerInspectorController):
* inspector/WorkerRuntimeAgent.h:

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

7 years agoExtract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
commit-queue@webkit.org [Sat, 11 Jan 2014 22:56:40 +0000 (22:56 +0000)]
Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
https://bugs.webkit.org/show_bug.cgi?id=126820

Patch by Sam Weinig <sam@webkit.org> on 2014-01-11
Reviewed by Anders Carlsson.

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
(WebCore::convertFloatToHalfFloat):
(WebCore::FormatConverter::convert):
* platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
(WebCore::FormatConverter::FormatConverter):
(WebCore::FormatConverter::success):
* platform/graphics/GraphicsContext3D.cpp:
(WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
(WebCore::GraphicsContext3D::computeImageSizeInBytes):
(WebCore::GraphicsContext3D::packImageData):
(WebCore::GraphicsContext3D::extractImageData):
(WebCore::GraphicsContext3D::extractTextureData):
(WebCore::GraphicsContext3D::packPixels):
* platform/graphics/GraphicsContext3D.h:
(WebCore::GraphicsContext3D::hasAlpha):
(WebCore::GraphicsContext3D::hasColor):

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

7 years agoFix updateScrollingLayerWithClient() for iOS.
simon.fraser@apple.com [Sat, 11 Jan 2014 20:59:15 +0000 (20:59 +0000)]
Fix updateScrollingLayerWithClient() for iOS.

* rendering/RenderLayerCompositor.cpp:
(WebCore::updateScrollingLayerWithClient):

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

7 years agoUnfork GraphicsContext::drawNativeImage for iOS
simon.fraser@apple.com [Sat, 11 Jan 2014 20:59:14 +0000 (20:59 +0000)]
Unfork GraphicsContext::drawNativeImage for iOS
https://bugs.webkit.org/show_bug.cgi?id=126824

Reviewed by Dean Jackson.

GraphicsContext::drawNativeImage had a different signature for iOS,
which required #ifdefs at all the call sites. Unfork by passing the "scale"
parameter everywhere (it's only used on iOS).

Source/WebCore:

* WebCore.exp.in:
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawImage):
* platform/graphics/GraphicsContext.h:
* platform/graphics/cg/BitmapImageCG.cpp:
(WebCore::BitmapImage::draw):
* platform/graphics/cg/GraphicsContext3DCG.cpp:
(WebCore::GraphicsContext3D::paintToCanvas):
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::platformInit):
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::draw):
* platform/graphics/ios/IconIOS.mm:
(WebCore::Icon::paint):

Source/WebKit2:

* Shared/API/c/cg/WKImageCG.cpp:
(WKImageCreateFromCGImage):

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

7 years agoWork around USE(CFNETWORK) build failure on iOS.
simon.fraser@apple.com [Sat, 11 Jan 2014 20:59:11 +0000 (20:59 +0000)]
Work around USE(CFNETWORK) build failure on iOS.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):

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

7 years ago[iOS] Upstream gtest
ddkilzer@apple.com [Sat, 11 Jan 2014 20:56:27 +0000 (20:56 +0000)]
[iOS] Upstream gtest
<http://webkit.org/b/126811>

Reviewed by Mark Rowe.

* gtest/xcode/Config/General.xcconfig: Include iOS.xcconfig.
* gtest/xcode/Config/iOS.xcconfig: Added.
* gtest/xcode/gtest.xcodeproj/project.pbxproj: Add iOS.xcconfig.
Sort.

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

7 years agoFix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type...
simon.fraser@apple.com [Sat, 11 Jan 2014 20:05:17 +0000 (20:05 +0000)]
Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'

* loader/archive/cf/LegacyWebArchive.cpp:

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

7 years ago[iOS] Fix the easy half of the build errors in RenderBlock.cpp
ddkilzer@apple.com [Sat, 11 Jan 2014 20:03:42 +0000 (20:03 +0000)]
[iOS] Fix the easy half of the build errors in RenderBlock.cpp

* rendering/RenderBlock.cpp:
(WebCore::isNonBlocksOrNonFixedHeightListItems):
(WebCore::oneLineTextMultiplier):
(WebCore::textMultiplier):
(WebCore::RenderBlock::adjustComputedFontSizes):

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

7 years agoChange touch-related headers to include WebKitAdditions headers,
simon.fraser@apple.com [Sat, 11 Jan 2014 19:56:38 +0000 (19:56 +0000)]
Change touch-related headers to include WebKitAdditions headers,
which have been renamed to have IOS suffixes.

* WebCore.xcodeproj/project.pbxproj:
* bindings/js/ios/TouchConstructors.cpp:
* dom/Touch.h:
* dom/TouchEvent.h:
* dom/TouchList.h:
* dom/ios/TouchEvents.cpp:

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

7 years ago[Mac] xcodebuild color output is suppressed when using make
mitz@apple.com [Sat, 11 Jan 2014 19:48:08 +0000 (19:48 +0000)]
[Mac] xcodebuild color output is suppressed when using make
https://bugs.webkit.org/show_bug.cgi?id=126815

Reviewed by Anders Carlsson.

WHen using make, xcodebuild’s output is piped through a filter, which causes it not to
format its output with color and emphasis.

* Makefile.shared: Pass COLOR_DIAGNOSTICS=YES to xcodebuild to force color output on. Due to
xcodebuild limitations, this restores some of the formatting, but not all of it.

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

7 years agoScriptDebugServer should use a separate member function for its timer handler
andersca@apple.com [Sat, 11 Jan 2014 19:31:26 +0000 (19:31 +0000)]
ScriptDebugServer should use a separate member function for its timer handler
https://bugs.webkit.org/show_bug.cgi?id=126819

Reviewed by Sam Weinig.

It's weird to have subclasses override a timer handler and sometimes invoke
the timer handler directly so make it a separate member function instead.

* bindings/js/PageScriptDebugServer.cpp:
(WebCore::PageScriptDebugServer::recompileAllJSFunctions):
* bindings/js/PageScriptDebugServer.h:
* bindings/js/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::ScriptDebugServer):
(WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
* bindings/js/ScriptDebugServer.h:
* bindings/js/WorkerScriptDebugServer.cpp:
(WebCore::WorkerScriptDebugServer::addListener):
(WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
* bindings/js/WorkerScriptDebugServer.h:
* inspector/InspectorProfilerAgent.cpp:
(WebCore::InspectorProfilerAgent::start):

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

7 years agoClean up iterator filter / iterator range code
weinig@apple.com [Sat, 11 Jan 2014 19:17:55 +0000 (19:17 +0000)]
Clean up iterator filter / iterator range code
https://bugs.webkit.org/show_bug.cgi?id=126817

Reviewed by Anders Carlsson.

Source/WebKit2:

* Shared/APIArray.h:
Update elementsOfType() to use combination of FilterIterator and TransformIterator
(now that FilterIterator no longer has a transform predicate) and make use of the
makeFoo() helpers.

Source/WTF:

- Renames IteratorPair to IteratorRange.
- Splits FilterIterator into FilterIterator (which now only filters) and
  TransformIterator (which does the transform part of the old FilterIterator).
  Move both of these to IteratorAdaptors.h

* GNUmakefile.list.am:
* WTF.vcxproj/WTF.vcxproj:
* WTF.vcxproj/WTF.vcxproj.filters:
* WTF.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:
* wtf/FilterIterator.h: Removed.
Add/remove files.

* wtf/HashMap.h:
(WTF::HashMap::keys):
(WTF::HashMap::values):
* wtf/RefPtrHashMap.h:
Update for rename to IteratorRange. Simplify by using makeIteratorRange().

* wtf/IteratorAdaptors.h: Copied from wtf/FilterIterator.h.
(WTF::FilterIterator::FilterIterator):
(WTF::FilterIterator::operator*):
(WTF::makeFilterIterator):
(WTF::TransformIterator::TransformIterator):
(WTF::TransformIterator::operator++):
(WTF::TransformIterator::operator*):
(WTF::TransformIterator::operator==):
(WTF::TransformIterator::operator!=):
(WTF::makeTransformIterator):
Split up filtering and transforming. Add makeFilterIterator() and makeTransformIterator()
helpers.

* wtf/IteratorPair.h: Removed.
* wtf/IteratorRange.h: Copied from wtf/IteratorPair.h.
(WTF::IteratorRange::IteratorRange):
(WTF::makeIteratorRange):
Renamed to IteratorRange and adds makeIteratorRange() helper.

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

7 years agoSimplify Timer and DeferrableOneShotTimer using std::function
andersca@apple.com [Sat, 11 Jan 2014 19:16:14 +0000 (19:16 +0000)]
Simplify Timer and DeferrableOneShotTimer using std::function
https://bugs.webkit.org/show_bug.cgi?id=126816

Reviewed by Sam Weinig.

Source/WebCore:

* platform/Timer.h:
(WebCore::Timer::Timer):

Source/WebKit2:

Add another unexported symbol.

* Configurations/WebKit2.xcconfig:

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

7 years agoCTTE Timer and DeferrableOneShotTimer
andersca@apple.com [Sat, 11 Jan 2014 18:19:04 +0000 (18:19 +0000)]
CTTE Timer and DeferrableOneShotTimer
https://bugs.webkit.org/show_bug.cgi?id=126814

Reviewed by Antti Koivisto.

Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
take a reference instead of a pointer.
Also, convert a bunch of classes over to using these new constructors.

* Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::keyRequestTimerFired):
(WebCore::MediaKeySession::addKeyTimerFired):
* Modules/encryptedmedia/MediaKeySession.h:
* Modules/geolocation/Geolocation.cpp:
(WebCore::Geolocation::GeoNotifier::timerFired):
(WebCore::Geolocation::resumeTimerFired):
* Modules/geolocation/Geolocation.h:
* Modules/indexeddb/IDBTransactionBackend.cpp:
(WebCore::IDBTransactionBackend::taskTimerFired):
* Modules/indexeddb/IDBTransactionBackend.h:
* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::appendBufferTimerFired):
* Modules/mediasource/SourceBuffer.h:
* Modules/notifications/Notification.cpp:
(WebCore::Notification::taskTimerFired):
* Modules/notifications/Notification.h:
* Modules/notifications/NotificationCenter.cpp:
(WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
* Modules/notifications/NotificationCenter.h:
* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::notificationPostTimerFired):
* accessibility/AXObjectCache.h:
* css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::beginLoadTimerFired):
* css/CSSFontSelector.h:
* css/CSSImageGeneratorValue.cpp:
(WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
* css/CSSImageGeneratorValue.h:
* dom/Document.cpp:
(WebCore::Document::visualUpdatesSuppressionTimerFired):
(WebCore::Document::styleRecalcTimerFired):
(WebCore::Document::optimizedStyleSheetUpdateTimerFired):
(WebCore::Document::sharedObjectPoolClearTimerFired):
(WebCore::Document::styleResolverThrowawayTimerFired):
(WebCore::Document::updateFocusAppearanceTimerFired):
(WebCore::Document::resetHiddenFocusElementTimer):
(WebCore::Document::pendingTasksTimerFired):
(WebCore::Document::fullScreenChangeDelayTimerFired):
(WebCore::Document::loadEventDelayTimerFired):
(WebCore::Document::didAssociateFormControlsTimerFired):
* dom/Document.h:
* dom/EventSender.h:
(WebCore::EventSender::timerFired):
* dom/GenericEventQueue.cpp:
(WebCore::GenericEventQueue::timerFired):
* dom/GenericEventQueue.h:
* dom/ScriptRunner.cpp:
(WebCore::ScriptRunner::timerFired):
* dom/ScriptRunner.h:
* dom/ScriptedAnimationController.cpp:
(WebCore::ScriptedAnimationController::animationTimerFired):
* dom/ScriptedAnimationController.h:
* editing/AlternativeTextController.cpp:
(WebCore::AlternativeTextController::timerFired):
* editing/AlternativeTextController.h:
* editing/FrameSelection.cpp:
(WebCore::FrameSelection::caretBlinkTimerFired):
* editing/FrameSelection.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* html/HTMLMediaElement.h:
* html/HTMLPlugInElement.cpp:
(WebCore::HTMLPlugInElement::swapRendererTimerFired):
* html/HTMLPlugInElement.h:
* html/HTMLPlugInImageElement.cpp:
(WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
(WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
* html/HTMLPlugInImageElement.h:
* html/HTMLSourceElement.cpp:
(WebCore::HTMLSourceElement::errorEventTimerFired):
* html/HTMLSourceElement.h:
* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::loadTimerFired):
* html/HTMLTrackElement.h:
* html/MediaController.cpp:
(MediaController::asyncEventTimerFired):
(MediaController::clearPositionTimerFired):
(MediaController::timeupdateTimerFired):
* html/MediaController.h:
* html/MediaDocument.cpp:
(WebCore::MediaDocument::replaceMediaElementTimerFired):
* html/MediaDocument.h:
* html/parser/HTMLParserScheduler.cpp:
(WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
* html/parser/HTMLParserScheduler.h:
* html/shadow/MediaControlElementTypes.cpp:
(WebCore::MediaControlSeekButtonElement::seekTimerFired):
* html/shadow/MediaControlElementTypes.h:
* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlPanelElement::transitionTimerFired):
(WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
* html/shadow/MediaControlElements.h:
* html/shadow/MediaControls.cpp:
(WebCore::MediaControls::hideFullscreenControlsTimerFired):
* html/shadow/MediaControls.h:
* html/track/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::loadTimerFired):
* html/track/LoadableTextTrack.h:
* inspector/InspectorCSSAgent.cpp:
(WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
(WebCore::UpdateRegionLayoutTask::timerFired):
(WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
(WebCore::ChangeRegionOversetTask::timerFired):
* inspector/InspectorDOMAgent.cpp:
(WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
(WebCore::RevalidateStyleAttributeTask::timerFired):
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
(WebCore::InspectorBackendDispatchTask::timerFired):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
* loader/DocumentLoader.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::checkTimerFired):
* loader/FrameLoader.h:
* loader/ImageLoader.cpp:
(WebCore::ImageLoader::timerFired):
* loader/ImageLoader.h:
* loader/LinkLoader.cpp:
(WebCore::LinkLoader::linkLoadTimerFired):
(WebCore::LinkLoader::linkLoadingErrorTimerFired):
* loader/LinkLoader.h:
* loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::timerFired):
* loader/NavigationScheduler.h:
* loader/PingLoader.cpp:
(WebCore::PingLoader::PingLoader):
* loader/PingLoader.h:
(WebCore::PingLoader::timeoutTimerFired):
* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::progressHeartbeatTimerFired):
* loader/ProgressTracker.h:
* loader/ResourceLoadScheduler.cpp:
(WebCore::ResourceLoadScheduler::requestTimerFired):
* loader/ResourceLoadScheduler.h:
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::decodedDataDeletionTimerFired):
(WebCore::CachedResource::CachedResourceCallback::timerFired):
* loader/cache/CachedResource.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
* loader/cache/CachedResourceLoader.h:
* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::syncTimerFired):
* loader/icon/IconDatabase.h:
* page/AutoscrollController.cpp:
(WebCore::AutoscrollController::autoscrollTimerFired):
* page/AutoscrollController.h:
* page/CaptionUserPreferences.cpp:
(WebCore::CaptionUserPreferences::timerFired):
* page/CaptionUserPreferences.h:
* page/DeviceController.cpp:
(WebCore::DeviceController::fireDeviceEvent):
* page/DeviceController.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::cursorUpdateTimerFired):
(WebCore::EventHandler::autoHideCursorTimerFired):
(WebCore::EventHandler::fakeMouseMoveEventTimerFired):
(WebCore::EventHandler::hoverTimerFired):
* page/EventHandler.h:
* page/EventSource.cpp:
(WebCore::EventSource::connectTimerFired):
* page/EventSource.h:
* page/FrameView.cpp:
(WebCore::FrameView::deferredRepaintTimerFired):
(WebCore::FrameView::layoutTimerFired):
(WebCore::FrameView::postLayoutTimerFired):
* page/FrameView.h:
* page/PageThrottler.cpp:
(WebCore::PageThrottler::throttleHysteresisTimerFired):
* page/PageThrottler.h:
* page/animation/AnimationController.cpp:
(WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
(WebCore::AnimationControllerPrivate::animationTimerFired):
* page/animation/AnimationControllerPrivate.h:
* platform/Scrollbar.cpp:
(WebCore::Scrollbar::autoscrollTimerFired):
* platform/Scrollbar.h:
* platform/Timer.h:
(WebCore::Timer::Timer):
(WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::advanceAnimation):
* platform/graphics/BitmapImage.h:
* platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::reloadTimerFired):
* platform/graphics/MediaPlayer.h:
* platform/graphics/ca/mac/LayerPool.h:
* platform/graphics/ca/mac/LayerPool.mm:
(WebCore::LayerPool::pruneTimerFired):
* platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
(WebCore::ImageBufferBackingStoreCache::timerFired):
* platform/graphics/cg/ImageBufferBackingStoreCache.h:
* platform/graphics/cg/SubimageCacheWithTimer.cpp:
(WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
* platform/graphics/cg/SubimageCacheWithTimer.h:
* platform/graphics/mac/MediaPlayerPrivateQTKit.h:
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
(WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
(WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
* platform/mock/DeviceOrientationClientMock.cpp:
(WebCore::DeviceOrientationClientMock::timerFired):
* platform/mock/DeviceOrientationClientMock.h:
* platform/network/NetworkStateNotifier.h:
* platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::failureTimerFired):
* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal):
* platform/network/mac/NetworkStateNotifierMac.cpp:
(WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
* rendering/ImageQualityController.cpp:
(WebCore::ImageQualityController::highQualityRepaintTimerFired):
* rendering/ImageQualityController.h:
* rendering/RenderButton.cpp:
(WebCore::RenderButton::timerFired):
* rendering/RenderButton.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
(WebCore::RenderLayerCompositor::layerFlushTimerFired):
(WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
* rendering/RenderLayerCompositor.h:
* rendering/RenderMarquee.cpp:
(WebCore::RenderMarquee::timerFired):
* rendering/RenderMarquee.h:
* rendering/RenderNamedFlowThread.cpp:
(WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
(WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
* rendering/RenderNamedFlowThread.h:
* rendering/RenderProgress.cpp:
(WebCore::RenderProgress::animationTimerFired):
* rendering/RenderProgress.h:

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

7 years ago* dom/Touch.h:
simon.fraser@apple.com [Sat, 11 Jan 2014 16:58:36 +0000 (16:58 +0000)]
* dom/Touch.h:
* dom/TouchEvent.h:
* dom/TouchList.h:

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

7 years agoNo need to include <ApplicationServices/ApplicationServices.h> in
simon.fraser@apple.com [Sat, 11 Jan 2014 16:58:35 +0000 (16:58 +0000)]
No need to include <ApplicationServices/ApplicationServices.h> in
the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.

* platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
* platform/graphics/cg/ImageBufferBackingStoreCache.h:

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

7 years agoFix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
simon.fraser@apple.com [Sat, 11 Jan 2014 16:58:32 +0000 (16:58 +0000)]
Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
and a drive-by cleanup of DOMUIKitExtensions.mm #includes.

* bindings/objc/DOMPrivate.h:
* bindings/objc/DOMUIKitExtensions.h:
* bindings/objc/DOMUIKitExtensions.mm:

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

7 years agoFix use of GL_HALF_FLOAT_ARB on iOS.
simon.fraser@apple.com [Sat, 11 Jan 2014 16:29:08 +0000 (16:29 +0000)]
Fix use of GL_HALF_FLOAT_ARB on iOS.

* platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
(WebCore::GraphicsContext3D::texSubImage2D):

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

7 years agoFix build of SourceBufferPrivateAVFObjC.mm on iOS.
simon.fraser@apple.com [Sat, 11 Jan 2014 16:29:06 +0000 (16:29 +0000)]
Fix build of SourceBufferPrivateAVFObjC.mm on iOS.

* platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:

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

7 years agoFix use of nonexistent kCGColorSpaceSRGB on iOS.
simon.fraser@apple.com [Sat, 11 Jan 2014 16:29:04 +0000 (16:29 +0000)]
Fix use of nonexistent kCGColorSpaceSRGB on iOS.

* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::sRGBColorSpaceRef):

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

7 years agoWeb Inspector: Some ScriptDebugServer Cleanup
commit-queue@webkit.org [Sat, 11 Jan 2014 15:51:31 +0000 (15:51 +0000)]
Web Inspector: Some ScriptDebugServer Cleanup
https://bugs.webkit.org/show_bug.cgi?id=126793

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-01-11
Reviewed by Timothy Hatcher.

* bindings/js/PageScriptDebugServer.cpp:
(WebCore::PageScriptDebugServer::didContinue):
(WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
Move the special iOS WebThread EventLoop nesting handling here.

* bindings/js/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::ScriptDebugServer):
(WebCore::ScriptDebugServer::handlePause):
* bindings/js/ScriptDebugServer.h:
* inspector/InspectorDebuggerAgent.cpp:
* inspector/InspectorDebuggerAgent.h:
Remove unused headers and functions.

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

7 years ago[iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
ddkilzer@apple.com [Sat, 11 Jan 2014 14:17:12 +0000 (14:17 +0000)]
[iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build

* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
variables are only used by code protected by
USE(IOSURFACE_CANVAS_BACKING_STORE).

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

7 years ago[iOS] Multisampling is not available on iOS
ddkilzer@apple.com [Sat, 11 Jan 2014 13:02:49 +0000 (13:02 +0000)]
[iOS] Multisampling is not available on iOS

* platform/graphics/mac/GraphicsContext3DMac.mm:
(WebCore::GraphicsContext3D::GraphicsContext3D):

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

7 years ago[EFL][WK2] Use nullptr instead of 0 in EFL API layer
jinwoo7.song@samsung.com [Sat, 11 Jan 2014 08:52:01 +0000 (08:52 +0000)]
[EFL][WK2] Use nullptr instead of 0 in EFL API layer
https://bugs.webkit.org/show_bug.cgi?id=126806

Reviewed by Anders Carlsson.

* UIProcess/API/efl/EwkView.cpp:
(EwkView::create):
* UIProcess/API/efl/ewk_auth_request.cpp:
(ewk_auth_request_suggested_username_get):
(ewk_auth_request_realm_get):
(ewk_auth_request_host_get):
* UIProcess/API/efl/ewk_back_forward_list.cpp:
(ewk_back_forward_list_current_item_get):
(ewk_back_forward_list_previous_item_get):
(ewk_back_forward_list_next_item_get):
(ewk_back_forward_list_item_at_index_get):
(ewk_back_forward_list_n_back_items_copy):
(ewk_back_forward_list_n_forward_items_copy):
* UIProcess/API/efl/ewk_back_forward_list_item.cpp:
(ewk_back_forward_list_item_url_get):
(ewk_back_forward_list_item_title_get):
(ewk_back_forward_list_item_original_url_get):
* UIProcess/API/efl/ewk_context.cpp:
(ewk_context_cookie_manager_get):
(ewk_context_database_manager_get):
(ewk_context_favicon_database_get):
(ewk_context_storage_manager_get):
(ewk_context_new_with_injected_bundle_path):
* UIProcess/API/efl/ewk_context_menu.cpp:
(ewk_context_menu_items_get):
* UIProcess/API/efl/ewk_context_menu_item.cpp:
(ewk_context_menu_item_new_with_submenu):
(ewk_context_menu_item_title_get):
(ewk_context_menu_item_parent_menu_get):
(ewk_context_menu_item_submenu_get):
* UIProcess/API/efl/ewk_download_job.cpp:
(ewk_download_job_request_get):
(ewk_download_job_response_get):
(ewk_download_job_destination_get):
(ewk_download_job_suggested_filename_get):
* UIProcess/API/efl/ewk_error.cpp:
(ewk_error_url_get):
(ewk_error_description_get):
* UIProcess/API/efl/ewk_file_chooser_request.cpp:
(ewk_file_chooser_request_accepted_mimetypes_get):
* UIProcess/API/efl/ewk_form_submission_request.cpp:
(ewk_form_submission_request_field_names_get):
(ewk_form_submission_request_field_value_get):
* UIProcess/API/efl/ewk_navigation_data.cpp:
(ewk_navigation_data_title_get):
(ewk_navigation_data_original_request_get):
(ewk_navigation_data_url_get):
* UIProcess/API/efl/ewk_navigation_policy_decision.cpp:
(ewk_navigation_policy_frame_name_get):
(ewk_navigation_policy_request_get):
* UIProcess/API/efl/ewk_object.cpp:
(ewk_object_ref):
* UIProcess/API/efl/ewk_popup_menu.cpp:
(ewk_popup_menu_items_get):
* UIProcess/API/efl/ewk_popup_menu_item.cpp:
(ewk_popup_menu_item_text_get):
(ewk_popup_menu_item_tooltip_get):
(ewk_popup_menu_item_accessibility_text_get):
* UIProcess/API/efl/ewk_security_origin.cpp:
(ewk_security_origin_host_get):
(ewk_security_origin_protocol_get):
* UIProcess/API/efl/ewk_settings.cpp:
(ewk_settings_default_text_encoding_name_get):
* UIProcess/API/efl/ewk_url_request.cpp:
(ewk_url_request_url_get):
(ewk_request_cookies_first_party_get):
(ewk_url_request_http_method_get):
* UIProcess/API/efl/ewk_url_response.cpp:
(ewk_url_response_url_get):
(ewk_url_response_mime_type_get):
* UIProcess/API/efl/ewk_url_scheme_request.cpp:
(ewk_url_scheme_request_scheme_get):
(ewk_url_scheme_request_url_get):
(ewk_url_scheme_request_path_get):
* UIProcess/API/efl/ewk_view.cpp:
(toEwkViewChecked):
(EWKViewGetWKView):
(ewk_view_smart_add):
(ewk_view_add_with_context):
(ewk_view_context_get):
(ewk_view_page_group_get):
(ewk_view_url_get):
(ewk_view_favicon_get):
(ewk_view_settings_get):
(ewk_view_title_get):
(ewk_view_theme_get):
(ewk_view_back_forward_list_get):
(ewk_view_custom_encoding_get):
(ewk_view_user_agent_get):

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

7 years agoBuild fix.
andersca@apple.com [Sat, 11 Jan 2014 08:11:35 +0000 (08:11 +0000)]
Build fix.

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::progressStarted):

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

7 years ago[iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
ddkilzer@apple.com [Sat, 11 Jan 2014 07:43:36 +0000 (07:43 +0000)]
[iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()

* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::willRespondToMouseClickEvents):

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

7 years agoFix test crashes.
andersca@apple.com [Sat, 11 Jan 2014 07:38:32 +0000 (07:38 +0000)]
Fix test crashes.

* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::~ProgressTracker):
Comment out the call to progressTrackerDestroyed for now.

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

7 years ago[iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
ddkilzer@apple.com [Sat, 11 Jan 2014 07:34:37 +0000 (07:34 +0000)]
[iOS] Fix build for RenderEmbeddedObject::canHaveChildren()

* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::canHaveChildren):

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

7 years agoTweak ProgressTrackerClient functions
andersca@apple.com [Sat, 11 Jan 2014 07:33:48 +0000 (07:33 +0000)]
Tweak ProgressTrackerClient functions
https://bugs.webkit.org/show_bug.cgi?id=126808

Reviewed by Sam Weinig.

Source/WebCore:

Rename the three progress state related member functions since it's up to the various
WebKit implementations to decide what to do - not everyone wants to post a notification.
Also add an originating progress frame parameter since WebKit2 doesn't report progress for
subframe navigation and we need to be able to keep track of that.

Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.

* loader/EmptyClients.h:
* loader/ProgressTracker.cpp:
(WebCore::ProgressItem::ProgressItem):
(WebCore::ProgressTracker::progressStarted):
(WebCore::ProgressTracker::finalProgressComplete):
(WebCore::ProgressTracker::incrementProgress):
(WebCore::ProgressTracker::completeProgress):
* loader/ProgressTrackerClient.h:

Source/WebKit/efl:

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::progressStarted):
(WebCore::FrameLoaderClientEfl::progressEstimateChanged):
(WebCore::FrameLoaderClientEfl::progressFinished):
* WebCoreSupport/FrameLoaderClientEfl.h:

Source/WebKit/gtk:

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::progressStarted):
(WebKit::FrameLoaderClient::progressEstimateChanged):
(WebKit::FrameLoaderClient::progressFinished):
* WebCoreSupport/FrameLoaderClientGtk.h:

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::progressStarted):
(WebFrameLoaderClient::progressEstimateChanged):
(WebFrameLoaderClient::progressFinished):

Source/WebKit/win:

* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::progressStarted):
(WebFrameLoaderClient::progressEstimateChanged):
(WebFrameLoaderClient::progressFinished):
* WebCoreSupport/WebFrameLoaderClient.h:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::progressStarted):
(WebKit::WebFrameLoaderClient::progressEstimateChanged):
(WebKit::WebFrameLoaderClient::progressFinished):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

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

7 years ago[iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
ddkilzer@apple.com [Sat, 11 Jan 2014 07:27:38 +0000 (07:27 +0000)]
[iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData

* rendering/style/StyleRareInheritedData.cpp:

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

7 years ago[iOS] Fix build of SubframeLoader.cpp
ddkilzer@apple.com [Sat, 11 Jan 2014 07:05:31 +0000 (07:05 +0000)]
[iOS] Fix build of SubframeLoader.cpp

* loader/SubframeLoader.cpp:
(WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
(WebCore::SubframeLoader::loadPlugin):
* platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:

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

7 years agoFix Mac after r161747. One part of that is iOS specific.
joepeck@webkit.org [Sat, 11 Jan 2014 06:56:36 +0000 (06:56 +0000)]
Fix Mac after r161747. One part of that is iOS specific.

Unreviewed build fix.

* bindings/js/GCController.cpp:
(WebCore::GCController::releaseExecutableMemory):

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

7 years ago[iOS] Fix GCController::releaseExecutableMemory
joepeck@webkit.org [Sat, 11 Jan 2014 06:53:43 +0000 (06:53 +0000)]
[iOS] Fix GCController::releaseExecutableMemory
https://bugs.webkit.org/show_bug.cgi?id=126805

Reviewed by Sam Weinig and Mark Lam.

VM::dynamicGlobalObject has since been replaced by VMEntryScope.
Update to check entryScope instead of the dynamicGlobalObject.
Also, make this non-iOS only.

* bindings/js/GCController.h:
* bindings/js/GCController.cpp:
(WebCore::GCController::releaseExecutableMemory):

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

7 years agoFix HTMLMediaElement.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 06:41:35 +0000 (06:41 +0000)]
Fix HTMLMediaElement.o for iOS. Unreviewed build fix.

There is now local variable mediaElement. Just call the
functions since they are methods on this class.

Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):

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

7 years agoConvert HandleMessage.h to use variadic templates
weinig@apple.com [Sat, 11 Jan 2014 06:33:45 +0000 (06:33 +0000)]
Convert HandleMessage.h to use variadic templates
https://bugs.webkit.org/show_bug.cgi?id=126469

Reviewed by Anders Carlsson.

* Platform/IPC/HandleMessage.h:
(IPC::callMemberFunctionImpl):
(IPC::callMemberFunction):
Replace massive copy and pasted code with variadic magic.

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

7 years agoMove progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
andersca@apple.com [Sat, 11 Jan 2014 06:33:01 +0000 (06:33 +0000)]
Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
https://bugs.webkit.org/show_bug.cgi?id=126801

Reviewed by Sam Weinig.

Source/WebCore:

* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* loader/EmptyClients.cpp:
(WebCore::fillWithEmptyClients):
* loader/EmptyClients.h:
* loader/FrameLoaderClient.h:
* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::ProgressTracker):
(WebCore::ProgressTracker::~ProgressTracker):
(WebCore::ProgressTracker::progressStarted):
(WebCore::ProgressTracker::progressCompleted):
(WebCore::ProgressTracker::finalProgressComplete):
(WebCore::ProgressTracker::incrementProgress):
* loader/ProgressTracker.h:
* loader/ProgressTrackerClient.h: Added.
(WebCore::ProgressTrackerClient::~ProgressTrackerClient):
(WebCore::ProgressTrackerClient::progressTrackerDestroyed):
(WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
(WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
* page/Page.cpp:
(WebCore::Page::Page):
(WebCore::Page::PageClients::PageClients):
* page/Page.h:

Source/WebKit/efl:

* WebCoreSupport/FrameLoaderClientEfl.h:
* ewk/ewk_view.cpp:
(_ewk_view_priv_new):

Source/WebKit/gtk:

* WebCoreSupport/FrameLoaderClientGtk.h:
* webkit/webkitwebview.cpp:
(webkit_web_view_init):

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:]):

Source/WebKit/win:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebView.cpp:
(WebView::initWithFrame):

Source/WebKit2:

* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):

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

7 years agoFix RenderObject.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 06:18:35 +0000 (06:18 +0000)]
Fix RenderObject.o for iOS. Unreviewed build fix.

r156285 renamed firstChild() to firstChildSlow(), so update
occurances in IOS_TEXT_AUTOSIZING code. Also account for a
RenderObject::style reference / pointer change.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::traverseNext):
(WebCore::includeNonFixedHeight):

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

7 years agoFix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 06:08:50 +0000 (06:08 +0000)]
Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.

Import CALayer, which Mac must have been getting some other way.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:

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

7 years agoFix TileGrid.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 06:02:00 +0000 (06:02 +0000)]
Fix TileGrid.o for iOS. Unreviewed build fix.

Explicitly use namespace std in std::pair.

* platform/ios/TileGrid.mm:
(WebCore::isFartherAway):
(WebCore::TileGrid::dropDistantTiles):

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

7 years agoFix RenderImage.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 05:59:35 +0000 (05:59 +0000)]
Fix RenderImage.o for iOS. Unreviewed build fix.

inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!

* rendering/RenderImage.cpp:

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

7 years ago[iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
ddkilzer@apple.com [Sat, 11 Jan 2014 05:53:12 +0000 (05:53 +0000)]
[iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()

Fixes the following build error:

    WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
    #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
                         ^

* platform/Scrollbar.cpp:
(WebCore::Scrollbar::supportsUpdateOnSecondaryThread):

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

7 years agoFix RenderFileUploadControl.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 05:50:41 +0000 (05:50 +0000)]
Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.

WebCore::theme() returns a reference now, not a pointer.

* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::paintObject):

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

7 years agoFix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 05:45:18 +0000 (05:45 +0000)]
Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.

Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
add the files to the Xcode project so they build.

* WebCore.xcodeproj/project.pbxproj:
* html/shadow/YouTubeEmbedShadowElement.cpp: Added.
(WebCore::YouTubeEmbedShadowElement::create):
(WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
(WebCore::YouTubeEmbedShadowElement::pluginElement):
(WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
* html/shadow/YouTubeEmbedShadowElement.h: Added.

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

7 years ago[iOS] Update EditorIOS.mm to switch from pointers to references
ddkilzer@apple.com [Sat, 11 Jan 2014 05:34:14 +0000 (05:34 +0000)]
[iOS] Update EditorIOS.mm to switch from pointers to references

* editing/ios/EditorIOS.mm:
(WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
(WebCore::Editor::insertParagraphSeparatorInQuotedContent):
(WebCore::styleForSelectionStart):
(WebCore::Editor::selectionInWebArchiveFormat):
(WebCore::Editor::writeImageToPasteboard):
(WebCore::Editor::WebContentReader::readWebArchive):
(WebCore::Editor::WebContentReader::readRTFD):
(WebCore::Editor::WebContentReader::readRTF):
(WebCore::uniqueURLWithRelativePart):
(WebCore::Editor::WebContentReader::readPlainText):
(WebCore::Editor::webContentFromPasteboard):
(WebCore::Editor::createFragmentAndAddResources):
(WebCore::Editor::createFragmentForImageResourceAndAddResource):

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

7 years agoWeb Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
joepeck@webkit.org [Sat, 11 Jan 2014 05:18:34 +0000 (05:18 +0000)]
Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
https://bugs.webkit.org/show_bug.cgi?id=126763

Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

Introduce JSGlobalObjectInspectorController. This is the InspectorController
for a JSContext. It is created by the JSGlobalObject Remote Inspector Debuggable
when a remote frontend connects, and is destroyed when the remote frontend
disconnects of the JSGlobalObject is destroyed.

* inspector/JSGlobalObjectInspectorController.h: Added.
* inspector/JSGlobalObjectInspectorController.cpp: Added.
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
(Inspector::JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController):
(Inspector::JSGlobalObjectInspectorController::connectFrontend):
(Inspector::JSGlobalObjectInspectorController::disconnectFrontend):
(Inspector::JSGlobalObjectInspectorController::dispatchMessageFromFrontend):
(Inspector::JSGlobalObjectInspectorController::functionCallHandler):
(Inspector::JSGlobalObjectInspectorController::evaluateHandler):
Create/destory agents, create/destroy dispatches, implement InspectorEnvironment.

* runtime/JSGlobalObjectDebuggable.h:
* runtime/JSGlobalObjectDebuggable.cpp:
(JSC::JSGlobalObjectDebuggable::~JSGlobalObjectDebuggable):
(JSC::JSGlobalObjectDebuggable::connect):
(JSC::JSGlobalObjectDebuggable::disconnect):
(JSC::JSGlobalObjectDebuggable::dispatchMessageFromRemoteFrontend):
Forward actions to the InspectorController object.

* inspector/agents/InspectorAgent.h: Renamed from Source/WebCore/inspector/InspectorAgent.h.
* inspector/agents/InspectorAgent.cpp: Renamed from Source/WebCore/inspector/InspectorAgent.cpp.
(Inspector::InspectorAgent::InspectorAgent):
(Inspector::InspectorAgent::~InspectorAgent):
(Inspector::InspectorAgent::didCreateFrontendAndBackend):
(Inspector::InspectorAgent::inspect):
(Inspector::InspectorAgent::evaluateForTestInFrontend):
Implement InspectorAgent in JavaScriptCore in namespace Inspector.

* JavaScriptCore.xcodeproj/project.pbxproj:
* CMakeLists.txt:
* ChangeLog:
* GNUmakefile.am:
* GNUmakefile.list.am:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.vcxproj/copy-files.cmd:
Add files and new inspector/agents subdirectory.

Source/WebCore:

No new tests, no observable change in functionality.

* CMakeLists.txt:
* ForwardingHeaders/inspector/InspectorAgent.h: Added.
* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* inspector/InspectorAllInOne.cpp:
InspectorAgent moved to JavaScriptCore.

* inspector/PageConsoleAgent.cpp:
(WebCore::PageConsoleAgent::PageConsoleAgent):
(WebCore::PageConsoleAgent::~PageConsoleAgent):
* inspector/PageConsoleAgent.h:
(WebCore::PageConsoleAgent::create):
* inspector/InspectorApplicationCacheAgent.cpp:
* inspector/InspectorApplicationCacheAgent.h:
InspectorAgent was not used by these files, remove it.

* inspector/CommandLineAPIHost.cpp:
* inspector/CommandLineAPIHost.h:
(WebCore::CommandLineAPIHost::init):
* inspector/InspectorInstrumentation.cpp:
* inspector/InstrumentingAgents.h:
(WebCore::InstrumentingAgents::inspectorAgent):
(WebCore::InstrumentingAgents::setInspectorAgent):
Switch to Inspector::InspectorAgent where applicable.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
* inspector/InspectorController.h:
Manually add InspectorAgent to the InstrumentingAgents. It is one
of the agents that is always available in InstrumentingAgents.

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

7 years agoAdd TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
simon.fraser@apple.com [Sat, 11 Jan 2014 05:02:01 +0000 (05:02 +0000)]
Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.

* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
(WebCore::Document::Document):
* rendering/TextAutoSizing.cpp: Added.
(WebCore::cloneRenderStyleWithState):
(WebCore::TextAutoSizingKey::TextAutoSizingKey):
(WebCore::TextAutoSizingKey::~TextAutoSizingKey):
(WebCore::TextAutoSizingKey::operator=):
(WebCore::TextAutoSizingKey::ref):
(WebCore::TextAutoSizingKey::deref):
(WebCore::TextAutoSizingValue::numNodes):
(WebCore::TextAutoSizingValue::addNode):
(WebCore::TextAutoSizingValue::adjustNodeSizes):
(WebCore::TextAutoSizingValue::reset):
* rendering/TextAutoSizing.h: Added.
(WebCore::TextAutoSizingKey::doc):
(WebCore::TextAutoSizingKey::style):
(WebCore::TextAutoSizingKey::isValidDoc):
(WebCore::TextAutoSizingKey::isValidStyle):
(WebCore::TextAutoSizingKey::deletedKeyDoc):
(WebCore::TextAutoSizingKey::deletedKeyStyle):
(WebCore::operator==):
(WebCore::TextAutoSizingHash::hash):
(WebCore::TextAutoSizingHash::equal):
(WebCore::TextAutoSizingValue::create):
(WebCore::TextAutoSizingValue::TextAutoSizingValue):

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

7 years agoFix GraphicsLayerCA.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:44:31 +0000 (04:44 +0000)]
Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.

Use of systemMemoryLevel was missing include of SystemMemory.h.

* platform/graphics/ca/GraphicsLayerCA.cpp:

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

7 years agoFix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 04:41:33 +0000 (04:41 +0000)]
Fix iOS build.

* bindings/objc/DOM.mm:
(-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
* bindings/objc/DOMExtensions.h:
* platform/DragImage.h:

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

7 years agoFix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 04:41:31 +0000 (04:41 +0000)]
Fix iOS build.

Generated DOMTouch* and DOMGesture* files need to be in the project.
Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.

Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h

* Configurations/WebCore.xcconfig:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMPrivate.h:

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

7 years agoFix RenderThemeIOS.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:39:03 +0000 (04:39 +0000)]
Fix RenderThemeIOS.o for iOS. Unreviewed build fix.

Typo referring to generated name. Should be "iOS" not "IOS".

* rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::mediaControlsScript):

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

7 years agoFix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:31:53 +0000 (04:31 +0000)]
Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.

The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
it was using GSFonts. Just upstream a newer version of the file. Also
explicitly namespace qualify std::pair.

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(AXAttributeStringSetStyle):

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

7 years agoRemove willRespondToTouchEvents() which was used by chromium port
jinwoo7.song@samsung.com [Sat, 11 Jan 2014 04:26:14 +0000 (04:26 +0000)]
Remove willRespondToTouchEvents() which was used by chromium port
https://bugs.webkit.org/show_bug.cgi?id=126739

Reviewed by Alexey Proskuryakov.

willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
However, it is not used anywhere after chromium port is removed.

* dom/Node.cpp:
* dom/Node.h:

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

7 years agoFix SystemVersionMac.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:17:24 +0000 (04:17 +0000)]
Fix SystemVersionMac.o for iOS. Unreviewed build fix.

Add missing expected function. Maybe we can avoid including
this file entirely on iOS, there was already a FIXME.

* platform/mac/SystemVersionMac.mm:
(WebCore::systemMarketingVersion):

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

7 years agoFix JSDOMWindowBase.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:13:18 +0000 (04:13 +0000)]
Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.

Add missing iOS method declarations.

* bindings/js/JSDOMWindowBase.h:

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

7 years agoUnreviewed, rolling out r161702.
commit-queue@webkit.org [Sat, 11 Jan 2014 04:06:17 +0000 (04:06 +0000)]
Unreviewed, rolling out r161702.
http://trac.webkit.org/changeset/161702
https://bugs.webkit.org/show_bug.cgi?id=126803

Broke multiple tests (Requested by ap on #webkit).

Source/JavaScriptCore:

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

LayoutTests:

* js/script-tests/typedarray-constructors.js: Removed.
* js/typedarray-constructors-expected.txt: Removed.
* js/typedarray-constructors.html: Removed.

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

7 years agoFix InputType.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 04:05:19 +0000 (04:05 +0000)]
Fix InputType.o for iOS. Unreviewed build fix.

The RuntimeEnabledFeatures function pointer type should have a
const qualifier, because the implementations are all const.

* html/InputType.cpp:

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

7 years agoFix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 03:58:22 +0000 (03:58 +0000)]
Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.

Add missing MediaPlayerProxy Objective C methods and forward declarations.

* platform/graphics/mac/MediaPlayerProxy.h:

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

7 years agoFix FrameSelection.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 03:49:10 +0000 (03:49 +0000)]
Fix FrameSelection.o for iOS. Unreviewed build fix.

r160966 renamed rendererIsEditable to hasEditableStyle.

* editing/FrameSelection.cpp:
(WebCore::FrameSelection::setSelectionFromNone):

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

7 years agoFix DragData.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 03:46:20 +0000 (03:46 +0000)]
Fix DragData.o for iOS. Unreviewed build fix.

String m_pasteboardName is unused on iOS, so ifdef it out.

* platform/DragData.h:

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

7 years agoFix FrameIOS.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 03:32:51 +0000 (03:32 +0000)]
Fix FrameIOS.o for iOS. Unreviewed build fix.

Remove stale include to file that no longer exists. It was not needed.

* page/ios/FrameIOS.mm:

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

7 years agoFix MonthInputType.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 03:29:43 +0000 (03:29 +0000)]
Fix MonthInputType.o for iOS. Unreviewed build fix.

When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
the wrong class name lingered. Fix it to be the base class.

* html/TimeInputType.cpp:
(WebCore::TimeInputType::TimeInputType):

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

7 years ago[iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
aestes@apple.com [Sat, 11 Jan 2014 02:26:39 +0000 (02:26 +0000)]
[iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing

* DerivedSources.make:
* bindings/scripts/preprocessor.pm:
(applyPreprocessor):

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

7 years agoUse TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
simon.fraser@apple.com [Sat, 11 Jan 2014 02:25:33 +0000 (02:25 +0000)]
Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
for a non-iOS function.

* bindings/objc/DOMExtensions.h:

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

7 years agoClean up architectures in xcconfig files
ddkilzer@apple.com [Sat, 11 Jan 2014 02:19:33 +0000 (02:19 +0000)]
Clean up architectures in xcconfig files
<http://webkit.org/b/126794>

Reviewed by Andy Estes.

Source/JavaScriptCore:

* Configurations/Base.xcconfig:
* Configurations/JavaScriptCore.xcconfig: Remove armv6, ppc.
* Configurations/ToolExecutable.xcconfig: Sort.
- Add new arch.

Source/WebCore:

* Configurations/Base.xcconfig:
* Configurations/WebCore.xcconfig: Remove armv6.
* DerivedSources.make: Remove armv6, armv7f. Sort.
- Add new arch.

Source/WebKit/mac:

* Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
- Add new arch.

Source/WTF:

* Configurations/Base.xcconfig:
- Add new arch.

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

7 years agoFix iOS build
simon.fraser@apple.com [Sat, 11 Jan 2014 02:16:22 +0000 (02:16 +0000)]
Fix iOS build

* Configurations/WebCore.xcconfig:
* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):

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

7 years agoFix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 01:59:24 +0000 (01:59 +0000)]
Fix iOS build.

* html/DateTimeLocalInputType.h:
(WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
* loader/ios/DiskImageCacheIOS.h:

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

7 years agoiOS build fix: add StyleRareInheritedData::compositionFillColor
simon.fraser@apple.com [Sat, 11 Jan 2014 01:59:21 +0000 (01:59 +0000)]
iOS build fix: add StyleRareInheritedData::compositionFillColor

* rendering/style/RenderStyle.h:
* rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
(WebCore::StyleRareInheritedData::operator==):
* rendering/style/StyleRareInheritedData.h:

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

7 years agoFix MonthInputType.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 01:50:32 +0000 (01:50 +0000)]
Fix MonthInputType.o for iOS. Unreviewed build fix.

Incorrect base class name. Must have been typo'd when upstreaming.

* html/MonthInputType.h:
(WebCore::MonthInputType::MonthInputType):

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

7 years agoFix RenderButton.o for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 01:33:47 +0000 (01:33 +0000)]
Fix RenderButton.o for iOS. Unreviewed build fix.

Missing prototype in header for override of the layout method.

* rendering/RenderButton.h:

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

7 years agoA couple of iOS build fixes.
simon.fraser@apple.com [Sat, 11 Jan 2014 01:29:51 +0000 (01:29 +0000)]
A couple of iOS build fixes.

* accessibility/ios/AXObjectCacheIOS.mm:
(WebCore::AXObjectCache::handleFocusedUIElementChanged):
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawImage):

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

7 years agoFix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 01:29:49 +0000 (01:29 +0000)]
Fix iOS build.

* loader/ResourceLoader.h:

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

7 years agoFix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
joepeck@webkit.org [Sat, 11 Jan 2014 01:26:40 +0000 (01:26 +0000)]
Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.

PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
so remove the stale implementations on iOS. Also, add a notImplemented version
of screenColorProfile, which matches Mac and is unused in WebCore for this port.

* platform/ios/PlatformScreenIOS.mm:
(WebCore::screenColorProfile):

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

7 years agoCTTE FrameTree
andersca@apple.com [Sat, 11 Jan 2014 01:19:15 +0000 (01:19 +0000)]
CTTE FrameTree
https://bugs.webkit.org/show_bug.cgi?id=126795

Reviewed by Tim Horton.

* page/Frame.cpp:
(WebCore::Frame::Frame):
* page/FrameTree.cpp:
(WebCore::FrameTree::transferChild):
(WebCore::FrameTree::appendChild):
(WebCore::FrameTree::actuallyAppendChild):
(WebCore::FrameTree::uniqueChildName):
(WebCore::FrameTree::scopedChild):
(WebCore::FrameTree::scopedChildCount):
(WebCore::FrameTree::child):
(WebCore::FrameTree::find):
(WebCore::FrameTree::isDescendantOf):
(WebCore::FrameTree::traverseNext):
(WebCore::FrameTree::traverseNextWithWrap):
(WebCore::FrameTree::traversePreviousWithWrap):
(WebCore::FrameTree::deepLastChild):
(WebCore::FrameTree::top):
* page/FrameTree.h:
(WebCore::FrameTree::FrameTree):

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

7 years ago[JSC] Revise typed array implementations to match ECMAScript and WebGL Specification
dino@apple.com [Sat, 11 Jan 2014 01:09:58 +0000 (01:09 +0000)]
[JSC] Revise typed array implementations to match ECMAScript and WebGL Specification
https://bugs.webkit.org/show_bug.cgi?id=126754

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.

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

7 years agoFix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 01:05:18 +0000 (01:05 +0000)]
Fix iOS build.

* platform/graphics/ImageSource.h:
(WebCore::ImageSource::acceleratedImageDecodingEnabled):
(WebCore::ImageSource::setAcceleratedImageDecodingEnabled):

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

7 years agoUnreviewed EFL build fix after r161678.
joepeck@webkit.org [Sat, 11 Jan 2014 00:55:15 +0000 (00:55 +0000)]
Unreviewed EFL build fix after r161678.

static_cast a size_t to unsigned long for %lu format string.

* page/Console.cpp:
(WebCore::internalAddMessage):

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

7 years agoRemove the BlackBerry port from trunk
benjamin@webkit.org [Sat, 11 Jan 2014 00:53:54 +0000 (00:53 +0000)]
Remove the BlackBerry port from trunk
https://bugs.webkit.org/show_bug.cgi?id=126715

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-10
Reviewed by Anders Carlsson.

.:

* CMakeLists.txt:
* Source/cmake/OptionsCommon.cmake:

Source/JavaScriptCore:

* assembler/ARMAssembler.h:
(JSC::ARMAssembler::cacheFlush):
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::replaceWithJump):
(JSC::ARMv7Assembler::maxJumpReplacementSize):
(JSC::ARMv7Assembler::cacheFlush):
* assembler/MacroAssemblerARMv7.h:
(JSC::MacroAssemblerARMv7::revertJumpReplacementToBranchPtrWithPatch):
* heap/MachineStackMarker.cpp:
(JSC::getPlatformThreadRegisters):
(JSC::otherThreadStackPointer):
(JSC::freePlatformThreadRegisters):
* jit/ExecutableAllocator.h:

Source/WebCore:

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::readPixels):
* platform/graphics/ImageBuffer.cpp:
* platform/graphics/ImageBufferData.h:
* platform/graphics/IntPoint.h:
* platform/graphics/IntRect.h:
* platform/graphics/IntSize.h:
* platform/graphics/MediaPlayer.cpp:
* platform/graphics/NativeImagePtr.h:
* platform/graphics/OpenGLESShims.h:
* platform/graphics/Path.cpp:
(WebCore::Path::addPathForRoundedRect):
* platform/graphics/Path.h:
* platform/graphics/PlatformLayer.h:
* platform/graphics/filters/CustomFilterValidatedProgram.cpp:
* platform/graphics/filters/CustomFilterValidatedProgram.h:
* platform/graphics/filters/FilterOperation.h:
* platform/graphics/gpu/DrawingBuffer.cpp:
* platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
* platform/graphics/opengl/Extensions3DOpenGLES.cpp:
(WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
* platform/graphics/opengl/Extensions3DOpenGLES.h:
* platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
(WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
(WebCore::GraphicsContext3D::prepareTexture):
(WebCore::GraphicsContext3D::bindFramebuffer):
(WebCore::GraphicsContext3D::compileShader):
(WebCore::GraphicsContext3D::copyTexImage2D):
(WebCore::GraphicsContext3D::copyTexSubImage2D):
* platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
(WebCore::GraphicsContext3D::readPixels):
(WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
(WebCore::GraphicsContext3D::reshapeFBOs):
* platform/network/NetworkStateNotifier.h:
* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleInternal.h:
* platform/network/ResourceRequestBase.cpp:

Tools:

* DumpRenderTree/DumpRenderTree.h:
* DumpRenderTree/PixelDumpSupport.cpp:

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

7 years agoFix CharsetData.cpp build for iOS
simon.fraser@apple.com [Sat, 11 Jan 2014 00:44:31 +0000 (00:44 +0000)]
Fix CharsetData.cpp build for iOS
https://bugs.webkit.org/show_bug.cgi?id=126792

Reviewed by Mark Rowe.

CharsetData.cpp should have an empty CharsetTable list for iOS.
Achieve this with an iOS-specific encodings.txt file.

* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* platform/text/mac/ios-encodings.txt: Added.

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

7 years agoCTTE in NavigationScheduler
andersca@apple.com [Sat, 11 Jan 2014 00:38:16 +0000 (00:38 +0000)]
CTTE in NavigationScheduler
https://bugs.webkit.org/show_bug.cgi?id=126788

Reviewed by Tim Horton.

* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
(WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
* inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::frameScheduledNavigation):
(WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::frameScheduledNavigation):
(WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
* inspector/InspectorPageAgent.h:
* loader/NavigationScheduler.cpp:
(WebCore::ScheduledNavigation::shouldStartTimer):
(WebCore::ScheduledNavigation::didStartTimer):
(WebCore::ScheduledNavigation::didStopTimer):
(WebCore::NavigationScheduler::NavigationScheduler):
(WebCore::NavigationScheduler::clear):
(WebCore::NavigationScheduler::shouldScheduleNavigation):
(WebCore::NavigationScheduler::scheduleRedirect):
(WebCore::NavigationScheduler::mustLockBackForwardList):
(WebCore::NavigationScheduler::scheduleLocationChange):
(WebCore::NavigationScheduler::scheduleFormSubmission):
(WebCore::NavigationScheduler::scheduleRefresh):
(WebCore::NavigationScheduler::scheduleHistoryNavigation):
(WebCore::NavigationScheduler::timerFired):
(WebCore::NavigationScheduler::schedule):
(WebCore::NavigationScheduler::startTimer):
(WebCore::NavigationScheduler::cancel):
* loader/NavigationScheduler.h:
* page/Frame.cpp:
(WebCore::Frame::Frame):

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

7 years agoCSS word-spacing property does not obey percentages
mmaxfield@apple.com [Sat, 11 Jan 2014 00:31:19 +0000 (00:31 +0000)]
CSS word-spacing property does not obey percentages
https://bugs.webkit.org/show_bug.cgi?id=126674

Reviewed by Simon Fraser.

Source/WebCore:

One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
take percentages (of the width of the space character) in CSS3. In order to
implement this, the datatype must be changed from a float to a Length, which
can hold percentage values. Then, during layout, we can query the width of
the space character and update the Font's word-spacing value appropriately.
However, the RenderStyle still holds on to the Length (as a rare inherited
value).

Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
       fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
       fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
of style's Length value.
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
parsed the same way.
* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
CSSValue and set the style's word spacing with it.
(WebCore::ApplyPropertyWordSpacing::createHandler):
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
of style's Length value.
* rendering/RenderText.cpp:
(WebCore::RenderText::computePreferredLogicalWidths): Ditto.
* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
if either the percentage or the length is nonzero.
* rendering/line/BreakingContextInlineHeaders.h:
(WebCore::BreakingContext::handleText): Use Font's computed value instead
of style's Length value.
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::wordSpacing):
(WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
percentage values, but hold on to the original Length.
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareInheritedData.cpp:
* rendering/style/StyleRareInheritedData.h: Hold on to the specified Length

LayoutTests:

See per-file description

* fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font-expected.html: Added.
* fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html: Added.
Make sure that if Javascript changes the font after initial layout, that the word-spacing
value gets appropriately updated.
* fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-expected.html: Added.
* fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse-expected.txt: Added.
* fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html: Added.
Make sure that the CSSOM yields the correct percentage values when queried.
* fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html: Added.
Try some specific values of percentages (-100%, 0%, and 100%).
* css1/text_properties/word_spacing.html: Updated to not disregard percentages
* css2.1/20110323/c541-word-sp-001-expected.html:
* css2.1/20110323/c541-word-sp-001.htm: Ditto
* platform/mac/css1/text_properties/word_spacing-expected.png:
* platform/mac/css1/text_properties/word_spacing-expected.txt: Ditto

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

7 years agoFix the iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 00:19:53 +0000 (00:19 +0000)]
Fix the iOS build.

* platform/audio/mac/MediaSessionManagerMac.cpp:

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

7 years agoiOS doesn't have <OpenGL/gl.h>; fix iOS build.
simon.fraser@apple.com [Sat, 11 Jan 2014 00:17:20 +0000 (00:17 +0000)]
iOS doesn't have <OpenGL/gl.h>; fix iOS build.

* platform/graphics/opengl/TemporaryOpenGLSetting.cpp:

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

7 years ago[iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when...
aestes@apple.com [Sat, 11 Jan 2014 00:16:25 +0000 (00:16 +0000)]
[iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h

* bindings/scripts/CodeGeneratorObjC.pm:
(ReadPublicInterfaces):

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

7 years agoWeb Inspector: Remove unimplemented or static ScriptDebugServer features
commit-queue@webkit.org [Fri, 10 Jan 2014 23:55:09 +0000 (23:55 +0000)]
Web Inspector: Remove unimplemented or static ScriptDebugServer features
https://bugs.webkit.org/show_bug.cgi?id=126784

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-01-10
Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

* inspector/protocol/Debugger.json:

Source/WebCore:

These features are unimplemented in the backend, and unused by the
current frontend. Most deal with features that were supported by v8
and are as yet unimplemented by JSC. If we decide to add such features
we can reimplement without conforming to an old implementation.

* bindings/js/ScriptDebugServer.cpp:
* bindings/js/ScriptDebugServer.h:
* bindings/js/ScriptProfiler.h:
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::disable):
* inspector/InspectorDebuggerAgent.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::reload):
(WebCore::InspectorPageAgent::frameNavigated):
* inspector/InspectorPageAgent.h:
* inspector/InspectorProfilerAgent.cpp:
* inspector/InspectorProfilerAgent.h:
* inspector/PageDebuggerAgent.cpp:
(WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
* inspector/protocol/Page.json:
* inspector/protocol/Profiler.json:

Source/WebInspectorUI:

* UserInterface/InspectorJSBackendCommands.js:
* UserInterface/InspectorWebBackendCommands.js:
* UserInterface/Legacy/6.0/InspectorWebBackendCommands.js:
* UserInterface/Legacy/7.0/InspectorWebBackendCommands.js:
* Versions/Inspector-iOS-6.0.json:
* Versions/Inspector-iOS-7.0.json:

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