WebKit-https.git
7 years agoWeb Inspector: Give WebProcess a proxy application entitlement
joepeck@webkit.org [Thu, 27 Mar 2014 22:00:46 +0000 (22:00 +0000)]
Web Inspector: Give WebProcess a proxy application entitlement
https://bugs.webkit.org/show_bug.cgi?id=130806

Reviewed by Timothy Hatcher.

* Configurations/WebContent-iOS.entitlements:

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

7 years agoAdd reload and reloadFromOrigin as API
andersca@apple.com [Thu, 27 Mar 2014 21:21:14 +0000 (21:21 +0000)]
Add reload and reloadFromOrigin as API
https://bugs.webkit.org/show_bug.cgi?id=130858

Reviewed by Simon Fraser.

* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView reload]):
(-[WKWebView reloadFromOrigin]):
(-[WKWebView validateUserInterfaceItem:]):
(-[WKWebView reload:]):
(-[WKWebView reloadFromOrigin:]):

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

7 years agoRemove some unnecessary branches from LiveNodeList traversal
antti@apple.com [Thu, 27 Mar 2014 20:49:27 +0000 (20:49 +0000)]
Remove some unnecessary branches from LiveNodeList traversal
https://bugs.webkit.org/show_bug.cgi?id=130854

Reviewed by Andreas Kling.

Compile different traversal code paths for all NodeList subclasses.

* dom/ClassNodeList.cpp:
(WebCore::ClassNodeList::ClassNodeList):
(WebCore::ClassNodeList::~ClassNodeList):
(WebCore::ClassNodeList::nodeMatches): Deleted.
* dom/ClassNodeList.h:
(WebCore::ClassNodeList::nodeMatches):
(WebCore::ClassNodeList::nodeMatchesInlined): Deleted.

    Remove separate nodeMatchesInlined functions.
    We now rely on exact types and marking classes final.

* dom/LiveNodeList.cpp:
(WebCore::LiveNodeList::LiveNodeList):
(WebCore::LiveNodeList::~LiveNodeList):
(WebCore::LiveNodeList::namedItem):
(WebCore::LiveNodeList::rootNode): Deleted.
(WebCore::isMatchingElement): Deleted.
(WebCore::firstMatchingElement): Deleted.
(WebCore::lastMatchingElement): Deleted.
(WebCore::nextMatchingElement): Deleted.
(WebCore::previousMatchingElement): Deleted.
(WebCore::traverseMatchingElementsForward): Deleted.
(WebCore::traverseMatchingElementsBackward): Deleted.
(WebCore::LiveNodeList::collectionFirst): Deleted.
(WebCore::LiveNodeList::collectionLast): Deleted.
(WebCore::LiveNodeList::collectionTraverseForward): Deleted.
(WebCore::LiveNodeList::collectionTraverseBackward): Deleted.
(WebCore::LiveNodeList::length): Deleted.
(WebCore::LiveNodeList::item): Deleted.
(WebCore::LiveNodeList::memoryCost): Deleted.
(WebCore::LiveNodeList::invalidateCache): Deleted.
* dom/LiveNodeList.h:
(WebCore::LiveNodeList::invalidateCacheForAttribute):
(WebCore::CachedLiveNodeList::collectionCanTraverseBackward):
(WebCore::LiveNodeList::rootNode):
(WebCore::CachedLiveNodeList<NodeListType>::CachedLiveNodeList):

    Add CachedLiveNodeList<NodeListType> utility type that interfaces with CollectionIndexCache.
    It is the base class for all concrete LiveNodeLists.

(WebCore::CachedLiveNodeList<NodeListType>::~CachedLiveNodeList):
(WebCore::CachedLiveNodeList<NodeListType>::collectionFirst):
(WebCore::CachedLiveNodeList<NodeListType>::collectionLast):
(WebCore::nextMatchingElement):
(WebCore::CachedLiveNodeList<NodeListType>::collectionTraverseForward):
(WebCore::previousMatchingElement):
(WebCore::CachedLiveNodeList<NodeListType>::collectionTraverseBackward):
(WebCore::CachedLiveNodeList<NodeListType>::willValidateIndexCache):
(WebCore::CachedLiveNodeList<NodeListType>::invalidateCache):
(WebCore::CachedLiveNodeList<NodeListType>::length):
(WebCore::CachedLiveNodeList<NodeListType>::item):
(WebCore::CachedLiveNodeList<NodeListType>::memoryCost):

    Templated code moves to header.

(WebCore::LiveNodeList::LiveNodeList): Deleted.
(WebCore::LiveNodeList::~LiveNodeList): Deleted.
(WebCore::LiveNodeList::invalidateCache): Deleted.
(WebCore::LiveNodeList::collectionCanTraverseBackward): Deleted.
(WebCore::LiveNodeList::willValidateIndexCache): Deleted.
* dom/NameNodeList.cpp:
(WebCore::NameNodeList::NameNodeList):
* dom/NameNodeList.h:
* dom/Node.cpp:
(WebCore::Document::invalidateNodeListAndCollectionCaches):
(WebCore::NodeListsNodeData::invalidateCaches):
* dom/TagNodeList.cpp:
(WebCore::TagNodeList::TagNodeList):
(WebCore::HTMLTagNodeList::HTMLTagNodeList):
(WebCore::HTMLTagNodeList::~HTMLTagNodeList):
(WebCore::TagNodeList::nodeMatches): Deleted.
(WebCore::HTMLTagNodeList::nodeMatches): Deleted.
* dom/TagNodeList.h:
(WebCore::TagNodeList::nodeMatches):
(WebCore::HTMLTagNodeList::nodeMatches):
(WebCore::TagNodeList::create): Deleted.
(WebCore::HTMLTagNodeList::nodeMatchesInlined): Deleted.
* html/LabelsNodeList.cpp:
(WebCore::LabelsNodeList::LabelsNodeList):
* html/LabelsNodeList.h:
* html/RadioNodeList.cpp:
(WebCore::RadioNodeList::RadioNodeList):
* html/RadioNodeList.h:

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

7 years agoRemove comment from Filter.h
cavalcantii@gmail.com [Thu, 27 Mar 2014 20:07:36 +0000 (20:07 +0000)]
Remove comment from Filter.h
https://bugs.webkit.org/show_bug.cgi?id=130848

Reviewed by Simon Fraser.

Exploring the use of consts on applyScale() methods didn't yield
good results.

No new tests, no change on behavior.

* platform/graphics/filters/Filter.h:

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

7 years agoWeb Inspector: Provide SPI to disallow remote inspection of a JSContext
commit-queue@webkit.org [Thu, 27 Mar 2014 20:01:34 +0000 (20:01 +0000)]
Web Inspector: Provide SPI to disallow remote inspection of a JSContext
https://bugs.webkit.org/show_bug.cgi?id=130853

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

* API/JSContextPrivate.h: Added.
* API/JSContext.mm:
(-[JSContext _remoteInspectionEnabled]):
(-[JSContext _setRemoteInspectionEnabled:]):
ObjC SPI to enable/disable remote inspection.

* API/JSContextRefPrivate.h:
* API/JSContextRef.cpp:
(JSGlobalContextGetRemoteInspectionEnabled):
(JSGlobalContextSetRemoteInspectionEnabled):
C SPI to enable/disable remote inspection.

* JavaScriptCore.xcodeproj/project.pbxproj:
Add new private header, and export as a private header.

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

7 years agoClean up questionable style in ScriptExecutable::prepareForExecutionImpl
mhahnenberg@apple.com [Thu, 27 Mar 2014 19:19:28 +0000 (19:19 +0000)]
Clean up questionable style in ScriptExecutable::prepareForExecutionImpl
https://bugs.webkit.org/show_bug.cgi?id=130845

Reviewed by Filip Pizlo.

There was a hack added to make sure C Loop LLInt worked which included overriding the
global Options::useLLInt setting, which makes no sense to do here. We should put the
update of the global setting in Options::recomputeDependentOptions along with the other
execution engine flags.

* runtime/Executable.cpp:
(JSC::ScriptExecutable::prepareForExecutionImpl):
* runtime/Options.cpp:
(JSC::recomputeDependentOptions):

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

7 years agoWeb Inspector: clearing the console log doesn't update the activity viewer
graouts@webkit.org [Thu, 27 Mar 2014 18:32:20 +0000 (18:32 +0000)]
Web Inspector: clearing the console log doesn't update the activity viewer
https://bugs.webkit.org/show_bug.cgi?id=130774

Reviewed by Joseph Pecoraro.

Ensure we take the changes made to the ivars into account on the view.

* UserInterface/Models/DefaultDashboard.js:
(WebInspector.DefaultDashboard.prototype._consoleWasCleared):

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

7 years agoOperator stretching: expose a math data API
fred.wang@free.fr [Thu, 27 Mar 2014 18:06:21 +0000 (18:06 +0000)]
Operator stretching: expose a math data API
https://bugs.webkit.org/show_bug.cgi?id=130572

Reviewed by Chris Fleizach.

We expose a new SimpleFontData API to give access to the data from the
OpenType MATH table using a font cache. The class OpenTypeMathData will
be implemented in bug 130324. On Darwin platform, we also implement the
missing FontPlatformData::openTypeTable function which will be necessary
to load the OpenType MATH table. The changes are intended to be used
for MathML operator stretching (bug 130322) so tests are not added yet.

* CMakeLists.txt: add new OpenTypeMathData files.
* WebCore.vcxproj/WebCore.vcxproj: ditto.
* WebCore.vcxproj/WebCore.vcxproj.filters: ditto.
* WebCore.xcodeproj/project.pbxproj: ditto.
* platform/graphics/FontCache.cpp: We add a FontCache::getMathData function to implement a cache for the math data.
We make the math and vertical data share the same key for the cache.
(WebCore::fontMathDataCacheInstance):
(WebCore::FontCache::getMathData):
(WebCore::fontVerticalDataCacheInstance):
* platform/graphics/FontCache.h: We declare FontCache::getMathData and FontFileKey on all platforms.
* platform/graphics/FontPlatformData.cpp:
(WebCore::FontPlatformData::openTypeTable): We implement openTypeTable() on Darwin platform.
* platform/graphics/FontPlatformData.h: We expose openTypeTable() on Darwin platform.
* platform/graphics/SimpleFontData.cpp: We initialize m_mathData from the font cache.
(WebCore::SimpleFontData::SimpleFontData):
* platform/graphics/SimpleFontData.h: We expose a mathData() function to access the MATH data.
* platform/graphics/opentype/OpenTypeMathData.cpp: Added. This is a new class that will be used to parse the data from the OpenType MATH table.
(WebCore::OpenTypeMathData::OpenTypeMathData):
* platform/graphics/opentype/OpenTypeMathData.h: Added.
(WebCore::OpenTypeMathData::create):
(WebCore::OpenTypeMathData::hasMathData):

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

7 years ago[Win] Correct handling of autogenerated WebInspectorUI files
bfulgham@apple.com [Thu, 27 Mar 2014 17:51:38 +0000 (17:51 +0000)]
[Win] Correct handling of autogenerated WebInspectorUI files
https://bugs.webkit.org/show_bug.cgi?id=130846

Reviewed by Joseph Pecoraro.

* WebInspectorUI.vcxproj/WebInspectorUIPostBuild.cmd: Files need to be placed in the
'Protocol' subdirectory of the WebInspectorUI directory.

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

7 years agoFix a crash caused by track insertion after load()
bfulgham@apple.com [Thu, 27 Mar 2014 17:50:53 +0000 (17:50 +0000)]
Fix a crash caused by track insertion after load()
https://bugs.webkit.org/show_bug.cgi?id=130777

Reviewed by Eric Carlson.

Test: media/track/track-insert-after-load-crash.html

Based on the Blink change (patch by acolwell@chromium.org):
https://codereview.chromium.org/211373009/

Source/WebCore:

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute): Remove stale LoadMediaResource flag after explicit load.

LayoutTests:

* media/track/track-insert-after-load-crash-expected.txt: Added.
* media/track/track-insert-after-load-crash.html: Added.

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

7 years agoRename WKFrameHandle to _WKFrameHandle
andersca@apple.com [Thu, 27 Mar 2014 17:42:48 +0000 (17:42 +0000)]
Rename WKFrameHandle to _WKFrameHandle
https://bugs.webkit.org/show_bug.cgi?id=130847

Reviewed by Tim Horton.

* Shared/API/Cocoa/_WKFrameHandle.h: Renamed from Source/WebKit2/Shared/API/Cocoa/WKFrameHandle.h.
* Shared/API/Cocoa/_WKFrameHandle.mm: Renamed from Source/WebKit2/Shared/API/Cocoa/WKFrameHandle.mm.
(-[_WKFrameHandle dealloc]):
(-[_WKFrameHandle isEqual:]):
(-[_WKFrameHandle hash]):
(-[_WKFrameHandle _frameID]):
(-[_WKFrameHandle copyWithZone:]):
(+[_WKFrameHandle supportsSecureCoding]):
(-[_WKFrameHandle initWithCoder:]):
(-[_WKFrameHandle encodeWithCoder:]):
(-[_WKFrameHandle API::]):
* Shared/API/Cocoa/_WKFrameHandleInternal.h: Renamed from Source/WebKit2/Shared/API/Cocoa/WKFrameHandleInternal.h.
(WebKit::wrapper):
* Shared/Cocoa/APIObject.mm:
(API::Object::newObject):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h:
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(+[WKWebProcessPlugInFrame lookUpFrameFromHandle:]):
(-[WKWebProcessPlugInFrame handle]):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h:

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

7 years agoConnection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
ap@apple.com [Thu, 27 Mar 2014 16:47:58 +0000 (16:47 +0000)]
Connection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
equivalents, ASSERT(!_data->_keyDownEventBeingResent)
https://bugs.webkit.org/show_bug.cgi?id=130767
<rdar://problem/16307487>

Source/WebCore:

Added a wrapper for RunLoop::initializeMainThread that also adds modal run loop
mode to it on Mac.

* CMakeLists.txt:
* WebCore.exp.in:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* platform/MainRunLoop.cpp: Added.
(WebCore::initializeMainRunLoop):
* platform/MainRunLoop.h: Added.
* platform/mac/MainRunLoop.mm: Added.
(WebCore::initializeMainRunLoop):

Source/WebKit/mac:

Reviewed by Darin Adler.

Switched to a WebCore wrapper for RunLoop::initializeMainRunLoop that adds
NSModalPanelRunLoopMode to RunLoop event source and timer modes.

* Carbon/CarbonWindowAdapter.mm: (+[CarbonWindowAdapter initialize]):
* History/WebBackForwardList.mm: (+[WebBackForwardList initialize]):
* History/WebHistoryItem.mm: (+[WebHistoryItem initialize]):
* Misc/WebCache.mm: (+[WebCache initialize]):
* Misc/WebElementDictionary.mm: (+[WebElementDictionary initialize]):
* Misc/WebIconDatabase.mm: (+[WebIconDatabase initialize]):
* Plugins/Hosted/WebHostedNetscapePluginView.mm: (+[WebHostedNetscapePluginView initialize]):
* Plugins/WebBaseNetscapePluginView.mm:
* Plugins/WebBasePluginPackage.mm:
* Plugins/WebNetscapePluginView.mm: (+[WebNetscapePluginView initialize]):
* WebCoreSupport/WebEditorClient.mm: (+[WebUndoStep initialize]):
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebArchive.mm: (+[WebArchivePrivate initialize]):
* WebView/WebDataSource.mm: (+[WebDataSource initialize]):
* WebView/WebHTMLView.mm:
(+[WebHTMLViewPrivate initialize]):
(+[WebHTMLView initialize]):
* WebView/WebPreferences.mm: (+[WebPreferences initialize]):
* WebView/WebResource.mm: (+[WebResourcePrivate initialize]):
* WebView/WebTextIterator.mm: (+[WebTextIteratorPrivate initialize]):
* WebView/WebView.mm: (+[WebView initialize]):
* WebView/WebViewData.mm: (+[WebViewPrivate initialize]):

Source/WebKit2:

Reviewed by Darin Adler.

* Shared/WebKit2Initialize.cpp: (WebKit::InitializeWebKit2): Added NSModalPanelRunLoopMode
to RunLoop event source and timer modes.

Source/WTF:

Reviewed by Darin Adler.

Changed RunLoop to wake up and fire timers only in default run loop mode by default,
and added an ability to add more modes (can't use AppKit symbols in WTF).

In addition to this bug, the change also blocks modal alerts from appearing under
menus during menu tracking.

* wtf/RunLoop.h:
* wtf/cf/RunLoopCF.cpp:
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::addModeForWakeUpAndTimers):
(WTF::RunLoop::TimerBase::start):

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

7 years agoEnable LLVM stackmap liveOuts computation
fpizlo@apple.com [Thu, 27 Mar 2014 16:43:19 +0000 (16:43 +0000)]
Enable LLVM stackmap liveOuts computation
https://bugs.webkit.org/show_bug.cgi?id=130821

Reviewed by Andy Estes and Sam Weinig.

* ftl/FTLStackMaps.cpp:
(JSC::FTL::StackMaps::Record::dump):
* llvm/library/LLVMExports.cpp:
(initializeAndGetJSCLLVMAPI):

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

7 years agoAX: Returns const reference to static string.
k.czech@samsung.com [Thu, 27 Mar 2014 15:18:38 +0000 (15:18 +0000)]
AX: Returns const reference to static string.
https://bugs.webkit.org/show_bug.cgi?id=130835

Reviewed by Mario Sanchez Prada.

Avoiding some unnecessary copies by returning const reference to static string.

No new tests. No behaviour change.

* accessibility/AccessibilityMediaControls.cpp:
(WebCore::AccessibilityMediaControl::controlTypeName):
(WebCore::AccessibilityMediaControlsContainer::elementTypeName):
* accessibility/AccessibilityMediaControls.h:

Change-Id: I05357d107c0df944a65c7fb97c8bbdec549202c4

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

7 years agoRemove LayerTreeContextCairo.cpp
jaepark@webkit.org [Thu, 27 Mar 2014 15:11:43 +0000 (15:11 +0000)]
Remove LayerTreeContextCairo.cpp
https://bugs.webkit.org/show_bug.cgi?id=130807

Reviewed by Martin Robinson.

* Shared/cairo/LayerTreeContextCairo.cpp: Removed.

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

7 years ago[CSS Grid Layout] Remove unused variable in fast/css-grid-layout/implicit-position...
rego@igalia.com [Thu, 27 Mar 2014 14:39:38 +0000 (14:39 +0000)]
[CSS Grid Layout] Remove unused variable in fast/css-grid-layout/implicit-position-dynamic-change.html
https://bugs.webkit.org/show_bug.cgi?id=130833

Reviewed by Sergio Villar Senin.

* fast/css-grid-layout/implicit-position-dynamic-change.html: Inside
method updateImplicitGridColumn() we define a variable gridItem that
is not used. This patch removes it.

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

7 years ago[EFL][WK2] Add tests of the set process model API
commit-queue@webkit.org [Thu, 27 Mar 2014 11:33:07 +0000 (11:33 +0000)]
[EFL][WK2] Add tests of the set process model API
https://bugs.webkit.org/show_bug.cgi?id=130830

Patch by Maciej Florek <m.florek@samsung.com> on 2014-03-27
Reviewed by Gyuyoung Kim.

Implement unit tests to check, if process model API works
properly. When process model is set to EWK_PROCESS_MODEL_SHARED_SECONDARY,
there should be only one WebProcess. In case of EWK_PROCESS_MODEL_MULTIPLE_SECONDARY
setting, each WebView should have own process, as well as the network process
should exist.

* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
(EWK2UnitTest::EWK2UnitTestBase::EWK2UnitTestBase):
(EWK2UnitTest::EWK2UnitTestBase::SetUp):
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
* UIProcess/API/efl/tests/test_ewk2_context.cpp:
(EWK2ContextTestMultipleProcesses::EWK2ContextTestMultipleProcesses):
(TEST_F):

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

7 years ago[CSSRegions] Rename inNamedFlow flag to isNamedFlowContentNode flag
mihnea@adobe.com [Thu, 27 Mar 2014 09:45:30 +0000 (09:45 +0000)]
[CSSRegions] Rename inNamedFlow flag to isNamedFlowContentNode flag
https://bugs.webkit.org/show_bug.cgi?id=130731

Reviewed by Andrei Bucur.

Currently, the inNamedFlow flag in Node class tells if a node is a content node, one that has a style with flow-into.
Since it is used only for those nodes and not propagated through hierarchy, i want to renamed it to a more meaningful name.
No new functionality, no new tests.

* dom/ContainerNode.cpp:
(WebCore::destroyRenderTreeIfNeeded):
* dom/Element.cpp:
(WebCore::Element::~Element):
(WebCore::Element::unregisterNamedFlowContentElement):
* dom/Node.h:
(WebCore::Node::isNamedFlowContentNode):
(WebCore::Node::setIsNamedFlowContentNode):
(WebCore::Node::clearIsNamedFlowContentNode):
* rendering/RenderNamedFlowThread.cpp:
(WebCore::RenderNamedFlowThread::clearContentElements):
(WebCore::RenderNamedFlowThread::registerNamedFlowContentElement):
(WebCore::RenderNamedFlowThread::unregisterNamedFlowContentElement):
(WebCore::nextNodeInsideContentElement):
* style/StyleResolveTree.cpp:
(WebCore::Style::attachChildren):
(WebCore::Style::resolveLocal):

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

7 years ago[CSSRegions] Crash when cloning a region child with a content node child
mihnea@adobe.com [Thu, 27 Mar 2014 08:03:42 +0000 (08:03 +0000)]
[CSSRegions] Crash when cloning a region child with a content node child
https://bugs.webkit.org/show_bug.cgi?id=129811

Reviewed by David Hyatt.

Source/WebCore:

Collecting the children of a region in another named flow will be supported
again in the future and it will be revisited when we will implement the content
keyword: http://dev.w3.org/csswg/css-regions-1/#the-flow-into-property.
Remove the support for now as it introduces unnecessary complexity in the code
and potential wrong behavior.

Test: fast/regions/region-content-node-child-clone-crash.html

* dom/Element.cpp:
(WebCore::Element::shouldMoveToFlowThread):
(WebCore::Element::clearStyleDerivedDataBeforeDetachingRenderer):
* dom/Element.h:
* dom/ElementRareData.h:
(WebCore::ElementRareData::ElementRareData):
* rendering/FlowThreadController.cpp:
* rendering/FlowThreadController.h:
* style/StyleResolveTree.cpp:
(WebCore::Style::moveToFlowThreadIfNeeded):
(WebCore::Style::createRendererIfNeeded):

LayoutTests:

Collecting the children of a region in another named flow will be supported
again in the future and it will be revisited when we will implement the content
keyword: http://dev.w3.org/csswg/css-regions-1/#the-flow-into-property.
For now, skip the tests for that use case.

* TestExpectations:
* fast/regions/overflow-region-inline-expected.html: Expected file should not be region based.
* fast/regions/region-content-node-child-clone-crash-expected.txt: Added.
* fast/regions/region-content-node-child-clone-crash.html: Added.
* fast/regions/unsplittable-nested-region-expected.html: Expected file should not be region based.

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

7 years agoVersioning.
lforschler@apple.com [Thu, 27 Mar 2014 08:00:00 +0000 (08:00 +0000)]
Versioning.

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

7 years agoRemove unneeded mutable keyword in some member variables
gyuyoung.kim@samsung.com [Thu, 27 Mar 2014 07:17:28 +0000 (07:17 +0000)]
Remove unneeded mutable keyword in some member variables
https://bugs.webkit.org/show_bug.cgi?id=130813

Reviewed by Andreas Kling.

Some member variables have mutable keyword though they don't used by const function.
This patch removes them.

No new tests, no behavior changes. Just clean up.

* storage/StorageAreaSync.h:
* svg/animation/SVGSMILElement.h:

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

7 years agoUnreviewed, rolling out r166296 and r166331.
commit-queue@webkit.org [Thu, 27 Mar 2014 07:11:40 +0000 (07:11 +0000)]
Unreviewed, rolling out r166296 and r166331.
https://bugs.webkit.org/show_bug.cgi?id=130822

caused some crashes and frequent assertion failures, and the
fix is going to take a little while (Requested by thorton on
#webkit).

Reverted changesets:

"[iOS WebKit2] Flush all surfaces after painting into all of
them, instead of after painting into each one"
https://bugs.webkit.org/show_bug.cgi?id=130768
http://trac.webkit.org/changeset/166296

Source/WebCore:

"Assertion failure in RemoteLayerBackingStore::flush"
https://bugs.webkit.org/show_bug.cgi?id=130810
http://trac.webkit.org/changeset/166331

Source/WebKit2:

"Assertion failure in RemoteLayerBackingStore::flush"
https://bugs.webkit.org/show_bug.cgi?id=130810
http://trac.webkit.org/changeset/166331

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

7 years agoFix failing scrolling tests by reverting to previous behavior where
simon.fraser@apple.com [Thu, 27 Mar 2014 06:50:40 +0000 (06:50 +0000)]
Fix failing scrolling tests by reverting to previous behavior where
the scrolling geometry for the main frame scrolling node was only
updated from frameViewLayoutUpdated() and no-where else.

* WebCore.exp.in:
* page/scrolling/AsyncScrollingCoordinator.cpp:
(WebCore::AsyncScrollingCoordinator::updateScrollingNode):
* page/scrolling/AsyncScrollingCoordinator.h:
* page/scrolling/ScrollingCoordinator.h:
(WebCore::ScrollingCoordinator::updateScrollingNode):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateScrollCoordinatedLayer):
(WebCore::RenderLayerCompositor::detachScrollCoordinatedLayer): Deleted.

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

7 years agoHTMLConverter::_processText is slow because it walks up ancestor elements
rniwa@webkit.org [Thu, 27 Mar 2014 06:22:48 +0000 (06:22 +0000)]
HTMLConverter::_processText is slow because it walks up ancestor elements
https://bugs.webkit.org/show_bug.cgi?id=130820

Reviewed by Sam Weinig.

Avoid walking up the tree from each text node by caching the aggregated attributed strings for each element.
Also compute the attributed strings top-down to avoid calling mutableCopy in every iteration.

This reduces the runtime of Interactive/CopyAll.html from 15s to 13s (15%).

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_attributesForElement):
(HTMLConverter::attributesForElement):
(HTMLConverter::aggregatedAttributesForAncestors):
(HTMLConverter::_processText):

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

7 years agoBlind speculative iOS build fix.
timothy_horton@apple.com [Thu, 27 Mar 2014 06:13:33 +0000 (06:13 +0000)]
Blind speculative iOS build fix.

* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::viewportConfigurationChanged):

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

7 years agoParse stackmaps liveOuts
fpizlo@apple.com [Thu, 27 Mar 2014 05:05:55 +0000 (05:05 +0000)]
Parse stackmaps liveOuts
https://bugs.webkit.org/show_bug.cgi?id=130801

Reviewed by Geoffrey Garen.

This just adds the code to parse them but doesn't do anything with them, yet.

* ftl/FTLLocation.cpp:
(JSC::FTL::Location::forStackmaps):
* ftl/FTLLocation.h:
(JSC::FTL::Location::forRegister):
(JSC::FTL::Location::forIndirect):
* ftl/FTLStackMaps.cpp:
(JSC::FTL::StackMaps::Location::parse):
(JSC::FTL::StackMaps::Location::dump):
(JSC::FTL::StackMaps::LiveOut::parse):
(JSC::FTL::StackMaps::LiveOut::dump):
(JSC::FTL::StackMaps::Record::parse):
(JSC::FTL::StackMaps::Record::dump):
* ftl/FTLStackMaps.h:

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

7 years agoFix iOS build.
weinig@apple.com [Thu, 27 Mar 2014 04:42:50 +0000 (04:42 +0000)]
Fix iOS build.

* editing/cocoa/HTMLConverter.mm:
(_font):

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

7 years ago[iOS][WK2] <rdar://problem/16265272> REGRESSION (WebKit2): Some pages appear blank...
benjamin@webkit.org [Thu, 27 Mar 2014 04:31:07 +0000 (04:31 +0000)]
[iOS][WK2] <rdar://problem/16265272> REGRESSION (WebKit2): Some pages appear blank until you scroll
https://bugs.webkit.org/show_bug.cgi?id=130819

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-26
Reviewed by Tim Horton.

When loading a new page, we never define the unobscured rect and exposed rect on the new frame.
As a result, there is nothing to render.

It uses to work thanks to dumb luck and a bug in Safari updating the visibleContentRects from
the UIProcess. Now that the bug is gone, "dumb luck" is not reliable enough to get the content rects :)

What this patch does is save if we have ever received new rects from the UI. If we have not, create them
based on the minimum layout size. This works because we know Safari shows the minimum layout size by default
and will tell us if it changes the obscured rects.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::didCommitLoad):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::viewportConfigurationChanged):
(WebKit::WebPage::updateVisibleContentRects):

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

7 years agoMake _processText and _traverseNode in HTMLConverter more efficient
rniwa@webkit.org [Thu, 27 Mar 2014 04:16:32 +0000 (04:16 +0000)]
Make _processText and _traverseNode in HTMLConverter more efficient
https://bugs.webkit.org/show_bug.cgi?id=130769

Reviewed by Sam Weinig.

Rewrote a bunch of code in C++ and avoided creating wrappers.
This reduces the runtime of Interactive/CopyAll.html from ~16.5s to 15s.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverterCaches::isAncestorsOfStartToBeConverted):
(HTMLConverter::HTMLConverter):
(HTMLConverter::~HTMLConverter):
(HTMLConverter::_processElement):
(HTMLConverter::_processText):
(HTMLConverter::_traverseNode):
(HTMLConverter::_traverseFooterNode):
(HTMLConverterCaches::cacheAncestorsOfStartToBeConverted):
(HTMLConverter::_loadFromDOMRange):

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

7 years agoFEGaussianBlur: unify and const-ify calculateKernelSize
cavalcantii@gmail.com [Thu, 27 Mar 2014 04:14:22 +0000 (04:14 +0000)]
FEGaussianBlur: unify and const-ify calculateKernelSize
https://bugs.webkit.org/show_bug.cgi?id=130779

Some methods can benefit of using const refs as also make sense to
unify the interface (i.e. parameters) in calculateKernelSize/Unscaled.

FilterEffect::filter() will now return a reference, which helps since
its descendants were accessing methods into the pointer without testing
for it.

Reviewed by Simon Fraser.

No new tests, no changes on behavior.

* platform/graphics/filters/FEDisplacementMap.cpp:
(WebCore::FEDisplacementMap::platformApplySoftware):
* platform/graphics/filters/FEDropShadow.cpp:
(WebCore::FEDropShadow::determineAbsolutePaintRect):
(WebCore::FEDropShadow::platformApplySoftware):
* platform/graphics/filters/FEGaussianBlur.cpp:
(WebCore::FEGaussianBlur::calculateUnscaledKernelSize):
(WebCore::FEGaussianBlur::calculateKernelSize):
(WebCore::FEGaussianBlur::determineAbsolutePaintRect):
(WebCore::FEGaussianBlur::platformApplySoftware):
* platform/graphics/filters/FEGaussianBlur.h:
* platform/graphics/filters/FEMorphology.cpp:
(WebCore::FEMorphology::determineAbsolutePaintRect):
(WebCore::FEMorphology::platformApplySoftware):
* platform/graphics/filters/FEOffset.cpp:
(WebCore::FEOffset::determineAbsolutePaintRect):
(WebCore::FEOffset::platformApplySoftware):
* platform/graphics/filters/FETile.cpp:
(WebCore::FETile::platformApplySoftware):
* platform/graphics/filters/FETurbulence.cpp:
(WebCore::FETurbulence::fillRegion):
* platform/graphics/filters/Filter.h:
(WebCore::Filter::applyHorizontalScale):
(WebCore::Filter::applyVerticalScale):
* platform/graphics/filters/FilterEffect.h:
(WebCore::FilterEffect::filter):
* platform/graphics/filters/SourceAlpha.cpp:
(WebCore::SourceAlpha::determineAbsolutePaintRect):
(WebCore::SourceAlpha::platformApplySoftware):
* platform/graphics/filters/SourceGraphic.cpp:
(WebCore::SourceGraphic::determineAbsolutePaintRect):
(WebCore::SourceGraphic::platformApplySoftware):
* rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
(WebCore::RenderSVGResourceFilterPrimitive::determineFilterPrimitiveSubregion):
* svg/graphics/filters/SVGFEImage.cpp:
(WebCore::FEImage::determineAbsolutePaintRect):
(WebCore::FEImage::platformApplySoftware):

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

7 years agoAdd a _WKScriptWorld class
andersca@apple.com [Thu, 27 Mar 2014 03:55:48 +0000 (03:55 +0000)]
Add a _WKScriptWorld class
https://bugs.webkit.org/show_bug.cgi?id=130817

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/_WKScriptWorld.h: Added.
* UIProcess/API/Cocoa/_WKScriptWorld.mm: Added.
(generateWorldID):
(+[_WKScriptWorld defaultWorld]):
(-[_WKScriptWorld init]):
(-[_WKScriptWorld _initWithWorldID:]):
* WebKit2.xcodeproj/project.pbxproj:

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

7 years agoMake sure childContainmentLayer is parented
simon.fraser@apple.com [Thu, 27 Mar 2014 03:53:31 +0000 (03:53 +0000)]
Make sure childContainmentLayer is parented
https://bugs.webkit.org/show_bug.cgi?id=130808

Reviewed by Tim Horton.

m_childContainmentLayer was never parented if the page
created no other compositing layers, which left a dangling
GraphicsLayer which in turn confused UI-side compositing a little.
Fix by always parenting this layer.

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):

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

7 years agoRename a delegate method to -webView:didFinishNavigation:
andersca@apple.com [Thu, 27 Mar 2014 03:46:04 +0000 (03:46 +0000)]
Rename a delegate method to -webView:didFinishNavigation:
https://bugs.webkit.org/show_bug.cgi?id=130814

Reviewed by Sam Weinig.

* UIProcess/API/Cocoa/WKNavigationDelegate.h:
* UIProcess/Cocoa/NavigationState.h:
* UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::setNavigationDelegate):
(WebKit::NavigationState::LoaderClient::didFinishLoadForFrame):

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

7 years agoWeb Replay: disable page cache during capture/replay
bburg@apple.com [Thu, 27 Mar 2014 03:45:38 +0000 (03:45 +0000)]
Web Replay: disable page cache during capture/replay
https://bugs.webkit.org/show_bug.cgi?id=130672

Reviewed by Timothy Hatcher.

Save, set, and restore page cache settings at the correct times.

No new tests. If this code fails, then the tests for network replay will fail.

* replay/ReplayController.cpp:
(WebCore::ReplayController::setForceDeterministicSettings): Added.
(WebCore::ReplayController::startCapturing):
(WebCore::ReplayController::stopCapturing):
(WebCore::ReplayController::cancelPlayback):
(WebCore::ReplayController::replayToPosition):
* replay/ReplayController.h:

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

7 years ago[iOS WebKit2] Crashes on swipe
timothy_horton@apple.com [Thu, 27 Mar 2014 03:41:40 +0000 (03:41 +0000)]
[iOS WebKit2] Crashes on swipe
<rdar://problem/16440867>

Reviewed by Benjamin Poulain.

* UIProcess/ios/ViewGestureControllerIOS.mm:
(WebKit::ViewGestureController::beginSwipeGesture):
Get the IOSurfaceRef from the WebCore::IOSurface.

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

7 years agoConvert more of HTMLConverter to C++
weinig@apple.com [Thu, 27 Mar 2014 03:22:59 +0000 (03:22 +0000)]
Convert more of HTMLConverter to C++
https://bugs.webkit.org/show_bug.cgi?id=130811

Reviewed by Anders Carlsson.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::HTMLConverter):
(HTMLConverter::~HTMLConverter):
(HTMLConverter::_blockLevelElementForNode):
(HTMLConverter::_colorForElement):
(HTMLConverter::_computedAttributesForElement):
(HTMLConverter::_attributesForElement):
(HTMLConverter::_fillInBlock):
(HTMLConverter::_enterElement):
(HTMLConverter::_addTableForElement):
(HTMLConverter::_addTableCellForElement):
(HTMLConverter::_processElement):
(HTMLConverter::_exitElement):
(HTMLConverter::_getFloat): Deleted.
(HTMLConverter::_elementIsBlockLevel): Deleted.
(HTMLConverter::_elementHasOwnBackgroundColor): Deleted.
(HTMLConverter::_colorForNode): Deleted.

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

7 years agoFix the build: include UIKit headers inside the iOS #ifdef.
simon.fraser@apple.com [Thu, 27 Mar 2014 02:25:14 +0000 (02:25 +0000)]
Fix the build: include UIKit headers inside the iOS #ifdef.

* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:

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

7 years agoHook up -webkit-overflow-scrolling:touch for iOS WK2
simon.fraser@apple.com [Thu, 27 Mar 2014 02:15:48 +0000 (02:15 +0000)]
Hook up -webkit-overflow-scrolling:touch for iOS WK2
https://bugs.webkit.org/show_bug.cgi?id=130809

Reviewed by Tim Horton.

Source/WebCore:

Get -webkit-overflow-scrolling: touch working for iOS WK2.

* WebCore.exp.in:
* page/scrolling/AsyncScrollingCoordinator.cpp:
(WebCore::AsyncScrollingCoordinator::updateScrollingNode):
Send in ScrollingGeometry when we update scrolling nodes.
* page/scrolling/AsyncScrollingCoordinator.h:
* page/scrolling/ScrollingCoordinator.h:
(WebCore::ScrollingCoordinator::updateScrollingNode):
* page/scrolling/ios/ScrollingTreeScrollingNodeIOS.h:
Need to get to the scrolling layer in a subclass.
(WebCore::ScrollingTreeScrollingNodeIOS::scrollLayer):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hasAcceleratedTouchScrolling): Remove code
that temporarily disabled touch-scrolling.
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateScrollCoordinatedLayer): When we
update scrolling nodes, send in the right scrolling geometry.

Source/WebKit2:

* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.h:
* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:
(WebKit::ScrollingTreeOverflowScrollingNodeIOS::updateAfterChildren):
Set the content size of the UIScrollVIew based on the geometry.
* UIProcess/ios/RemoteLayerTreeHostIOS.mm:
(WebKit::RemoteLayerTreeHost::createLayer): Make a UIScrollView if the
layer properties tell us that we have the scrolling behavior.
* UIProcess/ios/WKContentView.mm:
(-[WKContentView initWithFrame:context:WebKit::configuration:WebKit::webView:]):
We need to allow user interaction in the _rootContentView so that events get to
nested UIScrollViews (this could be optimized in future).
* UIProcess/mac/RemoteLayerTreeHost.h:
* UIProcess/mac/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::updateLayerTree):
(WebKit::RemoteLayerTreeHost::createLayer): Need to pass RemoteLayerTreeTransaction::LayerProperties
in so we can get at the custom behavior.

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

7 years agoAdd -[WKWebView stopLoading]
andersca@apple.com [Thu, 27 Mar 2014 01:54:24 +0000 (01:54 +0000)]
Add -[WKWebView stopLoading]
https://bugs.webkit.org/show_bug.cgi?id=130812

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView stopLoading]):

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

7 years agoAssertion failure in RemoteLayerBackingStore::flush
timothy_horton@apple.com [Thu, 27 Mar 2014 01:48:28 +0000 (01:48 +0000)]
Assertion failure in RemoteLayerBackingStore::flush
https://bugs.webkit.org/show_bug.cgi?id=130810
<rdar://problem/16439276>

Reviewed by Simon Fraser.

* Shared/mac/RemoteLayerBackingStore.mm:
(RemoteLayerBackingStore::flush):
We don't always have backing store to flush, if platformCALayerDrawsContent() is false.
We also can't assert that we have a back surface, because the very first paint will not.

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

7 years agoBuild fix after r166307.
mark.lam@apple.com [Thu, 27 Mar 2014 00:50:43 +0000 (00:50 +0000)]
Build fix after r166307.

Not reviewed.

* runtime/JSCell.h:
- The inline function isAPIValueWrapper() should not be exported.  This
  was causing a linkage error when building for 32-bit x86 on Mac.

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

7 years agoModernize the loops in InspectorPageAgent.cpp.
timothy@apple.com [Wed, 26 Mar 2014 23:58:15 +0000 (23:58 +0000)]
Modernize the loops in InspectorPageAgent.cpp.

Also moves the check for hiddenFromInspector to a lower level.
This hides hidden resources from more places.

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

Reviewed by Joseph Pecoraro.

* inspector/InspectorPageAgent.cpp:
(WebCore::buildArrayForCookies):
(WebCore::cachedResourcesForFrame):
(WebCore::allResourcesURLsForFrame):
(WebCore::InspectorPageAgent::getCookies):
(WebCore::InspectorPageAgent::searchInResources):
(WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
(WebCore::InspectorPageAgent::loaderDetachedFromFrame):
(WebCore::InspectorPageAgent::buildObjectForFrameTree):

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

7 years ago[Cocoa] Expose DownloadClient::didFail() and DownloadClient::didCancel()
aestes@apple.com [Wed, 26 Mar 2014 23:51:12 +0000 (23:51 +0000)]
[Cocoa] Expose DownloadClient::didFail() and DownloadClient::didCancel()
https://bugs.webkit.org/show_bug.cgi?id=130805

Reviewed by Dan Bernstein.

Source/WebKit2:

* UIProcess/API/Cocoa/_WKDownloadDelegate.h:
* UIProcess/Cocoa/DownloadClient.h:
* UIProcess/Cocoa/DownloadClient.mm:
(WebKit::DownloadClient::DownloadClient):
(WebKit::DownloadClient::didFail):
(WebKit::DownloadClient::didCancel):

Tools:

* TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
(-[DownloadDelegate _download:didReceiveResponse:]):
(-[DownloadDelegate _downloadDidFinish:]):
(runTest):
(TEST):
(-[FailingDownloadDelegate _downloadDidFinish:]):
(-[FailingDownloadDelegate _download:didFailWithError:]):
(-[FailingDownloadDelegate _downloadDidCancel:]):
(-[CancelledDownloadDelegate _downloadDidStart:]):
(-[CancelledDownloadDelegate _downloadDidFinish:]):
(-[CancelledDownloadDelegate _download:didFailWithError:]):
(-[CancelledDownloadDelegate _downloadDidCancel:]):
(-[DownloadDelegate initWithSourceURL:]): Deleted.
(-[DownloadDelegate sourceURL]): Deleted.
(runTestWithNavigationDelegate): Deleted.

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

7 years agoChange MiniBrowser to hold on to window controllers instead of windows
andersca@apple.com [Wed, 26 Mar 2014 23:36:08 +0000 (23:36 +0000)]
Change MiniBrowser to hold on to window controllers instead of windows
https://bugs.webkit.org/show_bug.cgi?id=130797

Reviewed by Oliver Hunt.

* MiniBrowser/mac/AppDelegate.h:
* MiniBrowser/mac/AppDelegate.m:
(-[BrowserAppDelegate init]):
(-[BrowserAppDelegate newWindow:]):
(-[BrowserAppDelegate browserWindowWillClose:]):
(-[BrowserAppDelegate applicationWillTerminate:]):
(-[BrowserAppDelegate frontmostBrowserWindowController]):

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

7 years ago-[WKWebProcessPlugInNodeHandle HTMLInputElementIsUserEdited] and -HTMLTextAreaElement...
commit-queue@webkit.org [Wed, 26 Mar 2014 23:35:39 +0000 (23:35 +0000)]
-[WKWebProcessPlugInNodeHandle HTMLInputElementIsUserEdited] and -HTMLTextAreaElementIsUserEdited do not return the correct values.

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

Patch by Cody Krieger <cjk@apple.com> on 2014-03-26
Reviewed by Dan Bernstein.

The existing implementations of these methods are mis-cased
("HTMLInputELementIsUserEdited" and "HTMLTextAreaELementIsUserEdited" —
note the "EL" in both cases). This results in us getting
auto-synthesized getters for the HTMLInputElementIsUserEdited and
HTMLTextAreaElementIsUserEdited properties, which will return NO
unconditionally.

* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
Fix the capitalization of -HTMLInputElementIsUserEdited and
-HTMLTextAreaElementIsUserEdited.

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

7 years agoAdd platform implementation for RTCOfferAnswerOptions and RTCOfferOptions
thiago.lacerda@openbossa.org [Wed, 26 Mar 2014 23:26:48 +0000 (23:26 +0000)]
Add platform implementation for RTCOfferAnswerOptions and RTCOfferOptions
https://bugs.webkit.org/show_bug.cgi?id=130689

Reviewed by Eric Carlson.

RTCOfferAnswerOptions and RTCOfferOptions objects were being passed to platform class, causing a layer
violation.

* Modules/mediastream/RTCOfferAnswerOptions.cpp:
(WebCore::RTCOfferAnswerOptions::initialize):
(WebCore::RTCOfferOptions::initialize):
* Modules/mediastream/RTCOfferAnswerOptions.h:
(WebCore::RTCOfferAnswerOptions::requestIdentity):
(WebCore::RTCOfferAnswerOptions::privateOfferAnswerOptions):
(WebCore::RTCOfferAnswerOptions::RTCOfferAnswerOptions):
(WebCore::RTCOfferOptions::offerToReceiveVideo):
(WebCore::RTCOfferOptions::offerToReceiveAudio):
(WebCore::RTCOfferOptions::voiceActivityDetection):
(WebCore::RTCOfferOptions::iceRestart):
(WebCore::RTCOfferOptions::privateOfferOptions):
(WebCore::RTCOfferOptions::RTCOfferOptions):
* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::createOffer):
(WebCore::RTCPeerConnection::createAnswer):
* platform/mediastream/RTCOfferAnswerOptionsPrivate.h: Added.
* platform/mediastream/RTCPeerConnectionHandler.h:
* platform/mock/RTCPeerConnectionHandlerMock.cpp:
(WebCore::RTCPeerConnectionHandlerMock::createOffer):
(WebCore::RTCPeerConnectionHandlerMock::createAnswer):
* platform/mock/RTCPeerConnectionHandlerMock.h:

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

7 years agoDevice scale factor should always be greater than 0.
zalan@apple.com [Wed, 26 Mar 2014 22:43:22 +0000 (22:43 +0000)]
Device scale factor should always be greater than 0.
https://bugs.webkit.org/show_bug.cgi?id=130798

Reviewed by David Kilzer.

Rendering context requires a device scale factor > 0 so that we can map CSS pixels
to device pixels properly. Neither 0 nor a negative device pixel ratio are considered to be valid.

* page/Page.cpp:
(WebCore::Page::setDeviceScaleFactor):

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

7 years agoSkipping underlines disregard points completely inside the underline rect
mmaxfield@apple.com [Wed, 26 Mar 2014 22:05:24 +0000 (22:05 +0000)]
Skipping underlines disregard points completely inside the underline rect
https://bugs.webkit.org/show_bug.cgi?id=130800

Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2014-03-26
Reviewed by Dean Jackson.

Source/WebCore:

When determining bounds for underline skipping, endpoints of glyph contours
that lie entirely within the rect of the underline are ignored. This patch
makes these points affect the skipping regions the same way that intersections
do.

Test: fast/css3-text/css3-text-decoration/text-decoration-skip/glyph-inside-underline.html

* platform/graphics/mac/FontMac.mm:
(WebCore::updateX): Refactored common code into a function
(WebCore::findPathIntersections): Test for endpoints which lie entirely within
the underline bounds

LayoutTests:

This test draws a glyph entire inside the underline. It should render the same
as it would without any underline at all.

* fast/css3-text/css3-text-decoration/text-decoration-skip/resources/Litherum.svg: Added
an underscore glyph that would lie entirely within an underline
* fast/css3-text/css3-text-decoration/text-decoration-skip/glyph-inside-underline.html:

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

7 years agoUnreviewed. iOS build fix after r166312. Soft link CMTimeRangeGetEnd.
psolanki@apple.com [Wed, 26 Mar 2014 21:45:27 +0000 (21:45 +0000)]
Unreviewed. iOS build fix after r166312. Soft link CMTimeRangeGetEnd.

* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

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

7 years ago[Cocoa] Expose DownloadProxy::cancel()
aestes@apple.com [Wed, 26 Mar 2014 21:32:19 +0000 (21:32 +0000)]
[Cocoa] Expose DownloadProxy::cancel()
https://bugs.webkit.org/show_bug.cgi?id=130799

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/_WKDownload.h:
* UIProcess/API/Cocoa/_WKDownload.mm:
(-[_WKDownload cancel]):

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

7 years agoPropagate the hiddenFromInspector flag on ResourceRequest in
timothy@apple.com [Wed, 26 Mar 2014 21:20:01 +0000 (21:20 +0000)]
Propagate the hiddenFromInspector flag on ResourceRequest in
places when a new request a made or passed between processes.

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

Reviewed by Joseph Pecoraro.

Source/WebCore:

* WebCore.exp.in: Updated symbols for updateFromDelegatePreservingOldProperties.
* platform/network/cf/ResourceRequest.h:
* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties): Added.
(WebCore::ResourceRequest::updateFromDelegatePreservingOldHTTPBody): Deleted.
* platform/network/curl/ResourceRequest.h:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties): Added.
(WebCore::ResourceRequest::updateFromDelegatePreservingOldHTTPBody): Deleted.
* platform/network/mac/ResourceRequestMac.mm:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties): Added.
(WebCore::ResourceRequest::updateFromDelegatePreservingOldHTTPBody): Deleted.
* platform/network/soup/ResourceRequest.h:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties): Added.
(WebCore::ResourceRequest::updateFromDelegatePreservingOldHTTPBody): Deleted.

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::dispatchWillSendRequest): Copy hiddenFromInspector to
the new request.

Source/WebKit2:

* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::continueWillSendRequest): Use updateFromDelegatePreservingOldProperties.
* Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<ResourceRequest>::encode): Added hiddenFromInspector support.
(IPC::ArgumentCoder<ResourceRequest>::decode): Ditto.
* WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
(WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame): Ditto.

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

7 years ago[CSS Shapes] Remove no-longer-used shape-inside geometry code
zoltan@webkit.org [Wed, 26 Mar 2014 21:06:49 +0000 (21:06 +0000)]
[CSS Shapes] Remove no-longer-used shape-inside geometry code
https://bugs.webkit.org/show_bug.cgi?id=130740

Reviewed by David Hyatt.

This patch removes shape-padding support, since it can be used only with shape-inside.
Shape-inside support has been removed in r166301.

No new tests needed, existing tests have been removed by r166301.

* rendering/shapes/BoxShape.cpp:
(WebCore::BoxShape::shapePaddingLogicalBoundingBox): Deleted.
(WebCore::BoxShape::shapePaddingBounds): Deleted.
(WebCore::BoxShape::getIncludedIntervals): Deleted.
(WebCore::BoxShape::firstIncludedIntervalLogicalTop): Deleted.
* rendering/shapes/BoxShape.h:
* rendering/shapes/PolygonShape.cpp:
(WebCore::leftSide): Deleted.
(WebCore::isReflexVertex): Deleted.
(WebCore::computeShapePaddingBounds): Deleted.
(WebCore::PolygonShape::shapePaddingBounds): Deleted.
(WebCore::PolygonShape::getIncludedIntervals): Deleted.
(WebCore::firstFitRectInPolygon): Deleted.
(WebCore::aboveOrToTheLeft): Deleted.
(WebCore::PolygonShape::firstIncludedIntervalLogicalTop): Deleted.
* rendering/shapes/PolygonShape.h:
(WebCore::PolygonShape::PolygonShape):
* rendering/shapes/RasterShape.cpp:
(WebCore::RasterShapeIntervals::firstIncludedIntervalY): Deleted.
(WebCore::RasterShapeIntervals::getIncludedIntervals): Deleted.
(WebCore::RasterShape::paddingIntervals): Deleted.
(WebCore::RasterShape::getIncludedIntervals): Deleted.
(WebCore::RasterShape::firstIncludedIntervalLogicalTop): Deleted.
* rendering/shapes/RasterShape.h:
* rendering/shapes/RectangleShape.cpp:
(WebCore::ellipseYIntercept): Deleted.
(WebCore::RectangleShape::shapePaddingBounds): Deleted.
(WebCore::RectangleShape::getIncludedIntervals): Deleted.
(WebCore::cornerInterceptForWidth): Deleted.
(WebCore::RectangleShape::firstIncludedIntervalLogicalTop): Deleted.
* rendering/shapes/RectangleShape.h:
* rendering/shapes/Shape.cpp:
(WebCore::Shape::createShape):
(WebCore::Shape::createRasterShape):
(WebCore::Shape::createBoxShape):
* rendering/shapes/Shape.h:
(WebCore::Shape::lineOverlapsShapePaddingBounds): Deleted.
(WebCore::Shape::shapePadding): Deleted.
* rendering/shapes/ShapeInfo.cpp:
(WebCore::ShapeInfo<RenderType>::computedShape):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::changeRequiresLayout):
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):
* rendering/style/StyleRareNonInheritedData.h:

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

7 years ago[Cocoa] Expose DownloadProxy::request()
aestes@apple.com [Wed, 26 Mar 2014 21:04:27 +0000 (21:04 +0000)]
[Cocoa] Expose DownloadProxy::request()
https://bugs.webkit.org/show_bug.cgi?id=130796

Reviewed by Anders Carlsson.

* UIProcess/API/Cocoa/_WKDownload.h:
* UIProcess/API/Cocoa/_WKDownload.mm:
(-[_WKDownload request]):

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

7 years agoPass a real FrameLoadRequest to Chrome::createWindow
andersca@apple.com [Wed, 26 Mar 2014 20:56:10 +0000 (20:56 +0000)]
Pass a real FrameLoadRequest to Chrome::createWindow
https://bugs.webkit.org/show_bug.cgi?id=130795

Reviewed by Dan Bernstein.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchCreatePage):

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

7 years agoReasoning about DWARF register numbers should be moved out of FTL::Location
fpizlo@apple.com [Wed, 26 Mar 2014 20:49:42 +0000 (20:49 +0000)]
Reasoning about DWARF register numbers should be moved out of FTL::Location
https://bugs.webkit.org/show_bug.cgi?id=130792

Reviewed by Oliver Hunt.

Moving this code makes it possible for things other than FTL::Location to reason about
DWARF register encoding. This refactoring also appears to reduce some code duplication
and makes FTLLocation.cpp cleaner.

* JavaScriptCore.xcodeproj/project.pbxproj:
* ftl/FTLCompile.cpp:
(JSC::FTL::fixFunctionBasedOnStackMaps):
* ftl/FTLDWARFRegister.cpp: Added.
(JSC::FTL::DWARFRegister::reg):
(JSC::FTL::DWARFRegister::dump):
* ftl/FTLDWARFRegister.h: Added.
(JSC::FTL::DWARFRegister::DWARFRegister):
(JSC::FTL::DWARFRegister::dwarfRegNum):
* ftl/FTLLocation.cpp:
(JSC::FTL::Location::dump):
(JSC::FTL::Location::isGPR):
(JSC::FTL::Location::gpr):
(JSC::FTL::Location::isFPR):
(JSC::FTL::Location::fpr):
* ftl/FTLLocation.h:
(JSC::FTL::Location::hasDwarfReg):
(JSC::FTL::Location::dwarfReg):

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

7 years agoImplement hasLiveStreamingContent property in WebAVPlayerController
commit-queue@webkit.org [Wed, 26 Mar 2014 20:17:39 +0000 (20:17 +0000)]
Implement hasLiveStreamingContent property in WebAVPlayerController
https://bugs.webkit.org/show_bug.cgi?id=128684

Patch by Jeremy Jones <jeremyj@apple.com> on 2014-03-26
Reviewed by Simon Fraser.

Source/WebCore:

* WebCore.exp.in:
Add export for WebVideoFullscreenInterfaceAVKit::setSeekableRanges().

* platform/ios/WebVideoFullscreenInterface.h:
Add setSeekableRanges()

* platform/ios/WebVideoFullscreenInterfaceAVKit.h:
Add setSeekableRanges()

* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
Remove vestigial playerLayer property. Add seekableTimeRanges property.

(-[WebAVPlayerController dealloc]):
Release _seekableTimeRanges.
Remove references to _playerLayer.

(-[WebAVPlayerController hasLiveStreamingContent]):
Implement based on duration. Live stream has an infinite duration.

(+[WebAVPlayerController keyPathsForValuesAffectingHasLiveStreamingContent]):
Describe dependent keys for computed property hasLiveStreamingContent.

(-[WebAVPlayerController skipBackwardThirtySeconds:]):
Seek back 30 seconds if that time is in the seekable ranges.

(-[WebAVPlayerController gotoEndOfSeekableRanges:]):
Jump to live by going to the of the seekable ranges.

(WebVideoFullscreenInterfaceAVKit::setSeekableRanges):
Convert TimeRange to CMTimeRange.

* platform/ios/WebVideoFullscreenModelMediaElement.mm:
(WebVideoFullscreenModelMediaElement::setMediaElement):
Set initial seekable ranges.

(WebVideoFullscreenModelMediaElement::handleEvent):
Update seekable ranges when time changes.

Source/WebKit2:

Plumb through the seekable ranges to the fullscreen interface.

* UIProcess/ios/WebVideoFullscreenManagerProxy.h:
Add declaration for setSeekableRangesVector()

* UIProcess/ios/WebVideoFullscreenManagerProxy.messages.in:
Add interface SetSeekableRangesVector()

* UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
(WebKit::WebVideoFullscreenManagerProxy::setSeekableRangesVector):
Add setSeekableRangesVector that translates the vector into a TimeRanges and calls setSeekableRanges()

* WebProcess/ios/WebVideoFullscreenManager.h:
Add setSeekableRanges()

* WebProcess/ios/WebVideoFullscreenManager.mm:
(WebKit::WebVideoFullscreenManager::setSeekableRanges):
setSeekableRanges() converts TimeRanges to Vector and calls SetSeekableRangesVector()

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

7 years agoFix OS X build.
bfulgham@apple.com [Wed, 26 Mar 2014 19:52:07 +0000 (19:52 +0000)]
Fix OS X build.

* WebCore.exp.in: Add missing export symbol.

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

7 years agoFix the Windows build. Add a no-op impl for Mac non-UI-side.
simon.fraser@apple.com [Wed, 26 Mar 2014 19:42:03 +0000 (19:42 +0000)]
Fix the Windows build. Add a no-op impl for Mac non-UI-side.

* platform/graphics/ca/mac/PlatformCALayerMac.h:
* platform/graphics/ca/win/PlatformCALayerWin.cpp:
(PlatformCALayerWin::PlatformCALayerWin):
* platform/graphics/ca/win/PlatformCALayerWin.h:

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

7 years agoREGRESSION (r155977): matrix animations no longer animate
simon.fraser@apple.com [Wed, 26 Mar 2014 19:36:51 +0000 (19:36 +0000)]
REGRESSION (r155977): matrix animations no longer animate
https://bugs.webkit.org/show_bug.cgi?id=130789
<rdar://problem/15650946>

Source/WebCore:

Reviewed by Dean Jackson.

r155977 erroneously removed two lines that set the end points for
matrix animations (used when transform lists don't match), so
put them back.

Also don't repaint when updateContentsScale()
is called and doesn't change the contents scale.

Test: compositing/animation/matrix-animation.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::updateRootRelativeScale):
(WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):
(WebCore::GraphicsLayerCA::updateContentsScale):

LayoutTests:

Reviewed by Dean Jackson.

Add test for fill-fowards animation with mismatched transform lists.

* compositing/animation/matrix-animation-expected.html: Added.
* compositing/animation/matrix-animation.html: Added.

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

7 years agoAdd a custom behavior flag to GraphicsLayer, piped down to PlatformCALayer, for scrol...
simon.fraser@apple.com [Wed, 26 Mar 2014 19:36:49 +0000 (19:36 +0000)]
Add a custom behavior flag to GraphicsLayer, piped down to PlatformCALayer, for scrolling layers
https://bugs.webkit.org/show_bug.cgi?id=130778

Reviewed by Tim Horton.

Make it possible to put a "custom behavior" flag on a layer so that,
with UI-side compositing, we know to create a specific type of
layer or view for that GraphicsLayer.

Source/WebCore:

* WebCore.exp.in:
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::GraphicsLayer):
* platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::setCustomBehavior):
(WebCore::GraphicsLayer::customBehavior):
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
(WebCore::GraphicsLayerCA::updateCustomBehavior):
(WebCore::GraphicsLayerCA::setCustomBehavior):
* platform/graphics/ca/GraphicsLayerCA.h:
* platform/graphics/ca/PlatformCALayer.h:
* platform/graphics/ca/mac/PlatformCALayerMac.h:
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayerMac::PlatformCALayerMac):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateScrollingLayers):

Source/WebKit2:

* Shared/mac/RemoteLayerTreeTransaction.h:
* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTransaction::LayerProperties::LayerProperties):
(WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
(WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
(WebKit::dumpChangedLayers):
* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
(PlatformCALayerRemote::customBehavior):
(PlatformCALayerRemote::updateCustomBehavior):
* WebProcess/WebPage/mac/PlatformCALayerRemote.h:

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

7 years agoSource/JavaScriptCore: Unreviewed build fix.
bfulgham@apple.com [Wed, 26 Mar 2014 19:21:49 +0000 (19:21 +0000)]
Source/JavaScriptCore: Unreviewed build fix.

* runtime/JSCell.h: VS2013 confused about argument type.

Source/WebCore: Unreviewed test correction.

Because of the way DRT on Windows links to WebCore, having the implementaion of the update
method in the header caused a runtime failure due to duplicate symbols being bound to the
compilation unit.

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::setEnhancedUserInterfaceAccessibility): Moved from header.
* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::setEnhancedUserInterfaceAccessibility): Deleted.

Source/WebKit: Unreviewed build/test correction.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export the AXObjectCache::setEnhancedUserInterfaceEnabled
set function.

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

7 years agoREGRESSION(r162679): Poster image visible under the video
jer.noble@apple.com [Wed, 26 Mar 2014 18:37:44 +0000 (18:37 +0000)]
REGRESSION(r162679): Poster image visible under the video
https://bugs.webkit.org/show_bug.cgi?id=130783

Reviewed by Simon Fraser.

In the listed revision, we started checking for isRenderImage()
instead of isImage(). RenderMedias return 'true' for the first
but 'false' for the second. Change the if() statement to check
for isRenderMedia() in addition to !isRenderImage().

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::isDirectlyCompositedImage):

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

7 years agoRender tree construction is O(N^2) in number of siblings
antti@apple.com [Wed, 26 Mar 2014 18:35:55 +0000 (18:35 +0000)]
Render tree construction is O(N^2) in number of siblings
https://bugs.webkit.org/show_bug.cgi?id=129065

Source/WebCore:

Reviewed by Darin Adler.

When adding a new renderer to the tree we would search for the correct render tree
position by traversing DOM children forward to find something that already has a renderer.
In common case there is no such renderer. This would be repeated for each inserted renderer
leading to O(n^2) in respect to child node count.

This patch caches the computed render tree insertion position and passes it to siblings.
Until the cached position is reached it can be used for all new renderers.

Test: perf/sibling-renderer-On2.html

* style/StyleResolveTree.cpp:
(WebCore::Style::RenderTreePosition::parent):
(WebCore::Style::RenderTreePosition::RenderTreePosition):
(WebCore::Style::RenderTreePosition::canInsert):
(WebCore::Style::RenderTreePosition::insert):
(WebCore::Style::RenderTreePosition::computeNextSibling):
(WebCore::Style::RenderTreePosition::invalidateNextSibling):
(WebCore::Style::styleForElement):
(WebCore::Style::elementInsideRegionNeedsRenderer):
(WebCore::Style::createRendererIfNeeded):
(WebCore::Style::createTextRendererIfNeeded):
(WebCore::Style::attachTextRenderer):
(WebCore::Style::updateTextRendererAfterContentChange):
(WebCore::Style::attachChildren):
(WebCore::Style::attachDistributedChildren):
(WebCore::Style::attachShadowRoot):
(WebCore::Style::attachBeforeOrAfterPseudoElementIfNeeded):
(WebCore::Style::attachRenderTree):
(WebCore::Style::resolveLocal):
(WebCore::Style::resolveTextNode):
(WebCore::Style::resolveShadowTree):
(WebCore::Style::updateBeforeOrAfterPseudoElement):
(WebCore::Style::resolveTree):

LayoutTests:

Reviewed by Darin Adler.

* perf/sibling-renderer-On2-expected.txt: Added.
* perf/sibling-renderer-On2.html: Added.

    The test doesn't use magnitude-perf.js as this requires a relatively long-running test function and
    it seemed unsuitable for that.

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

7 years agoUnreviewed, rolling out r166264.
commit-queue@webkit.org [Wed, 26 Mar 2014 18:31:58 +0000 (18:31 +0000)]
Unreviewed, rolling out r166264.
https://bugs.webkit.org/show_bug.cgi?id=130785

Broke some window.opener tests for WK2 Mavericks (Requested by
brrian__ on #webkit).

Reverted changeset:

Source/WebCore:

"Web Replay: resource unique identifiers should be unique-per-
frame, not globally"
https://bugs.webkit.org/show_bug.cgi?id=130632
http://trac.webkit.org/changeset/166264

Tools:

"Web Replay: resource unique identifiers should be unique-per-
frame, not globally"
https://bugs.webkit.org/show_bug.cgi?id=130632
http://trac.webkit.org/changeset/166264

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

7 years ago[CSS Shapes] Remove shape-inside support
zoltan@webkit.org [Wed, 26 Mar 2014 18:20:15 +0000 (18:20 +0000)]
[CSS Shapes] Remove shape-inside support
https://bugs.webkit.org/show_bug.cgi?id=130698

Reviewed by David Hyatt.

.:

* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

CSS Shapes Level 1 (CR) only contains shape-outside. We are focusing our efforts on finalizing
the implementation of shape-outside, it's worth to remove shape-inside code at this point for now.

A list of reasons for the removal:
  - Shape-inside is only part of Shapes Level 2, which needs to be improved on some topics.
  - Shape-inside is lack of new shapes support (e.g. inset).
  - Deprecated shapes (r165472) are removed from the code (e.g. rectangle), which affects shape-inside.
  - The current shape-inside code spreads across the layout code.
  - The current shape-inside implementation is experimental in some areas,
    and the partially implemented code can have security implications.
  - Removal of shape-inside opens possibilities for code complexity and performance
    optimizations for shape-outside. (e.g. simpler geometry code)

No new tests are needed.

* CMakeLists.txt:
* Configurations/FeatureDefines.xcconfig:
* GNUmakefile.list.am:
* WebCore.xcodeproj/project.pbxproj:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSParser.cpp:
(WebCore::isSimpleLengthPropertyID):
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseShapeProperty):
* css/CSSPropertyNames.in:
* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):
(WebCore::StyleResolver::loadPendingImages):
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* rendering/LayoutState.cpp:
(WebCore::LayoutState::LayoutState):
* rendering/LayoutState.h:
(WebCore::LayoutState::LayoutState):
(WebCore::LayoutState::shapeInsideInfo): Deleted.
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleDidChange):
(WebCore::RenderBlock::imageChanged):
(WebCore::RenderBlock::preparePaginationBeforeBlockLayout):
(WebCore::RenderBlock::relayoutShapeDescendantIfMoved): Deleted.
(WebCore::RenderBlock::logicalOffsetFromShapeAncestorContainer): Deleted.
(WebCore::RenderBlock::updateShapeInsideInfoAfterStyleChange): Deleted.
(WebCore::RenderBlock::ensureShapeInsideInfo): Deleted.
(WebCore::RenderBlock::shapeInsideInfo): Deleted.
(WebCore::RenderBlock::setShapeInsideInfo): Deleted.
(WebCore::RenderBlock::markShapeInsideDescendantsForLayout): Deleted.
(WebCore::RenderBlock::layoutShapeInsideInfo): Deleted.
(WebCore::shapeInfoRequiresRelayout): Deleted.
(WebCore::RenderBlock::computeShapeSize): Deleted.
(WebCore::RenderBlock::updateShapesBeforeBlockLayout): Deleted.
(WebCore::RenderBlock::updateShapesAfterBlockLayout): Deleted.
(WebCore::RenderBlock::prepareShapesAndPaginationBeforeBlockLayout): Deleted.
* rendering/RenderBlock.h:
(WebCore::RenderBlock::allowsShapeInsideInfoSharing): Deleted.
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutBlock):
(WebCore::RenderBlockFlow::layoutBlockChild):
(WebCore::RenderBlockFlow::computeLogicalLocationForFloat):
* rendering/RenderBlockFlow.h:
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlockFlow::computeInlineDirectionPositionsForLine):
(WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange):
(WebCore::constructBidiRunsForLine): Deleted.
(WebCore::pushShapeContentOverflowBelowTheContentBox): Deleted.
(WebCore::RenderBlockFlow::updateShapeAndSegmentsForCurrentLine): Deleted.
(WebCore::RenderBlockFlow::updateShapeAndSegmentsForCurrentLineInFlowThread): Deleted.
(WebCore::adjustLogicalLineTop): Deleted.
(WebCore::RenderBlockFlow::adjustLogicalLineTopAndLogicalHeightIfNeeded): Deleted.
* rendering/RenderDeprecatedFlexibleBox.cpp:
(WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
* rendering/RenderElement.cpp:
(WebCore::RenderElement::~RenderElement):
(WebCore::RenderElement::initializeStyle):
(WebCore::RenderElement::setStyle):
* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock):
* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::layoutBlock):
* rendering/RenderNamedFlowFragment.cpp:
(WebCore::RenderNamedFlowFragment::createStyle):
* rendering/RenderView.h:
* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::canUseFor):
* rendering/line/BreakingContextInlineHeaders.h:
(WebCore::BreakingContext::handleText):
(WebCore::BreakingContext::handleEndOfLine):
(WebCore::updateSegmentsForShapes): Deleted.
* rendering/line/LineBreaker.cpp:
(WebCore::LineBreaker::nextLineBreak):
* rendering/line/LineWidth.cpp:
(WebCore::LineWidth::LineWidth):
(WebCore::LineWidth::updateAvailableWidth):
(WebCore::LineWidth::wrapNextToShapeOutside):
(WebCore::LineWidth::fitBelowFloats):
(WebCore::LineWidth::updateLineSegment): Deleted.
(WebCore::LineWidth::updateCurrentShapeSegment): Deleted.
* rendering/line/LineWidth.h:
* rendering/shapes/ShapeInsideInfo.cpp: Removed.
* rendering/shapes/ShapeInsideInfo.h: Removed.
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::changeRequiresLayout):
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):
* rendering/style/StyleRareNonInheritedData.h:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Tools:

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

* fast/regions/shape-inside/shape-inside-on-additional-regions-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-additional-regions.html: Removed.
* fast/regions/shape-inside/shape-inside-on-first-region-block-content-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-first-region-block-content.html: Removed.
* fast/regions/shape-inside/shape-inside-on-first-region-inline-content-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-first-region-inline-content.html: Removed.
* fast/regions/shape-inside/shape-inside-on-multiple-autoheight-regions-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-multiple-autoheight-regions.html: Removed.
* fast/regions/shape-inside/shape-inside-on-multiple-regions-bottom-adjustment-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-multiple-regions-bottom-adjustment.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-basic-overflow-shape-top-offset-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-basic-overflow-shape-top-offset.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-overflow-bottom-positioned-multiple-shapes-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-overflow-bottom-positioned-multiple-shapes.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-overflow-multiple-shapes-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-overflow-multiple-shapes.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-polygon-with-adjustment-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-block-content-polygon-with-adjustment.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-overflow-bottom-positioned-multiple-shapes-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-overflow-bottom-positioned-multiple-shapes.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-overflow-multiple-shapes-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-overflow-multiple-shapes.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-polygon-with-adjustment-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content-polygon-with-adjustment.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions-inline-content.html: Removed.
* fast/regions/shape-inside/shape-inside-on-regions.html: Removed.
* fast/regions/shape-inside/shape-inside-on-second-region-block-content-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-second-region-block-content.html: Removed.
* fast/regions/shape-inside/shape-inside-on-second-region-inline-content-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html: Removed.
* fast/regions/shape-inside/shape-inside-recursive-layout-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-recursive-layout.html: Removed.
* fast/regions/shape-inside/shape-inside-with-region-borders-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-with-region-borders.html: Removed.
* fast/regions/shape-inside/shape-inside-with-region-padding-expected.html: Removed.
* fast/regions/shape-inside/shape-inside-with-region-padding.html: Removed.
* fast/shapes/css-shapes-disabled-expected.txt:
* fast/shapes/css-shapes-disabled.html:
* fast/shapes/css-shapes-enabled-expected.txt:
* fast/shapes/css-shapes-enabled.html:
* fast/shapes/parsing/parsing-shape-inside-expected.txt: Removed.
* fast/shapes/parsing/parsing-shape-inside.html: Removed.
* fast/shapes/parsing/parsing-shape-lengths-expected.txt:
* fast/shapes/parsing/parsing-shape-lengths.html:
* fast/shapes/parsing/parsing-shape-padding-expected.txt: Removed.
* fast/shapes/parsing/parsing-shape-padding.html: Removed.
* fast/shapes/parsing/parsing-test-utils.js:
* fast/shapes/resources/multi-segment-polygon.js: Removed.
* fast/shapes/resources/simple-polygon.js: Removed.
* fast/shapes/resources/simple-rectangle.js: Removed.
* fast/shapes/resources/svg-shape-001.svg: Removed.
* fast/shapes/shape-inside/floats/shape-inside-floats-simple-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-floats-simple.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-left-triangle-block-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-left-triangle-block-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-left-triangle-inline-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-left-triangle-inline-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle-block-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle-block-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle-inline-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle-inline-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-lower-right-triangle.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-block-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-block-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-inline-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-inline-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-vertical-lr-inline-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-left-triangle-vertical-lr-inline-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-right-triangle-block-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-right-triangle-block-content.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-right-triangle-inline-content-expected.html: Removed.
* fast/shapes/shape-inside/floats/shape-inside-left-float-in-upper-right-triangle-inline-content.html: Removed.
* fast/shapes/shape-inside/shape-inside-animation-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-animation.html: Removed.
* fast/shapes/shape-inside/shape-inside-bottom-edge-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-bottom-edge.html: Removed.
* fast/shapes/shape-inside/shape-inside-box-sizing-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-box-sizing.html: Removed.
* fast/shapes/shape-inside/shape-inside-calc-crash-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-calc-crash.html: Removed.
* fast/shapes/shape-inside/shape-inside-circle-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-circle-padding-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-circle-padding.html: Removed.
* fast/shapes/shape-inside/shape-inside-circle.html: Removed.
* fast/shapes/shape-inside/shape-inside-coincident-vertices-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-coincident-vertices.html: Removed.
* fast/shapes/shape-inside/shape-inside-collinear-vertices-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-collinear-vertices.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-complex-polygon-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-content-box-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-content-box.html: Removed.
* fast/shapes/shape-inside/shape-inside-counterclockwise-polygon-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-counterclockwise-polygon.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-nested-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-nested.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-shape-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-shape.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-text-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-dynamic-text.html: Removed.
* fast/shapes/shape-inside/shape-inside-ellipse-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-ellipse-padding-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-ellipse-padding.html: Removed.
* fast/shapes/shape-inside/shape-inside-ellipse.html: Removed.
* fast/shapes/shape-inside/shape-inside-empty-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-empty-polygon-crash-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-empty-polygon-crash.html: Removed.
* fast/shapes/shape-inside/shape-inside-empty-segments-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-empty-segments.html: Removed.
* fast/shapes/shape-inside/shape-inside-empty.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-001-horizontal-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-001-horizontal.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-001-vertical-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-001-vertical.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-crash-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-crash.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-reflex-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-first-fit-reflex.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-005-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-005.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-set-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-image-set.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks-dynamic-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks-dynamic.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks-vertical-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks-vertical.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-blocks.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-multiple-segments-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-offset-block-children-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-offset-block-children.html: Removed.
* fast/shapes/shape-inside/shape-inside-on-nested-container-with-unresolved-height-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-on-nested-container-with-unresolved-height.html: Removed.
* fast/shapes/shape-inside/shape-inside-outside-shape-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-outside-shape.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow-fixed-dimensions-block-content-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow-fixed-dimensions-block-content.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow-fixed-dimensions-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow-fixed-dimensions.html: Removed.
* fast/shapes/shape-inside/shape-inside-overflow.html: Removed.
* fast/shapes/shape-inside/shape-inside-partial-fill-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-partial-fill-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-partial-fill-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-partial-fill-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-percentage-auto-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-percentage-auto.html: Removed.
* fast/shapes/shape-inside/shape-inside-percentage-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-percentage.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-layout-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-layout.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-002-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-003-expected.txt: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-padding-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-rectangle-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-rectangle.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-rounded-first-fit-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-rounded-first-fit.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-zoom-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-polygon-zoom.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-rectilinear-polygon-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-recursive-layout-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-recursive-layout.html: Removed.
* fast/shapes/shape-inside/shape-inside-regular-polygon16-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-regular-polygon16.html: Removed.
* fast/shapes/shape-inside/shape-inside-regular-polygon8-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-regular-polygon8.html: Removed.
* fast/shapes/shape-inside/shape-inside-shape-logical-top-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-shape-logical-top.html: Removed.
* fast/shapes/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-001-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-001.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-002-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-002.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-003-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-003.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-004-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-simple-polygon-004.html: Removed.
* fast/shapes/shape-inside/shape-inside-subpixel-rectangle-top-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-subpixel-rectangle-top.html: Removed.
* fast/shapes/shape-inside/shape-inside-subsequent-blocks-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-subsequent-blocks.html: Removed.
* fast/shapes/shape-inside/shape-inside-subtract-intervals-crash-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-subtract-intervals-crash.html: Removed.
* fast/shapes/shape-inside/shape-inside-text-align-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-text-align.html: Removed.
* fast/shapes/shape-inside/shape-inside-text-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-text.html: Removed.
* fast/shapes/shape-inside/shape-inside-vertical-text-expected.html: Removed.
* fast/shapes/shape-inside/shape-inside-vertical-text.html: Removed.
* platform/gtk/TestExpectations:
* platform/win/TestExpectations:

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

7 years agoAvoid duplicate size checks when creating empty image
bfulgham@apple.com [Wed, 26 Mar 2014 17:02:15 +0000 (17:02 +0000)]
Avoid duplicate size checks when creating empty image
https://bugs.webkit.org/show_bug.cgi?id=130730

Reviewed by Dean Jackson.

Merged from Blink (patch by ch.dumez@samsung.com):
https://chromium.googlesource.com/chromium/blink/+/4861a71bc1f284fc97417f405ab7d08dc6947b88
http://crbug.com/190633011

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::createEmptyImageData): Don't perform overflow calculation twice.

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

7 years ago[CSS Grid Layout] getComputedStyle() must return the specified value for positioning...
svillar@igalia.com [Wed, 26 Mar 2014 16:45:21 +0000 (16:45 +0000)]
[CSS Grid Layout] getComputedStyle() must return the specified value for positioning properties
https://bugs.webkit.org/show_bug.cgi?id=130010

Reviewed by Darin Adler.

Source/WebCore:

According to the specs
http://dev.w3.org/csswg/css-grid/#property-index and also to
http://lists.w3.org/Archives/Public/www-style/2014Mar/0162.html
the function getComputedStyle() must return the specified values
for positioning properties, i.e, grid-{columns|rows}-{start|end}.

We were in some cases, adjusting the style in the StyleResolver
(for example with two opposing spans) something that is now done
in the RenderGrid because we cannot alter the original style.

The code moved to the renderer became more self explanatory and it
now supports named grid areas with names ending in "-start" and
"-end".

Test: fast/css-grid-layout/named-grid-lines-with-named-grid-areas-get-set.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::adjustRenderStyle):
(WebCore::gridLineDefinedBeforeGridArea): Deleted.
(WebCore::StyleResolver::adjustNamedGridItemPosition): Deleted.
(WebCore::StyleResolver::adjustGridItemPosition): Deleted.
* css/StyleResolver.h:
* rendering/RenderGrid.cpp:
(WebCore::isColumnSide):
(WebCore::RenderGrid::explicitGridSizeForSide):
(WebCore::gridLineDefinedBeforeGridArea):
(WebCore::setNamedLinePositionIfDefinedBeforeArea):
(WebCore::RenderGrid::adjustNamedGridItemPosition):
(WebCore::RenderGrid::adjustGridPositionsFromStyle):
(WebCore::RenderGrid::resolveGridPositionsFromStyle):
(WebCore::RenderGrid::resolveNamedGridLinePositionFromStyle):
(WebCore::RenderGrid::resolveNamedGridLinePositionAgainstOppositePosition):
* rendering/RenderGrid.h:
* rendering/style/GridPosition.h:
(WebCore::GridPosition::setAutoPosition): New helper function.

LayoutTests:

Updated the return value of getComputedStyle(), it must be always
the specified value.

Added also a new test that verifies the resolution of names in
grid positioning properties, both grid area names and grid line
names (including any combination of the two).

* fast/css-grid-layout/grid-item-area-get-set-expected.txt:
* fast/css-grid-layout/grid-item-area-get-set.html:
* fast/css-grid-layout/grid-item-column-row-get-set-expected.txt:
* fast/css-grid-layout/grid-item-column-row-get-set.html:
* fast/css-grid-layout/grid-item-end-after-get-set-expected.txt:
* fast/css-grid-layout/grid-item-end-after-get-set.html:
* fast/css-grid-layout/grid-item-spanning-resolution-expected.txt:
* fast/css-grid-layout/grid-item-spanning-resolution.html:
* fast/css-grid-layout/grid-item-start-before-get-set-expected.txt:
* fast/css-grid-layout/grid-item-start-before-get-set.html:
* fast/css-grid-layout/named-grid-lines-with-named-grid-areas-get-set-expected.txt: Added.
* fast/css-grid-layout/named-grid-lines-with-named-grid-areas-get-set.html: Added.

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

7 years agoFix the iOS build.
simon.fraser@apple.com [Wed, 26 Mar 2014 16:26:48 +0000 (16:26 +0000)]
Fix the iOS build.

* WebCore.exp.in:

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

7 years agoUpdate LayoutTests to depend on load events rather than on starting loads synchronously
darin@apple.com [Wed, 26 Mar 2014 16:19:21 +0000 (16:19 +0000)]
Update LayoutTests to depend on load events rather than on starting loads synchronously
https://bugs.webkit.org/show_bug.cgi?id=130776

Reviewed by Antti Koivisto.

These tests were depending on loads starting synchronously. Instead, they should simply
depend on proper load event behavior.

* dom/html/level1/core/selfhtml.js:
(startTest): Call waitUntilDone immediately, not when the test starts.
* dom/html/level2/core/selfhtml.js:
(startTest): Ditto.
* dom/html/level2/events/selfhtml.js:
(startTest): Ditto.
* dom/html/level2/html/selfhtml.js:
(startTest): Ditto.

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

7 years ago[iOS WebKit2] Flush all surfaces after painting into all of them, instead of after...
timothy_horton@apple.com [Wed, 26 Mar 2014 15:25:28 +0000 (15:25 +0000)]
[iOS WebKit2] Flush all surfaces after painting into all of them, instead of after painting into each one
https://bugs.webkit.org/show_bug.cgi?id=130768
<rdar://problem/16421471>

Reviewed by Simon Fraser.

* Shared/mac/RemoteLayerBackingStore.h:
Add flush(), which synchronously flushes painting operations on the underlying backing store.
Factor clearBackingStore() out of ensureBackingStore/display, which releases our reference to underlying backing store.
Add two members for storing the back surface and front buffer context until flush() is called.
        - We need to keep the back surface alive because the CGImageRef created from it is referenced by
        the front surface's drawing queue, and won't be freed until said queue is flushed. If we release
        the back surface (and its associated CGContextRef) *before* the CGImageRef is freed, we will
        do an expensive readback of the surface.
        - When not using accelerated drawing, we need to keep the front buffer's CGContextRef around
        until the flush occurs so that we can avoid re-creating it in order to perform the flush. This
        happens automatically in the accelerated drawing case via WebCore::IOSurface.

* Shared/mac/RemoteLayerBackingStore.mm:
(RemoteLayerBackingStore::ensureBackingStore):
(RemoteLayerBackingStore::clearBackingStore):
(RemoteLayerBackingStore::display):
Factor clearBackingStore() out of ensureBackingStore() and display().
Update a comment about the above performance gotcha.
Store the current back surface/front buffer context.

(RemoteLayerBackingStore::drawInContext):
Don't flush the context immediately after painting.

(RemoteLayerBackingStore::applyBackingStoreToLayer):
Move things around to reduce duplicated code.

(RemoteLayerBackingStore::flush):
Flush the current front surface/buffer's context.
Clear the new pending-flush members.

* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
(WebKit::flushBackingStoreChangesInTransaction):
(WebKit::RemoteLayerTreeDrawingArea::flushLayers):
Crawl through all of the valid changed backing stores in the transaction and flush them.
Remove a completely useless assertion.

* platform/graphics/cocoa/IOSurface.h:
Add a non-ensuring platformContext() getter.

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

7 years agoWeb Inspector: AXI: crash when inspecting "bar" text node in getAccessibilityProperti...
commit-queue@webkit.org [Wed, 26 Mar 2014 15:18:30 +0000 (15:18 +0000)]
Web Inspector: AXI: crash when inspecting "bar" text node in getAccessibilityPropertiesForNode layout test
https://bugs.webkit.org/show_bug.cgi?id=130290

Patch by James Craig <jcraig@apple.com> on 2014-03-26
Reviewed by Timothy Hatcher.

Source/WebCore:

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

Fixing regression from r165590. http://webkit.org/b/129779
Verify isElementNode to avoid calling toElement on document or text nodes.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):

LayoutTests:

Updating test to include properties for document node.

* inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
* inspector-protocol/dom/getAccessibilityPropertiesForNode.html:

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

7 years agoReplace DEPRECATED_DEFINE_STATIC_LOCAL by static NeverDestroyed<T> in editing/
svillar@igalia.com [Wed, 26 Mar 2014 15:12:48 +0000 (15:12 +0000)]
Replace DEPRECATED_DEFINE_STATIC_LOCAL by static NeverDestroyed<T> in editing/
https://bugs.webkit.org/show_bug.cgi?id=130722

Reviewed by Antti Koivisto.

* editing/AlternativeTextController.cpp:
(WebCore::markerTypesForAutocorrection):
(WebCore::markerTypesForReplacement):
(WebCore::markerTypesForAppliedDictationAlternative):
* editing/EditingStyle.cpp:
(WebCore::htmlElementEquivalents):
(WebCore::htmlAttributeEquivalents):
* editing/FormatBlockCommand.cpp:
(WebCore::isElementForFormatBlock):
* editing/RemoveFormatCommand.cpp:
(WebCore::isElementForRemoveFormatCommand):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::isProhibitedParagraphChild):
* editing/atk/FrameSelectionAtk.cpp:
(WebCore::maybeEmitTextFocusChange):

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

7 years agoAdd a new type of scrolling tree node for overflow scrolling
simon.fraser@apple.com [Wed, 26 Mar 2014 15:09:03 +0000 (15:09 +0000)]
Add a new type of scrolling tree node for overflow scrolling
https://bugs.webkit.org/show_bug.cgi?id=130763

Reviewed by Tim Horton.

Prepare for overflow scrolling via the scrolling tree by adding
a new scrolling node type for overflow:scroll nodes. Mostly
this is a new ScrollingNodeType that gets mapped to the same
scrolling state nodes and scrolling nodes, but iOS creates
state and scrolling nodes specific to overflow:scroll.

Change the type checking on nodes to use virtual functions instead
of just checking the node type, to allow the macros to work with
the new scrolling node type.

Source/WebCore:

* WebCore.exp.in:
* page/scrolling/AsyncScrollingCoordinator.cpp:
(WebCore::AsyncScrollingCoordinator::ensureRootStateNodeForFrameView):
* page/scrolling/ScrollingCoordinator.h:
* page/scrolling/ScrollingStateFixedNode.h:
* page/scrolling/ScrollingStateNode.h:
(WebCore::ScrollingStateNode::isFixedNode):
(WebCore::ScrollingStateNode::isStickyNode):
(WebCore::ScrollingStateNode::isScrollingNode):
* page/scrolling/ScrollingStateScrollingNode.cpp:
(WebCore::ScrollingStateScrollingNode::create):
(WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode):
* page/scrolling/ScrollingStateScrollingNode.h:
* page/scrolling/ScrollingStateStickyNode.h:
* page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::attachNode):
* page/scrolling/ScrollingTree.cpp:
(WebCore::ScrollingTree::viewportChangedViaDelegatedScrolling):
(WebCore::ScrollingTree::updateTreeFromStateNode):
* page/scrolling/ScrollingTreeNode.h:
(WebCore::ScrollingTreeNode::isFixedNode):
(WebCore::ScrollingTreeNode::isStickyNode):
(WebCore::ScrollingTreeNode::isScrollingNode):
* page/scrolling/ScrollingTreeScrollingNode.cpp:
(WebCore::ScrollingTreeScrollingNode::ScrollingTreeScrollingNode):
* page/scrolling/ScrollingTreeScrollingNode.h:
* page/scrolling/ios/ScrollingCoordinatorIOS.mm:
(WebCore::ScrollingCoordinatorIOS::createScrollingTreeNode):
* page/scrolling/ios/ScrollingTreeScrollingNodeIOS.h:
* page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm:
(WebCore::ScrollingTreeScrollingNodeIOS::create):
(WebCore::ScrollingTreeScrollingNodeIOS::ScrollingTreeScrollingNodeIOS):
* page/scrolling/mac/ScrollingCoordinatorMac.mm:
(WebCore::ScrollingCoordinatorMac::createScrollingTreeNode):
* page/scrolling/mac/ScrollingTreeFixedNode.h:
* page/scrolling/mac/ScrollingTreeScrollingNodeMac.h:
* page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
(WebCore::ScrollingTreeScrollingNodeMac::create):
(WebCore::ScrollingTreeScrollingNodeMac::ScrollingTreeScrollingNodeMac):
* page/scrolling/mac/ScrollingTreeStickyNode.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateScrollCoordinatedLayer):

Source/WebKit2:

* Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
(WebKit::encodeNodeAndDescendants):
(WebKit::RemoteScrollingCoordinatorTransaction::decode):
* UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
(WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers):
* UIProcess/Scrolling/RemoteScrollingTree.cpp:
(WebKit::RemoteScrollingTree::createNode):
* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.h: Copied from Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.h.
* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: Copied from Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.h.
(WebKit::ScrollingTreeOverflowScrollingNodeIOS::create):
(WebKit::ScrollingTreeOverflowScrollingNodeIOS::ScrollingTreeOverflowScrollingNodeIOS):
(WebKit::ScrollingTreeOverflowScrollingNodeIOS::~ScrollingTreeOverflowScrollingNodeIOS):
* UIProcess/ios/RemoteScrollingCoordinatorProxyIOS.mm:
(WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers):
* WebKit2.xcodeproj/project.pbxproj:

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

7 years agoRename hasFastArrayStorage to be more appropriate
dbatyai.u-szeged@partner.samsung.com [Wed, 26 Mar 2014 15:08:12 +0000 (15:08 +0000)]
Rename hasFastArrayStorage to be more appropriate
https://bugs.webkit.org/show_bug.cgi?id=130773

Reviewed by Filip Pizlo.

* dfg/DFGArrayMode.cpp:
(JSC::DFG::ArrayMode::alreadyChecked):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGWatchpointCollectionPhase.cpp:
(JSC::DFG::WatchpointCollectionPhase::handle):
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::compileNewArray):
(JSC::FTL::LowerDFGToLLVM::compileNewArrayBuffer):
(JSC::FTL::LowerDFGToLLVM::compileNewArrayWithSize):
* runtime/ButterflyInlines.h:
(JSC::Butterfly::unshift):
(JSC::Butterfly::shift):
* runtime/IndexingHeaderInlines.h:
(JSC::IndexingHeader::preCapacity):
* runtime/IndexingType.h:
(JSC::hasArrayStorage):
(JSC::hasAnyArrayStorage):
(JSC::hasFastArrayStorage): Deleted.
* runtime/JSArray.cpp:
(JSC::JSArray::sortVector):
(JSC::JSArray::compactForSorting):
* runtime/JSArray.h:
(JSC::JSArray::create):
(JSC::JSArray::tryCreateUninitialized):
* runtime/JSGlobalObject.cpp:
* runtime/JSObject.cpp:
(JSC::JSObject::putDirectIndexBeyondVectorLengthWithArrayStorage):
* runtime/JSObject.h:
(JSC::JSObject::ensureArrayStorage):
(JSC::JSObject::arrayStorage):
* runtime/StructureTransitionTable.h:
(JSC::newIndexingType):

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

7 years agoUnreviewed. Add myself as a committer.
k.gurpreet@webkit.org [Wed, 26 Mar 2014 15:03:04 +0000 (15:03 +0000)]
Unreviewed. Add myself as a committer.

* Scripts/webkitpy/common/config/contributors.json:

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

7 years ago[CSS Grid Layout] Prevent issues with checkLayout() in grid items
rego@igalia.com [Wed, 26 Mar 2014 11:11:53 +0000 (11:11 +0000)]
[CSS Grid Layout] Prevent issues with checkLayout() in grid items
https://bugs.webkit.org/show_bug.cgi?id=130770

Reviewed by Sergio Villar Senin.

When we use checkLayout() on a grid item, the results (PASS or FAIL
messages) are added as new auto-placed items in the grid. Which might
cause some unexpected behavior in the tests.

This patch modifies the related layout tests to use a different
container (usually the parent node of the grid) for the test results.
Avoiding any kind of interference with the grid code.

* fast/css-grid-layout/grid-item-addition-auto-placement-update.html:
  Use parent node of grid when checking grid items. Check layout of the
  whole grid instead of grid item.
* fast/css-grid-layout/grid-item-removal-auto-placement-update.html:
  Check layout of the whole grid instead of grid item.

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

7 years agorun-launcher is Perl script so use elsif and not elif
commit-queue@webkit.org [Wed, 26 Mar 2014 10:17:27 +0000 (10:17 +0000)]
run-launcher is Perl script so use elsif and not elif
https://bugs.webkit.org/show_bug.cgi?id=130771

Patch by Tomas Popela <tpopela@redhat.com> on 2014-03-26
Reviewed by Carlos Garcia Campos.

* Scripts/run-launcher:

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

7 years ago[ATK] Utilize new AtkValue interface coming in ATK 2.11.92
k.czech@samsung.com [Wed, 26 Mar 2014 10:16:46 +0000 (10:16 +0000)]
[ATK] Utilize new AtkValue interface coming in ATK 2.11.92
https://bugs.webkit.org/show_bug.cgi?id=130575

Reviewed by Mario Sanchez Prada.

Source/WebCore:

ATK 2.11.92 introduces some new API and deprecates an old one.
Adjust current implementation to meet requirements of the new API.

No new tests. Covered by existing ones.

* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::AXObjectCache::postPlatformNotification):
* accessibility/atk/WebKitAccessibleInterfaceValue.cpp:
(webkitAccessibleSetNewValue):
(webkitAccessibleGetIncrementValue):
(webkitAccessibleGetValueAndText):
(webkitAccessibleGetIncrement):
(webkitAccessibleSetValue):
(webkitAccessibleGetRange):
(webkitAccessibleValueSetCurrentValue):
(webkitAccessibleValueGetMinimumIncrement):
(webkitAccessibleValueInterfaceInit):

Tools:

Change ATK version to 2.11.92. Adjust current implementation.

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(AccessibilityUIElement::intValue):
(AccessibilityUIElement::minValue):
(AccessibilityUIElement::maxValue):
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::intValue):
(WTR::AccessibilityUIElement::minValue):
(WTR::AccessibilityUIElement::maxValue):
* efl/jhbuild.modules:
* gtk/jhbuild.modules:

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

7 years agoUnreviewed. Removing the remaining Automake cruft.
zandobersek@gmail.com [Wed, 26 Mar 2014 09:09:08 +0000 (09:09 +0000)]
Unreviewed. Removing the remaining Automake cruft.

Source/JavaScriptCore:

* GNUmakefile.list.am: Removed.

Source/WebCore:

* GNUmakefile.list.am: Removed.

Source/WebKit2:

* GNUmakefile.list.am: Removed.

Source/WTF:

* GNUmakefile.list.am: Removed.

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

7 years ago[GTK] The gnumake package is no longer needed in jhbuild
philn@webkit.org [Wed, 26 Mar 2014 07:33:08 +0000 (07:33 +0000)]
[GTK] The gnumake package is no longer needed in jhbuild
https://bugs.webkit.org/show_bug.cgi?id=130121

Reviewed by Martin Robinson.

For GTK build-webkit now relies on cmake and ninja/gnumake. Even
for a debug build cmake/system-gnumake worked just fine for me.

* gtk/jhbuild.modules: Removed gnumake.
* gtk/patches/make-3.82-arg-list-length.patch: Removed.
* gtk/patches/make-3.82-parallel-build.patch: Removed.

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

7 years agoBlog-files: combobox demo needs aria-expanded support
commit-queue@webkit.org [Wed, 26 Mar 2014 07:03:20 +0000 (07:03 +0000)]
Blog-files: combobox demo needs aria-expanded support
https://bugs.webkit.org/show_bug.cgi?id=130766

Patch by James Craig <jcraig@apple.com> on 2014-03-25
Reviewed by Chris Fleizach.

* blog-files/aria1.0/combobox_with_live_region_status.html: Added missing aria-expanded.

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

7 years agoiOS build fix. Add missing semicolon.
psolanki@apple.com [Wed, 26 Mar 2014 05:37:00 +0000 (05:37 +0000)]
iOS build fix. Add missing semicolon.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_addAttachmentForElement):

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

7 years agoSpeculative iOS build fix.
weinig@apple.com [Wed, 26 Mar 2014 04:22:52 +0000 (04:22 +0000)]
Speculative iOS build fix.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_addAttachmentForElement):

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

7 years ago[MSE] Duplicate 'seeked' events.
jer.noble@apple.com [Wed, 26 Mar 2014 04:16:53 +0000 (04:16 +0000)]
[MSE] Duplicate 'seeked' events.
https://bugs.webkit.org/show_bug.cgi?id=130754

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/media-source/media-source-duplicate-seeked.html

During certain seek operations, HTMLMediaElement::finishSeek() can be called re-entrantly due to
the ready state changing as a result of MediaSource::monitorSourceBuffers(). Move this call to the
end of finishSeek() after m_seeking has been cleared.

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

LayoutTests:

* media/media-source/media-source-duplicate-seeked-expected.txt: Added.
* media/media-source/media-source-duplicate-seeked.html: Added.

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

7 years agoArguments simplification phase should be fine with marking the arguments local itself...
fpizlo@apple.com [Wed, 26 Mar 2014 04:08:52 +0000 (04:08 +0000)]
Arguments simplification phase should be fine with marking the arguments local itself as an arguments alias
https://bugs.webkit.org/show_bug.cgi?id=130764
<rdar://problem/16304788>

Reviewed by Sam Weinig.

Being an arguments alias just means that your OSR exit recovery should attempt arguments
creation. This is true of arguments locals. We had special cases that tried to make it not
true of arguments locals. The only consequence of those special cases was to cause crashes
in case of arguments that are also captured variables (i.e. we have SlowArguments). This
change just removes those special cases.

This change means that the FTL will now see SetLocals with a FlushedArguments format.
Previously you wouldn't see them because previously only non-captured variable would be
arguments aliases, and non-captured variables get completely SSAified - i.e. no SetLocals
left. Adding handling for FlushedArguments is a benign and simple change since its
behavior is identical to FlushedJSValue for that code's purposes.

* dfg/DFGArgumentsSimplificationPhase.cpp:
(JSC::DFG::ArgumentsSimplificationPhase::run):
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::compileSetLocal):
* tests/stress/captured-arguments-variable.js: Added.
(foo):
(noInline):

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

7 years agoAdd illustrations for a potential blog post
benjamin@webkit.org [Wed, 26 Mar 2014 03:35:30 +0000 (03:35 +0000)]
Add illustrations for a potential blog post

First version, let see how that works out.

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-25

* blog-files/css-jit-introduction: Added.
* blog-files/css-jit-introduction/clicktostart.js: Added.
* blog-files/css-jit-introduction/css-jit-illustration.html: Added.
* blog-files/css-jit-introduction/html5-single-page-microbenchmark.html: Added.
* blog-files/css-jit-introduction/old-selectorchecker-illustration.html: Added.
* blog-files/css-jit-introduction/timing-illustration-eight-run.svg: Added.
* blog-files/css-jit-introduction/timing-illustration-five-run.svg: Added.
* blog-files/css-jit-introduction/timing-illustration-one-run.svg: Added.

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

7 years agoWeb Inspector: AXI: add support for aria-activedescendant and reconcile UI/testing...
commit-queue@webkit.org [Wed, 26 Mar 2014 03:03:39 +0000 (03:03 +0000)]
Web Inspector: AXI: add support for aria-activedescendant and reconcile UI/testing with parentNode
https://bugs.webkit.org/show_bug.cgi?id=130712

Patch by James Craig <jcraig@apple.com> on 2014-03-25
Reviewed by Timothy Hatcher.

Source/WebCore:

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

Support for @aria-activedescendant; code reuse changes w/ parentNode and activeDescendantNode.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
* inspector/protocol/DOM.json:

Source/WebInspectorUI:

Support for @aria-activedescendant; code reuse changes w/ parentNode and activeDescendantNode.

* Localizations/en.lproj/localizedStrings.js:
* UserInterface/Models/DOMNode.js:
* UserInterface/Views/DOMNodeDetailsSidebarPanel.js:

LayoutTests:

Support for @aria-activedescendant; code reuse changes w/ parentNode and activeDescendantNode.

* inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
* inspector-protocol/dom/getAccessibilityPropertiesForNode.html:

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

7 years agoAdd HeapInlines
mhahnenberg@apple.com [Wed, 26 Mar 2014 02:37:51 +0000 (02:37 +0000)]
Add HeapInlines
https://bugs.webkit.org/show_bug.cgi?id=130759

Reviewed by Filip Pizlo.

* GNUmakefile.list.am:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.xcodeproj/project.pbxproj:
* heap/Heap.cpp:
(JSC::MarkedBlockSnapshotFunctor::MarkedBlockSnapshotFunctor):
(JSC::MarkedBlockSnapshotFunctor::operator()):
* heap/Heap.h: Also reindented while we're here.
(JSC::Heap::writeBarrierBuffer):
(JSC::Heap::vm):
(JSC::Heap::objectSpace):
(JSC::Heap::machineThreads):
(JSC::Heap::operationInProgress):
(JSC::Heap::allocatorForObjectWithoutDestructor):
(JSC::Heap::allocatorForObjectWithNormalDestructor):
(JSC::Heap::allocatorForObjectWithImmortalStructureDestructor):
(JSC::Heap::storageAllocator):
(JSC::Heap::notifyIsSafeToCollect):
(JSC::Heap::isSafeToCollect):
(JSC::Heap::handleSet):
(JSC::Heap::handleStack):
(JSC::Heap::lastFullGCLength):
(JSC::Heap::lastEdenGCLength):
(JSC::Heap::increaseLastFullGCLength):
(JSC::Heap::sizeBeforeLastEdenCollection):
(JSC::Heap::sizeAfterLastEdenCollection):
(JSC::Heap::sizeBeforeLastFullCollection):
(JSC::Heap::sizeAfterLastFullCollection):
(JSC::Heap::jitStubRoutines):
(JSC::Heap::isDeferred):
(JSC::Heap::structureIDTable):
(JSC::Heap::removeCodeBlock):
* heap/HeapInlines.h: Added.
(JSC::Heap::shouldCollect):
(JSC::Heap::isBusy):
(JSC::Heap::isCollecting):
(JSC::Heap::heap):
(JSC::Heap::isLive):
(JSC::Heap::isInRememberedSet):
(JSC::Heap::isMarked):
(JSC::Heap::testAndSetMarked):
(JSC::Heap::setMarked):
(JSC::Heap::isWriteBarrierEnabled):
(JSC::Heap::writeBarrier):
(JSC::Heap::reportExtraMemoryCost):
(JSC::Heap::forEachProtectedCell):
(JSC::Heap::forEachCodeBlock):
(JSC::Heap::allocateWithNormalDestructor):
(JSC::Heap::allocateWithImmortalStructureDestructor):
(JSC::Heap::allocateWithoutDestructor):
(JSC::Heap::tryAllocateStorage):
(JSC::Heap::tryReallocateStorage):
(JSC::Heap::ascribeOwner):
(JSC::Heap::blockAllocator):
(JSC::Heap::releaseSoon):
(JSC::Heap::incrementDeferralDepth):
(JSC::Heap::decrementDeferralDepth):
(JSC::Heap::collectIfNecessaryOrDefer):
(JSC::Heap::decrementDeferralDepthAndGCIfNeeded):
(JSC::Heap::markListSet):
* runtime/JSCInlines.h:

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

7 years agoWhen the mouse is upped after dragged out of shadowDOM, it should lose :active.
commit-queue@webkit.org [Wed, 26 Mar 2014 02:30:27 +0000 (02:30 +0000)]
When the mouse is upped after dragged out of shadowDOM, it should lose :active.
https://bugs.webkit.org/show_bug.cgi?id=130660

Patch by Sanghyup Lee <sh53.lee@samsung.com> on 2014-03-25
Reviewed by Darin Adler.

Source/WebCore:

This caused a regression after r165037.
When we have to clear :active style of shadow DOM, we should clear host's style.
This patch replaces parentElement() by parentOrShadowHostElement().

* dom/Document.cpp:
(WebCore::Document::updateHoverActiveState):

LayoutTests:

* fast/css/hover-active-drag-expected.txt: Added a test for textarea.
* fast/css/hover-active-drag.html: Updated.

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

7 years agoDFG::ByteCodeParser::SetMode should distinguish between setting immediately without...
fpizlo@apple.com [Wed, 26 Mar 2014 02:14:40 +0000 (02:14 +0000)]
DFG::ByteCodeParser::SetMode should distinguish between setting immediately without a flush and setting immediately with a flush
https://bugs.webkit.org/show_bug.cgi?id=130760

Reviewed by Mark Hahnenberg.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::setLocal):
(JSC::DFG::ByteCodeParser::setArgument):
(JSC::DFG::ByteCodeParser::handleInlining):
(JSC::DFG::ByteCodeParser::parseBlock):
* tests/stress/assign-argument-in-inlined-call.js: Added.
(f1):
(getF2Arguments):
(f2):
(f3):
* tests/stress/assign-captured-argument-in-inlined-call.js: Added.
(f1):
(f2):
(f3):

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

7 years agoFix a failing API test on Mountain Lion and remove temporary debug logging.
aestes@apple.com [Wed, 26 Mar 2014 01:47:26 +0000 (01:47 +0000)]
Fix a failing API test on Mountain Lion and remove temporary debug logging.

* TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
(-[DownloadDelegate _download:didReceiveData:]):
(-[DownloadDelegate _downloadDidFinish:]):

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

7 years ago[Mac] Always retry a failed MediaDocument as a PluginDocument
eric.carlson@apple.com [Wed, 26 Mar 2014 00:57:25 +0000 (00:57 +0000)]
[Mac] Always retry a failed MediaDocument as a PluginDocument
https://bugs.webkit.org/show_bug.cgi?id=130742

Reviewed by Jer Noble.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaLoadingFailedFatally): If the element is in a media document,
    tell it that loading failed so it can retry as a plug-in.

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

7 years agoReplace HTMLConverter::_stringForNode by propertyValueForNode
rniwa@webkit.org [Wed, 26 Mar 2014 00:49:05 +0000 (00:49 +0000)]
Replace HTMLConverter::_stringForNode by propertyValueForNode
https://bugs.webkit.org/show_bug.cgi?id=130711

Reviewed by Sam Weinig.

Replaced all calls to HTMLConverter::_stringForNode by that to propertyValueForNode.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_computedAttributesForElement):
(HTMLConverter::_addAttachmentForElement):
(HTMLConverter::_enterElement):
(HTMLConverter::_addTableForElement):
(HTMLConverter::_addTableCellForElement):
(HTMLConverter::_processElement):
(HTMLConverter::_exitElement):
(HTMLConverter::_processText):
(HTMLConverter::_traverseNode):
(HTMLConverter::_traverseFooterNode):
(HTMLConverter::_stringForNode): Deleted.

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

7 years agoAttempt to fix iOS build after r166261.
psolanki@apple.com [Wed, 26 Mar 2014 00:39:55 +0000 (00:39 +0000)]
Attempt to fix iOS build after r166261.

* WebCore.xcodeproj/project.pbxproj: Make SystemSleepListener.h a private header.

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

7 years agoRemove PLATFORM(IOS) from NetworkProcessMac.mm
psolanki@apple.com [Wed, 26 Mar 2014 00:31:55 +0000 (00:31 +0000)]
Remove PLATFORM(IOS) from NetworkProcessMac.mm
https://bugs.webkit.org/show_bug.cgi?id=130751

Reviewed by Alexey Proskuryakov.

Code in NetworkProcessMac.mm is guarded by PLATFORM(MAC) and so is not compiled on iOS.
Having PLATFORM(IOS) code in this file is unnecessary and confusing.

* NetworkProcess/mac/NetworkProcessMac.mm:
(WebKit::NetworkProcess::initializeProcessName):
(WebKit::overrideSystemProxies):
(WebKit::NetworkProcess::platformInitializeNetworkProcess):

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

7 years agoAdd a UI delegate callback for handling window.open
andersca@apple.com [Wed, 26 Mar 2014 00:01:09 +0000 (00:01 +0000)]
Add a UI delegate callback for handling window.open
https://bugs.webkit.org/show_bug.cgi?id=130757

Reviewed by Sam Weinig.

* UIProcess/API/Cocoa/WKUIDelegate.h:
* UIProcess/API/Cocoa/WKWebView.mm:
* UIProcess/API/Cocoa/WKWebViewInternal.h:
* UIProcess/Cocoa/UIClient.h:
* UIProcess/Cocoa/UIClient.mm:
(WebKit::UIClient::setDelegate):
(WebKit::UIClient::createNewPage):

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

7 years agoMove stopLoading: back for now.
andersca@apple.com [Wed, 26 Mar 2014 00:00:17 +0000 (00:00 +0000)]
Move stopLoading: back for now.

* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView stopLoading:]):

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

7 years ago[iOS] Enable caption support in full screen.
jer.noble@apple.com [Tue, 25 Mar 2014 23:43:13 +0000 (23:43 +0000)]
[iOS] Enable caption support in full screen.
https://bugs.webkit.org/show_bug.cgi?id=130603

Reviewed by Eric Carlson.

Add TextTrackRepresentation support to MediaPlayerPrivateAVFoundationObjC.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer): Add the m_textTrackRepresenationLayer if present.
(WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenLayer): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::requiresTextTrackRepresentation): True, if a m_videoFullscreenLayer is present.
(WebCore::MediaPlayerPrivateAVFoundationObjC::setTextTrackRepresentation): Remove the old, and add the new m_textTrackRepresenationLayer.

Make the text track container a stacking context for painting purposes.
* Modules/mediacontrols/mediaControlsiOS.css:
(video::-webkit-media-text-track-container):

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

7 years agoChange toolbarVisibility back to toolbarsVisibility
andersca@apple.com [Tue, 25 Mar 2014 23:37:01 +0000 (23:37 +0000)]
Change toolbarVisibility back to toolbarsVisibility
https://bugs.webkit.org/show_bug.cgi?id=130749

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWindowFeatures.h:
* UIProcess/API/Cocoa/WKWindowFeatures.mm:
(-[WKWindowFeatures _initWithWindowFeatures:WebCore::]):

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

7 years agoFix 32-bit getter call alignment.
fpizlo@apple.com [Tue, 25 Mar 2014 23:28:48 +0000 (23:28 +0000)]
Fix 32-bit getter call alignment.

Reviewed by Mark Hahnenberg.

* jit/Repatch.cpp:
(JSC::generateGetByIdStub):

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