WebKit-https.git
7 years agoOnly use color in make output when it’s going to a terminal.
mitz@apple.com [Wed, 15 Jan 2014 06:10:54 +0000 (06:10 +0000)]
Only use color in make output when it’s going to a terminal.

Reviewed by Mark Rowe.

* Makefile.shared:

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

7 years ago[GTK] Unreviewed build fix after r162034
jae.park@company100.net [Wed, 15 Jan 2014 05:43:58 +0000 (05:43 +0000)]
[GTK] Unreviewed build fix after r162034

* GNUmakefile.list.am:

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

7 years ago[iOS] Crash in NavigatorBase::vendor loading apple.com
commit-queue@webkit.org [Wed, 15 Jan 2014 04:26:14 +0000 (04:26 +0000)]
[iOS] Crash in NavigatorBase::vendor loading apple.com
https://bugs.webkit.org/show_bug.cgi?id=127028

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-01-14
Reviewed by Daniel Bates.

Source/WebCore:

Export function pointers to be filled in with WebKitSystemInterface functions.

* WebCore.exp.in:

Source/WebKit/mac:

Fill in iOS WebKitSystemInterface functions.

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

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

7 years agoUnreviewed build fix for CMake based ports after r162034.
ryuan.choi@samsung.com [Wed, 15 Jan 2014 04:22:30 +0000 (04:22 +0000)]
Unreviewed build fix for CMake based ports after r162034.

* CMakeLists.txt:

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

7 years agoBuild fix after r162034
jpfau@apple.com [Wed, 15 Jan 2014 03:56:02 +0000 (03:56 +0000)]
Build fix after r162034

Rubber-stamped by Benjamin Poulain.

Source/WebCore:

* WebCore.exp.in:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp:

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

7 years agoMerged some subpixel skipped tests. Unreviewed.
zalan@apple.com [Wed, 15 Jan 2014 03:39:31 +0000 (03:39 +0000)]
Merged some subpixel skipped tests. Unreviewed.

webkit.org/b/126893 is a duplicate of webkit.org/b/126892

* platform/mac/TestExpectations:

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

7 years agoWeb Inspector: Resource finish time is sometimes earlier than response received time.
timothy@apple.com [Wed, 15 Jan 2014 03:08:43 +0000 (03:08 +0000)]
Web Inspector: Resource finish time is sometimes earlier than response received time.

https://bugs.webkit.org/show_bug.cgi?id=127027

Reviewed by Joseph Pecoraro.

* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::didFinishLoading): Use currentTime() and not the
passed in finishTime.

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

7 years agoFollow up build fix attempt.
andersca@apple.com [Wed, 15 Jan 2014 03:04:06 +0000 (03:04 +0000)]
Follow up build fix attempt.

* WebCore.exp.in:

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

7 years agoAdd support for handling WebGL load policies.
roger_fong@apple.com [Wed, 15 Jan 2014 02:58:58 +0000 (02:58 +0000)]
Add support for handling WebGL load policies.
https://bugs.webkit.org/show_bug.cgi?id=126935
<rdar://problem/15790448>.

Reviewed by Brent Fulgham.

* WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
* html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
(WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
                                          If it isn't, be sure to notify the frame loader client that
                                          the site is trying to create a WebGL context.
* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
* loader/FrameLoaderTypes.h:
* page/ChromeClient.h:
(WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.

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

7 years agoCreate separate progress tracker clients
andersca@apple.com [Wed, 15 Jan 2014 02:43:31 +0000 (02:43 +0000)]
Create separate progress tracker clients
https://bugs.webkit.org/show_bug.cgi?id=127025

Reviewed by Sam Weinig.

Source/WebCore:

* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::~ProgressTracker):
* loader/ProgressTrackerClient.h:

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* WebCoreSupport/WebProgressTrackerClient.mm: Added.
(WebProgressTrackerClient::WebProgressTrackerClient):
(WebProgressTrackerClient::progressTrackerDestroyed):
(WebProgressTrackerClient::willChangeEstimatedProgress):
(WebProgressTrackerClient::didChangeEstimatedProgress):
(WebProgressTrackerClient::progressStarted):
(WebProgressTrackerClient::progressEstimateChanged):
(WebProgressTrackerClient::progressFinished):
* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:]):
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
(WebKit::WebProgressTrackerClient::WebProgressTrackerClient):
(WebKit::WebProgressTrackerClient::progressTrackerDestroyed):
(WebKit::WebProgressTrackerClient::progressStarted):
(WebKit::WebProgressTrackerClient::progressEstimateChanged):
(WebKit::WebProgressTrackerClient::progressFinished):
* WebProcess/WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):

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

7 years agoAnd yet another build fix.
andersca@apple.com [Wed, 15 Jan 2014 02:26:33 +0000 (02:26 +0000)]
And yet another build fix.

* wtf/SizeLimits.cpp:

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

7 years agoAnother build fix.
andersca@apple.com [Wed, 15 Jan 2014 02:21:34 +0000 (02:21 +0000)]
Another build fix.

* wtf/SizeLimits.cpp:

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

7 years ago[WebGL] WebGLRenderingContext::validateCompressedTexDimensions improperly calculates...
bfulgham@apple.com [Wed, 15 Jan 2014 02:03:49 +0000 (02:03 +0000)]
[WebGL] WebGLRenderingContext::validateCompressedTexDimensions improperly calculates values
https://bugs.webkit.org/show_bug.cgi?id=126926

Reviewed by Dean Jackson.

Test coverage in fast/canvas/webgl/webgl-compressed-texture-size-limit.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::compressedTexImage2D): Pass target to
validation function.
(WebCore::WebGLRenderingContext::validateCompressedTexDimensions): Revise
calculation to also confirm size is in bounds.
(WebCore::WebGLRenderingContext::validateCompressedTexSubDimensions): Pass
       target to validation function.
* html/canvas/WebGLRenderingContext.h: Modify signature.

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

7 years agoOn iOS, we never want to make scrollbar layers
simon.fraser@apple.com [Wed, 15 Jan 2014 01:58:23 +0000 (01:58 +0000)]
On iOS, we never want to make scrollbar layers
https://bugs.webkit.org/show_bug.cgi?id=127024
<rdar://problem/15745768>

Reviewed by Dean Jackson.

On platforms that delegate scrolling, don't try to make layers
for scrollbars.

This fixes a crash in RenderLayerCompositor::updateOverflowControlsLayers()
where m_overflowControlsHostLayer is null.

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

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

7 years agoCorrect grave mistake in updating the pbxproj file rather than xcconfig.
dino@apple.com [Wed, 15 Jan 2014 01:39:54 +0000 (01:39 +0000)]
Correct grave mistake in updating the pbxproj file rather than xcconfig.

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* Configurations/WebKit.xcconfig:

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

7 years ago[WK2] Make WebPageProxy's setUserAgent private
benjamin@webkit.org [Wed, 15 Jan 2014 01:35:27 +0000 (01:35 +0000)]
[WK2] Make WebPageProxy's setUserAgent private
https://bugs.webkit.org/show_bug.cgi?id=127013

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

* UIProcess/WebPageProxy.h:
The API to modify the user agent already has 3 "setters":
-standardUserAgent
-setApplicationNameForUserAgent
-setCustomUserAgent

The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
Using it directly would cause unexpected behaviors, for example:
-Set the user agent with setUserAgent.
-Set CustomUserAgent.
-Reset CustomUserAgent.
->The user agent is now standardUserAgent instead of the user agent defined initially.

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

7 years agoSource/WebCore: Avoid PLATFORM() macros in exported headers.
simon.fraser@apple.com [Wed, 15 Jan 2014 00:52:02 +0000 (00:52 +0000)]
Source/WebCore: Avoid PLATFORM() macros in exported headers.

* platform/ios/WebEvent.h:

Source/WebKit/ios: Avoid PLATFORM() macros in exported headers.

* WebView/WebPDFViewPlaceholder.h:

Source/WebKit/mac: #define ENABLE_DASHBOARD_SUPPORT for iOS.

* WebView/WebViewPrivate.h:

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

7 years ago[iOS] Build fix for 32-bit simulator and device
dbates@webkit.org [Wed, 15 Jan 2014 00:46:02 +0000 (00:46 +0000)]
[iOS] Build fix for 32-bit simulator and device

CGFloat is defined to be float, double for 32-bit, and 64-bit devices respectively.
Because WebCore::createCGColorWithDeviceWhite() takes CGFloat arguments we need to
list both the float and double-variants of this symbol in WebCore.exp.in. Currently
we only list the version whose arguments are of type double.

* WebCore.exp.in:

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

7 years agoAttempt to fix 32-bit Mac build.
dino@apple.com [Wed, 15 Jan 2014 00:28:27 +0000 (00:28 +0000)]
Attempt to fix 32-bit Mac build.

* WebKit.xcodeproj/project.pbxproj:

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

7 years agoSource/WebCore: Clean up exports and headers for iOS.
simon.fraser@apple.com [Wed, 15 Jan 2014 00:17:13 +0000 (00:17 +0000)]
Source/WebCore: Clean up exports and headers for iOS.

Don't use ENABLE() macro in an exported header.

* platform/ios/wak/WAKResponder.h:

Source/WebKit/ios: Clean up exports and headers for iOS.

* Misc/WebNSStringDrawing.h: Don't use PLATFORM() macro in an exported header.
* WebCoreSupport/WebFrameIOS.h: Ditto.
* WebCoreSupport/WebSelectionRect.h: Ditto.

Source/WebKit/mac: Clean up exports and headers for iOS.

Need to export WebArchivePboardType on Mac and iOS.

* WebKit.exp:
* WebKit.mac.exp:

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

7 years ago[iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP...
dbates@webkit.org [Wed, 15 Jan 2014 00:13:10 +0000 (00:13 +0000)]
[iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP6NSData to
section USE(QUICK_LOOK)

* WebCore.exp.in:

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

7 years agoClean up DNSResolveQueue
andersca@apple.com [Wed, 15 Jan 2014 00:07:19 +0000 (00:07 +0000)]
Clean up DNSResolveQueue
https://bugs.webkit.org/show_bug.cgi?id=127007

Reviewed by Geoffrey Garen.

Move the shared() getter out of line and make it use NeverDestroyed.
Add a Timer member variable instead of inheriting from TimerBase.
Use std::atomic<int> for the m_requestsInFlight member variable.

* platform/network/DNSResolveQueue.cpp:
(WebCore::DNSResolveQueue::shared):
(WebCore::DNSResolveQueue::DNSResolveQueue):
(WebCore::DNSResolveQueue::add):
(WebCore::DNSResolveQueue::timerFired):
* platform/network/DNSResolveQueue.h:
(WebCore::DNSResolveQueue::decrementRequestCount):

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

7 years agoFix header availability checks on iOS
simon.fraser@apple.com [Wed, 15 Jan 2014 00:00:47 +0000 (00:00 +0000)]
Fix header availability checks on iOS
https://bugs.webkit.org/show_bug.cgi?id=127016

Reviewed by Andy Estes.

Make DOMTouch* and DOMGesture* headers public headers on iOS,
and fix MigrateHeaders.make to skip availability checks when
building for iOS.

* MigrateHeaders.make:

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

7 years agoTwo more exports for iOS.
simon.fraser@apple.com [Wed, 15 Jan 2014 00:00:45 +0000 (00:00 +0000)]
Two more exports for iOS.

* WebCore.exp.in:

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

7 years agoNeed to #import <WebCore/QuickLook.h>.
simon.fraser@apple.com [Tue, 14 Jan 2014 23:22:08 +0000 (23:22 +0000)]
Need to #import <WebCore/QuickLook.h>.

* WebView/WebDataSource.mm:

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

7 years ago[iOS] Enable WTF_USE_UIKIT_EDITING
dbates@webkit.org [Tue, 14 Jan 2014 23:05:04 +0000 (23:05 +0000)]
[iOS] Enable WTF_USE_UIKIT_EDITING

* wtf/Platform.h:

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

7 years agoCopying should be generational
mhahnenberg@apple.com [Tue, 14 Jan 2014 23:03:01 +0000 (23:03 +0000)]
Copying should be generational
https://bugs.webkit.org/show_bug.cgi?id=126555

Reviewed by Geoffrey Garen.

This patch adds support for copying to our generational collector. Eden collections
always trigger copying. Full collections use our normal fragmentation-based heuristics.

The way this works is that the CopiedSpace now has the notion of an old generation set of CopiedBlocks
and a new generation of CopiedBlocks. During each mutator cycle new CopiedSpace allocations reside
in the new generation. When a collection occurs, those blocks are moved to the old generation.

One key thing to remember is that both new and old generation objects in the MarkedSpace can
refer to old or new generation allocations in CopiedSpace. This is why we must fire write barriers
when assigning to an old (MarkedSpace) object's Butterfly.

* heap/CopiedAllocator.h:
(JSC::CopiedAllocator::tryAllocateDuringCopying):
* heap/CopiedBlock.h:
(JSC::CopiedBlock::CopiedBlock):
(JSC::CopiedBlock::didEvacuateBytes):
(JSC::CopiedBlock::isOld):
(JSC::CopiedBlock::didPromote):
* heap/CopiedBlockInlines.h:
(JSC::CopiedBlock::reportLiveBytes):
(JSC::CopiedBlock::reportLiveBytesDuringCopying):
* heap/CopiedSpace.cpp:
(JSC::CopiedSpace::CopiedSpace):
(JSC::CopiedSpace::~CopiedSpace):
(JSC::CopiedSpace::init):
(JSC::CopiedSpace::tryAllocateOversize):
(JSC::CopiedSpace::tryReallocateOversize):
(JSC::CopiedSpace::doneFillingBlock):
(JSC::CopiedSpace::didStartFullCollection):
(JSC::CopiedSpace::doneCopying):
(JSC::CopiedSpace::size):
(JSC::CopiedSpace::capacity):
(JSC::CopiedSpace::isPagedOut):
* heap/CopiedSpace.h:
(JSC::CopiedSpace::CopiedGeneration::CopiedGeneration):
* heap/CopiedSpaceInlines.h:
(JSC::CopiedSpace::contains):
(JSC::CopiedSpace::recycleEvacuatedBlock):
(JSC::CopiedSpace::allocateBlock):
(JSC::CopiedSpace::startedCopying):
* heap/CopyVisitor.cpp:
(JSC::CopyVisitor::copyFromShared):
* heap/CopyVisitorInlines.h:
(JSC::CopyVisitor::allocateNewSpace):
(JSC::CopyVisitor::allocateNewSpaceSlow):
* heap/GCThreadSharedData.cpp:
(JSC::GCThreadSharedData::didStartCopying):
* heap/Heap.cpp:
(JSC::Heap::copyBackingStores):
* heap/SlotVisitorInlines.h:
(JSC::SlotVisitor::copyLater):
* heap/TinyBloomFilter.h:
(JSC::TinyBloomFilter::add):

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

7 years ago[iOS] Enable QuickLook
dbates@webkit.org [Tue, 14 Jan 2014 23:01:33 +0000 (23:01 +0000)]
[iOS] Enable QuickLook
https://bugs.webkit.org/show_bug.cgi?id=126954

Reviewed by David Kilzer.

Source/WebKit/mac:

Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.

* WebView/WebView.mm:
(-[WebView quickLookContentForURL:]):

Source/WTF:

* wtf/Platform.h:

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

7 years agoSource/WebKit/ios: Remove .objc_class_name_WebInspectorXPCWrapper from export on...
dino@apple.com [Tue, 14 Jan 2014 22:56:58 +0000 (22:56 +0000)]
Source/WebKit/ios: Remove .objc_class_name_WebInspectorXPCWrapper from export on iOS build.

* WebKit.iOS.exp:

Source/WebKit/mac: Move some Mac-only exports to WebKit.mac.exp for iOS build.

* WebKit.exp:
* WebKit.mac.exp:

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

7 years agoMove some Mac-only exports to WebKit.mac.exp for iOS build.
simon.fraser@apple.com [Tue, 14 Jan 2014 22:44:57 +0000 (22:44 +0000)]
Move some Mac-only exports to WebKit.mac.exp for iOS build.

* WebKit.exp:
* WebKit.mac.exp:

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

7 years agoOne more buildfix after r161999.
ossy@webkit.org [Tue, 14 Jan 2014 22:38:18 +0000 (22:38 +0000)]
One more buildfix after r161999.

* Modules/webaudio/MediaStreamAudioSource.h:

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

7 years agoSource/WebCore: Export __ZN7WebCore11FileChooser16chooseMediaFilesERKN3WTF6VectorINS1...
simon.fraser@apple.com [Tue, 14 Jan 2014 22:34:11 +0000 (22:34 +0000)]
Source/WebCore: Export __ZN7WebCore11FileChooser16chooseMediaFilesERKN3WTF6VectorINS1_6StringELm0ENS1_15CrashOnOverflowEEERKS3_PNS_4IconE
to fix WK1 iOS linking.

* WebCore.exp.in:

Source/WebKit/ios: Fix WK1 iOS build: need implementations of these functions in WebInspectorClientIOS.

* WebCoreSupport/WebInspectorClientIOS.mm:
(WebInspectorClient::indicate):
(WebInspectorClient::hideIndication):

Source/WebKit/mac: Fix iOS WK1 linking.

* Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
on iOS.
* WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>

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

7 years ago[WIN] Set MSBuild environment variable to avoid long-lived processes locking log...
bfulgham@apple.com [Tue, 14 Jan 2014 22:33:56 +0000 (22:33 +0000)]
[WIN] Set MSBuild environment variable to avoid long-lived processes locking log files
https://bugs.webkit.org/show_bug.cgi?id=127002

Reviewed by David Kilzer.

* Scripts/webkitdirs.pm:
(setupAppleWinEnv): Export MSBUILDDISABLENODEREUSE=1 to the environment.

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

7 years agoSource/WebCore: iOS build fixing: export required by iOS WebKit1.
simon.fraser@apple.com [Tue, 14 Jan 2014 22:20:04 +0000 (22:20 +0000)]
Source/WebCore: iOS build fixing: export required by iOS WebKit1.

* WebCore.exp.in:

Source/WebKit/mac: iOS build fixing: link WebKit against Security.framework on iOS.

* Configurations/WebKit.xcconfig:

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

7 years ago[WK1] Allow generated export files on iOS
dino@apple.com [Tue, 14 Jan 2014 22:18:16 +0000 (22:18 +0000)]
[WK1] Allow generated export files on iOS
https://bugs.webkit.org/show_bug.cgi?id=127008

Reviewed by Simon Fraser.

Source/WebKit:

Modify the export file generation rule to read from
a shared and platform-specific input file.

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

Add a new Mac-only symbol file.

* WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
* WebKit.mac.exp: Added. New file holds Mac-only symbols.

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

7 years agoUnreviewed, rolling out r162000.
commit-queue@webkit.org [Tue, 14 Jan 2014 22:13:33 +0000 (22:13 +0000)]
Unreviewed, rolling out r162000.
http://trac.webkit.org/changeset/162000
https://bugs.webkit.org/show_bug.cgi?id=127009

API versioning is wrong (Requested by rfong on #webkit).

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj:
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::getContext):
* loader/FrameLoaderClient.h:
* loader/FrameLoaderTypes.h:
* page/ChromeClient.h:

Source/WebKit2:

* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKPageLoaderClient.h:
* UIProcess/API/C/WKPageUIClient.h:
* UIProcess/WebLoaderClient.cpp:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPageProxy.cpp:
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebUIClient.cpp:
* UIProcess/WebUIClient.h:
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCreateInspectorPage):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
* WebProcess/WebCoreSupport/WebChromeClient.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebPage/WebPage.h:

Tools:

* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController awakeFromNib]):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::createOtherPage):
(WTR::TestController::createWebViewWithOptions):

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

7 years agoASSERTION FAILED: !hasError() in JSC::Parser<LexerType>::createSavePoint().
mark.lam@apple.com [Tue, 14 Jan 2014 22:11:43 +0000 (22:11 +0000)]
ASSERTION FAILED: !hasError() in JSC::Parser<LexerType>::createSavePoint().
https://bugs.webkit.org/show_bug.cgi?id=126990.

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseConstDeclarationList):
- We were missing an error check after attempting to parse an initializer
  expression. This is now fixed.

LayoutTests:

* js/dom/parse-syntax-error-in-initializer-expected.txt: Added.
* js/dom/parse-syntax-error-in-initializer.html: Added.
* js/resources/parse-syntax-error-in-initializer.js: Added.
- Added bug test case as a regression test.

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

7 years agoSpeculative buildfix after r161999.
ossy@webkit.org [Tue, 14 Jan 2014 22:10:40 +0000 (22:10 +0000)]
Speculative buildfix after r161999.

* Shared/APIObject.h:

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

7 years agoSkip some tests that now fail after r162000.
roger_fong@apple.com [Tue, 14 Jan 2014 21:46:26 +0000 (21:46 +0000)]
Skip some tests that now fail after r162000.
https://bugs.webkit.org/show_bug.cgi?id=127000.

* platform/mac/TestExpectations:

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

7 years ago[CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
betravis@adobe.com [Tue, 14 Jan 2014 21:42:03 +0000 (21:42 +0000)]
[CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
https://bugs.webkit.org/show_bug.cgi?id=126719

Reviewed by Dirk Schulze.

The standard location for conversions to/from CSSPrimitiveValues is CSSPrimitiveValueMappings.
This patch moves the conversion for LayoutBoxes from BasicShapeFunctions to
CSSPrimitiveValueMappings.h.

Refactoring, no new tests.

* css/BasicShapeFunctions.cpp:
(WebCore::valueForBasicShape):
(WebCore::basicShapeForValue):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator LayoutBox):
* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyClipPath::applyValue):
(WebCore::ApplyPropertyShape::applyValue):

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

7 years agoAdd support for handling WebGL load policies.
roger_fong@apple.com [Tue, 14 Jan 2014 21:41:04 +0000 (21:41 +0000)]
Add support for handling WebGL load policies.
https://bugs.webkit.org/show_bug.cgi?id=126935
<rdar://problem/15790448>.

Reviewed by Brent Fulgham.

* WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
* html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
(WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
                                          If it isn't, be sure to notify the frame loader client that
                                          the site is trying to create a WebGL context.

Boiler plate code for sending messages to and from the UI and Web Process.

* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
* loader/FrameLoaderTypes.h:
* page/ChromeClient.h:
(WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.
* UIProcess/API/C/WKAPICast.h:
(WebKit::toWebGLLoadPolicy):
* UIProcess/API/C/WKPageLoaderClient.h:
* UIProcess/API/C/WKPageUIClient.h:
* UIProcess/WebLoaderClient.cpp:
(WebKit::WebLoaderClient::webGLLoadPolicy):
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::webGLContextCreated):
(WebKit::WebPageProxy::webGLPolicyForHost):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebUIClient.cpp:
(WebKit::WebUIClient::webGLContextCreated):
* UIProcess/WebUIClient.h:
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCreateInspectorPage):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::webGLContextCreated):
* WebProcess/WebCoreSupport/WebChromeClient.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::webGLPolicyForHost):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebPage/WebPage.cpp: A sendSync is used here to get the webGLPolicyForHost message sent between the Web and UI process.
                                  In the future this will be replaced with a strategy is non-blocking.
(WebKit::WebPage::getWebGLPolicyForHost):
* WebProcess/WebPage/WebPage.h:
* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController awakeFromNib]):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::createWebViewWithOptions):

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

7 years agoGet rid of ThreadRestrictionVerifier
andersca@apple.com [Tue, 14 Jan 2014 21:38:38 +0000 (21:38 +0000)]
Get rid of ThreadRestrictionVerifier
https://bugs.webkit.org/show_bug.cgi?id=127004

Reviewed by Sam Weinig.

Source/WebCore:

Remove now unneeded calls.

* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::defaultIcon):
(WebCore::IconDatabase::setIconDataForIconURL):
(WebCore::IconDatabase::getOrCreateIconRecord):
(WebCore::IconDatabase::readFromDatabase):

Source/WTF:

The ThreadRestrictionVerifier mechanism has been turned off for a while
since it doesn't really have a good solution for objects that are passed between threads.
Instead of having dead code in the tree, just get rid of it.

* GNUmakefile.list.am:
* WTF.vcxproj/WTF.vcxproj:
* WTF.vcxproj/WTF.vcxproj.filters:
* WTF.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:
* wtf/RefCounted.h:
(WTF::RefCountedBase::ref):
(WTF::RefCountedBase::hasOneRef):
(WTF::RefCountedBase::refCount):
(WTF::RefCountedBase::derefBase):
* wtf/ThreadRestrictionVerifier.h: Removed.

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

7 years agoWebKit2 leaks sudden termination assertions when a page with unload handlers is closed.
mrowe@apple.com [Tue, 14 Jan 2014 21:19:12 +0000 (21:19 +0000)]
WebKit2 leaks sudden termination assertions when a page with unload handlers is closed.
<https://webkit.org/b/126974> / <rdar://problem/15812954>

When a page with an unload handler is loaded, the web process tells the UI process that it
should disable sudden termination. However, when the page is closed the connection between
the web and UI process is torn down before the web content has a chance to tell the UI
process to reenable sudden termination.

Reviewed by Anders Carlsson.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::WebProcessProxy):
(WebKit::WebProcessProxy::~WebProcessProxy): Balance any outstanding disableSuddenTermination calls.
(WebKit::WebProcessProxy::enableSuddenTermination): Decrement the count.
(WebKit::WebProcessProxy::disableSuddenTermination): Increment the count.
* UIProcess/WebProcessProxy.h:

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

7 years ago[iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and...
dbates@webkit.org [Tue, 14 Jan 2014 20:59:26 +0000 (20:59 +0000)]
[iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and QLContentDictionary()
https://bugs.webkit.org/show_bug.cgi?id=126999
<rdar://problem/15810305>

Reviewed by Joseph Pecoraro.

Fixes an issue where we may crash when subsequently accessing WebCore::QLPreviewConverterDictionary()
or WebCore::QLContentDictionary(). Currently neither of these functions retain'ed the NSMutable dictionary
returned by [NSMutableDictionary dictionary]. Instead, we should allocate and initialize NSMutableDictionary
directly to ensure that the dictionary is retained.

* platform/network/ios/QuickLook.mm:
(QLPreviewConverterDictionary):
(QLContentDictionary):

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

7 years agoSource/WebCore: [WebGL] Invalid range checking in WebGLRenderingContext::validateTexF...
bfulgham@apple.com [Tue, 14 Jan 2014 20:52:50 +0000 (20:52 +0000)]
Source/WebCore: [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error

LayoutTests: [WebGL] Invalid range checking in WebGLRenderContext::validateTexFunctionLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils): Add missing 'waitForComposite' implementatino.
* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Added.
* fast/canvas/webgl/webgl-compressed-texture-size-limit.html: Added.

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

7 years agoWebCore icon database appears to leak sudden termination assertions
mrowe@apple.com [Tue, 14 Jan 2014 20:28:23 +0000 (20:28 +0000)]
WebCore icon database appears to leak sudden termination assertions
<https://webkit.org/b/126971> / <rdar://problem/15808797>

Introduce an RAII wrapper around disableSuddenTermination / enableSuddenTermination
and adopt it in IconDatabase to address the incorrect management of sudden termination.

IconDatabase now owns up to two SuddenTerminationDisabler objects. One ensures that
sudden termination is disabled while we're waiting on the sync timer to fire. The second
ensures that sudden termination is disabled while we're waiting on the sync thread to
process any pending work.

Reviewed by Alexey Proskuryakov.

* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::IconDatabase):
(WebCore::IconDatabase::wakeSyncThread): Disable sudden termination until the sync thread
has finished this unit of work.
(WebCore::IconDatabase::scheduleOrDeferSyncTimer): Disable sudden termination until the
sync timer has fired.
(WebCore::IconDatabase::syncTimerFired): Clear the member variable to reenable sudden termination.
(WebCore::IconDatabase::syncThreadMainLoop): Taken ownership of the SuddenTerminationDisabler
instance when we start processing a unit of work. Discard the object when our work is complete.
* loader/icon/IconDatabase.h:
* platform/SuddenTermination.h:
(WebCore::SuddenTerminationDisabler::SuddenTerminationDisabler): Disable sudden termination when created.
(WebCore::SuddenTerminationDisabler::~SuddenTerminationDisabler): Enable it when destroyed.

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

7 years agoWeb Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
commit-queue@webkit.org [Tue, 14 Jan 2014 20:23:41 +0000 (20:23 +0000)]
Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
https://bugs.webkit.org/show_bug.cgi?id=126995

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

Source/JavaScriptCore:

* inspector/remote/RemoteInspector.mm:
(Inspector::RemoteInspector::listingForDebuggable):
For each WebView, list the parent process. Listing the parent per WebView
is already supported back when we supported processes that could host WebViews
for multiple applications.

* inspector/remote/RemoteInspectorConstants.h:
Add a separate key for the bundle identifier, separate from application identifier.

* inspector/remote/RemoteInspectorDebuggable.cpp:
(Inspector::RemoteInspectorDebuggable::info):
* inspector/remote/RemoteInspectorDebuggable.h:
(Inspector::RemoteInspectorDebuggableInfo::RemoteInspectorDebuggableInfo):
(Inspector::RemoteInspectorDebuggableInfo::hasParentProcess):
If a RemoteInspectorDebuggable has a non-zero parent process identifier
it is a proxy for the parent process.

Source/WebCore:

* inspector/InspectorClient.h:
(WebCore::InspectorClient::parentProcessIdentifier):
Client method intended for WebKit2 so a WebProcess can link to its UIProcess.

* page/PageDebuggable.h:
* page/PageDebuggable.cpp:
(WebCore::PageDebuggable::parentProcessIdentifier):
Provide parent process identifier if there is one.

Source/WebKit2:

* WebProcess/WebCoreSupport/WebInspectorClient.h:
* WebProcess/WebCoreSupport/WebInspectorClient.cpp:
(WebKit::WebInspectorClient::parentProcessIdentifier):
WebProcesses are proxies for a parent UIProcess.

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

7 years agoEnable the experimental selector code generator by default
benjamin@webkit.org [Tue, 14 Jan 2014 20:17:13 +0000 (20:17 +0000)]
Enable the experimental selector code generator by default
https://bugs.webkit.org/show_bug.cgi?id=126953

Reviewed by Gavin Barraclough.

* wtf/Platform.h:
Enable CSS_SELECTOR_JIT on OS X x86_64 by default.
The feature is not ready to ship but it is stable enough to enable
for the bots and nightly.

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

7 years agoiOS WebKit2 build fixes, part 3
timothy_horton@apple.com [Tue, 14 Jan 2014 20:14:58 +0000 (20:14 +0000)]
iOS WebKit2 build fixes, part 3

* WebKit2.xcodeproj/project.pbxproj:
Remove some files from the 'All' target that should never have been a part of it.

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

7 years agoiOS WebKit2 build fixes, part 2
timothy_horton@apple.com [Tue, 14 Jan 2014 20:07:50 +0000 (20:07 +0000)]
iOS WebKit2 build fixes, part 2

* WebKit2.xcodeproj/project.pbxproj:
Add some missing files.

* WebCore.exp.in:
Export some more symbols.

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

7 years ago[GTK] Skip FontConfig initialization in WebKitTestRunner if requested
zandobersek@gmail.com [Tue, 14 Jan 2014 19:50:08 +0000 (19:50 +0000)]
[GTK] Skip FontConfig initialization in WebKitTestRunner if requested
https://bugs.webkit.org/show_bug.cgi?id=120110

Reviewed by Martin Robinson.

Skip the FontConfig settings initialization in WebKitTestRunner if the
WEBKIT_SKIP_WEBKITTESTRUNNER_FONTCONFIG_INITIALIZATION environment variable is set.
This is useful when profiling the WebKitTestRunner execution, where at the startup
this step takes considerable amount of time and disturbs the profiling output.

* WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
(WTR::initializeFontConfigSetting):

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

7 years agoAdd ENABLE(WEB_REPLAY) feature flag to the build system
commit-queue@webkit.org [Tue, 14 Jan 2014 19:21:29 +0000 (19:21 +0000)]
Add ENABLE(WEB_REPLAY) feature flag to the build system
https://bugs.webkit.org/show_bug.cgi?id=126949

Patch by Brian J. Burg <burg@cs.washington.edu> on 2014-01-14
Reviewed by Joseph Pecoraro.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Source/WTF:

* wtf/FeatureDefines.h: for now, disable the flag by default.

Tools:

* Scripts/webkitperl/FeatureList.pm:

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

7 years agoCrash in WebCore::MediaSourcePrivateAVFObjC::hasAudio const + 13
jer.noble@apple.com [Tue, 14 Jan 2014 19:19:44 +0000 (19:19 +0000)]
Crash in WebCore::MediaSourcePrivateAVFObjC::hasAudio const + 13
https://bugs.webkit.org/show_bug.cgi?id=126768

Reviewed by Eric Carlson.

Null-check m_mediaSourcePrivate before calling.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasVideo):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasAudio):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekInternal):

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

7 years agoREGRESSION (r160085): check-webkit-style: utf8' codec can't decode byte 0x89 in posit...
commit-queue@webkit.org [Tue, 14 Jan 2014 19:13:51 +0000 (19:13 +0000)]
REGRESSION (r160085): check-webkit-style: utf8' codec can't decode byte 0x89 in position 0: invalid start byte.
https://bugs.webkit.org/show_bug.cgi?id=126702

Patch by László Langó <llango.u-szeged@partner.samsung.com> on 2014-01-14
Reviewed by Alexey Proskuryakov.

Resolve regression and remove a FIXME comment that is already fixed.

* Scripts/webkitpy/common/system/filesystem.py:
(FileSystem.open_text_file_for_reading):
* Scripts/webkitpy/common/system/filesystem_unittest.py:
(RealFileSystemTest.test_read_and_write_file):
* Scripts/webkitpy/style/filereader.py:
(TextFileReader._read_lines):
* Scripts/webkitpy/style/filereader_unittest.py:
(TextFileReaderTest.test_count_delete_only_file):
(TextFileReaderTest):
(TextFileReaderTest.test_process_malformed_file):

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

7 years agoMove WKView.mm to WKViewIOS.mm as 161950 was supposed to do.
timothy_horton@apple.com [Tue, 14 Jan 2014 18:59:15 +0000 (18:59 +0000)]
Move WKView.mm to WKViewIOS.mm as 161950 was supposed to do.

* UIProcess/API/ios/WKView.mm: Removed.
* UIProcess/API/ios/WKViewIOS.mm: Copied from UIProcess/API/ios/WKView.mm.

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

7 years ago[GStreamer] Playback rate is not set when pipeline is not ready.
commit-queue@webkit.org [Tue, 14 Jan 2014 18:59:07 +0000 (18:59 +0000)]
[GStreamer] Playback rate is not set when pipeline is not ready.
https://bugs.webkit.org/show_bug.cgi?id=126692

Patch by Piotr Grad <p.grad@samsung.com> on 2014-01-14
Reviewed by Philippe Normand.

No new tests. Covered by existing tests.

Added new method updatePlaybackRate which is called when playback rate change is possible.
Added m_lastPlaybackRate in order to retrieve last correct playback rate and notify upper
layers about that setting playback rate failed.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
(WebCore::MediaPlayerPrivateGStreamer::updatePlaybackRate):
(WebCore::MediaPlayerPrivateGStreamer::setRate):
(WebCore::MediaPlayerPrivateGStreamer::updateStates):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:

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

7 years ago[Win] Application name in user agent string is truncated.
commit-queue@webkit.org [Tue, 14 Jan 2014 18:42:20 +0000 (18:42 +0000)]
[Win] Application name in user agent string is truncated.
https://bugs.webkit.org/show_bug.cgi?id=126810

Patch by peavo@outlook.com <peavo@outlook.com> on 2014-01-14
Reviewed by Anders Carlsson.

* wtf/text/StringConcatenate.h:
(WTF::tryMakeString): Add missing 8 bit check for last argument.

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

7 years agoUnreviewed, rolling out r161978.
commit-queue@webkit.org [Tue, 14 Jan 2014 18:39:19 +0000 (18:39 +0000)]
Unreviewed, rolling out r161978.
http://trac.webkit.org/changeset/161978
https://bugs.webkit.org/show_bug.cgi?id=126992

Test case causes crash on some hardware (Requested by bfulgham
on #webkit).

Source/WebCore:

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateTexFuncLevel):

LayoutTests:

* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils):
* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Removed.
* fast/canvas/webgl/webgl-compressed-texture-size-limit.html: Removed.

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

7 years agoUnreviewed, rolling out r161964 and r161965.
commit-queue@webkit.org [Tue, 14 Jan 2014 18:19:25 +0000 (18:19 +0000)]
Unreviewed, rolling out r161964 and r161965.
http://trac.webkit.org/changeset/161964
http://trac.webkit.org/changeset/161965
https://bugs.webkit.org/show_bug.cgi?id=126988

Tests do not pass on the bots because of slight color
differences. The tests should be redone with squared results
and blending that leads to stable colors. (Requested by krit_
on #webkit).

Source/WebCore:

* platform/graphics/CrossfadeGeneratedImage.cpp:
(WebCore::CrossfadeGeneratedImage::draw):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::drawPatternForContainer):
* svg/graphics/SVGImage.h:
* svg/graphics/SVGImageForContainer.cpp:
(WebCore::SVGImageForContainer::drawPattern):

LayoutTests:

* css3/compositing/background-blend-mode-crossfade-image-expected.html: Removed.
* css3/compositing/background-blend-mode-crossfade-image.html: Removed.
* css3/compositing/background-blend-mode-data-uri-svg-image-expected.html: Removed.
* css3/compositing/background-blend-mode-data-uri-svg-image.html: Removed.

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

7 years ago[CSS Shapes] Shape images are now <image> types, not just URIs
hmuller@adobe.com [Tue, 14 Jan 2014 18:16:42 +0000 (18:16 +0000)]
[CSS Shapes] Shape images are now <image> types, not just URIs
https://bugs.webkit.org/show_bug.cgi?id=125224

Reviewed by Andreas Kling.

Source/WebCore:

Added support for image-set valued shapes. Added an optional ResourceLoaderOptions
parameter to CSSImageSetValue::cachedImageSet() to enable CORS-enabled fetch of
image-set images. This change is based on a similar patch for ordinary shape image values:
https://bugs.webkit.org/show_bug.cgi?id=123114.

Tests: fast/shapes/shape-inside/shape-inside-image-set.html
       fast/shapes/shape-outside-floats/shape-outside-image-set.html

* css/CSSImageSetValue.cpp:
(WebCore::CSSImageSetValue::cachedImageSet):
* css/CSSImageSetValue.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::parseShapeProperty):
* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyShape::applyValue):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::loadPendingImage):
(WebCore::StyleResolver::loadPendingShapeImage):
* css/StyleResolver.h:
* rendering/shapes/Shape.cpp:
(WebCore::Shape::createShape):

LayoutTests:

* fast/shapes/shape-inside/shape-inside-image-set-expected.html: Added.
* fast/shapes/shape-inside/shape-inside-image-set.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-set-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-image-set.html: Added.

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

7 years agoAX: Modernize AccessibilityChildrenVector loops
cfleizach@apple.com [Tue, 14 Jan 2014 18:09:51 +0000 (18:09 +0000)]
AX: Modernize AccessibilityChildrenVector loops
https://bugs.webkit.org/show_bug.cgi?id=126915

Reviewed by Anders Carlsson.

Change appropriate for loops to use the new style.
Use auto where appropriate.

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::focusedImageMapUIElement):
* accessibility/AccessibilityARIAGrid.cpp:
(WebCore::AccessibilityARIAGrid::addRowDescendant):
* accessibility/AccessibilityARIAGridCell.cpp:
(WebCore::AccessibilityARIAGridCell::rowIndexRange):
* accessibility/AccessibilityARIAGridRow.cpp:
(WebCore::AccessibilityARIAGridRow::disclosedRows):
(WebCore::AccessibilityARIAGridRow::disclosedByRow):
(WebCore::AccessibilityARIAGridRow::parentTable):
(WebCore::AccessibilityARIAGridRow::headerObject):
* accessibility/AccessibilityListBox.cpp:
(WebCore::AccessibilityListBox::addChildren):
(WebCore::AccessibilityListBox::setSelectedChildren):
(WebCore::AccessibilityListBox::selectedChildren):
* accessibility/AccessibilityListBoxOption.cpp:
(WebCore::AccessibilityListBoxOption::listBoxOptionIndex):
* accessibility/AccessibilityMenuList.cpp:
(WebCore::AccessibilityMenuList::didUpdateActiveOption):
* accessibility/AccessibilityMenuListPopup.cpp:
(WebCore::AccessibilityMenuListPopup::addChildren):
* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::insertChild):
(WebCore::AccessibilityNodeObject::selectedRadioButton):
(WebCore::AccessibilityNodeObject::selectedTabItem):
(WebCore::AccessibilityNodeObject::ariaLabeledByText):
* accessibility/AccessibilityObject.cpp:
(WebCore::appendChildrenToArray):
(WebCore::AccessibilityObject::clearChildren):
(WebCore::AccessibilityObject::ariaTreeRows):
(WebCore::AccessibilityObject::ariaTreeItemContent):
(WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
(WebCore::AccessibilityObject::elementAccessibilityHitTest):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
(WebCore::AccessibilityRenderObject::ariaFlowToElements):
(WebCore::AccessibilityRenderObject::isTabItemSelected):
(WebCore::AccessibilityRenderObject::setSelectedRows):
(WebCore::AccessibilityRenderObject::ariaOwnsElements):
(WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
(WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
(WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
(WebCore::AccessibilityRenderObject::addHiddenChildren):
(WebCore::AccessibilityRenderObject::ariaSelectedRows):
(WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
(WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
(WebCore::AccessibilityRenderObject::tabChildren):
(WebCore::AccessibilityRenderObject::mathRadicandObject):
(WebCore::AccessibilityRenderObject::mathRootIndexObject):
(WebCore::AccessibilityRenderObject::mathNumeratorObject):
(WebCore::AccessibilityRenderObject::mathDenominatorObject):
(WebCore::AccessibilityRenderObject::mathUnderObject):
(WebCore::AccessibilityRenderObject::mathOverObject):
(WebCore::AccessibilityRenderObject::mathBaseObject):
(WebCore::AccessibilityRenderObject::mathSubscriptObject):
(WebCore::AccessibilityRenderObject::mathSuperscriptObject):
* accessibility/AccessibilityTable.cpp:
(WebCore::AccessibilityTable::columnHeaders):
(WebCore::AccessibilityTable::rowHeaders):
(WebCore::AccessibilityTable::visibleRows):
(WebCore::AccessibilityTable::cells):
(WebCore::AccessibilityTable::cellForColumnAndRow):
* accessibility/AccessibilityTableColumn.cpp:
(WebCore::AccessibilityTableColumn::headerObject):
* accessibility/AccessibilityTableHeaderContainer.cpp:
(WebCore::AccessibilityTableHeaderContainer::addChildren):
* accessibility/AccessibilityTableRow.cpp:
(WebCore::AccessibilityTableRow::headerObject):
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
(-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
(-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
* accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
(convertMathPairsToNSArray):
(-[WebAccessibilityObjectWrapperBase accessibilityTitle]):
(-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
(-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(convertToNSArray):
(convertStringsToNSArray):
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
(-[WebAccessibilityObjectWrapper accessibilityIndexOfChild:]):
(-[WebAccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
(-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):

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

7 years agoSource/WebCore: [WebGL] Invalid range checking in WebGLRenderingContext::validateTexF...
bfulgham@apple.com [Tue, 14 Jan 2014 17:53:14 +0000 (17:53 +0000)]
Source/WebCore: [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error

LayoutTests: [WebGL] Invalid range checking in WebGLRenderContext::validateTexFunctionLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils): Add missing 'waitForComposite' implementatino.
* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Added.
* fast/canvas/webgl/webgl-compressed-texture-size-limit.html: Added.

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

7 years agoUnreviewed Mac TestExpectations update.
zalan@apple.com [Tue, 14 Jan 2014 17:41:15 +0000 (17:41 +0000)]
Unreviewed Mac TestExpectations update.

<https://webkit.org/b/126890> is duplicate of <https://webkit.org/b/126889>

* platform/mac/TestExpectations: Mark it as such.

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

7 years ago[GTK] Test /webkit2/WebKitWebContext/languages crashes with network process enabled
carlosgc@webkit.org [Tue, 14 Jan 2014 17:30:21 +0000 (17:30 +0000)]
[GTK] Test /webkit2/WebKitWebContext/languages crashes with network process enabled
https://bugs.webkit.org/show_bug.cgi?id=126130

Reviewed by Anders Carlsson.

We need to notify the network process when the user preferred
languages have changed to update the SoupSession accordingly.

* NetworkProcess/NetworkProcess.h: Add
userPreferredLanguagesChanged when using soup network backend.
* NetworkProcess/NetworkProcess.messages.in: Add
UserPreferredLanguagesChanged message when using soup network
backend.
* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::NetworkProcess::userPreferredLanguagesChanged): Update
the SoupSession to use the given languages.
(WebKit::NetworkProcess::platformInitializeNetworkProcess): Call
userPreferredLanguagesChanged() when initialization parameters
contain languages.
(WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
Remove unnedded WebCore prefix.
(WebKit::NetworkProcess::clearCacheForAllOrigins): Simplify using
a single line.
* Shared/Network/NetworkProcessCreationParameters.cpp:
(WebKit::NetworkProcessCreationParameters::encode): Encode the
languages vector.
(WebKit::NetworkProcessCreationParameters::decode): Decode the
languages vector.
* Shared/Network/NetworkProcessCreationParameters.h:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::languageChanged): Send a message also to the
network process.
* UIProcess/soup/WebContextSoup.cpp:
(WebKit::WebContext::platformInitializeNetworkProcess): Set
languages initial parameter.

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

7 years ago[SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
carlosgc@webkit.org [Tue, 14 Jan 2014 17:02:24 +0000 (17:02 +0000)]
[SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
https://bugs.webkit.org/show_bug.cgi?id=126966

Reviewed by Gustavo Noronha Silva.

Source/WebCore:

We don't really need to modify the Vector just to ignore the C
locale.

* platform/network/soup/SoupNetworkSession.cpp:
(WebCore::buildAcceptLanguages): Rework it to not modify the
passed vector to ignore the C locale when it's present.
(WebCore::SoupNetworkSession::setAcceptLanguages): Use const Vector<String>&.
* platform/network/soup/SoupNetworkSession.h:

Source/WebKit2:

* WebProcess/soup/WebProcessSoup.cpp:
(WebKit::setSoupSessionAcceptLanguage): Use const Vector<String>&.

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

7 years agoHTMLMediaElement::potentiallyPlaying can be more simple.
commit-queue@webkit.org [Tue, 14 Jan 2014 16:41:48 +0000 (16:41 +0000)]
HTMLMediaElement::potentiallyPlaying can be more simple.
https://bugs.webkit.org/show_bug.cgi?id=111

Patch by Piotr Grad <p.grad@samsung.com> on 2014-01-14
Reviewed by Eric Carlson.

Tests: No new tests, just refactorings.

Expression is simplified because the first 'if' statement depends on the same condition
as pausedToBuffer value.

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

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

7 years agoRemove deprecated DeferrableOneShotTimer constructor.
akling@apple.com [Tue, 14 Jan 2014 16:29:51 +0000 (16:29 +0000)]
Remove deprecated DeferrableOneShotTimer constructor.
<https://webkit.org/b/126984>

Source/WebCore:

Remove the deprecated constructor for callback functions that take
the timer by pointer instead of by reference.

This shrinks DeferrableOneShotTimer by 8 bytes.

Reviewed by Anders Carlsson.

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

Source/WebKit2:

Reviewed by Anders Carlsson.

* WebProcess/Plugins/PluginView.h:
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::pluginSnapshotTimerFired):

    Take the timer by reference so we can use the new constructor.

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

7 years agoMake CachedSVGDocument independent of CSS Filters
krit@webkit.org [Tue, 14 Jan 2014 15:58:22 +0000 (15:58 +0000)]
Make CachedSVGDocument independent of CSS Filters
https://bugs.webkit.org/show_bug.cgi?id=126133

Reviewed by Antti Koivisto.

Clean-up the pendingSVGDocuments code in StyleResolver.
CachedSVGDocumentReference is responsible for requesting the
SVG document instead of WebKitCSSSVGDocumentValue.
CachedSVGDocumentReference can be used by other SVG resource like
clip-path and mask now so that these may load external resources
as well.
WebKitCSSSVGDocumentValue does not provide any further value
and will be removed in the next patch.

Refactoring, no new test cases.

* css/StyleResolver.cpp:
(WebCore::StyleResolver::loadPendingSVGDocuments):
(WebCore::StyleResolver::createFilterOperations):
* css/StyleResolver.h: Replace Map with a Set.
(WebCore::StyleResolver::State::pendingSVGDocuments): Use the Set from now on.
* loader/cache/CachedSVGDocumentReference.cpp:
(WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
(WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
(WebCore::CachedSVGDocumentReference::load):
* loader/cache/CachedSVGDocumentReference.h: Is responsible for
    requesting the SVG document.
(WebCore::CachedSVGDocumentReference::create):
(WebCore::CachedSVGDocumentReference::loadRequested):
* platform/graphics/filters/FilterOperation.cpp:
(WebCore::ReferenceFilterOperation::createCachedSVGDocumentReference):
* platform/graphics/filters/FilterOperation.h:

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

7 years ago[ATK] AXChildrenChanged notification handling is a performance black hole
mario.prada@samsung.com [Tue, 14 Jan 2014 15:45:32 +0000 (15:45 +0000)]
[ATK] AXChildrenChanged notification handling is a performance black hole
https://bugs.webkit.org/show_bug.cgi?id=126970

Reviewed by Gustavo Noronha Silva.

Source/WebCore:

Remove code that is causing a huge performance problem when
loading big pages, just to be able to emit the children-changed:add
signal at the exact time a child is added.

This removal does not imply that the signal won't be ever emitted,
just that it will be emitted a bit later (when the new child is
asynchronously added to the tree), which should be good enough
anyway for Accessible Technologies, without impacting perfformance
in such a negative way.

* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::AXObjectCache::postPlatformNotification): Removed
extremely expensive referring loop when AXChildrenChanged is received.

LayoutTests:

Because of the removal of the referring test when
AXChildrenChanged is received, the children-changed:add signal is
now emitted later, so we need to reorder the expectations.

* accessibility/children-changed-sends-notification-expected.txt: Updated.

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

7 years agoSource/WebCore: [CSS Background Blending] Background layer with -webkit-cross-fade...
commit-queue@webkit.org [Tue, 14 Jan 2014 15:41:32 +0000 (15:41 +0000)]
Source/WebCore: [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
when having -webkit-background-blending applied. Turns out the problem was
the blending parameter not being passed to WebCore::CrossfadeGeneratedImage::draw

https://bugs.webkit.org/show_bug.cgi?id=126887

Patch by Mihai Tica <mitica@adobe.com> on 2014-01-14
Reviewed by Dirk Schulze.

Test: css3/compositing/background-blend-mode-crossfade-image.html

* platform/graphics/CrossfadeGeneratedImage.cpp:
(WebCore::CrossfadeGeneratedImage::draw): set blendMode on context.

LayoutTests: [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
when having -webkit-background-blending applied.

https://bugs.webkit.org/show_bug.cgi?id=126887
Patch by Mihai Tica <mitica@adobe.com> on 2014-01-14
Reviewed by Dirk Schulze.

* css3/compositing/background-blend-mode-crossfade-image-expected.html: Added.
* css3/compositing/background-blend-mode-crossfade-image.html: Added.

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

7 years agoSource/WebCore: Background-blend-mode doesn't work for an element with an
commit-queue@webkit.org [Tue, 14 Jan 2014 15:38:26 +0000 (15:38 +0000)]
Source/WebCore: Background-blend-mode doesn't work for an element with an
SVG image as background and border-style or padding set.
The problem consisted in the drawing path using the default
blending parameter at all times.
https://bugs.webkit.org/show_bug.cgi?id=118894

Patch by Mihai Tica <mitica@adobe.com> on 2014-01-14
Reviewed by Dirk Schulze.

Test: css3/compositing/background-blend-mode-data-uri-svg-image.html

* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
* svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
* svg/graphics/SVGImageForContainer.cpp:
(WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.

LayoutTests: Background-blend-mode doesn't work for an element with an
SVG image as background and border-style or padding set.
https://bugs.webkit.org/show_bug.cgi?id=118894

Patch by Mihai Tica <mitica@adobe.com> on 2014-01-14
Reviewed by Dirk Schulze.

* css3/compositing/background-blend-mode-data-uri-svg-image-expected.html: Added.
* css3/compositing/background-blend-mode-data-uri-svg-image.html: Added.

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

7 years agoRemove accidentally added PLATFORM(QT) from Source/WebCore/editing/EditorCommand...
commit-queue@webkit.org [Tue, 14 Jan 2014 15:35:49 +0000 (15:35 +0000)]
Remove accidentally added PLATFORM(QT) from Source/WebCore/editing/EditorCommand.cpp after r161638
https://bugs.webkit.org/show_bug.cgi?id=126980

Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2014-01-14
Reviewed by Andreas Kling.

* editing/EditorCommand.cpp:
(WebCore::createCommandMap):

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

7 years ago[EFL] FTL buildfix, add missing includes
commit-queue@webkit.org [Tue, 14 Jan 2014 15:20:19 +0000 (15:20 +0000)]
[EFL] FTL buildfix, add missing includes
https://bugs.webkit.org/show_bug.cgi?id=126641

Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2014-01-14
Reviewed by Csaba Osztrogonác.

* ftl/FTLOSREntry.cpp:
* ftl/FTLOSRExitCompiler.cpp:

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

7 years ago[CSSRegions] Test dynamic change of position for fixed element in named flow
mihnea@adobe.com [Tue, 14 Jan 2014 15:13:13 +0000 (15:13 +0000)]
[CSSRegions] Test dynamic change of position for fixed element in named flow
https://bugs.webkit.org/show_bug.cgi?id=126807

Reviewed by Dirk Schulze.

* fast/regions/fixed-in-named-flow-position-changed-expected.html: Added.
* fast/regions/fixed-in-named-flow-position-changed.html: Added.

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

7 years ago[CSSRegions] The list of fixed positioned layers in named flows should be sorted...
mihnea@adobe.com [Tue, 14 Jan 2014 14:51:03 +0000 (14:51 +0000)]
[CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index
https://bugs.webkit.org/show_bug.cgi?id=126978

Reviewed by Antti Koivisto.

Return the list of fixed positioned layers sorted by z-index from
FlowThreadController::collectFixedPositionedLayers instead of manually sort it
every time we need it (RenderLayer::paintFixedLayersInNamedFlows, RenderLayer::hitTestFixedLayersInNamedFlows).
Refactoring covered by existing regions tests.

* rendering/FlowThreadController.cpp:
(WebCore::compareZIndex):
(WebCore::FlowThreadController::collectFixedPositionedLayers):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::paintFixedLayersInNamedFlows):
(WebCore::RenderLayer::hitTestFixedLayersInNamedFlows):

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

7 years agoUnreviewed GTK gardening.
rego@igalia.com [Tue, 14 Jan 2014 14:20:22 +0000 (14:20 +0000)]
Unreviewed GTK gardening.

Added missing baselines for some regions tests.

* platform/gtk/TestExpectations: Unskip tests as new baselines have been added.
* platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Added.
* platform/gtk/fast/regions/region-dynamic-after-before-expected.txt: Added.
* platform/gtk/fast/regions/region-generated-content-before-after-expected.txt: Added.
* platform/gtk/fast/regions/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Added.
* platform/gtk/fast/regions/repaint/line-flow-with-floats-in-regions-expected.txt: Added.
* platform/gtk/fast/regions/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt: Added.
* platform/gtk/fast/regions/repaint/region-painting-invalidation-expected.txt: Added.
* platform/gtk/fast/regions/repaint/region-painting-via-layout-expected.txt: Added.
* platform/gtk/fast/regions/text-region-split-small-pagination-expected.txt: Added.

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

7 years agoPack ResourceLoaderOptions harder.
akling@apple.com [Tue, 14 Jan 2014 13:26:19 +0000 (13:26 +0000)]
Pack ResourceLoaderOptions harder.
<https://webkit.org/b/126972>

Make all ResourceLoaderOptions members bitfields to reduce padding,
shrinking it from 28 to 4 bytes.

Reviewed by Antti Koivisto.

* loader/ResourceLoaderOptions.h:

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

7 years agoUnreviewed GTK gardening.
rego@igalia.com [Tue, 14 Jan 2014 13:14:31 +0000 (13:14 +0000)]
Unreviewed GTK gardening.

Added missing baselines for some regions tests.

* platform/gtk/fast/regions/auto-size/autoheight-regions-mark-expected.txt: Added.
* platform/gtk/fast/regions/flows-dependency-dynamic-remove-expected.txt: Added.
* platform/gtk/fast/regions/flows-dependency-same-flow-expected.txt: Added.
* platform/gtk/fast/regions/iframe-html-collected-expected.txt: Added.

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

7 years ago[GTK] Parse Valgrind xml leak files
brian.holt@samsung.com [Tue, 14 Jan 2014 11:51:22 +0000 (11:51 +0000)]
[GTK] Parse Valgrind xml leak files
https://bugs.webkit.org/show_bug.cgi?id=119446

Reviewed by Alejandro G. Castro.

Parse the xml files generated by Valgrind to yield useful
information about the memory leaks.

* Scripts/webkitpy/port/gtk.py:
(GtkPort.__init__):
(GtkPort.setup_test_run): Clear the previous output files before new
run.
(GtkPort.print_leaks_summary):

* Scripts/webkitpy/port/leakdetector_valgrind.py: Added.
Parse the xml files generated by Valgrind and summarise leaks
into an easily understandable list.
(get_text_of):
(get_CDATA_of):
(gather_frames):
(ValgrindError):
(ValgrindError.__init__):
(ValgrindError.__str__):
(ValgrindError.unique_string):
(ValgrindError.error_hash):
(ValgrindError.__hash__):
(ValgrindError.__eq__):
(LeakDetectorValgrind):
(LeakDetectorValgrind.__init__):
(LeakDetectorValgrind._parse_leaks_output):
(LeakDetectorValgrind.leaks_files_in_results_directory):
(LeakDetectorValgrind.clean_leaks_files_from_results_directory):
(LeakDetectorValgrind.parse_and_print_leaks_detail):

* Scripts/webkitpy/port/leakdetector_valgrind_unittest.py: Added.
(make_mock_valgrind_output):
(make_mock_incomplete_valgrind_output):
(make_mock_valgrind_results):
(make_mock_valgrind_results_incomplete):
(make_mock_valgrind_results_empty):
(make_mock_valgrind_results_misformatted):
(mock_run_cppfilt_command):
(LeakDetectorValgrindTest):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_pass):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_incomplete):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_empty):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_misformatted):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_pass):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_incomplete):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_empty):
(LeakDetectorValgrindTest.test_parse_and_print_leaks_detail_misformatted):

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

7 years agoPack ResourceError harder.
akling@apple.com [Tue, 14 Jan 2014 10:39:08 +0000 (10:39 +0000)]
Pack ResourceError harder.
<https://webkit.org/b/126969>

Re-arrange the members of ResourceError to reduce padding,
shrinking it by 8 bytes.

Reviewed by Antti Koivisto.

* platform/network/ResourceErrorBase.h:
(WebCore::ResourceErrorBase::ResourceErrorBase):

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

7 years agoPack RenderLayer harder.
akling@apple.com [Tue, 14 Jan 2014 10:35:35 +0000 (10:35 +0000)]
Pack RenderLayer harder.
<https://webkit.org/b/126967>

Re-arrange the members of ScrollableArea a bit so that RenderLayer
can combine its bitfields with the ones in ScrollableArea.
This makes RenderLayer fit into a snugger size class, saving 32 bytes
per layer.

296 kB progression on Membuster3.

Reviewed by Antti Koivisto.

* platform/ScrollableArea.cpp:
* platform/ScrollableArea.h:

    Put bitfield members at the end of ScrollableArea so inheriting
    classes can synergize with the padding.

* rendering/RenderLayer.h:

    Make m_blendMode a bitfield to avoid bloating the class.

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

7 years agoWeb Inspector: RemoteInspector::updateDebuggable may miss a push
commit-queue@webkit.org [Tue, 14 Jan 2014 08:35:40 +0000 (08:35 +0000)]
Web Inspector: RemoteInspector::updateDebuggable may miss a push
https://bugs.webkit.org/show_bug.cgi?id=126965

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

* inspector/remote/RemoteInspector.mm:
(Inspector::RemoteInspector::updateDebuggable):
Always push an update. If a debuggable went from allowed to
not allowed, we would have missed pushing an update.

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

7 years agoMake spelling tests added in r141354 to be able to run asynchronously
g.czajkowski@samsung.com [Tue, 14 Jan 2014 07:48:38 +0000 (07:48 +0000)]
Make spelling tests added in r141354 to be able to run asynchronously
https://bugs.webkit.org/show_bug.cgi?id=126895

Reviewed by Ryosuke Niwa.

As we started running spelling tests asynchronously, invoke 'finishJSTest()'
when all operations are completed, for example, required spelling markers have appeared.
It might happen later then during 'initSpellTest'  testing callback.

Due to the tests perform other checks that do not affect expectation order (selection,
context menu suggestion items), the asynchronous operations were pushed back to the end of
the tests to be sure that those won't break expectation order.

* editing/spelling/context-menu-suggestions-multiword-selection-expected.txt:
* editing/spelling/context-menu-suggestions-multiword-selection.html:
* editing/spelling/context-menu-suggestions-subword-selection-expected.txt:
* editing/spelling/context-menu-suggestions-subword-selection.html:
* editing/spelling/resources/util.js:
* editing/spelling/spelling-changed-text-expected.txt:
* editing/spelling/spelling-changed-text.html:
* editing/spelling/spelling-double-clicked-word-expected.txt:
* editing/spelling/spelling-double-clicked-word.html:
* editing/spelling/spelling-exactly-selected-word-expected.txt:
* editing/spelling/spelling-exactly-selected-word.html:

* editing/spelling/spelling-with-whitespace-selection-expected.txt:
* editing/spelling/spelling-with-whitespace-selection.html:
* editing/spelling/spelling-with-punctuation-selection-expected.txt:
* editing/spelling/spelling-with-punctuation-selection.html:
Additionally fix description format and get rid of context click, needless after r148282.

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

7 years agoiOS WebCore build fixes
timothy_horton@apple.com [Tue, 14 Jan 2014 07:15:58 +0000 (07:15 +0000)]
iOS WebCore build fixes

Add WebKit and WebKit2 as allowable clients of WebCore.

* Configurations/WebCore.xcconfig:

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

7 years agoiOS WebKit2 build fixes, part 1
timothy_horton@apple.com [Tue, 14 Jan 2014 07:02:46 +0000 (07:02 +0000)]
iOS WebKit2 build fixes, part 1

* WebCore.xcodeproj/project.pbxproj:
Move some headers to 'private', from 'project'.
* Configurations/WebKit2.xcconfig:
* NetworkProcess/NetworkResourceLoader.cpp:
* NetworkProcess/NetworkResourceLoader.h:
* NetworkProcess/RemoteNetworkingContext.h:
* Shared/WebEventConversion.h:
* UIProcess/API/ios/WKGeolocationProviderIOS.mm:
* UIProcess/API/ios/WKInteractionView.mm:
(-[WKTextPosition isEqual:]):
* UIProcess/API/ios/WKViewIOS.mm: Renamed from Source/WebKit2/UIProcess/API/ios/WKView.mm.
* UIProcess/ios/WebPageProxyIOS.mm:
* UIProcess/ios/WebProcessProxyIOS.mm:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::elementDidFocus):
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

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

7 years agoUpdate the LLINT CLoop Bot build infrastructure
lforschler@apple.com [Tue, 14 Jan 2014 06:58:01 +0000 (06:58 +0000)]
Update the LLINT CLoop Bot build infrastructure
https://bugs.webkit.org/show_bug.cgi?id=126604

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:
* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(CompileLLINTCLoop):
(RunLLINTCLoopTests):
(BuildAndTestLLINTCLoopFactory):
(BuildAndTestLLINTCLoopFactory.__init__):

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

7 years ago[EFL][WK2] Disable failing API tests
jinwoo7.song@samsung.com [Tue, 14 Jan 2014 06:54:22 +0000 (06:54 +0000)]
[EFL][WK2] Disable failing API tests
https://bugs.webkit.org/show_bug.cgi?id=126960

Reviewed by Gyuyoung Kim.

Source/WebKit2:

Disable color picker test until bug 119120 is resolved.

* UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
(TEST_F):

Tools:

Disable WKViewUserViewportToContents test until bug 126261 is resolved.

* TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewUserViewportToContents.cpp:
(TestWebKitAPI::TEST):

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

7 years agoUnreviewed, rolling out r161907.
commit-queue@webkit.org [Tue, 14 Jan 2014 06:06:40 +0000 (06:06 +0000)]
Unreviewed, rolling out r161907.
http://trac.webkit.org/changeset/161907
https://bugs.webkit.org/show_bug.cgi?id=126963

fast/canvas/webgl/webgl-compressed-texture-size-limit.html
fails on many bots (Requested by ap on #webkit).

Source/WebCore:

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateTexFuncLevel):

LayoutTests:

* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils):
* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Removed.
* fast/canvas/webgl/webgl-compressed-texture-size-limit.html: Removed.

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

7 years agoLayout Test plugins/plugin-document-load-prevented-userscript.html is flaky
ap@apple.com [Tue, 14 Jan 2014 05:57:20 +0000 (05:57 +0000)]
Layout Test plugins/plugin-document-load-prevented-userscript.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=126962

* platform/mac-wk2/TestExpectations: Marking as such.

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

7 years agoFix typedef of DragDataRef from id back to id<NSDraggingInfo>
ddkilzer@apple.com [Tue, 14 Jan 2014 05:16:28 +0000 (05:16 +0000)]
Fix typedef of DragDataRef from id back to id<NSDraggingInfo>
<http://webkit.org/b/126958>
<rdar://problem/14814649>

Reviewed by Mark Rowe.

* WebCore.exp.in: Export different symbols based on
__has_feature(objc_protocol_qualifier_mangling) since clang
mangles the type differently with that change.

* platform/DragData.h:
* platform/mac/DragDataMac.mm:
(WebCore::DragData::DragData):
- Revert r154493 by switching back to id<NSDraggingInfo>.

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

7 years ago[EFL][WK2] ewk_view_page_contents_get() API test is failing
jinwoo7.song@samsung.com [Tue, 14 Jan 2014 05:07:32 +0000 (05:07 +0000)]
[EFL][WK2] ewk_view_page_contents_get() API test is failing
https://bugs.webkit.org/show_bug.cgi?id=126957

Reviewed by Gyuyoung Kim.

As the day in 'Date' field may be one digit or two digit,
the data length may also be varied by one byte.

* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(EWK2ViewTest::PageContentsAsMHTMLCallback):

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

7 years agoUnreviewed, rolling out r161939.
commit-queue@webkit.org [Tue, 14 Jan 2014 03:59:08 +0000 (03:59 +0000)]
Unreviewed, rolling out r161939.
http://trac.webkit.org/changeset/161939
https://bugs.webkit.org/show_bug.cgi?id=126956

didn't work with mac, of course (Requested by thorton on
#webkit).

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit2:

* NetworkProcess/NetworkResourceLoader.cpp:
* NetworkProcess/NetworkResourceLoader.h:
* NetworkProcess/RemoteNetworkingContext.h:
* Shared/WebEventConversion.h:
* UIProcess/API/ios/WKGeolocationProviderIOS.mm:
* UIProcess/API/ios/WKInteractionView.mm:
(-[WKTextPosition isEqual:]):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

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

7 years agoUpdate WebPageProxyIOS's user agent string
benjamin@webkit.org [Tue, 14 Jan 2014 03:52:09 +0000 (03:52 +0000)]
Update WebPageProxyIOS's user agent string
https://bugs.webkit.org/show_bug.cgi?id=126933

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-13
Reviewed by Darin Adler.

* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::standardUserAgent):
Send a more reasonable user agent. The previous one was forcing
iOS 5.1's iPad user-agent.

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

7 years agoiOS WebKit2 build fixes
timothy_horton@apple.com [Tue, 14 Jan 2014 03:35:51 +0000 (03:35 +0000)]
iOS WebKit2 build fixes

* NetworkProcess/NetworkResourceLoader.cpp:
* NetworkProcess/NetworkResourceLoader.h:
Introduce/clarify some confusion about CFNETWORK vs. PLATFORM(IOS).

* NetworkProcess/RemoteNetworkingContext.h:
* WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
Get rid of an override of something that doesn't exist anymore.

* WebKit2.xcodeproj/project.pbxproj:
Add some files. It's likely there are more missing, but this is a start.

* Shared/WebEventConversion.h:
* WebProcess/WebPage/WebPage.h:
Use WebKitAdditions.

* UIProcess/API/ios/WKGeolocationProviderIOS.mm:
Something bizarre is happening with internal deprecation warnings.

* UIProcess/API/ios/WKInteractionView.mm:
(-[WKTextPosition isEqual:]):
Fix a typo.

* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
Remove an override of something that doesn't exist anymore.

* WebCore.xcodeproj/project.pbxproj:
Make some headers private instead of project for WK2's use.

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

7 years agoFix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
simon.fraser@apple.com [Tue, 14 Jan 2014 02:41:08 +0000 (02:41 +0000)]
Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
which we are confused about.

* WebView/WebView.mm:
(-[WebView quickLookContentForURL:]):
* WebView/WebViewPrivate.h:

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

7 years agoSource/WebCore: Make NetworkStateNotifier.h a private header, needed by iOS.
simon.fraser@apple.com [Tue, 14 Jan 2014 02:10:09 +0000 (02:10 +0000)]
Source/WebCore: Make NetworkStateNotifier.h a private header, needed by iOS.

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit/mac: Fix the remaining compiler errors in iOS WK1.

* WebView/WebFrame.mm:
(vectorForDictationPhrasesArray): Need this function on iOS.
(-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
a huge if PLATFORM(IOS) block.
(-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
* WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
* WebView/WebView.mm: #import cleanup for iOS.
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
here but this needs cleaning up (<rdar://problem/15810991>).
(-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
(-[WebView _didCommitLoadForFrame:]): Ditto.
* WebView/WebViewData.h: Add allowsRemoteInspection.
* WebView/WebViewData.mm: Initialize allowsRemoteInspection
(-[WebViewPrivate init]):
* WebView/WebViewPrivate.h: Fumbled #ifdef.

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

7 years agoUnreviewed, rolling out r161916.
commit-queue@webkit.org [Tue, 14 Jan 2014 02:02:34 +0000 (02:02 +0000)]
Unreviewed, rolling out r161916.
http://trac.webkit.org/changeset/161916
https://bugs.webkit.org/show_bug.cgi?id=126952

it is a lie - still fails on some configs (Requested by dino
on #webkit).

* platform/mac/TestExpectations:

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

7 years ago[EFL] Do not store reference variables as a pointer in private data structure
ryuan.choi@samsung.com [Tue, 14 Jan 2014 01:42:44 +0000 (01:42 +0000)]
[EFL] Do not store reference variables as a pointer in private data structure
https://bugs.webkit.org/show_bug.cgi?id=126945

Reviewed by Gyuyoung Kim.

Remove pageSettings, mainFrame and storageSession variables from Ewk_View_Private_Data.

* ewk/ewk_view.cpp:
(_ewk_view_priv_new):
(_ewk_view_smart_add):
(_ewk_view_smart_repaints_process):
(_ewk_view_smart_calculate):
(ewk_view_fixed_layout_size_set):
(ewk_view_fixed_layout_size_get):
(ewk_view_bg_color_set):
(ewk_view_setting_user_agent_set):
(ewk_view_setting_user_stylesheet_set):
(ewk_view_setting_auto_load_images_set):
(ewk_view_setting_auto_shrink_images_set):
(ewk_view_setting_enable_scripts_set):
(ewk_view_setting_enable_plugins_set):
(ewk_view_setting_enable_frame_flattening_set):
(ewk_view_setting_scripts_can_open_windows_set):
(ewk_view_setting_scripts_can_close_windows_set):
(ewk_view_setting_scripts_can_access_clipboard_set):
(ewk_view_setting_resizable_textareas_set):
(ewk_view_setting_private_browsing_set):
(ewk_view_setting_application_cache_set):
(ewk_view_setting_caret_browsing_set):
(ewk_view_setting_encoding_default_set):
(ewk_view_setting_encoding_detector_set):
(ewk_view_setting_enable_developer_extras_set):
(ewk_view_setting_font_minimum_size_set):
(ewk_view_setting_font_minimum_logical_size_set):
(ewk_view_setting_font_default_size_set):
(ewk_view_setting_font_monospace_size_set):
(ewk_view_font_family_name_set):
(ewk_view_setting_spatial_navigation_set):
(ewk_view_setting_local_storage_set):
(ewk_view_setting_page_cache_set):
(ewk_view_setting_local_storage_database_path_set):
(ewk_view_setting_minimum_timer_interval_set):
(ewk_view_setting_enable_webgl_set):
(ewk_view_setting_enable_hyperlink_auditing_set):
(ewk_view_setting_allow_universal_access_from_file_urls_set):
(ewk_view_setting_allow_file_access_from_file_urls_set):
(ewk_view_layout_if_needed_recursive):
(ewk_view_paint):
(ewk_view_paint_contents):
(ewk_view_js_object_add):
(ewk_view_page_rect_get):
(ewk_view_soup_session_get):
(ewk_view_soup_session_set):
(ewk_view_setting_enable_xss_auditor_set):
(ewk_view_setting_should_display_captions_set):
(ewk_view_setting_should_display_subtitles_set):
(ewk_view_setting_should_display_text_descriptions_set):
(ewk_view_setting_enable_fullscreen_set):
(ewk_view_setting_tiled_backing_store_enabled_set):
(ewk_view_setting_tiled_backing_store_enabled_get):
(ewk_view_tiled_backing_store_invalidate):
(EWKPrivate::storageSession):

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

7 years agoMore work towards getting iOS WK1 building.
simon.fraser@apple.com [Tue, 14 Jan 2014 01:27:57 +0000 (01:27 +0000)]
More work towards getting iOS WK1 building.

Source/WebCore:

Some more Private headers for iOS.

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit/ios:

* WebCoreSupport/WebFrameIOS.mm:
(-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Stub out this
function, since it should use recently-refactored node snapshotting code. Covered by <rdar://problem/15808709>.

Source/WebKit/mac:

* DOM/WebDOMOperations.mm: Need RenderObject.h.
* DOM/WebDOMOperationsPrivate.h:
* History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
(-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
other code.
* Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
* Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
handle the error case.
* WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
* WebView/WebHTMLView.mm: Ditto.
(-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
different return type of createDragImageForSelection().
* WebView/WebPolicyDelegatePrivate.h:
* WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>

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

7 years agoUnreviewed build fix for Win64.
alex.christensen@flexsim.com [Tue, 14 Jan 2014 01:13:02 +0000 (01:13 +0000)]
Unreviewed build fix for Win64.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
Corrected 64-bit linker symbols.

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