WebKit-https.git
4 years ago[Win] Unreviewed gardening.
bfulgham@apple.com [Thu, 22 Jan 2015 17:21:59 +0000 (17:21 +0000)]
[Win] Unreviewed gardening.

Activate ENABLE(MOUSE_CURSOR_SCALE). This works on Windows and causes more tests to pass.

* win/tools/vsprops/FeatureDefines.props:
* win/tools/vsprops/FeatureDefinesCairo.props:

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

4 years agoFix up slave distribution for Apple bots.
lforschler@apple.com [Thu, 22 Jan 2015 13:46:36 +0000 (13:46 +0000)]
Fix up slave distribution for Apple bots.

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

4 years agoFix json.
lforschler@apple.com [Thu, 22 Jan 2015 13:14:19 +0000 (13:14 +0000)]
Fix json.

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

4 years agoAdd Apple build slaves.
lforschler@apple.com [Thu, 22 Jan 2015 13:12:23 +0000 (13:12 +0000)]
Add Apple build slaves.
Fixed text alignment for slave list.

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:

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

4 years agoAX: [ATK] Mark accessibility/list-detection.html as a suitable test for EFL and GTK.
commit-queue@webkit.org [Thu, 22 Jan 2015 12:22:03 +0000 (12:22 +0000)]
AX: [ATK] Mark accessibility/list-detection.html as a suitable test for EFL and GTK.
https://bugs.webkit.org/show_bug.cgi?id=140721

Patch by Andrzej Badowski <a.badowski@samsung.com> on 2015-01-22
Reviewed by Chris Fleizach.

The test checks the heuristic to determine if a 'list' is really a list.
In the area of ATK a role for description list has been separated from the role AXList.
This made the test stopped giving positive results for ports EFL and GTK.
The proposed amendment restores test for these ports.

* accessibility/list-detection.html:
* platform/efl/TestExpectations:
* platform/efl/accessibility/list-detection-expected.txt: Added.
* platform/gtk/TestExpectations:
* platform/gtk/accessibility/list-detection-expected.txt: Added.

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

4 years agoWeb Inspector: Expected gutter highlight when selecting console input line, just...
commit-queue@webkit.org [Thu, 22 Jan 2015 10:23:35 +0000 (10:23 +0000)]
Web Inspector: Expected gutter highlight when selecting console input line, just like output line
https://bugs.webkit.org/show_bug.cgi?id=140696

Patch by Nikita Vasilyev <nvasilyev@apple.com> on 2015-01-22
Reviewed by Timothy Hatcher.

* UserInterface/Views/LogContentView.css:

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

4 years agoFix build warning in WebKit2/UIProcess module
ossy@webkit.org [Thu, 22 Jan 2015 10:21:44 +0000 (10:21 +0000)]
Fix build warning in WebKit2/UIProcess module
https://bugs.webkit.org/show_bug.cgi?id=140758

Patch by Shivakumar JM <shiva.jm@samsung.com> on 2015-01-22
Reviewed by Csaba Osztrogon√°c.

Fix build warnings by using UNUSED_PARAM macro

* UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupAddUserContentFilter):
(WKPageGroupRemoveAllUserContentFilters):

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

4 years ago[CSS Grid Layout] Skip items spanning flex tracks when sizing content based tracks
svillar@igalia.com [Thu, 22 Jan 2015 08:56:13 +0000 (08:56 +0000)]
[CSS Grid Layout] Skip items spanning flex tracks when sizing content based tracks
https://bugs.webkit.org/show_bug.cgi?id=140720

Reviewed by David Hyatt.

Source/WebCore:

Section "11.5. Resolve Intrinsic Track Sizes" of the specs forces
us to ignore items spanning tracks with flex sizing functions when
resolving the content-based track sizing functions. Items with
span < 2 are not affected by this rule (as they will belong to a
single track). This way the algorithm ensures that min-content and
max-content restrictions are fulfilled before distributing the
extra space.

Test: fast/css-grid-layout/flex-and-content-sized-resolution-columns.html

* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::spanningItemCrossesFlexibleSizedTracks):
(WebCore::integerSpanForDirection):
(WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
* rendering/RenderGrid.h:

LayoutTests:

* fast/css-grid-layout/flex-and-content-sized-resolution-columns-expected.txt: Added.
* fast/css-grid-layout/flex-and-content-sized-resolution-columns.html: Added.

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

4 years agoput_by_val_direct need to check the property is index or not for using putDirect...
utatane.tea@gmail.com [Thu, 22 Jan 2015 08:54:52 +0000 (08:54 +0000)]
put_by_val_direct need to check the property is index or not for using putDirect / putDirectIndex
https://bugs.webkit.org/show_bug.cgi?id=140426

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

In the put_by_val_direct operation, we use JSObject::putDirect.
However, it only accepts non-index property. For index property, we need to use JSObject::putDirectIndex.
This patch changes Identifier::asIndex() to return Optional<uint32_t>.
It forces callers to check the value is index or not explicitly.
Additionally, it checks toString-ed Identifier is index or not to choose putDirect / putDirectIndex.

* bytecode/GetByIdStatus.cpp:
(JSC::GetByIdStatus::computeFor):
* bytecode/PutByIdStatus.cpp:
(JSC::PutByIdStatus::computeFor):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitDirectPutById):
* dfg/DFGOperations.cpp:
(JSC::DFG::operationPutByValInternal):
* jit/JITOperations.cpp:
* jit/Repatch.cpp:
(JSC::emitPutTransitionStubAndGetOldStructure):
* jsc.cpp:
* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::LLINT_SLOW_PATH_DECL):
* runtime/Arguments.cpp:
(JSC::Arguments::getOwnPropertySlot):
(JSC::Arguments::put):
(JSC::Arguments::deleteProperty):
(JSC::Arguments::defineOwnProperty):
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncSort):
* runtime/JSArray.cpp:
(JSC::JSArray::defineOwnProperty):
* runtime/JSCJSValue.cpp:
(JSC::JSValue::putToPrimitive):
* runtime/JSGenericTypedArrayViewInlines.h:
(JSC::JSGenericTypedArrayView<Adaptor>::getOwnPropertySlot):
(JSC::JSGenericTypedArrayView<Adaptor>::put):
(JSC::JSGenericTypedArrayView<Adaptor>::defineOwnProperty):
(JSC::JSGenericTypedArrayView<Adaptor>::deleteProperty):
* runtime/JSObject.cpp:
(JSC::JSObject::put):
(JSC::JSObject::putDirectAccessor):
(JSC::JSObject::putDirectCustomAccessor):
(JSC::JSObject::deleteProperty):
(JSC::JSObject::putDirectMayBeIndex):
(JSC::JSObject::defineOwnProperty):
* runtime/JSObject.h:
(JSC::JSObject::getOwnPropertySlot):
(JSC::JSObject::getPropertySlot):
(JSC::JSObject::putDirectInternal):
* runtime/JSString.cpp:
(JSC::JSString::getStringPropertyDescriptor):
* runtime/JSString.h:
(JSC::JSString::getStringPropertySlot):
* runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::parse):
* runtime/PropertyName.h:
(JSC::toUInt32FromCharacters):
(JSC::toUInt32FromStringImpl):
(JSC::PropertyName::asIndex):
* runtime/PropertyNameArray.cpp:
(JSC::PropertyNameArray::add):
* runtime/StringObject.cpp:
(JSC::StringObject::deleteProperty):
* runtime/Structure.cpp:
(JSC::Structure::prototypeChainMayInterceptStoreTo):

Source/WebCore:

Test: js/dfg-put-by-val-direct-with-edge-numbers.html

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::getOwnPropertySlot):
* bindings/js/JSHTMLAllCollectionCustom.cpp:
(WebCore::callHTMLAllCollection):
(WebCore::JSHTMLAllCollection::item):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateGetOwnPropertySlotBody):
(GenerateImplementation):
* bindings/scripts/test/JS/JSFloat64Array.cpp:
(WebCore::JSFloat64Array::getOwnPropertySlot):
(WebCore::JSFloat64Array::getOwnPropertyDescriptor):
(WebCore::JSFloat64Array::put):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTarget::getOwnPropertySlot):
* bridge/runtime_array.cpp:
(JSC::RuntimeArray::getOwnPropertySlot):
(JSC::RuntimeArray::put):

LayoutTests:

* js/dfg-put-by-val-direct-with-edge-numbers-expected.txt: Added.
* js/dfg-put-by-val-direct-with-edge-numbers.html: Added.
* js/script-tests/dfg-put-by-val-direct-with-edge-numbers.js: Added.
(lookupWithKey):
(dfgShouldThrow):
(lookupWithKey2):
(toStringThrowsError.toString):

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

4 years ago[CSS Grid Layout] Size tracks using a list of all items sorted by span
svillar@igalia.com [Thu, 22 Jan 2015 08:36:07 +0000 (08:36 +0000)]
[CSS Grid Layout] Size tracks using a list of all items sorted by span
https://bugs.webkit.org/show_bug.cgi?id=140615

Reviewed by Andreas Kling.

Source/WebCore:

In r173620 we fixed
RenderGrid::resolveContentBasedTrackSizingFunctions() so that it
now collects all items spanning content-sized tracks and process
them one by one after sorting them by ascending span.

The problem is that it was incorrectly implemented, it has two
important bugs. First one is that the hash table that collects
items is regenerated after processing each track, so it's actually
doing nothing. Secondly we're only sorting the items on each
track, instead of all the items in the grid.

* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):

LayoutTests:

* fast/css-grid-layout/grid-content-sized-columns-resolution-expected.txt:
Added tons of new test cases.
* fast/css-grid-layout/grid-content-sized-columns-resolution.html: Ditto.
* fast/css-grid-layout/grid-preferred-logical-widths.html:
Adjusted results.

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

4 years ago[GTK] Use API::ContextMenuClient and API::InjectedBundle::PageContextMenuClient classes
carlosgc@webkit.org [Thu, 22 Jan 2015 08:30:39 +0000 (08:30 +0000)]
[GTK] Use API::ContextMenuClient and API::InjectedBundle::PageContextMenuClient classes
https://bugs.webkit.org/show_bug.cgi?id=138467

Reviewed by Gustavo Noronha Silva.

* UIProcess/API/gtk/WebKitContextMenu.cpp:
(webkitContextMenuPopulate): Add a version that receives a Vector<WebContextMenuItemData>&.
(webkitContextMenuCreate): Change it to receive a const
Vector<WebContextMenuItemData>& instead of a API::Array* and also
add a another version that receives const Vector<ContextMenuItem>&.
* UIProcess/API/gtk/WebKitContextMenuClient.cpp:
(attachContextMenuClientToView): Use a class derived from
API::ContextMenuClient to implement the context menu client.
(getContextMenuFromProposedMenu): Deleted.
* UIProcess/API/gtk/WebKitContextMenuItem.cpp:
(webkitContextMenuItemCreate): Change it to receive a const
WebContextMenuItemData& and added another version that receives a
const ContextMenuItem&.
* UIProcess/API/gtk/WebKitContextMenuItemPrivate.h:
* UIProcess/API/gtk/WebKitContextMenuPrivate.h:
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewPopulateContextMenu): Remove the creation of a
WebHitTestResult::Data, since it receives it now as parameter.
* UIProcess/API/gtk/WebKitWebViewPrivate.h:
* WebProcess/InjectedBundle/API/gtk/WebKitWebHitTestResult.cpp:
(webkitWebHitTestResultCreate): Change it to receive a const
HitTestResult& instead of const InjectedBundleHitTestResult&.
* WebProcess/InjectedBundle/API/gtk/WebKitWebHitTestResultPrivate.h:
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(webkitWebPageCreate): Use a class derived from
API::InjectedBundle::PageContextMenuClient to implement the
context menu client.
(getContextMenuFromDefaultMenu): Deleted.

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

4 years agoUnreviewed. Try to fix Debug build after r178889.
carlosgc@webkit.org [Thu, 22 Jan 2015 08:05:45 +0000 (08:05 +0000)]
Unreviewed. Try to fix Debug build after r178889.

* UIProcess/API/C/WKPage.cpp: Include Logging.h.

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

4 years agoAdd API::ContextMenuClient and API::InjectedBundle::PageContextMenuClient classes
carlosgc@webkit.org [Thu, 22 Jan 2015 07:53:01 +0000 (07:53 +0000)]
Add API::ContextMenuClient and API::InjectedBundle::PageContextMenuClient classes
https://bugs.webkit.org/show_bug.cgi?id=138466

Reviewed by Anders Carlsson.

Move ContextMenuClient to use API classes in both UI and Injected
Bundle APIs.

* CMakeLists.txt: Remove WebPageContextMenuClient.cpp.
* UIProcess/API/APIContextMenuClient.h: Renamed from Source/WebKit2/UIProcess/WebPageContextMenuClient.h.
(API::ContextMenuClient::~ContextMenuClient):
(API::ContextMenuClient::getContextMenuFromProposedMenu):
(API::ContextMenuClient::customContextMenuItemSelected):
(API::ContextMenuClient::contextMenuDismissed):
(API::ContextMenuClient::showContextMenu):
(API::ContextMenuClient::hideContextMenu):
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPageContextMenuClient):
* UIProcess/WebPageContextMenuClient.cpp: Removed.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::setContextMenuClient):
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::internalShowContextMenu):
(WebKit::WebPageProxy::contextMenuItemSelected):
(WebKit::WebPageProxy::initializeContextMenuClient): Deleted.
* UIProcess/WebPageProxy.h:
* WebKit2.xcodeproj/project.pbxproj: Remove deleted files and add
new files to compilation.
* WebProcess/InjectedBundle/API/APIInjectedBundlePageContextMenuClient.h: Copied from Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h.
(API::InjectedBundle::PageContextMenuClient::~PageContextMenuClient):
(API::InjectedBundle::PageContextMenuClient::getCustomMenuFromDefaultItems):
(API::InjectedBundle::PageContextMenuClient::prepareForActionMenu):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageSetContextMenuClient):
* WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
(WebKit::InjectedBundlePageContextMenuClient::InjectedBundlePageContextMenuClient):
(WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
(WebKit::InjectedBundlePageContextMenuClient::prepareForActionMenu):
* WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
* WebProcess/WebPage/WebContextMenu.cpp:
(WebKit::WebContextMenu::menuItemsWithUserData):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::setInjectedBundleContextMenuClient):
(WebKit::WebPage::close):
(WebKit::WebPage::initializeInjectedBundleContextMenuClient): Deleted.
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::injectedBundleContextMenuClient):
* WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::performActionMenuHitTestAtLocation):

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

4 years agoConsolidate out arguments of parseFunctionInfo into a struct
rniwa@webkit.org [Thu, 22 Jan 2015 06:39:31 +0000 (06:39 +0000)]
Consolidate out arguments of parseFunctionInfo into a struct
https://bugs.webkit.org/show_bug.cgi?id=140754

Reviewed by Oliver Hunt.

Introduced ParserFunctionInfo for storing out arguments of parseFunctionInfo.

* JavaScriptCore.xcodeproj/project.pbxproj:
* parser/ASTBuilder.h:
(JSC::ASTBuilder::createFunctionExpr):
(JSC::ASTBuilder::createGetterOrSetterProperty): This one takes a property name in addition to
ParserFunctionInfo since the property name and the function name could differ.
(JSC::ASTBuilder::createFuncDeclStatement):
* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseFunctionInfo):
(JSC::Parser<LexerType>::parseFunctionDeclaration):
(JSC::Parser<LexerType>::parseProperty):
(JSC::Parser<LexerType>::parseMemberExpression):
* parser/Parser.h:
* parser/ParserFunctionInfo.h: Added.
* parser/SyntaxChecker.h:
(JSC::SyntaxChecker::createFunctionExpr):
(JSC::SyntaxChecker::createFuncDeclStatement):
(JSC::SyntaxChecker::createClassDeclStatement):
(JSC::SyntaxChecker::createGetterOrSetterProperty):

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

4 years ago[Win] Rebaseline SVG results from test machine.
bfulgham@apple.com [Thu, 22 Jan 2015 06:01:16 +0000 (06:01 +0000)]
[Win] Rebaseline SVG results from test machine.

* platform/win/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/win/css2.1/20110323/c543-txt-decor-000-expected.txt: Added.
* platform/win/css2.1/20110323/replaced-elements-001-expected.png: Added.
* platform/win/css2.1/20110323/replaced-elements-001-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/styling-css-04-f-expected.txt:
* platform/win/svg/W3C-SVG-1.1/filters-light-04-f-expected.txt:
* platform/win/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt:
* platform/win/svg/W3C-SVG-1.1/render-elems-06-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/render-elems-07-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/render-elems-08-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/render-groups-01-b-expected.txt:
* platform/win/svg/W3C-SVG-1.1/render-groups-03-t-expected.txt:
* platform/win/svg/W3C-SVG-1.1/text-align-08-b-expected.txt:
* platform/win/svg/W3C-SVG-1.1/text-tselect-02-f-expected.txt:

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

4 years ago[Win] Update expectations file for failures on test machine.
bfulgham@apple.com [Thu, 22 Jan 2015 05:31:05 +0000 (05:31 +0000)]
[Win] Update expectations file for failures on test machine.

* platform/win/TestExpectations:

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

4 years ago[Win] Add more tests and baselines.
bfulgham@apple.com [Thu, 22 Jan 2015 04:57:33 +0000 (04:57 +0000)]
[Win] Add more tests and baselines.

Stop skipping a number of tests that are fully functional. Add some
Windows baselines.

* platform/win/TestExpectations:
* platform/win/printing/setPrinting-expected.txt: Added.
* platform/win/printing/width-overflow-expected.txt: Added.

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

4 years agoChange Heap::m_compiledCode to use a Vector
mhahnenb@gmail.com [Thu, 22 Jan 2015 02:56:26 +0000 (02:56 +0000)]
Change Heap::m_compiledCode to use a Vector
https://bugs.webkit.org/show_bug.cgi?id=140717

Reviewed by Andreas Kling.

Right now it's a DoublyLinkedList, which is iterated during each
collection. This contributes to some of the longish Eden pause times.
A Vector would be more appropriate and would also allow ExecutableBase
to be 2 pointers smaller.

* heap/Heap.cpp:
(JSC::Heap::deleteAllCompiledCode):
(JSC::Heap::deleteAllUnlinkedFunctionCode):
(JSC::Heap::clearUnmarkedExecutables):
* heap/Heap.h:
* runtime/Executable.h: No longer need to inherit from DoublyLinkedListNode.

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

4 years ago[Win] More gardening.
bfulgham@apple.com [Thu, 22 Jan 2015 02:08:00 +0000 (02:08 +0000)]
[Win] More gardening.

Unskip the flexbox tests. These have been functional in Windows for YEARS!

* platform/win/TestExpectations:

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

4 years agoBytecodeGenerator shouldn't expose all of its member variables
rniwa@webkit.org [Thu, 22 Jan 2015 02:06:33 +0000 (02:06 +0000)]
BytecodeGenerator shouldn't expose all of its member variables
https://bugs.webkit.org/show_bug.cgi?id=140752

Reviewed by Mark Lam.

Added "private:" and removed unused data members as detected by clang.

* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::BytecodeGenerator):
* bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::lastOpcodeID): Added. Used in BinaryOpNode::emitBytecode.
* bytecompiler/NodesCodegen.cpp:
(JSC::BinaryOpNode::emitBytecode):

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

4 years agoTeach build.webkit.org about bot308 and bot309.
lforschler@apple.com [Thu, 22 Jan 2015 02:06:22 +0000 (02:06 +0000)]
Teach build.webkit.org about bot308 and bot309.

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:

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

4 years ago[Win] Gardening pass over file.
bfulgham@apple.com [Thu, 22 Jan 2015 01:31:43 +0000 (01:31 +0000)]
[Win] Gardening pass over file.

Convert Skips to Failure wherever possible. Try to delete unnecessary skips/failures.

* platform/win/TestExpectations:

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

4 years agoAfter updating tests to use kerning, ligatures, and printer fonts, some tests fail
timothy_horton@apple.com [Thu, 22 Jan 2015 01:10:42 +0000 (01:10 +0000)]
After updating tests to use kerning, ligatures, and printer fonts, some tests fail
https://bugs.webkit.org/show_bug.cgi?id=139968

* platform/mac/TestExpectations:
Mark svg/custom/svg-fonts-without-missing-glyph.xhtml as flaky.

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

4 years agoWeb Inspector: ASSERT expanding objects in console PrimitiveBindingTraits<T>::assertV...
commit-queue@webkit.org [Thu, 22 Jan 2015 01:03:15 +0000 (01:03 +0000)]
Web Inspector: ASSERT expanding objects in console PrimitiveBindingTraits<T>::assertValueHasExpectedType
https://bugs.webkit.org/show_bug.cgi?id=140746

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

Source/JavaScriptCore:

* inspector/InjectedScriptSource.js:
Do not add impure properties to the descriptor object that will
eventually be sent to the frontend.

LayoutTests:

* TestExpectations:
Unskip the test now that is doesn't ASSERT in debug builds.

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

4 years agoFix the iOS release build after <http://trac.webkit.org/changeset/178868>
dbates@webkit.org [Thu, 22 Jan 2015 00:50:01 +0000 (00:50 +0000)]
Fix the iOS release build after <trac.webkit.org/changeset/178868>
(https://bugs.webkit.org/show_bug.cgi?id=140742)

Substitute ASSERT_UNUSED() for ASSERT() since the parameter layer is used only in the assertion expression.

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

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

4 years agoAdd two Apple Mavericks slaves.
lforschler@apple.com [Thu, 22 Jan 2015 00:22:36 +0000 (00:22 +0000)]
Add two Apple Mavericks slaves.

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:

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

4 years agoUpdate iOS WebKit2 expected results for compositing tests
dbates@webkit.org [Thu, 22 Jan 2015 00:04:14 +0000 (00:04 +0000)]
Update iOS WebKit2 expected results for compositing tests

Following the patch for bug #140742, <https://bugs.webkit.org/show_bug.cgi?id=140742>, we can remove
all iOS WebKit2-specific expected results that are identical to the platform-independent results.

* platform/ios-simulator-wk2/TestExpectations: Add WebKit2-specific failures: compositing/reflections/nested-reflection-on-overflow.html
and compositing/repaint/invalidations-on-composited-layers.html.
* platform/ios-simulator-wk2/compositing/absolute-inside-out-of-view-fixed-expected.txt: Removed.
[...]
* platform/ios-simulator-wk2/compositing/tiling/rotated-tiled-preserve3d-clamped-expected.txt: Removed.
* platform/ios-simulator-wk2/compositing/visibility/layer-visible-content-expected.txt: Removed.
* platform/ios-simulator-wk2/compositing/visible-rect/3d-transform-style-expected.txt: Removed.
* platform/ios-simulator/TestExpectations: Remove tests that now pass in both iOS WebKit1 and WebKit2.

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

4 years agoUpdate iOS WebKit test expectations for compositing tests
dbates@webkit.org [Wed, 21 Jan 2015 23:52:14 +0000 (23:52 +0000)]
Update iOS WebKit test expectations for compositing tests

* platform/ios-simulator-wk1/TestExpectations:
* platform/ios-simulator/TestExpectations:

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

4 years ago[iOS] WebKitTestRunner: Tests fail due to incorrect web view size
jhoneycutt@apple.com [Wed, 21 Jan 2015 23:47:43 +0000 (23:47 +0000)]
[iOS] WebKitTestRunner: Tests fail due to incorrect web view size

<https://bugs.webkit.org/show_bug.cgi?id=139736>
<rdar://problem/19282196>

This starts happening after we fail to reset the test controller to
consistent values in TestInvocation::invoke(). When we terminate the
web process and relaunch it, the new WebPage object created in the web
process is using the default ViewportConfiguration with dimensions of
1024x768.

The PageClient on iOS currently notifies the WKWebView and the
WKContentView when the web process is relaunched. This patch extends
that to also notify the WKView.

Reviewed by Benjamin Poulain.

* UIProcess/API/Cocoa/WKViewPrivate.h:
Declare -_didRelaunchProcess.

* UIProcess/API/ios/WKViewIOS.mm:
(-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
Call the new method that accepts a WKView.
(-[WKView _didRelaunchProcess]):
Call -_frameOrBoundsChanged to update the web process's size to the
size of the WKView.

* UIProcess/ios/PageClientImplIOS.h:
Add a constructor that takes a WKView, and add a member var to hold it.

* UIProcess/ios/PageClientImplIOS.mm:
(WebKit::PageClientImpl::PageClientImpl):
Implement the constructor that takes a WKView.
(WebKit::PageClientImpl::didRelaunchProcess):
Tell the WKView that the web process relaunched.

* UIProcess/ios/WKContentView.h:
Declare an initializer that takes a WKView.

* UIProcess/ios/WKContentView.mm:
(-[WKContentView _commonInitializationWithProcessPool:configuration:]):
Split out from -[WKContentView initWithFrame:processPool:configuration:webView:].
(-[WKContentView initWithFrame:processPool:configuration:webView:]):
Perform some initialization, including creating the PageClient, and
call the common initializer.
(-[WKContentView initWithFrame:processPool:configuration:wkView:]):
Ditto.

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

4 years agoAdd WKPageGroupRef SPI for user content filters
weinig@apple.com [Wed, 21 Jan 2015 23:44:35 +0000 (23:44 +0000)]
Add WKPageGroupRef SPI for user content filters
https://bugs.webkit.org/show_bug.cgi?id=140728

Reviewed by Anders Carlsson.

While Safari is transitioning to WKUserContentController, it is useful
for them to have access to have access to content filters on the page group
where they currently have user content related functionality.

* Shared/WebPageGroupData.cpp:
(WebKit::WebPageGroupData::encode):
(WebKit::WebPageGroupData::decode):
* Shared/WebPageGroupData.h:
* UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupAddUserContentFilter):
(WKPageGroupRemoveAllUserContentFilters):
* UIProcess/API/C/WKPageGroup.h:
* UIProcess/WebPageGroup.cpp:
(WebKit::WebPageGroup::addUserContentFilter):
(WebKit::WebPageGroup::removeAllUserContentFilters):
* UIProcess/WebPageGroup.h:
* WebProcess/WebPage/WebPageGroupProxy.cpp:
(WebKit::WebPageGroupProxy::WebPageGroupProxy):
(WebKit::WebPageGroupProxy::addUserContentFilter):
(WebKit::WebPageGroupProxy::removeAllUserContentFilters):
* WebProcess/WebPage/WebPageGroupProxy.h:
* WebProcess/WebPage/WebPageGroupProxy.messages.in:

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

4 years ago[iOS] Many compositing tests fail in DumpRenderTree due to contentsOpaque difference
dbates@webkit.org [Wed, 21 Jan 2015 23:42:14 +0000 (23:42 +0000)]
[iOS] Many compositing tests fail in DumpRenderTree due to contentsOpaque difference
https://bugs.webkit.org/show_bug.cgi?id=140742

Reviewed by Simon Fraser.

Source/WebCore:

Make RenderLayerBacking::layerTreeAsText() (including internals.layerTreeAsText()) always
report that the main frame's RenderView layer is opaque when running iOS DumpRenderTree to
avoid test failures and the need to maintain for iOS WebKit1 an almost identical copy of the
platform-independent compositing test results.

The main frame's RenderView layer is always transparent in iOS WebKit1 since it does
not make use of a tiled cache layer and defers to UIKit to handle the final compositing
of the web view, including applying the page scale factor.

* platform/RuntimeApplicationChecksIOS.mm:
(WebCore::applicationIsDumpRenderTree): The app bundle identifier of DumpRenderTree has
the form org.webkit.DumpRenderTreeX where X is some non-negative integer.
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::dumpProperties): Modified to report that a layer is opaque when
GraphicsLayerClient::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack() returns true.
* platform/graphics/GraphicsLayerClient.h:
(WebCore::GraphicsLayerClient::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack): Added
default implementation (returns false).
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack): Added;
returns true when running in DumpRenderTree and the passed GraphicsLayer corresponds to the main frame's
RenderView layer.
* rendering/RenderLayerBacking.h:

LayoutTests:

Update test expectations and remove an unnecessary test result.

* platform/ios-simulator/TestExpectations:
* platform/ios-simulator/compositing/backing/backface-visibility-flip-expected.txt: Removed.

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

4 years agoAdd iOS WebKit1 TestExpectation file
dbates@webkit.org [Wed, 21 Jan 2015 23:29:50 +0000 (23:29 +0000)]
Add iOS WebKit1 TestExpectation file
https://bugs.webkit.org/show_bug.cgi?id=140739

Reviewed by David Kilzer.

Tools:

Teach run-webkit-tests to look for iOS WebKit1-specific test results and
expectations in directory LayoutTests/platform/ios-simulator-wk1.

* Scripts/webkitpy/port/ios.py:
(IOSSimulatorPort.default_baseline_search_path):

LayoutTests:

iOS WebKit1 is different enough from iOS WebKit2 that it would benefit from having its
own TestExpectation file. We can work to reduce such differences over time.

* platform/ios-simulator-wk1/TestExpectations: Added.
* platform/ios-simulator/TestExpectations: Move iOS WebKit1-specific test expectation from here
to file LayoutTests/platform/ios-simulator-wk1/TestExpectations.

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

4 years ago[iOS] Update configure-xcode-for-ios-development to copy missing headers to iphoneos SDK
ddkilzer@apple.com [Wed, 21 Jan 2015 23:21:59 +0000 (23:21 +0000)]
[iOS] Update configure-xcode-for-ios-development to copy missing headers to iphoneos SDK
<http://webkit.org/b/140704>

Reviewed by Daniel Bates.

* Scripts/configure-xcode-for-ios-development:
- Update copyright.
- Remove FIXME addressed by r178709.
- Call copyMissingHeadersToIPhoneOSSDKIfNeeded().
(copyMissingHeadersToIPhoneOSSDKIfNeeded): Add method to copy
missing headers from iphonesimulator SDK to iphoneos SDK.
(sdkDirectory): Add method that returns SDK directory.
(sdkPlatformDirectory): Extract method from
xcodeSDKSpecificationsPath() that returns SDK platform
directory.
(xcodeSDKSpecificationsPath): Update to use
sdkPlatformDirectory().

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

4 years agoWebGL2 (spec section 3.1): Add new types to WebGL2 API.
roger_fong@apple.com [Wed, 21 Jan 2015 23:14:48 +0000 (23:14 +0000)]
WebGL2 (spec section 3.1): Add new types to WebGL2 API.
https://bugs.webkit.org/show_bug.cgi?id=140741.
<rdar://problem/19552962>

Reviewed by Dean Jackson.

* html/canvas/WebGL2RenderingContext.idl:

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

4 years agoWeb Inspector: Change Annotator's isActive getter into an isActive() function.
saambarati1@gmail.com [Wed, 21 Jan 2015 23:04:12 +0000 (23:04 +0000)]
Web Inspector: Change Annotator's isActive getter into an isActive() function.
https://bugs.webkit.org/show_bug.cgi?id=140729

Reviewed by Timothy Hatcher.

This patch also makes the child classes of Annotator use
the function instead of accessing the property directly.

* UserInterface/Controllers/Annotator.js:
(WebInspector.Annotator.prototype.isActive):
(WebInspector.Annotator.prototype.get isActive): Deleted.
* UserInterface/Controllers/BasicBlockAnnotator.js:
(WebInspector.BasicBlockAnnotator.prototype.insertAnnotations):
* UserInterface/Controllers/TypeTokenAnnotator.js:
(WebInspector.TypeTokenAnnotator.prototype.toggleTypeAnnotations):
* UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype.toggleTypeAnnotations):
(WebInspector.SourceCodeTextEditor.prototype.prettyPrint):
(WebInspector.SourceCodeTextEditor.prototype._debuggerDidPause):
(WebInspector.SourceCodeTextEditor.prototype._debuggerDidResume):
(WebInspector.SourceCodeTextEditor.prototype._updateTokenTrackingControllerState):

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

4 years agoWeb Inspector: Don't allow the BasicBlockAnnotator to highlight a section if it's...
saambarati1@gmail.com [Wed, 21 Jan 2015 22:51:31 +0000 (22:51 +0000)]
Web Inspector: Don't allow the BasicBlockAnnotator to highlight a section if it's only a closing brace
https://bugs.webkit.org/show_bug.cgi?id=140727

Reviewed by Timothy Hatcher.

* UserInterface/Controllers/BasicBlockAnnotator.js:
(WebInspector.BasicBlockAnnotator.prototype.set _highlightTextForBasicBlock):
(WebInspector.BasicBlockAnnotator.prototype._isTextRangeOnlyClosingBrace):
BasicBlockAnnotator tries to no longer highlight a basic block if it is only
whitespace and a closing brace. These ranges are often after statements
that make these basic blocks unreachable, such as a return/break/continue
statement occurring inside a if/else/while/for block. This check won't
match every highlighted empty closing brace, but catches most of them
because it only does intra block analysis instead of inter block analysis.

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

4 years agoSimple line layout: Move nextTextFragment() to FlowContents class.
zalan@apple.com [Wed, 21 Jan 2015 22:51:02 +0000 (22:51 +0000)]
Simple line layout: Move nextTextFragment() to FlowContents class.
https://bugs.webkit.org/show_bug.cgi?id=140738

Reviewed by Antti Koivisto.

This is in preparation to make FlowContents an iterator class.

No change in functionality.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::LineState::addUncommitted):
(WebCore::SimpleLineLayout::LineState::addUncommittedWhitespace):
(WebCore::SimpleLineLayout::removeTrailingWhitespace):
(WebCore::SimpleLineLayout::initializeNewLine):
(WebCore::SimpleLineLayout::splitFragmentToFitLine):
(WebCore::SimpleLineLayout::createLineRuns):
(WebCore::SimpleLineLayout::TextFragment::TextFragment): Deleted.
(WebCore::SimpleLineLayout::TextFragment::isEmpty): Deleted.
(WebCore::SimpleLineLayout::nextFragment): Deleted.
* rendering/SimpleLineLayoutFlowContents.cpp:
(WebCore::SimpleLineLayout::FlowContents::nextTextFragment):
* rendering/SimpleLineLayoutFlowContents.h:
(WebCore::SimpleLineLayout::FlowContents::TextFragment::TextFragment):
(WebCore::SimpleLineLayout::FlowContents::TextFragment::isEmpty):

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

4 years agobmalloc: support aligned allocation
ggaren@apple.com [Wed, 21 Jan 2015 22:49:45 +0000 (22:49 +0000)]
bmalloc: support aligned allocation
https://bugs.webkit.org/show_bug.cgi?id=140732

Reviewed by Andreas Kling.

PerformanceTests:

* MallocBench/MallocBench.xcodeproj/project.pbxproj:
* MallocBench/MallocBench/Benchmark.cpp:
* MallocBench/MallocBench/memalign.cpp:
(test):
(benchmark_memalign): Added a test for specific interesting memalign values.

* MallocBench/MallocBench/stress_aligned.cpp: Added.
(benchmark_stress_aligned):
* MallocBench/MallocBench/stress_aligned.h: Added. Added a stress test
for arbitrary memalign values.

Source/bmalloc:

* bmalloc/Allocator.cpp:
(bmalloc::Allocator::allocate): New function for aligned allocation.

Small and medium requests just allocate and free until they find an
aligned pointer. This is slightly inefficient in the worst case, but
still constant-time with little-to-no space overhead.

Large requests use a new API that requires the client to specify both
its ideal size and alignment, and the worst-case size you would have to
allocate in order to produce some interior pointer of the requested size
and alignment. We put the burden of this calculation on the client
because it simplifies things if we guarantee that allocation won't fail.

XLarge requests are easy: we just forward them to vmAllocate, which
already supported aligned requests.

* bmalloc/BoundaryTag.h:
* bmalloc/BoundaryTagInlines.h:
(bmalloc::BoundaryTag::mergeLeft):
(bmalloc::BoundaryTag::mergeRight):
(bmalloc::BoundaryTag::merge):
(bmalloc::BoundaryTag::deallocate):
(bmalloc::BoundaryTag::split):
(bmalloc::BoundaryTag::allocate): No behavior change here. I just
refactored the interface to remove some reference out parameters in
order to clarify what changes and what doesn't.

* bmalloc/Heap.cpp:
(bmalloc::Heap::allocateXLarge): Added an alignment API.

(bmalloc::Heap::allocateLarge):
* bmalloc/Heap.h: Added an alignment API. I split out allocateLarge into
a few variants, so aligned and unaligned allocation could share some code.

* bmalloc/SegregatedFreeList.cpp:
(bmalloc::SegregatedFreeList::take):
* bmalloc/SegregatedFreeList.h: Changed to use a separate, explicit API
for aligned allocation. It turns out that the aligned path is pretty
different, since it ends up searching for two potential ways to satisfy
an allocation: either large enough and aligned, or large enough to split
into something not aligned and something large enough and aligned.

* bmalloc/VMAllocate.h:
(bmalloc::vmAllocate): Switched alignment to come before size because
that's how the memalign API specifies it.

* bmalloc/VMHeap.h:
(bmalloc::VMHeap::allocateLargeRange): Added an alignment API.

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

4 years agoUpdated split such that it does not include the empty end of input string match.
mmirman@apple.com [Wed, 21 Jan 2015 22:43:05 +0000 (22:43 +0000)]
Updated split such that it does not include the empty end of input string match.
https://bugs.webkit.org/show_bug.cgi?id=138129
<rdar://problem/18807403>

Reviewed by Filip Pizlo.

* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncSplit):
* tests/stress/empty_eos_regex_split.js: Added.

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

4 years agoDocumentLoader::timing() should return a reference.
akling@apple.com [Wed, 21 Jan 2015 22:33:49 +0000 (22:33 +0000)]
DocumentLoader::timing() should return a reference.
<https://webkit.org/b/128272>

Reviewed by Antti Koivisto.

There is always a DocumentLoadTiming object, so return it by
reference since it can never be null.

* Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::from):
* dom/ScriptedAnimationController.cpp:
(WebCore::ScriptedAnimationController::serviceScriptedAnimations):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* inspector/InspectorResourceAgent.cpp:
(WebCore::buildObjectForTiming):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::finishedLoading):
(WebCore::DocumentLoader::willSendRequest):
(WebCore::DocumentLoader::continueAfterNavigationPolicy):
(WebCore::DocumentLoader::startLoadingMainResource):
* loader/DocumentLoader.h:
(WebCore::DocumentLoader::timing):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::stopLoading):
(WebCore::FrameLoader::commitProvisionalLoad):
(WebCore::FrameLoader::loadProvisionalItemFromCachedPage):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::dispatchLoadEvent):
* page/Performance.cpp:
(WebCore::Performance::now):
* page/PerformanceNavigation.cpp:
(WebCore::PerformanceNavigation::redirectCount):
* page/PerformanceResourceTiming.cpp:
(WebCore::monotonicTimeToDocumentMilliseconds):
(WebCore::PerformanceResourceTiming::resourceTimeToDocumentMilliseconds):
* page/PerformanceTiming.cpp:
(WebCore::PerformanceTiming::documentLoadTiming):

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

4 years agoCrash in QuickLook preview delegate method
bdakin@apple.com [Wed, 21 Jan 2015 22:30:43 +0000 (22:30 +0000)]
Crash in QuickLook preview delegate method
https://bugs.webkit.org/show_bug.cgi?id=140740
-and corresponding-
rdar://problem/19540806

Reviewed by Tim Horton.

Clear out the delegate.
Source/WebKit/mac:

* WebView/WebImmediateActionController.mm:
(-[WebImmediateActionController webViewClosed]):

Source/WebKit2:

* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController willDestroyView:]):

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

4 years agoHandle the transition on any character as a separate type of transition
benjamin@webkit.org [Wed, 21 Jan 2015 21:56:22 +0000 (21:56 +0000)]
Handle the transition on any character as a separate type of transition
https://bugs.webkit.org/show_bug.cgi?id=140711

Reviewed by Andreas Kling.

Instead of considering the universal transition as 127 transitions, it is now
handled as a separate type of transition.

The goal is to reduce the number of exit edge to consider for each node. Instead
of having 127 for any partition containing one universal transition, we have
as few exit edges as necessary + one universal transition.

In the NFA, the universal transition is stored directly on NFANode in a new
HashSet (transitionsOnAnyCharacter).
The target nodes are made exclusive between "transitionsOnAnyCharacter" and "transitions"
by construction. That is not strictly needed but it simplify debugging at the moment.

When converting a NFA to a DFA, we first find all the node that transition on any character.
Then, when we iterate over "real" transition, we also augment that set with the set on
any character.

When creating the DFA node, we first consider each "real" transition, then we have a single
"fallback" transition for any character that has not been handled yet.

When matching, we first search for any real transition. If there is none but a fallback exists,
we take the fallback.

* contentextensions/DFA.cpp:
(WebCore::ContentExtensions::DFA::nextState):
(WebCore::ContentExtensions::printTransitions):
(WebCore::ContentExtensions::DFA::debugPrintDot):
(WebCore::ContentExtensions::printTransition): Deleted.
* contentextensions/DFANode.h:
* contentextensions/NFA.cpp:
(WebCore::ContentExtensions::NFA::addTransition):
(WebCore::ContentExtensions::NFA::addTransitionsOnAnyCharacter):
(WebCore::ContentExtensions::printTransitions):
(WebCore::ContentExtensions::NFA::debugPrintDot):
(WebCore::ContentExtensions::printTransition): Deleted.
* contentextensions/NFA.h:
* contentextensions/NFANode.h:
* contentextensions/NFAToDFA.cpp:
(WebCore::ContentExtensions::populateTransitions):
(WebCore::ContentExtensions::getOrCreateDFANode):
(WebCore::ContentExtensions::NFAToDFA::convert):
* contentextensions/URLFilterParser.cpp:
(WebCore::ContentExtensions::GraphBuilder::generateTransition):

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

4 years agoEliminate Scope slot from JavaScript CallFrame
msaboff@apple.com [Wed, 21 Jan 2015 21:43:55 +0000 (21:43 +0000)]
Eliminate Scope slot from JavaScript CallFrame
https://bugs.webkit.org/show_bug.cgi?id=136724

Reviewed by Geoffrey Garen.

This finishes the removal of the scope chain slot from the call frame header.

* dfg/DFGOSRExitCompilerCommon.cpp:
(JSC::DFG::reifyInlinedCallFrames):
* dfg/DFGPreciseLocalClobberize.h:
(JSC::DFG::PreciseLocalClobberizeAdaptor::readTop):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::emitCall):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::emitCall):
* ftl/FTLJSCall.cpp:
(JSC::FTL::JSCall::emit):
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::compileNativeCallOrConstruct):
(JSC::FTL::LowerDFGToLLVM::compileCallOrConstruct):
* interpreter/JSStack.h:
* interpreter/VMInspector.cpp:
(JSC::VMInspector::dumpFrame):
* jit/JITCall.cpp:
(JSC::JIT::compileOpCall):
* jit/JITCall32_64.cpp:
(JSC::JIT::compileOpCall):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTINativeCall):
* jit/Repatch.cpp:
(JSC::generateByIdStub):
(JSC::linkClosureCall):
* jit/ThunkGenerators.cpp:
(JSC::virtualForThunkGenerator):
(JSC::nativeForGenerator):
Deleted ScopeChain slot from JSStack.  Removed all code where ScopeChain was being
read or set.  In most cases this was where we make JS calls.

* interpreter/CallFrameClosure.h:
(JSC::CallFrameClosure::setArgument):
(JSC::CallFrameClosure::resetCallFrame): Deleted.
* interpreter/Interpreter.cpp:
(JSC::Interpreter::execute):
(JSC::Interpreter::executeCall):
(JSC::Interpreter::executeConstruct):
(JSC::Interpreter::prepareForRepeatCall):
* interpreter/ProtoCallFrame.cpp:
(JSC::ProtoCallFrame::init):
* interpreter/ProtoCallFrame.h:
(JSC::ProtoCallFrame::scope): Deleted.
(JSC::ProtoCallFrame::setScope): Deleted.
* llint/LLIntData.cpp:
(JSC::LLInt::Data::performAssertions):
* llint/LowLevelInterpreter.asm:
* llint/LowLevelInterpreter64.asm:
Removed the related scopeChainValue member from ProtoCallFrame.  Reduced the number of
registers that needed to be copied from the ProtoCallFrame to a callee's frame
from 5 to 4.

* llint/LowLevelInterpreter32_64.asm:
In addition to the prior changes, also deleted the unused macro getDeBruijnScope.

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

4 years agoEliminate construct methods from NullGetterFunction and NullSetterFunction classes
msaboff@apple.com [Wed, 21 Jan 2015 19:46:13 +0000 (19:46 +0000)]
Eliminate construct methods from NullGetterFunction and NullSetterFunction classes
https://bugs.webkit.org/show_bug.cgi?id=140708

Reviewed by Mark Lam.

Eliminated construct methods and change getConstructData() for both classes to return
ConstructTypeNone as they can never be called.

* runtime/NullGetterFunction.cpp:
(JSC::NullGetterFunction::getConstructData):
(JSC::constructReturnUndefined): Deleted.
* runtime/NullSetterFunction.cpp:
(JSC::NullSetterFunction::getConstructData):
(JSC::constructReturnUndefined): Deleted.

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

4 years agoMove w3c/canvas/resources/ common resources to w3c/resources/.
commit-queue@webkit.org [Wed, 21 Jan 2015 19:35:08 +0000 (19:35 +0000)]
Move w3c/canvas/resources/ common resources to w3c/resources/.
https://bugs.webkit.org/show_bug.cgi?id=140712.

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-01-21
Reviewed by Alexey Proskuryakov.

Move the w3c common resources from w3c/canvas/resources/ to w3c/resources/. All
the paths to the common resources from the w3c/canvas and w3c/common should be
../resources/<file name> instead of resources/<file name>

* canvas/2d.clearRect.basic.html:
* canvas/2d.clearRect.clip.html:
* canvas/2d.clearRect.globalalpha.html:
* canvas/2d.clearRect.globalcomposite.html:
* canvas/2d.clearRect.negative.html:
* canvas/2d.clearRect.nonfinite.html:
* canvas/2d.clearRect.path.html:
* canvas/2d.clearRect.shadow.html:
* canvas/2d.clearRect.transform.html:
* canvas/2d.clearRect.zero.html:
* canvas/2d.composite.canvas.copy.html:
* canvas/2d.composite.canvas.destination-atop.html:
* canvas/2d.composite.canvas.destination-in.html:
* canvas/2d.composite.canvas.destination-out.html:
* canvas/2d.composite.canvas.destination-over.html:
* canvas/2d.composite.canvas.lighter.html:
* canvas/2d.composite.canvas.source-atop.html:
* canvas/2d.composite.canvas.source-in.html:
* canvas/2d.composite.canvas.source-out.html:
* canvas/2d.composite.canvas.source-over.html:
* canvas/2d.composite.canvas.xor.html:
* canvas/2d.composite.clip.copy.html:
* canvas/2d.composite.clip.destination-atop.html:
* canvas/2d.composite.clip.destination-in.html:
* canvas/2d.composite.clip.destination-out.html:
* canvas/2d.composite.clip.destination-over.html:
* canvas/2d.composite.clip.lighter.html:
* canvas/2d.composite.clip.source-atop.html:
* canvas/2d.composite.clip.source-in.html:
* canvas/2d.composite.clip.source-out.html:
* canvas/2d.composite.clip.source-over.html:
* canvas/2d.composite.clip.xor.html:
* canvas/2d.composite.globalAlpha.canvas.html:
* canvas/2d.composite.globalAlpha.canvaspattern.html:
* canvas/2d.composite.globalAlpha.fill.html:
* canvas/2d.composite.globalAlpha.image.html:
* canvas/2d.composite.globalAlpha.imagepattern.html:
* canvas/2d.composite.image.copy.html:
* canvas/2d.composite.image.destination-atop.html:
* canvas/2d.composite.image.destination-in.html:
* canvas/2d.composite.image.destination-out.html:
* canvas/2d.composite.image.destination-over.html:
* canvas/2d.composite.image.lighter.html:
* canvas/2d.composite.image.source-atop.html:
* canvas/2d.composite.image.source-in.html:
* canvas/2d.composite.image.source-out.html:
* canvas/2d.composite.image.source-over.html:
* canvas/2d.composite.image.xor.html:
* canvas/2d.composite.uncovered.image.copy.html:
* canvas/2d.composite.uncovered.image.destination-atop.html:
* canvas/2d.composite.uncovered.image.destination-in.html:
* canvas/2d.composite.uncovered.image.source-in.html:
* canvas/2d.composite.uncovered.image.source-out.html:
* canvas/2d.composite.uncovered.pattern.copy.html:
* canvas/2d.composite.uncovered.pattern.destination-atop.html:
* canvas/2d.composite.uncovered.pattern.destination-in.html:
* canvas/2d.composite.uncovered.pattern.source-in.html:
* canvas/2d.composite.uncovered.pattern.source-out.html:
* canvas/2d.drawImage.3arg.html:
* canvas/2d.drawImage.5arg.html:
* canvas/2d.drawImage.9arg.basic.html:
* canvas/2d.drawImage.9arg.destpos.html:
* canvas/2d.drawImage.9arg.destsize.html:
* canvas/2d.drawImage.9arg.sourcepos.html:
* canvas/2d.drawImage.9arg.sourcesize.html:
* canvas/2d.drawImage.alpha.html:
* canvas/2d.drawImage.animated.apng.html:
* canvas/2d.drawImage.animated.gif.html:
* canvas/2d.drawImage.animated.poster.html:
* canvas/2d.drawImage.broken.html:
* canvas/2d.drawImage.canvas.html:
* canvas/2d.drawImage.clip.html:
* canvas/2d.drawImage.composite.html:
* canvas/2d.drawImage.floatsource.html:
* canvas/2d.drawImage.image.incomplete.empty.html:
* canvas/2d.drawImage.image.incomplete.omitted.html:
* canvas/2d.drawImage.incomplete.html:
* canvas/2d.drawImage.negativedest.html:
* canvas/2d.drawImage.negativedir.html:
* canvas/2d.drawImage.negativesource.html:
* canvas/2d.drawImage.nonfinite.html:
* canvas/2d.drawImage.nowrap.html:
* canvas/2d.drawImage.path.html:
* canvas/2d.drawImage.self.1.html:
* canvas/2d.drawImage.self.2.html:
* canvas/2d.drawImage.transform.html:
* canvas/2d.drawImage.zerocanvas.html:
* canvas/2d.drawImage.zerosource.html:
* canvas/2d.fillRect.basic.html:
* canvas/2d.fillRect.clip.html:
* canvas/2d.fillRect.negative.html:
* canvas/2d.fillRect.nonfinite.html:
* canvas/2d.fillRect.path.html:
* canvas/2d.fillRect.shadow.html:
* canvas/2d.fillRect.transform.html:
* canvas/2d.fillRect.zero.html:
* canvas/2d.fillStyle.invalidstring.html:
* canvas/2d.fillStyle.invalidtype.html:
* canvas/2d.fillStyle.parse.current.basic.html:
* canvas/2d.fillStyle.parse.current.changed.html:
* canvas/2d.fillStyle.parse.invalid.hex1.html:
* canvas/2d.fillStyle.parse.invalid.hex2.html:
* canvas/2d.fillStyle.parse.invalid.hex3.html:
* canvas/2d.fillStyle.parse.invalid.hex4.html:
* canvas/2d.fillStyle.parse.invalid.hex5.html:
* canvas/2d.fillStyle.parse.invalid.hex6.html:
* canvas/2d.fillStyle.parse.invalid.hex7.html:
* canvas/2d.fillStyle.parse.invalid.hex8.html:
* canvas/2d.fillStyle.parse.invalid.hsl-1.html:
* canvas/2d.fillStyle.parse.invalid.hsl-2.html:
* canvas/2d.fillStyle.parse.invalid.hsl-3.html:
* canvas/2d.fillStyle.parse.invalid.hsl-4.html:
* canvas/2d.fillStyle.parse.invalid.hsl-5.html:
* canvas/2d.fillStyle.parse.invalid.hsl-6.html:
* canvas/2d.fillStyle.parse.invalid.hsla-1.html:
* canvas/2d.fillStyle.parse.invalid.hsla-2.html:
* canvas/2d.fillStyle.parse.invalid.name-1.html:
* canvas/2d.fillStyle.parse.invalid.name-2.html:
* canvas/2d.fillStyle.parse.invalid.name-3.html:
* canvas/2d.fillStyle.parse.invalid.name-4.html:
* canvas/2d.fillStyle.parse.invalid.name-5.html:
* canvas/2d.fillStyle.parse.invalid.rgb-1.html:
* canvas/2d.fillStyle.parse.invalid.rgb-2.html:
* canvas/2d.fillStyle.parse.invalid.rgb-3.html:
* canvas/2d.fillStyle.parse.invalid.rgb-4.html:
* canvas/2d.fillStyle.parse.invalid.rgb-5.html:
* canvas/2d.fillStyle.parse.invalid.rgb-6.html:
* canvas/2d.fillStyle.parse.invalid.rgb-7.html:
* canvas/2d.fillStyle.parse.invalid.rgba-1.html:
* canvas/2d.fillStyle.parse.invalid.rgba-2.html:
* canvas/2d.fillStyle.parse.invalid.rgba-3.html:
* canvas/2d.fillStyle.parse.invalid.rgba-4.html:
* canvas/2d.fillStyle.parse.invalid.rgba-5.html:
* canvas/2d.fillStyle.parse.invalid.rgba-6.html:
* canvas/2d.fillStyle.parse.invalid.rgba-7.html:
* canvas/2d.getcontext.shared.html:
* canvas/2d.gradient.empty.html:
* canvas/2d.gradient.interpolate.outside.html:
* canvas/2d.gradient.interpolate.overlap2.html:
* canvas/2d.gradient.interpolate.solid.html:
* canvas/2d.gradient.interpolate.zerosize.fill.html:
* canvas/2d.gradient.interpolate.zerosize.fillRect.html:
* canvas/2d.gradient.interpolate.zerosize.fillText.html:
* canvas/2d.gradient.interpolate.zerosize.html:
* canvas/2d.gradient.interpolate.zerosize.stroke.html:
* canvas/2d.gradient.interpolate.zerosize.strokeRect.html:
* canvas/2d.gradient.interpolate.zerosize.strokeText.html:
* canvas/2d.gradient.linear.transform.1.html:
* canvas/2d.gradient.linear.transform.2.html:
* canvas/2d.gradient.linear.transform.3.html:
* canvas/2d.gradient.object.crosscanvas.html:
* canvas/2d.gradient.object.update.html:
* canvas/2d.gradient.radial.cone.behind.html:
* canvas/2d.gradient.radial.cone.beside.html:
* canvas/2d.gradient.radial.cone.bottom.html:
* canvas/2d.gradient.radial.cone.cylinder.html:
* canvas/2d.gradient.radial.cone.front.html:
* canvas/2d.gradient.radial.cone.shape1.html:
* canvas/2d.gradient.radial.cone.shape2.html:
* canvas/2d.gradient.radial.cone.top.html:
* canvas/2d.gradient.radial.equal.html:
* canvas/2d.gradient.radial.inside1.html:
* canvas/2d.gradient.radial.inside2.html:
* canvas/2d.gradient.radial.inside3.html:
* canvas/2d.gradient.radial.outside1.html:
* canvas/2d.gradient.radial.outside2.html:
* canvas/2d.gradient.radial.outside3.html:
* canvas/2d.gradient.radial.touch1.html:
* canvas/2d.gradient.radial.touch2.html:
* canvas/2d.gradient.radial.touch3.html:
* canvas/2d.gradient.radial.transform.1.html:
* canvas/2d.gradient.radial.transform.2.html:
* canvas/2d.gradient.radial.transform.3.html:
* canvas/2d.imageData.get.unaffected.html:
* canvas/2d.imageData.put.basic.html:
* canvas/2d.imageData.put.clip.html:
* canvas/2d.imageData.put.created.html:
* canvas/2d.imageData.put.cross.html:
* canvas/2d.imageData.put.dirty.negative.html:
* canvas/2d.imageData.put.dirty.outside.html:
* canvas/2d.imageData.put.dirty.rect1.html:
* canvas/2d.imageData.put.dirty.rect2.html:
* canvas/2d.imageData.put.dirty.zero.html:
* canvas/2d.imageData.put.modified.html:
* canvas/2d.imageData.put.path.html:
* canvas/2d.imageData.put.unaffected.html:
* canvas/2d.imageData.put.wrongtype.html:
* canvas/2d.line.cap.butt.html:
* canvas/2d.line.cap.closed.html:
* canvas/2d.line.cap.open.html:
* canvas/2d.line.cap.round.html:
* canvas/2d.line.cap.square.html:
* canvas/2d.line.cross.html:
* canvas/2d.line.join.bevel.html:
* canvas/2d.line.join.closed.html:
* canvas/2d.line.join.miter.html:
* canvas/2d.line.join.open.html:
* canvas/2d.line.join.parallel.html:
* canvas/2d.line.join.round.html:
* canvas/2d.line.miter.acute.html:
* canvas/2d.line.miter.exceeded.html:
* canvas/2d.line.miter.lineedge.html:
* canvas/2d.line.miter.obtuse.html:
* canvas/2d.line.miter.rightangle.html:
* canvas/2d.line.miter.within.html:
* canvas/2d.line.union.html:
* canvas/2d.line.width.basic.html:
* canvas/2d.line.width.scaledefault.html:
* canvas/2d.line.width.transformed.html:
* canvas/2d.path.arc.angle.1.html:
* canvas/2d.path.arc.angle.2.html:
* canvas/2d.path.arc.angle.3.html:
* canvas/2d.path.arc.angle.4.html:
* canvas/2d.path.arc.angle.5.html:
* canvas/2d.path.arc.angle.6.html:
* canvas/2d.path.arc.default.html:
* canvas/2d.path.arc.empty.html:
* canvas/2d.path.arc.end.html:
* canvas/2d.path.arc.nonempty.html:
* canvas/2d.path.arc.nonfinite.html:
* canvas/2d.path.arc.scale.1.html:
* canvas/2d.path.arc.scale.2.html:
* canvas/2d.path.arc.selfintersect.1.html:
* canvas/2d.path.arc.selfintersect.2.html:
* canvas/2d.path.arc.shape.1.html:
* canvas/2d.path.arc.shape.2.html:
* canvas/2d.path.arc.shape.3.html:
* canvas/2d.path.arc.shape.4.html:
* canvas/2d.path.arc.shape.5.html:
* canvas/2d.path.arc.twopie.1.html:
* canvas/2d.path.arc.twopie.2.html:
* canvas/2d.path.arc.twopie.3.html:
* canvas/2d.path.arc.twopie.4.html:
* canvas/2d.path.arc.zero.1.html:
* canvas/2d.path.arc.zero.2.html:
* canvas/2d.path.arc.zeroradius.html:
* canvas/2d.path.arcTo.coincide.1.html:
* canvas/2d.path.arcTo.coincide.2.html:
* canvas/2d.path.arcTo.collinear.1.html:
* canvas/2d.path.arcTo.collinear.2.html:
* canvas/2d.path.arcTo.collinear.3.html:
* canvas/2d.path.arcTo.ensuresubpath.1.html:
* canvas/2d.path.arcTo.ensuresubpath.2.html:
* canvas/2d.path.arcTo.nonfinite.html:
* canvas/2d.path.arcTo.scale.html:
* canvas/2d.path.arcTo.shape.curve1.html:
* canvas/2d.path.arcTo.shape.curve2.html:
* canvas/2d.path.arcTo.shape.end.html:
* canvas/2d.path.arcTo.shape.start.html:
* canvas/2d.path.arcTo.transformation.html:
* canvas/2d.path.arcTo.zero.1.html:
* canvas/2d.path.arcTo.zero.2.html:
* canvas/2d.path.beginPath.html:
* canvas/2d.path.bezierCurveTo.basic.html:
* canvas/2d.path.bezierCurveTo.ensuresubpath.1.html:
* canvas/2d.path.bezierCurveTo.ensuresubpath.2.html:
* canvas/2d.path.bezierCurveTo.nonfinite.html:
* canvas/2d.path.bezierCurveTo.scaled.html:
* canvas/2d.path.bezierCurveTo.shape.html:
* canvas/2d.path.clip.basic.1.html:
* canvas/2d.path.clip.basic.2.html:
* canvas/2d.path.clip.empty.html:
* canvas/2d.path.clip.intersect.html:
* canvas/2d.path.clip.unaffected.html:
* canvas/2d.path.clip.winding.1.html:
* canvas/2d.path.clip.winding.2.html:
* canvas/2d.path.closePath.empty.html:
* canvas/2d.path.closePath.newline.html:
* canvas/2d.path.closePath.nextpoint.html:
* canvas/2d.path.fill.closed.basic.html:
* canvas/2d.path.fill.closed.unaffected.html:
* canvas/2d.path.fill.winding.add.html:
* canvas/2d.path.fill.winding.subtract.1.html:
* canvas/2d.path.fill.winding.subtract.2.html:
* canvas/2d.path.fill.winding.subtract.3.html:
* canvas/2d.path.initial.html:
* canvas/2d.path.lineTo.basic.html:
* canvas/2d.path.lineTo.ensuresubpath.1.html:
* canvas/2d.path.lineTo.ensuresubpath.2.html:
* canvas/2d.path.lineTo.nextpoint.html:
* canvas/2d.path.lineTo.nonfinite.html:
* canvas/2d.path.moveTo.basic.html:
* canvas/2d.path.moveTo.multiple.html:
* canvas/2d.path.moveTo.newsubpath.html:
* canvas/2d.path.moveTo.nonfinite.html:
* canvas/2d.path.quadraticCurveTo.basic.html:
* canvas/2d.path.quadraticCurveTo.ensuresubpath.1.html:
* canvas/2d.path.quadraticCurveTo.ensuresubpath.2.html:
* canvas/2d.path.quadraticCurveTo.nonfinite.html:
* canvas/2d.path.quadraticCurveTo.scaled.html:
* canvas/2d.path.quadraticCurveTo.shape.html:
* canvas/2d.path.rect.basic.html:
* canvas/2d.path.rect.closed.html:
* canvas/2d.path.rect.end.1.html:
* canvas/2d.path.rect.end.2.html:
* canvas/2d.path.rect.newsubpath.html:
* canvas/2d.path.rect.nonfinite.html:
* canvas/2d.path.rect.selfintersect.html:
* canvas/2d.path.rect.zero.1.html:
* canvas/2d.path.rect.zero.2.html:
* canvas/2d.path.rect.zero.3.html:
* canvas/2d.path.rect.zero.4.html:
* canvas/2d.path.rect.zero.5.html:
* canvas/2d.path.rect.zero.6.html:
* canvas/2d.path.stroke.empty.html:
* canvas/2d.path.stroke.prune.arc.html:
* canvas/2d.path.stroke.prune.closed.html:
* canvas/2d.path.stroke.prune.corner.html:
* canvas/2d.path.stroke.prune.curve.html:
* canvas/2d.path.stroke.prune.line.html:
* canvas/2d.path.stroke.prune.rect.html:
* canvas/2d.path.stroke.scale1.html:
* canvas/2d.path.stroke.scale2.html:
* canvas/2d.path.stroke.skew.html:
* canvas/2d.path.stroke.unaffected.html:
* canvas/2d.path.stroke.union.html:
* canvas/2d.path.transformation.basic.html:
* canvas/2d.path.transformation.changing.html:
* canvas/2d.path.transformation.multiple.html:
* canvas/2d.pattern.animated.gif.html:
* canvas/2d.pattern.basic.canvas.html:
* canvas/2d.pattern.basic.image.html:
* canvas/2d.pattern.basic.nocontext.html:
* canvas/2d.pattern.basic.type.html:
* canvas/2d.pattern.crosscanvas.html:
* canvas/2d.pattern.image.incomplete.empty.html:
* canvas/2d.pattern.image.incomplete.omitted.html:
* canvas/2d.pattern.modify.canvas1.html:
* canvas/2d.pattern.modify.canvas2.html:
* canvas/2d.pattern.modify.image1.html:
* canvas/2d.pattern.modify.image2.html:
* canvas/2d.pattern.paint.norepeat.basic.html:
* canvas/2d.pattern.paint.norepeat.coord1.html:
* canvas/2d.pattern.paint.norepeat.coord2.html:
* canvas/2d.pattern.paint.norepeat.coord3.html:
* canvas/2d.pattern.paint.norepeat.outside.html:
* canvas/2d.pattern.paint.orientation.canvas.html:
* canvas/2d.pattern.paint.orientation.image.html:
* canvas/2d.pattern.paint.repeat.basic.html:
* canvas/2d.pattern.paint.repeat.coord1.html:
* canvas/2d.pattern.paint.repeat.coord2.html:
* canvas/2d.pattern.paint.repeat.coord3.html:
* canvas/2d.pattern.paint.repeat.outside.html:
* canvas/2d.pattern.paint.repeatx.basic.html:
* canvas/2d.pattern.paint.repeatx.coord1.html:
* canvas/2d.pattern.paint.repeatx.outside.html:
* canvas/2d.pattern.paint.repeaty.basic.html:
* canvas/2d.pattern.paint.repeaty.coord1.html:
* canvas/2d.pattern.paint.repeaty.outside.html:
* canvas/2d.pattern.repeat.empty.html:
* canvas/2d.pattern.repeat.null.html:
* canvas/2d.shadow.alpha.1.html:
* canvas/2d.shadow.canvas.alpha.html:
* canvas/2d.shadow.canvas.basic.html:
* canvas/2d.shadow.canvas.transparent.1.html:
* canvas/2d.shadow.canvas.transparent.2.html:
* canvas/2d.shadow.clip.1.html:
* canvas/2d.shadow.clip.2.html:
* canvas/2d.shadow.clip.3.html:
* canvas/2d.shadow.composite.1.html:
* canvas/2d.shadow.composite.2.html:
* canvas/2d.shadow.composite.3.html:
* canvas/2d.shadow.enable.blur.html:
* canvas/2d.shadow.enable.off.1.html:
* canvas/2d.shadow.enable.off.2.html:
* canvas/2d.shadow.enable.x.html:
* canvas/2d.shadow.enable.y.html:
* canvas/2d.shadow.gradient.basic.html:
* canvas/2d.shadow.gradient.transparent.1.html:
* canvas/2d.shadow.gradient.transparent.2.html:
* canvas/2d.shadow.image.alpha.html:
* canvas/2d.shadow.image.basic.html:
* canvas/2d.shadow.image.scale.html:
* canvas/2d.shadow.image.section.html:
* canvas/2d.shadow.image.transparent.1.html:
* canvas/2d.shadow.image.transparent.2.html:
* canvas/2d.shadow.offset.negativeX.html:
* canvas/2d.shadow.offset.negativeY.html:
* canvas/2d.shadow.offset.positiveX.html:
* canvas/2d.shadow.offset.positiveY.html:
* canvas/2d.shadow.outside.html:
* canvas/2d.shadow.pattern.alpha.html:
* canvas/2d.shadow.pattern.basic.html:
* canvas/2d.shadow.pattern.transparent.1.html:
* canvas/2d.shadow.pattern.transparent.2.html:
* canvas/2d.shadow.stroke.basic.html:
* canvas/2d.shadow.stroke.cap.1.html:
* canvas/2d.shadow.stroke.cap.2.html:
* canvas/2d.shadow.stroke.join.1.html:
* canvas/2d.shadow.stroke.join.2.html:
* canvas/2d.shadow.stroke.join.3.html:
* canvas/2d.shadow.transform.1.html:
* canvas/2d.shadow.transform.2.html:
* canvas/2d.state.saverestore.bitmap.html:
* canvas/2d.state.saverestore.clip.html:
* canvas/2d.state.saverestore.path.html:
* canvas/2d.state.saverestore.transformation.html:
* canvas/2d.strokeRect.basic.html:
* canvas/2d.strokeRect.clip.html:
* canvas/2d.strokeRect.globalalpha.html:
* canvas/2d.strokeRect.globalcomposite.html:
* canvas/2d.strokeRect.negative.html:
* canvas/2d.strokeRect.nonfinite.html:
* canvas/2d.strokeRect.path.html:
* canvas/2d.strokeRect.shadow.html:
* canvas/2d.strokeRect.transform.html:
* canvas/2d.strokeRect.zero.1.html:
* canvas/2d.strokeRect.zero.2.html:
* canvas/2d.strokeRect.zero.3.html:
* canvas/2d.strokeRect.zero.5.html:
* canvas/2d.text.draw.align.center.html:
* canvas/2d.text.draw.align.end.ltr.html:
* canvas/2d.text.draw.align.end.rtl.html:
* canvas/2d.text.draw.align.left.html:
* canvas/2d.text.draw.align.right.html:
* canvas/2d.text.draw.align.start.ltr.html:
* canvas/2d.text.draw.align.start.rtl.html:
* canvas/2d.text.draw.baseline.alphabetic.html:
* canvas/2d.text.draw.fill.maxWidth.bound.html:
* canvas/2d.text.draw.fill.maxWidth.fontface.html:
* canvas/2d.text.draw.fill.maxWidth.negative.html:
* canvas/2d.text.draw.fill.maxWidth.small.html:
* canvas/2d.text.draw.fill.maxWidth.zero.html:
* canvas/2d.text.draw.fill.unaffected.html:
* canvas/2d.text.draw.fontface.html:
* canvas/2d.text.draw.fontface.notinpage.html:
* canvas/2d.text.draw.fontface.repeat.html:
* canvas/2d.text.draw.kern.consistent.html:
* canvas/2d.text.draw.space.basic.html:
* canvas/2d.text.draw.space.collapse.nonspace.html:
* canvas/2d.text.draw.stroke.unaffected.html:
* canvas/2d.transformation.order.html:
* canvas/2d.transformation.rotate.direction.html:
* canvas/2d.transformation.rotate.nonfinite.html:
* canvas/2d.transformation.rotate.radians.html:
* canvas/2d.transformation.rotate.wrap.html:
* canvas/2d.transformation.rotate.wrapnegative.html:
* canvas/2d.transformation.rotate.zero.html:
* canvas/2d.transformation.scale.basic.html:
* canvas/2d.transformation.scale.large.html:
* canvas/2d.transformation.scale.multiple.html:
* canvas/2d.transformation.scale.negative.html:
* canvas/2d.transformation.scale.nonfinite.html:
* canvas/2d.transformation.scale.zero.html:
* canvas/2d.transformation.setTransform.multiple.html:
* canvas/2d.transformation.setTransform.nonfinite.html:
* canvas/2d.transformation.setTransform.skewed.html:
* canvas/2d.transformation.transform.identity.html:
* canvas/2d.transformation.transform.multiply.html:
* canvas/2d.transformation.transform.nonfinite.html:
* canvas/2d.transformation.transform.skewed.html:
* canvas/2d.transformation.translate.basic.html:
* canvas/2d.transformation.translate.nonfinite.html:
* canvas/2d.voidreturn.html:
* canvas/initial.reset.clip.html:
* canvas/initial.reset.gradient.html:
* canvas/initial.reset.pattern.html:
* canvas/initial.reset.transform.html:
* canvas/resources/anim-gr.gif: Removed.
* canvas/resources/anim-gr.png: Removed.
* canvas/resources/anim-poster-gr.png: Removed.
* canvas/resources/background.png: Removed.
* canvas/resources/broken.png: Removed.
* canvas/resources/clear-100x50.png: Removed.
* canvas/resources/ggrr-256x256.png: Removed.
* canvas/resources/green-100x50.png: Removed.
* canvas/resources/green-16x16.png: Removed.
* canvas/resources/green-1x1.png: Removed.
* canvas/resources/green.png: Removed.
* canvas/resources/red-16x16.png: Removed.
* canvas/resources/red.png: Removed.
* canvas/resources/redtransparent.png: Removed.
* canvas/resources/rgrg-256x256.png: Removed.
* canvas/resources/rrgg-256x256.png: Removed.
* canvas/resources/transparent.png: Removed.
* canvas/resources/transparent50.png: Removed.
* canvas/resources/yellow.png: Removed.
* canvas/resources/yellow75.png: Removed.
* canvas/security.dataURI.html:
* canvas/security.drawImage.canvas.html:
* canvas/security.drawImage.image.html:
* canvas/security.pattern.canvas.fillStyle.html:
* canvas/security.pattern.canvas.strokeStyle.html:
* canvas/security.pattern.canvas.timing.html:
* canvas/security.pattern.create.html:
* canvas/security.pattern.cross.html:
* canvas/security.pattern.image.fillStyle.html:
* canvas/security.pattern.image.strokeStyle.html:
* canvas/security.reset.html:
* resources: Added.
* resources/anim-gr.gif: Added.
* resources/anim-gr.png: Added.
* resources/anim-poster-gr.png: Added.
* resources/background.png: Added.
* resources/broken.png: Added.
* resources/clear-100x50.png: Added.
* resources/ggrr-256x256.png: Added.
* resources/green-100x50.png: Added.
* resources/green-16x16.png: Added.
* resources/green-1x1.png: Added.
* resources/green.png: Added.
* resources/red-16x16.png: Added.
* resources/red.png: Added.
* resources/redtransparent.png: Added.
* resources/rgrg-256x256.png: Added.
* resources/rrgg-256x256.png: Added.
* resources/transparent.png: Added.
* resources/transparent50.png: Added.
* resources/yellow.png: Added.
* resources/yellow75.png: Added.

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

4 years agoREGRESSION(r178180): Membuster regressed ~4%
antti@apple.com [Wed, 21 Jan 2015 19:33:14 +0000 (19:33 +0000)]
REGRESSION(r178180): Membuster regressed ~4%
https://bugs.webkit.org/show_bug.cgi?id=140495

Reviewed by Andreas Kling.

After r178180 we keep system fallback fonts that are used on glyph pages alive.
Previously we would traverse the glyph pages and remove entries referencing system fallbacks.

* platform/graphics/FontCache.cpp:
(WebCore::FontCache::purgeInactiveFontData):
* platform/graphics/FontCascade.cpp:
(WebCore::pruneUnreferencedEntriesFromFontGlyphsCache):
(WebCore::pruneSystemFallbackFonts):
* platform/graphics/FontCascade.h:
* platform/graphics/FontGlyphs.cpp:
(WebCore::FontGlyphs::pruneSystemFallbacks):

    When clearing the font cache also remove the cached glyph pages that may contain system fallback fonts
    and release the fallbacks.

* platform/graphics/FontGlyphs.h:

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

4 years agohttps://build.webkit.org/dashboard/metrics.html fails because of ios-ews
ap@apple.com [Wed, 21 Jan 2015 19:31:40 +0000 (19:31 +0000)]
https://build.webkit.org/dashboard/metrics.html fails because of ios-ews
https://bugs.webkit.org/show_bug.cgi?id=140731

Reviewed by Tim Horton.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js:
(Analyzer.prototype._analyzeAllBubblesPerformance): Corrected a typo.

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

4 years ago[Win] Unreviewed gardening based on TestBot runs.
bfulgham@apple.com [Wed, 21 Jan 2015 19:27:59 +0000 (19:27 +0000)]
[Win] Unreviewed gardening based on TestBot runs.

Update a few failure cass with bug reports. Rebaseline a handful of tests.

* platform/win/TestExpectations: Update based on bug reports.
* platform/win/fast/regions/text-region-split-small-pagination-expected.txt:
* platform/win/svg/W3C-SVG-1.1-SE/coords-units-03-b-expected.txt:
* platform/win/svg/W3C-SVG-1.1-SE/styling-css-04-f-expected.txt:

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

4 years agoAsyncRequestImpl casting in AsyncRequest::completeRequest() is incorrect
zandobersek@gmail.com [Wed, 21 Jan 2015 19:13:58 +0000 (19:13 +0000)]
AsyncRequestImpl casting in AsyncRequest::completeRequest() is incorrect
https://bugs.webkit.org/show_bug.cgi?id=139724

Reviewed by Darin Adler.

AsyncRequestImpl casting in AsyncRequest::completeRequest() relies on
the parameter pack to properly determine the type of the AsyncRequestImpl
object. The casting result can be incorrect when an argument is passed
by reference while the original object was constructed with a callback
that expects an argument that's passed by value.

To avoid this the AsyncRequestImpl template is now instantiated with
raw types, with callback parameters remaining raw types in case
of being integral (enforcing passing-by-value these arguments when
dispatching), and const references being used otherwise (enforcing
passing-by-reference).

This enables casting AsyncRequest objects to the correct AsyncRequestImpl<>
by running the parameter pack through std::decay.

* DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
(WebKit::UniqueIDBDatabase::putRecord):
(WebKit::UniqueIDBDatabase::getRecord):
(WebKit::UniqueIDBDatabase::openCursor):
(WebKit::UniqueIDBDatabase::cursorAdvance):
(WebKit::UniqueIDBDatabase::cursorIterate):
(WebKit::UniqueIDBDatabase::count):
(WebKit::UniqueIDBDatabase::deleteRange):
* Shared/AsyncRequest.h:
(WebKit::AsyncRequest::completeRequest):
* WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
(WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
(WebKit::WebIDBServerConnection::get):

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

4 years ago[Win] eventSender does not support scalePageBy
bfulgham@apple.com [Wed, 21 Jan 2015 18:59:08 +0000 (18:59 +0000)]
[Win] eventSender does not support scalePageBy
https://bugs.webkit.org/show_bug.cgi?id=140726
<rdar://problem/19549865>

Reviewed by Dean Jackson.

Source/WebKit/win:

* Interfaces/IWebViewPrivate.idl: Add scaleWebView API.
* WebView.cpp:
(WebView::scaleWebView):
Connect WebCore implementation to the Windows COM interface.
* WebView.h:

Tools:

* DumpRenderTree/win/EventSender.cpp:
(scalePageByCallback): Provide implementation using new WebView method.

LayoutTests:

* platform/win/TestExpectations: Unskip test.

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

4 years ago[WK2] Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API
cdumez@apple.com [Wed, 21 Jan 2015 18:55:00 +0000 (18:55 +0000)]
[WK2] Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API
https://bugs.webkit.org/show_bug.cgi?id=140655

Reviewed by Anders Carlsson.

Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API.
Instead, introduce a new _WKDiagnosticLoggingResultType enum in
_WKDiagnosticLoggingDelegate.h.

A few defines mapping WKDiagnosticLoggingResultType enum and its values
to the new _WKDiagnosticLoggingResultType are temporarily added until
the client-side is transitioned.

* UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:
* UIProcess/Cocoa/DiagnosticLoggingClient.mm:
(WebKit::toWKDiagnosticLoggingResultType):
(WebKit::DiagnosticLoggingClient::logDiagnosticMessageWithResult):

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

4 years agoRemove Apple Mountain Lion Build & Test slaves.
lforschler@apple.com [Wed, 21 Jan 2015 18:52:00 +0000 (18:52 +0000)]
Remove Apple Mountain Lion Build & Test slaves.

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:

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

4 years ago[Win] Unreviewed gardening after reactivating some tests.
bfulgham@apple.com [Wed, 21 Jan 2015 17:02:28 +0000 (17:02 +0000)]
[Win] Unreviewed gardening after reactivating some tests.

* platform/win/TestExpectations: Add failure entries for a few tests with bug reports.

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

4 years ago[WK2] Use C++ lambdas in ProcessLauncher class
zandobersek@gmail.com [Wed, 21 Jan 2015 17:00:42 +0000 (17:00 +0000)]
[WK2] Use C++ lambdas in ProcessLauncher class
https://bugs.webkit.org/show_bug.cgi?id=138186

Reviewed by Darin Adler.

Replace uses of WTF::bind() in the ProcessLauncher class with C++ lambdas.

* UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
(WebKit::ProcessLauncher::launchProcess):
* UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
(WebKit::ProcessLauncher::launchProcess):
* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
(WebKit::connectToService):
(WebKit::tryPreexistingProcess):
(WebKit::createProcess):

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

4 years agoClean up ViewUpdateDispatcher
zandobersek@gmail.com [Wed, 21 Jan 2015 16:55:40 +0000 (16:55 +0000)]
Clean up ViewUpdateDispatcher
https://bugs.webkit.org/show_bug.cgi?id=140619

Reviewed by Darin Adler.

* WebProcess/WebPage/ViewUpdateDispatcher.cpp:
(WebKit::ViewUpdateDispatcher::visibleContentRectUpdate):
Replace WTF::bind() with a C++ lambda.
(WebKit::ViewUpdateDispatcher::dispatchVisibleContentRectUpdate):
Use WTF::move() to move the HashMap member into the local variable.

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

4 years ago[EFL][WK2] EFL MiniBrowser doesn't run because shared library is not found
ossy@webkit.org [Wed, 21 Jan 2015 10:20:53 +0000 (10:20 +0000)]
[EFL][WK2] EFL MiniBrowser doesn't run because shared library is not found
https://bugs.webkit.org/show_bug.cgi?id=140049

Reviewed by Gyuyoung Kim.

* Source/cmake/OptionsCommon.cmake:

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

4 years agofirst-letter pseudo-element from ancestors is not being ignored in grids and flexboxes
rego@igalia.com [Wed, 21 Jan 2015 10:02:59 +0000 (10:02 +0000)]
first-letter pseudo-element from ancestors is not being ignored in grids and flexboxes
https://bugs.webkit.org/show_bug.cgi?id=138424

Reviewed by Benjamin Poulain.

Source/WebCore:

Source/WebCore:

According to the grid and flexbox specs:
"::first-letter pseudo-element do not apply to grid/flex containers".
http://dev.w3.org/csswg/css-grid/#grid-containers
http://dev.w3.org/csswg/css-flexbox/#flex-containers

Check also the CSS WG mailing list discussion:
http://lists.w3.org/Archives/Public/www-style/2014Dec/0305.html

This was almost working right, except in the case that an ancestor was
setting the ::first-letter pseudo-element.

Added a few more cases to the current tests in order to check this
behavior.
Also created some new tests to increase coverage

Tests: fast/css/first-letter-from-ancestors-not-apply-inline-elements.html
       fast/css/first-letter-ignores-display-property.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::getFirstLetter): Go to the next sibling when
looking for the first text child if you reach a grid or flexbox.

LayoutTests:

Modified current tests to check that first-letter from ancestors is
ignored too.
Added 2 new tests to increase coverage.

* css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt:
* css3/flexbox/flexbox-ignore-container-firstLetter.html:
* fast/css-grid-layout/grid-container-ignore-first-letter-expected.txt:
* fast/css-grid-layout/grid-container-ignore-first-letter.html:
* fast/css/first-letter-from-ancestors-not-apply-inline-elements-expected.html: Added.
* fast/css/first-letter-from-ancestors-not-apply-inline-elements.html: Added.
* fast/css/first-letter-ignores-display-property-expected.html: Added.
* fast/css/first-letter-ignores-display-property.html: Added.

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

4 years agoFix cast-align warning in Source/WebCore/platform/efl/EflScreenUtilities.cpp
ossy@webkit.org [Wed, 21 Jan 2015 08:46:42 +0000 (08:46 +0000)]
Fix cast-align warning in Source/WebCore/platform/efl/EflScreenUtilities.cpp
https://bugs.webkit.org/show_bug.cgi?id=140670

Reviewed by Darin Adler.

* platform/efl/EflScreenUtilities.cpp:
(WebCore::createCustomCursor):

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

4 years agoRemove ENABLE(INSPECTOR) ifdef guards
ossy@webkit.org [Wed, 21 Jan 2015 08:45:11 +0000 (08:45 +0000)]
Remove ENABLE(INSPECTOR) ifdef guards
https://bugs.webkit.org/show_bug.cgi?id=140668

Reviewed by Darin Adler.

.:

* Source/PlatformEfl.cmake:
* Source/cmake/OptionsEfl.cmake:
* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsMac.cmake:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:
* bindings/ScriptValue.cpp:
(Deprecated::ScriptValue::toInspectorValue):
* bindings/ScriptValue.h:
* inspector/ConsoleMessage.cpp:
* inspector/ConsoleMessage.h:
* inspector/ContentSearchUtilities.cpp:
* inspector/ContentSearchUtilities.h:
* inspector/IdentifiersFactory.cpp:
* inspector/IdentifiersFactory.h:
* inspector/InjectedScript.cpp:
* inspector/InjectedScript.h:
* inspector/InjectedScriptBase.cpp:
* inspector/InjectedScriptBase.h:
* inspector/InjectedScriptHost.cpp:
* inspector/InjectedScriptHost.h:
* inspector/InjectedScriptManager.cpp:
* inspector/InjectedScriptManager.h:
* inspector/InjectedScriptModule.cpp:
* inspector/InjectedScriptModule.h:
* inspector/InspectorAgentRegistry.cpp:
* inspector/InspectorBackendDispatcher.cpp:
* inspector/InspectorBackendDispatcher.h:
* inspector/InspectorProtocolTypes.h:
* inspector/JSGlobalObjectConsoleClient.cpp:
* inspector/JSGlobalObjectInspectorController.cpp:
* inspector/JSGlobalObjectInspectorController.h:
* inspector/JSGlobalObjectScriptDebugServer.cpp:
* inspector/JSGlobalObjectScriptDebugServer.h:
* inspector/JSInjectedScriptHost.cpp:
* inspector/JSInjectedScriptHost.h:
* inspector/JSInjectedScriptHostPrototype.cpp:
* inspector/JSInjectedScriptHostPrototype.h:
* inspector/JSJavaScriptCallFrame.cpp:
* inspector/JSJavaScriptCallFrame.h:
* inspector/JSJavaScriptCallFramePrototype.cpp:
* inspector/JSJavaScriptCallFramePrototype.h:
* inspector/JavaScriptCallFrame.cpp:
* inspector/JavaScriptCallFrame.h:
* inspector/ScriptCallFrame.cpp:
(Inspector::ScriptCallFrame::buildInspectorObject):
* inspector/ScriptCallFrame.h:
* inspector/ScriptCallStack.cpp:
(Inspector::ScriptCallStack::buildInspectorArray):
* inspector/ScriptCallStack.h:
* inspector/ScriptDebugServer.cpp:
* inspector/agents/InspectorAgent.cpp:
* inspector/agents/InspectorAgent.h:
* inspector/agents/InspectorConsoleAgent.cpp:
* inspector/agents/InspectorConsoleAgent.h:
* inspector/agents/InspectorDebuggerAgent.cpp:
* inspector/agents/InspectorDebuggerAgent.h:
* inspector/agents/InspectorRuntimeAgent.cpp:
* inspector/agents/InspectorRuntimeAgent.h:
* inspector/agents/JSGlobalObjectConsoleAgent.cpp:
* inspector/agents/JSGlobalObjectConsoleAgent.h:
* inspector/agents/JSGlobalObjectDebuggerAgent.cpp:
* inspector/agents/JSGlobalObjectDebuggerAgent.h:
* inspector/agents/JSGlobalObjectRuntimeAgent.cpp:
* inspector/agents/JSGlobalObjectRuntimeAgent.h:
* inspector/scripts/codegen/cpp_generator_templates.py:
(CppGeneratorTemplates):
* inspector/scripts/tests/expected/commands-with-async-attribute.json-result:
* inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
* inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result:
* inspector/scripts/tests/expected/enum-values.json-result:
* inspector/scripts/tests/expected/events-with-optional-parameters.json-result:
* inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result:
* inspector/scripts/tests/expected/same-type-id-different-domain.json-result:
* inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result:
* inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result:
* inspector/scripts/tests/expected/type-declaration-array-type.json-result:
* inspector/scripts/tests/expected/type-declaration-enum-type.json-result:
* inspector/scripts/tests/expected/type-declaration-object-type.json-result:
* inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result:
* runtime/TypeSet.cpp:
(JSC::TypeSet::inspectorTypeSet):
(JSC::StructureShape::inspectorRepresentation):

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:
* WebCore.exp.in:
* bindings/js/JSCommandLineAPIHostCustom.cpp:
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::supportsProfiling):
(WebCore::JSDOMWindowBase::supportsRichSourceInfo):
* bindings/js/JSInspectorFrontendHostCustom.cpp:
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::collectIsolatedContexts):
* bindings/js/ScriptController.h:
* bindings/js/ScriptGlobalObject.cpp:
(WebCore::ScriptGlobalObject::set):
* bindings/js/ScriptGlobalObject.h:
* bindings/js/WorkerScriptDebugServer.cpp:
* bindings/js/WorkerScriptDebugServer.h:
* dom/Node.cpp:
(WebCore::Node::inspect):
* inspector/CommandLineAPIHost.cpp:
* inspector/CommandLineAPIHost.idl:
* inspector/CommandLineAPIModule.cpp:
* inspector/CommandLineAPIModule.h:
* inspector/DOMEditor.cpp:
* inspector/DOMEditor.h:
* inspector/DOMPatchSupport.cpp:
* inspector/DOMPatchSupport.h:
* inspector/InspectorApplicationCacheAgent.cpp:
* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorCSSAgent.cpp:
* inspector/InspectorCSSAgent.h:
* inspector/InspectorClient.cpp:
* inspector/InspectorConsoleInstrumentation.h:
(WebCore::InspectorInstrumentation::addMessageToConsole):
(WebCore::InspectorInstrumentation::consoleCount):
(WebCore::InspectorInstrumentation::startConsoleTiming):
(WebCore::InspectorInstrumentation::stopConsoleTiming):
(WebCore::InspectorInstrumentation::consoleTimeStamp):
(WebCore::InspectorInstrumentation::startProfiling):
(WebCore::InspectorInstrumentation::stopProfiling):
* inspector/InspectorController.cpp:
* inspector/InspectorController.h:
* inspector/InspectorDOMAgent.cpp:
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMDebuggerAgent.cpp:
* inspector/InspectorDOMDebuggerAgent.h:
* inspector/InspectorDOMStorageAgent.cpp:
* inspector/InspectorDatabaseAgent.cpp:
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorDatabaseInstrumentation.h:
(WebCore::InspectorInstrumentation::didOpenDatabase):
* inspector/InspectorDatabaseResource.cpp:
* inspector/InspectorDatabaseResource.h:
* inspector/InspectorFrontendClientLocal.cpp:
* inspector/InspectorFrontendHost.cpp:
* inspector/InspectorFrontendHost.idl:
* inspector/InspectorHistory.cpp:
* inspector/InspectorHistory.h:
* inspector/InspectorIndexedDBAgent.cpp:
* inspector/InspectorIndexedDBAgent.h:
* inspector/InspectorInstrumentation.cpp:
* inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::didClearWindowObjectInWorld):
(WebCore::InspectorInstrumentation::isDebuggerPaused):
(WebCore::InspectorInstrumentation::willInsertDOMNode):
(WebCore::InspectorInstrumentation::didInsertDOMNode):
(WebCore::InspectorInstrumentation::willRemoveDOMNode):
(WebCore::InspectorInstrumentation::didRemoveDOMNode):
(WebCore::InspectorInstrumentation::willModifyDOMAttr):
(WebCore::InspectorInstrumentation::didModifyDOMAttr):
(WebCore::InspectorInstrumentation::didRemoveDOMAttr):
(WebCore::InspectorInstrumentation::didInvalidateStyleAttr):
(WebCore::InspectorInstrumentation::frameWindowDiscarded):
(WebCore::InspectorInstrumentation::mediaQueryResultChanged):
(WebCore::InspectorInstrumentation::didPushShadowRoot):
(WebCore::InspectorInstrumentation::willPopShadowRoot):
(WebCore::InspectorInstrumentation::didCreateNamedFlow):
(WebCore::InspectorInstrumentation::willRemoveNamedFlow):
(WebCore::InspectorInstrumentation::didChangeRegionOverset):
(WebCore::InspectorInstrumentation::didRegisterNamedFlowContentElement):
(WebCore::InspectorInstrumentation::didUnregisterNamedFlowContentElement):
(WebCore::InspectorInstrumentation::mouseDidMoveOverElement):
(WebCore::InspectorInstrumentation::handleTouchEvent):
(WebCore::InspectorInstrumentation::handleMousePress):
(WebCore::InspectorInstrumentation::forcePseudoState):
(WebCore::InspectorInstrumentation::characterDataModified):
(WebCore::InspectorInstrumentation::willSendXMLHttpRequest):
(WebCore::InspectorInstrumentation::didInstallTimer):
(WebCore::InspectorInstrumentation::didRemoveTimer):
(WebCore::InspectorInstrumentation::willCallFunction):
(WebCore::InspectorInstrumentation::didCallFunction):
(WebCore::InspectorInstrumentation::willDispatchXHRReadyStateChangeEvent):
(WebCore::InspectorInstrumentation::didDispatchXHRReadyStateChangeEvent):
(WebCore::InspectorInstrumentation::willDispatchEvent):
(WebCore::InspectorInstrumentation::didDispatchEvent):
(WebCore::InspectorInstrumentation::willHandleEvent):
(WebCore::InspectorInstrumentation::didHandleEvent):
(WebCore::InspectorInstrumentation::willDispatchEventOnWindow):
(WebCore::InspectorInstrumentation::didDispatchEventOnWindow):
(WebCore::InspectorInstrumentation::willEvaluateScript):
(WebCore::InspectorInstrumentation::didEvaluateScript):
(WebCore::InspectorInstrumentation::scriptsEnabled):
(WebCore::InspectorInstrumentation::willFireTimer):
(WebCore::InspectorInstrumentation::didFireTimer):
(WebCore::InspectorInstrumentation::didInvalidateLayout):
(WebCore::InspectorInstrumentation::willLayout):
(WebCore::InspectorInstrumentation::didLayout):
(WebCore::InspectorInstrumentation::didScroll):
(WebCore::InspectorInstrumentation::willDispatchXHRLoadEvent):
(WebCore::InspectorInstrumentation::didDispatchXHRLoadEvent):
(WebCore::InspectorInstrumentation::willPaint):
(WebCore::InspectorInstrumentation::didPaint):
(WebCore::InspectorInstrumentation::willScrollLayer):
(WebCore::InspectorInstrumentation::didScrollLayer):
(WebCore::InspectorInstrumentation::willRecalculateStyle):
(WebCore::InspectorInstrumentation::didRecalculateStyle):
(WebCore::InspectorInstrumentation::didScheduleStyleRecalculation):
(WebCore::InspectorInstrumentation::applyEmulatedMedia):
(WebCore::InspectorInstrumentation::willSendRequest):
(WebCore::InspectorInstrumentation::continueAfterPingLoader):
(WebCore::InspectorInstrumentation::markResourceAsCached):
(WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
(WebCore::InspectorInstrumentation::willReceiveResourceResponse):
(WebCore::InspectorInstrumentation::didReceiveResourceResponse):
(WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDenied):
(WebCore::InspectorInstrumentation::continueWithPolicyDownload):
(WebCore::InspectorInstrumentation::continueWithPolicyIgnore):
(WebCore::InspectorInstrumentation::didReceiveData):
(WebCore::InspectorInstrumentation::didFinishLoading):
(WebCore::InspectorInstrumentation::didFailLoading):
(WebCore::InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClient):
(WebCore::InspectorInstrumentation::willLoadXHR):
(WebCore::InspectorInstrumentation::didFailXHRLoading):
(WebCore::InspectorInstrumentation::didFinishXHRLoading):
(WebCore::InspectorInstrumentation::didReceiveXHRResponse):
(WebCore::InspectorInstrumentation::willLoadXHRSynchronously):
(WebCore::InspectorInstrumentation::didLoadXHRSynchronously):
(WebCore::InspectorInstrumentation::scriptImported):
(WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSP):
(WebCore::InspectorInstrumentation::didReceiveScriptResponse):
(WebCore::InspectorInstrumentation::domContentLoadedEventFired):
(WebCore::InspectorInstrumentation::loadEventFired):
(WebCore::InspectorInstrumentation::frameDetachedFromParent):
(WebCore::InspectorInstrumentation::didCommitLoad):
(WebCore::InspectorInstrumentation::frameDocumentUpdated):
(WebCore::InspectorInstrumentation::loaderDetachedFromFrame):
(WebCore::InspectorInstrumentation::frameStartedLoading):
(WebCore::InspectorInstrumentation::frameStoppedLoading):
(WebCore::InspectorInstrumentation::frameScheduledNavigation):
(WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
(WebCore::InspectorInstrumentation::willRunJavaScriptDialog):
(WebCore::InspectorInstrumentation::didRunJavaScriptDialog):
(WebCore::InspectorInstrumentation::willDestroyCachedResource):
(WebCore::InspectorInstrumentation::willWriteHTML):
(WebCore::InspectorInstrumentation::didWriteHTML):
(WebCore::InspectorInstrumentation::didDispatchDOMStorageEvent):
(WebCore::InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart):
(WebCore::InspectorInstrumentation::didStartWorkerGlobalScope):
(WebCore::InspectorInstrumentation::workerGlobalScopeTerminated):
(WebCore::InspectorInstrumentation::didCreateWebSocket):
(WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
(WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
(WebCore::InspectorInstrumentation::didCloseWebSocket):
(WebCore::InspectorInstrumentation::didReceiveWebSocketFrame):
(WebCore::InspectorInstrumentation::didReceiveWebSocketFrameError):
(WebCore::InspectorInstrumentation::didSendWebSocketFrame):
(WebCore::InspectorInstrumentation::sessionCreated):
(WebCore::InspectorInstrumentation::sessionLoaded):
(WebCore::InspectorInstrumentation::sessionModified):
(WebCore::InspectorInstrumentation::segmentCreated):
(WebCore::InspectorInstrumentation::segmentCompleted):
(WebCore::InspectorInstrumentation::segmentLoaded):
(WebCore::InspectorInstrumentation::segmentUnloaded):
(WebCore::InspectorInstrumentation::captureStarted):
(WebCore::InspectorInstrumentation::captureStopped):
(WebCore::InspectorInstrumentation::playbackStarted):
(WebCore::InspectorInstrumentation::playbackPaused):
(WebCore::InspectorInstrumentation::playbackFinished):
(WebCore::InspectorInstrumentation::playbackHitPosition):
(WebCore::InspectorInstrumentation::networkStateChanged):
(WebCore::InspectorInstrumentation::updateApplicationCacheStatus):
(WebCore::InspectorInstrumentation::didRequestAnimationFrame):
(WebCore::InspectorInstrumentation::didCancelAnimationFrame):
(WebCore::InspectorInstrumentation::willFireAnimationFrame):
(WebCore::InspectorInstrumentation::didFireAnimationFrame):
(WebCore::InspectorInstrumentation::layerTreeDidChange):
(WebCore::InspectorInstrumentation::renderLayerDestroyed):
(WebCore::InspectorInstrumentation::pseudoElementDestroyed):
(WebCore::InspectorInstrumentation::instrumentingAgentsForDocument):
(WebCore::InspectorInstrumentation::hasFrontends): Deleted.
(WebCore::InspectorInstrumentation::consoleAgentEnabled): Deleted.
(WebCore::InspectorInstrumentation::runtimeAgentEnabled): Deleted.
(WebCore::InspectorInstrumentation::timelineAgentEnabled): Deleted.
(WebCore::InspectorInstrumentation::replayAgentEnabled): Deleted.
* inspector/InspectorLayerTreeAgent.cpp:
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorOverlay.cpp:
* inspector/InspectorPageAgent.cpp:
* inspector/InspectorPageAgent.h:
* inspector/InspectorReplayAgent.cpp:
* inspector/InspectorReplayAgent.h:
* inspector/InspectorResourceAgent.cpp:
* inspector/InspectorResourceAgent.h:
* inspector/InspectorStyleSheet.cpp:
* inspector/InspectorStyleSheet.h:
* inspector/InspectorStyleTextEditor.cpp:
* inspector/InspectorStyleTextEditor.h:
* inspector/InspectorTimelineAgent.cpp:
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWorkerAgent.cpp:
* inspector/InspectorWorkerResource.h:
* inspector/InstrumentingAgents.cpp:
* inspector/NetworkResourcesData.cpp:
* inspector/NetworkResourcesData.h:
* inspector/PageConsoleAgent.cpp:
* inspector/PageConsoleAgent.h:
* inspector/PageDebuggerAgent.cpp:
* inspector/PageDebuggerAgent.h:
* inspector/PageRuntimeAgent.cpp:
* inspector/PageRuntimeAgent.h:
* inspector/PageScriptDebugServer.cpp:
* inspector/PageScriptDebugServer.h:
* inspector/TimelineRecordFactory.cpp:
* inspector/WebConsoleAgent.cpp:
* inspector/WebConsoleAgent.h:
* inspector/WebDebuggerAgent.cpp:
* inspector/WebDebuggerAgent.h:
* inspector/WebInjectedScriptHost.cpp:
* inspector/WebInjectedScriptHost.h:
* inspector/WebInjectedScriptManager.cpp:
* inspector/WebInjectedScriptManager.h:
* inspector/WorkerConsoleAgent.cpp:
* inspector/WorkerConsoleAgent.h:
* inspector/WorkerDebuggerAgent.cpp:
* inspector/WorkerDebuggerAgent.h:
* inspector/WorkerInspectorController.cpp:
* inspector/WorkerInspectorController.h:
* inspector/WorkerRuntimeAgent.cpp:
* inspector/WorkerRuntimeAgent.h:
* loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::didReceiveResponse):
(WebCore::DocumentThreadableLoader::loadRequest):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
(WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::ApplicationCacheGroup::createResourceHandle):
(WebCore::ApplicationCacheGroup::didReceiveResponse):
* loader/appcache/ApplicationCacheHost.cpp:
(WebCore::ApplicationCacheHost::applicationCacheInfo):
* loader/appcache/ApplicationCacheHost.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache):
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::showContextMenu):
(WebCore::ContextMenuController::contextMenuItemSelected):
(WebCore::ContextMenuController::populate):
(WebCore::ContextMenuController::addInspectElementItem):
(WebCore::ContextMenuController::checkOrEnableIfNeeded):
* page/FrameView.cpp:
(WebCore::FrameView::sendResizeEventIfNeeded):
* page/Page.cpp:
(WebCore::Page::Page):
(WebCore::Page::~Page):
* page/Page.h:
* platform/ContextMenuItem.h:
* platform/efl/EflInspectorUtilities.cpp:
* platform/efl/EflInspectorUtilities.h:
* platform/network/ResourceRequestBase.h:
(WebCore::ResourceRequestBase::ResourceRequestBase):
* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties):
* platform/network/cocoa/ResourceRequestCocoa.mm:
(WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties):
* testing/Internals.cpp:
(WebCore::InspectorFrontendChannelDummy::sendMessageToFrontend):
(WebCore::Internals::resetToConsistentState):
(WebCore::Internals::inspectorHighlightRects):
(WebCore::Internals::inspectorHighlightObject):
(WebCore::Internals::setInspectorIsUnderTest):
* testing/Internals.h:
* testing/Internals.idl:
* workers/WorkerGlobalScope.cpp:
(WebCore::WorkerGlobalScope::WorkerGlobalScope):
* workers/WorkerGlobalScope.h:
* workers/WorkerGlobalScopeProxy.h:
* workers/WorkerMessagingProxy.cpp:
(WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
(WebCore::WorkerMessagingProxy::sendMessageToInspector):
(WebCore::WorkerMessagingProxy::postMessageToPageInspector):
* workers/WorkerMessagingProxy.h:
* workers/WorkerReportingProxy.h:
* workers/WorkerThread.cpp:
(WebCore::WorkerThread::workerThread):

Source/WebKit:

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::dispatchWillSendRequest):

Source/WebKit/win:

* WebCoreSupport/WebInspectorClient.cpp:
(registerWindowClass):
* WebInspector.cpp:
(WebInspector::setTimelineProfilingEnabled):
* WebNodeHighlight.cpp:
(WebNodeHighlight::WebNodeHighlight):
(WebNodeHighlight::update):
* WebNodeHighlight.h:
* WebView.cpp:
(WebView::WebView):
(WebView::close):
(WebView::initWithFrame):
(WebView::inspector):
* WebView.h:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toAPI):
(WebKit::toImpl):
* Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<ResourceRequest>::encode):
(IPC::ArgumentCoder<ResourceRequest>::decode):
* UIProcess/API/C/WKInspector.cpp:
(WKInspectorGetTypeID):
(WKInspectorGetPage):
(WKInspectorIsConnected):
(WKInspectorIsVisible):
(WKInspectorIsFront):
(WKInspectorConnect):
(WKInspectorShow):
(WKInspectorHide):
(WKInspectorClose):
(WKInspectorShowConsole):
(WKInspectorShowResources):
(WKInspectorShowMainResourceForFrame):
(WKInspectorIsAttached):
(WKInspectorAttach):
(WKInspectorDetach):
(WKInspectorIsProfilingPage):
(WKInspectorTogglePageProfiling):
* UIProcess/API/C/WKPage.cpp:
(WKPageGetInspector):
* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_inspector_show):
(ewk_view_inspector_close):
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):
* UIProcess/PageClient.h:
* UIProcess/WebInspectorProxy.cpp:
* UIProcess/WebInspectorProxy.h:
* UIProcess/WebInspectorProxy.messages.in:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::reattachToWebProcess):
(WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
(WebKit::WebPageProxy::resetState):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::getLaunchOptions):
* UIProcess/efl/WebInspectorProxyEfl.cpp:
* UIProcess/gtk/WebInspectorProxyGtk.cpp:
* UIProcess/ios/PageClientImplIOS.h:
* UIProcess/ios/PageClientImplIOS.mm:
(WebKit::PageClientImpl::disableInspectorNodeSearch):
* UIProcess/ios/WebInspectorProxyIOS.mm:
* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::disableInspectorNodeSearch):
* UIProcess/mac/WebInspectorProxyMac.mm:
* WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
(WKBundleInspectorGetTypeID):
(WKBundleInspectorShow):
(WKBundleInspectorClose):
(WKBundleInspectorEvaluateScriptForTest):
(WKBundleInspectorSetPageProfilingEnabled):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageGetInspector):
* WebProcess/WebCoreSupport/WebInspectorClient.cpp:
* WebProcess/WebCoreSupport/WebInspectorClient.h:
* WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
* WebProcess/WebPage/WebInspector.cpp:
* WebProcess/WebPage/WebInspector.h:
* WebProcess/WebPage/WebInspector.messages.in:
* WebProcess/WebPage/WebInspectorUI.cpp:
* WebProcess/WebPage/WebInspectorUI.h:
* WebProcess/WebPage/WebInspectorUI.messages.in:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::~WebPage):
(WebKit::WebPage::close):
(WebKit::WebPage::inspectorUI):
(WebKit::WebPage::didReceiveMessage):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/efl/WebInspectorEfl.cpp:
* WebProcess/WebPage/efl/WebInspectorUIEfl.cpp:
* WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
* WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::disableInspectorNodeSearch):
* WebProcess/WebPage/mac/WebInspectorMac.mm:
* WebProcess/WebPage/mac/WebInspectorUIMac.mm:
* config.h:

Source/WTF:

* wtf/FeatureDefines.h:

Tools:

* DumpRenderTree/mac/TestRunnerMac.mm:
(TestRunner::showWebInspector):
(TestRunner::closeWebInspector):
(TestRunner::evaluateInWebInspector):
* Scripts/webkitperl/FeatureList.pm:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::showWebInspector):
(WTR::TestRunner::closeWebInspector):
(WTR::TestRunner::evaluateInWebInspector):
* WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::invoke):

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

4 years ago[Win] Unreviewed gardening.
bfulgham@apple.com [Wed, 21 Jan 2015 07:23:18 +0000 (07:23 +0000)]
[Win] Unreviewed gardening.

Rebaseline and clean-up of skipped files.

* platform/win/TestExpectations:
* platform/win/css2.1/20110323: Added.
* platform/win/css2.1/20110323/abspos-containing-block-initial-001-expected.png: Added.
* platform/win/css2.1/20110323/abspos-containing-block-initial-007-expected.png: Added.
* platform/win/css2.1/20110323/border-conflict-style-079-expected.png: Added.
* platform/win/css2.1/20110323/border-conflict-style-088-expected.png: Added.
* platform/win/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/win/css2.1/20110323/dynamic-top-change-001-expected.png: Added.
* platform/win/css2.1/20110323/dynamic-top-change-002-expected.png: Added.
* platform/win/css2.1/20110323/dynamic-top-change-003-expected.png: Added.
* platform/win/css2.1/20110323/dynamic-top-change-004-expected.png: Added.
* platform/win/css2.1/20110323/floating-replaced-height-008-expected.png: Added.
* platform/win/css2.1/20110323/height-width-inline-table-001-expected.png: Added.
* platform/win/css2.1/20110323/height-width-table-001-expected.png: Added.
* platform/win/css2.1/20110323/inline-block-replaced-height-008-expected.png: Added.
* platform/win/css2.1/20110323/inline-replaced-height-008-expected.png: Added.
* platform/win/css2.1/20110323/inline-table-001-expected.png: Added.
* platform/win/css2.1/20110323/inline-table-002a-expected.png: Added.
* platform/win/css2.1/20110323/inline-table-003-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-001-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-002-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-003-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-004-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-005-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-006-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-007-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-008-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-009-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-010-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-012-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-013-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-014-expected.png: Added.
* platform/win/css2.1/20110323/margin-applies-to-015-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/win/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/win/css2.1/20110323/table-height-algorithm-023-expected.png: Added.
* platform/win/css2.1/20110323/table-height-algorithm-024-expected.png: Added.
* platform/win/css2.1/t0805-c5518-brdr-t-01-e-expected.png: Added.
* platform/win/css2.1/t0805-c5518-brdr-t-01-e-expected.txt: Added.
* platform/win/css2.1/t0805-c5519-brdr-r-00-a-expected.png: Added.
* platform/win/css2.1/t0805-c5519-brdr-r-00-a-expected.txt: Added.
* platform/win/css2.1/t0805-c5519-brdr-r-01-e-expected.png: Added.
* platform/win/css2.1/t0805-c5519-brdr-r-01-e-expected.txt:
* platform/win/css2.1/t0805-c5520-brdr-b-01-e-expected.png: Added.
* platform/win/css2.1/t0805-c5520-brdr-b-01-e-expected.txt: Added.
* platform/win/css2.1/t0805-c5521-brdr-l-00-a-expected.png: Added.
* platform/win/css2.1/t0805-c5521-brdr-l-00-a-expected.txt: Added.
* platform/win/css2.1/t0805-c5521-brdr-l-01-e-expected.png: Added.
* platform/win/css2.1/t0805-c5521-brdr-l-01-e-expected.txt:
* platform/win/css2.1/t0805-c5521-ibrdr-l-00-a-expected.png: Added.
* platform/win/css2.1/t0805-c5521-ibrdr-l-00-a-expected.txt: Added.
* platform/win/css2.1/t09-c5526c-display-00-e-expected.png: Added.
* platform/win/css2.1/t09-c5526c-display-00-e-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-01-b-expected.png: Added.
* platform/win/css2.1/t0905-c414-flt-01-b-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-02-c-expected.png: Added.
* platform/win/css2.1/t0905-c414-flt-02-c-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-03-c-expected.png: Added.
* platform/win/css2.1/t0905-c414-flt-03-c-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-04-c-expected.png: Added.
* platform/win/css2.1/t0905-c414-flt-04-c-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-fit-01-d-g-expected.png: Added.
* platform/win/css2.1/t0905-c414-flt-fit-01-d-g-expected.txt: Added.
* platform/win/css2.1/t0905-c414-flt-wrap-00-e-expected.txt:
* platform/win/css2.1/t0905-c5525-fltblck-00-d-ag-expected.txt:
* platform/win/css2.1/t0905-c5525-fltblck-01-d-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltblck-01-d-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-fltcont-00-d-g-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltcont-00-d-g-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-flthw-00-c-g-expected.png: Added.
* platform/win/css2.1/t0905-c5525-flthw-00-c-g-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-00-c-g-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-00-c-g-expected.txt:
* platform/win/css2.1/t0905-c5525-fltwidth-02-c-g-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-02-c-g-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-03-c-g-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltwidth-03-c-g-expected.txt: Added.
* platform/win/css2.1/t0905-c5525-fltwrap-00-b-expected.png: Added.
* platform/win/css2.1/t0905-c5525-fltwrap-00-b-expected.txt:
* platform/win/css2.1/t0905-c5526-flthw-00-c-g-expected.png: Added.
* platform/win/css2.1/t0905-c5526-flthw-00-c-g-expected.txt: Added.
* platform/win/css2.1/t090501-c414-flt-01-b-expected.png: Added.
* platform/win/css2.1/t090501-c414-flt-01-b-expected.txt: Added.
* platform/win/css2.1/t090501-c414-flt-03-b-g-expected.png: Added.
* platform/win/css2.1/t090501-c414-flt-03-b-g-expected.txt: Added.
* platform/win/css2.1/t090501-c414-flt-ln-01-d-g-expected.txt: Added.
* platform/win/css2.1/t090501-c5525-flt-l-00-b-g-expected.png: Added.
* platform/win/css2.1/t090501-c5525-flt-l-00-b-g-expected.txt: Added.
* platform/win/css2.1/t090501-c5525-flt-r-00-b-g-expected.png: Added.
* platform/win/css2.1/t090501-c5525-flt-r-00-b-g-expected.txt: Added.
* platform/win/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.png: Added.
* platform/win/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.txt: Added.
* platform/win/css2.1/t1202-counter-03-b-expected.txt: Added.
* platform/win/css2.1/t1202-counter-04-b-expected.png: Added.
* platform/win/css2.1/t1202-counter-04-b-expected.txt:
* platform/win/css2.1/t1202-counters-03-b-expected.png: Added.
* platform/win/css2.1/t1202-counters-03-b-expected.txt: Added.
* platform/win/css2.1/t1202-counters-04-b-expected.png: Added.
* platform/win/css2.1/t1202-counters-04-b-expected.txt:
* platform/win/css2.1/t1205-c566-list-stl-01-c-g-expected.png: Added.
* platform/win/css2.1/t1205-c566-list-stl-01-c-g-expected.txt: Added.
* platform/win/css3/selectors3: Added.
* platform/win/css3/selectors3/html: Added.
* platform/win/css3/selectors3/html/css3-modsel-161-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-161-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-19b-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-19b-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-23-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-23-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-24-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-24-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-25-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-25-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-64-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-64-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-68-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-68-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-69-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-69-expected.txt: Added.
* platform/win/css3/selectors3/html/css3-modsel-70-expected.png: Added.
* platform/win/css3/selectors3/html/css3-modsel-70-expected.txt: Added.
* platform/win/css3/selectors3/xhtml: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-161-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-161-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-19b-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-19b-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-23-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-23-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-24-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-24-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-25-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-25-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-64-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-64-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-68-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-68-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-69-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-69-expected.txt: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-70-expected.png: Added.
* platform/win/css3/selectors3/xhtml/css3-modsel-70-expected.txt: Added.
* platform/win/css3/selectors3/xml: Added.
* platform/win/css3/selectors3/xml/css3-modsel-161-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-161-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-19b-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-19b-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-23-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-23-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-24-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-24-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-25-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-25-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-64-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-64-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-68-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-68-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-69-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-69-expected.txt: Added.
* platform/win/css3/selectors3/xml/css3-modsel-70-expected.png: Added.
* platform/win/css3/selectors3/xml/css3-modsel-70-expected.txt: Added.
* platform/win/fast/block/float/016-expected.png: Added.
* platform/win/fast/block/float/016-expected.txt: Added.
* platform/win/fast/css/non-standard-checkbox-size-expected.txt: Added.
* platform/win/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png:
* platform/win/fast/dom/HTMLMeterElement/meter-boundary-values-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-element-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-optimums-expected.png:
* platform/win/fast/dom/HTMLMeterElement/meter-optimums-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo-expected.png:
* platform/win/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo-expected.txt:
* platform/win/fast/dom/HTMLMeterElement/meter-styles-expected.png:
* platform/win/fast/dom/HTMLMeterElement/meter-styles-expected.txt:

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

4 years agoUpdate build.webkit.org/dashboard to match current Mac queues.
ap@apple.com [Wed, 21 Jan 2015 07:17:14 +0000 (07:17 +0000)]
Update build.webkit.org/dashboard to match current Mac queues.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Lion.png: Removed.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Lion@2x.png: Removed.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/MountainLion.png: Removed.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/MountainLion@2x.png: Removed.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
(table.queue-grid tr.platform.mac-os-x-mountain-lion img.logo): Deleted.
(table.queue-grid tr.platform.mac-os-x-lion img.logo): Deleted.

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

4 years agoVersioning.
bshafiei@apple.com [Wed, 21 Jan 2015 06:48:54 +0000 (06:48 +0000)]
Versioning.

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

4 years agoinspector/model/remote-object-get-properties.html asserts
ap@apple.com [Wed, 21 Jan 2015 06:40:50 +0000 (06:40 +0000)]
inspector/model/remote-object-get-properties.html asserts

* TestExpectations: Skip the test for now.

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

4 years agoREGRESSION (Yosemite): HTTP tests time out waiting for subresources
ap@apple.com [Wed, 21 Jan 2015 05:08:47 +0000 (05:08 +0000)]
REGRESSION (Yosemite): HTTP tests time out waiting for subresources
https://bugs.webkit.org/show_bug.cgi?id=140715

Rubber-stamped by Mark Rowe.

Enable Apache performance logging to better isolate the issue.

* http/conf/apache2.4-httpd.conf:

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

4 years agoRemove USE(GLIB) code from WebKit1
andersca@apple.com [Wed, 21 Jan 2015 04:55:34 +0000 (04:55 +0000)]
Remove USE(GLIB) code from WebKit1
https://bugs.webkit.org/show_bug.cgi?id=140714

Reviewed by Andreas Kling.

* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:]):
(-[WebView _close]):
(-[WebView _clearGlibLoopObserver]): Deleted.
(glibContextIterationCallback): Deleted.
(-[WebView _scheduleGlibContextIterations]): Deleted.
* WebView/WebViewData.h:
* WebView/WebViewInternal.h:

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

4 years agoWeb Inspector: Clean up InjectedScriptSource.js
commit-queue@webkit.org [Wed, 21 Jan 2015 04:22:24 +0000 (04:22 +0000)]
Web Inspector: Clean up InjectedScriptSource.js
https://bugs.webkit.org/show_bug.cgi?id=140709

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

This patch includes some relevant Blink patches and small changes.

Patch by <aandrey@chromium.org>
DevTools: Remove console last result $_ on console clear.
https://src.chromium.org/viewvc/blink?revision=179179&view=revision

Patch by <eustas@chromium.org>
[Inspect DOM properties] incorrect CSS Selector Syntax
https://src.chromium.org/viewvc/blink?revision=156903&view=revision

* inspector/InjectedScriptSource.js:

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

4 years agoUnreviewed gardening. Remove variable objectId from output.
joepeck@webkit.org [Wed, 21 Jan 2015 02:44:32 +0000 (02:44 +0000)]
Unreviewed gardening. Remove variable objectId from output.

* inspector/model/remote-object-get-properties-expected.txt:
* inspector/model/remote-object-get-properties.html:

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

4 years agoSimplify DiagnosticLoggingClient call sites
cdumez@apple.com [Wed, 21 Jan 2015 02:16:43 +0000 (02:16 +0000)]
Simplify DiagnosticLoggingClient call sites
https://bugs.webkit.org/show_bug.cgi?id=140701

Reviewed by Andreas Kling.

Simplify DiagnosticLoggingClient call sites by:
- Moving the Settings::diagnosticLoggingEnabled() check inside the
  MainFrame::diagnosticLoggingClient() getter.
- Having MainFrame::diagnosticLoggingClient() return a reference
  instead of a pointer (returning a dummy client if necessary).

Otherwise, each call site needs to both check the setting and do a
null-check on the client which is a bit annoying.

* history/PageCache.cpp:
(WebCore::logPageCacheFailureDiagnosticMessage):
(WebCore::logCanCacheFrameDecision):
(WebCore::logCanCachePageDecision):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* loader/EmptyClients.h:
* loader/FrameLoader.cpp:
(WebCore::logNavigation):
(WebCore::FrameLoader::checkLoadCompleteForThisFrame):
* loader/SubframeLoader.cpp:
(WebCore::logPluginRequest):
* loader/SubresourceLoader.cpp:
(WebCore::logResourceLoaded):
* page/DiagnosticLoggingClient.h:
(WebCore::DiagnosticLoggingClient::logDiagnosticMessage): Deleted.
(WebCore::DiagnosticLoggingClient::logDiagnosticMessageWithResult): Deleted.
(WebCore::DiagnosticLoggingClient::logDiagnosticMessageWithValue): Deleted.
* page/MainFrame.cpp:
(WebCore::MainFrame::diagnosticLoggingClient):
* page/MainFrame.h:

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

4 years ago[Win] Rebaseline a test, unskip some working tests.
bfulgham@apple.com [Wed, 21 Jan 2015 01:59:56 +0000 (01:59 +0000)]
[Win] Rebaseline a test, unskip some working tests.

* platform/win/TestExpectations:
* platform/win/js/dom/global-constructors-attributes-expected.txt:

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

4 years agoconfig fix after r178790.
lforschler@apple.com [Wed, 21 Jan 2015 01:59:25 +0000 (01:59 +0000)]
config fix after r178790.

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

4 years agoWeb Inspector: Cleanup RuntimeAgent a bit
commit-queue@webkit.org [Wed, 21 Jan 2015 01:54:18 +0000 (01:54 +0000)]
Web Inspector: Cleanup RuntimeAgent a bit
https://bugs.webkit.org/show_bug.cgi?id=140706

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

* inspector/InjectedScript.h:
* inspector/InspectorBackendDispatcher.h:
* inspector/ScriptCallFrame.cpp:
* inspector/agents/InspectorRuntimeAgent.cpp:
(Inspector::InspectorRuntimeAgent::evaluate):
(Inspector::InspectorRuntimeAgent::getProperties):
(Inspector::InspectorRuntimeAgent::run):
(Inspector::InspectorRuntimeAgent::getRuntimeTypesForVariablesAtOffsets):
(Inspector::recompileAllJSFunctionsForTypeProfiling):
(Inspector::InspectorRuntimeAgent::setTypeProfilerEnabledState):

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

4 years agoUpdate Apple MountainLion Leaks slave to Yosemite
lforschler@apple.com [Wed, 21 Jan 2015 01:37:15 +0000 (01:37 +0000)]
Update Apple MountainLion Leaks slave to Yosemite
Update Apple MountainLion Release (32-bit) Build slave to Yosemite

Unreviewed.

* BuildSlaveSupport/build.webkit.org-config/config.json:

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

4 years ago[Win] More test gardening.
bfulgham@apple.com [Wed, 21 Jan 2015 01:16:45 +0000 (01:16 +0000)]
[Win] More test gardening.

* platform/win/TestExpectations: Mark several tests as failing now that bug
reports have been filed for them.

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

4 years agoMade Identity in the DFG allocate a new temp register and move
mmirman@apple.com [Wed, 21 Jan 2015 01:12:51 +0000 (01:12 +0000)]
Made Identity in the DFG allocate a new temp register and move
the old data to it.
https://bugs.webkit.org/show_bug.cgi?id=140700
<rdar://problem/19339106>

Reviewed by Filip Pizlo.

* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
Added scratch registers for Identity.
* tests/mozilla/mozilla-tests.yaml: enabled previously failing test

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

4 years agoWeb Inspector: Use spread operator in a few places
commit-queue@webkit.org [Wed, 21 Jan 2015 01:10:51 +0000 (01:10 +0000)]
Web Inspector: Use spread operator in a few places
https://bugs.webkit.org/show_bug.cgi?id=140699

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-01-20
Reviewed by Geoffrey Garen.

* UserInterface/Controllers/ProbeManager.js:
(WebInspector.ProbeManager.prototype.get probeSets):
Simplify by using the spread operator.

* UserInterface/Models/TimelineRecording.js:
This actually fixes an issue. The one place this was used was expecting
an array and called ".length" on the result. However, the iterator being
returned does not have a ".length" property so it was always undefined.

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

4 years agoUpdate LeaksViewer from MountainLion to Yosemite
lforschler@apple.com [Wed, 21 Jan 2015 00:52:37 +0000 (00:52 +0000)]
Update LeaksViewer from MountainLion to Yosemite

Reviewed by Alexey Proskuryakov.

* BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:
(LeaksViewer._displayURLPrompt):

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

4 years ago[Win] Unreviewed test gardening.
bfulgham@apple.com [Wed, 21 Jan 2015 00:42:42 +0000 (00:42 +0000)]
[Win] Unreviewed test gardening.

Now that Mac has switched to new SVG font results, commit the old Mac output for
use with Windows tests until they are also cut over.

* platform/win/TestExpectations:
* platform/win/svg/W3C-SVG-1.1-SE/color-prop-05-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/color-prop-05-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-01-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-01-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-02-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-03-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-03-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-04-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-dom-04-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-units-03-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/coords-units-03-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/filters-felem-01-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/filters-felem-01-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/filters-image-03-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/filters-image-03-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/interact-pointer-03-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/interact-pointer-03-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-grad-17-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-grad-17-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-grad-20-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-grad-20-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-pattern-03-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-pattern-03-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/styling-css-04-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/styling-css-04-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/text-tref-03-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/text-tref-03-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-02-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-03-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-03-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-04-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-04-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-05-b-expected.png:
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-05-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-07-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1-SE/types-dom-07-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/filters-light-04-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/filters-light-04-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/filters-turb-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/filters-turb-02-f-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/masking-mask-01-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-06-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-06-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-07-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-07-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-08-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/render-elems-08-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/render-groups-01-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/render-groups-01-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/render-groups-03-t-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/render-groups-03-t-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/text-align-08-b-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/text-align-08-b-expected.txt: Added.
* platform/win/svg/W3C-SVG-1.1/text-tselect-02-f-expected.png: Added.
* platform/win/svg/W3C-SVG-1.1/text-tselect-02-f-expected.txt: Added.
* platform/win/svg/custom/glyph-setting-d-attribute-expected.png: Added.
* platform/win/svg/custom/glyph-setting-d-attribute-expected.txt: Added.
* platform/win/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png: Added.
* platform/win/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.txt: Added.
* platform/win/svg/foreignObject: Added.
* platform/win/svg/foreignObject/text-tref-02-b-expected.png: Added.
* platform/win/svg/foreignObject/text-tref-02-b-expected.txt: Added.
* platform/win/svg/text/kerning-expected.png: Added.
* platform/win/svg/text/kerning-expected.txt: Added.
* platform/win/svg/text/multichar-glyph-expected.png: Added.
* platform/win/svg/text/multichar-glyph-expected.txt: Added.
* platform/win/svg/transforms: Added.
* platform/win/svg/transforms/text-with-mask-with-svg-transform-expected.png: Added.
* platform/win/svg/transforms/text-with-mask-with-svg-transform-expected.txt: Added.

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

4 years agoWeb Inspector: Expanding event objects in console shows undefined for most values...
commit-queue@webkit.org [Wed, 21 Jan 2015 00:34:57 +0000 (00:34 +0000)]
Web Inspector: Expanding event objects in console shows undefined for most values, it should have real values
https://bugs.webkit.org/show_bug.cgi?id=137306

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

Source/JavaScriptCore:

Provide another optional parameter to getProperties, to gather a list
of all own and getter properties.

* inspector/InjectedScript.cpp:
(Inspector::InjectedScript::getProperties):
* inspector/InjectedScript.h:
* inspector/InjectedScriptSource.js:
* inspector/agents/InspectorRuntimeAgent.cpp:
(Inspector::InspectorRuntimeAgent::getProperties):
* inspector/agents/InspectorRuntimeAgent.h:
* inspector/protocol/Runtime.json:

Source/WebInspectorUI:

When first expanding an object, show all the object's own properties and any
getter properties that may be on its prototype chain. Now, we only fetch
own properties, for __proto__ properties.

* UserInterface/Protocol/RemoteObject.js:
(WebInspector.RemoteObject.prototype.getOwnProperties):
(WebInspector.RemoteObject.prototype.getOwnAndGetterProperties):
(WebInspector.RemoteObject.prototype.getAllProperties):
(WebInspector.RemoteObject.prototype.get hasChildren): Deleted.
* UserInterface/Views/ObjectPropertiesSection.js:
(WebInspector.ObjectPropertiesSection):
(WebInspector.ObjectPropertiesSection.prototype.update):
(WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):

LayoutTests:

* inspector/model/remote-object-get-properties-expected.txt: Added.
* inspector/model/remote-object-get-properties.html: Added.

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

4 years agoWeb Inspector: Should show dynamic specificity values
commit-queue@webkit.org [Wed, 21 Jan 2015 00:30:36 +0000 (00:30 +0000)]
Web Inspector: Should show dynamic specificity values
https://bugs.webkit.org/show_bug.cgi?id=140647

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-01-20
Reviewed by Benjamin Poulain.

Source/JavaScriptCore:

* inspector/protocol/CSS.json:
Clarify CSSSelector optional values and add "dynamic" property indicating
if the selector can be dynamic based on the element it is matched against.

Source/WebCore:

Test: inspector/css/selector-dynamic-specificity.html

* inspector/InspectorCSSAgent.h:
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::setRuleSelector):
(WebCore::InspectorCSSAgent::addRule):
(WebCore::InspectorCSSAgent::buildObjectForRule):
(WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
When building a response for a particular element, pass the element along.

* inspector/InspectorStyleSheet.h:
* inspector/InspectorStyleSheet.cpp:
(WebCore::hasDynamicSpecificity):
(WebCore::buildObjectForSelectorHelper):
(WebCore::selectorsFromSource):
(WebCore::InspectorStyleSheet::buildObjectForSelector):
(WebCore::InspectorStyleSheet::buildObjectForSelectorList):
(WebCore::InspectorStyleSheet::buildObjectForRule):
(WebCore::InspectorStyleSheet::buildArrayForRuleList):
(WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
When building a response for a Selector, include the specificity if we know
the element in context.

Source/WebInspectorUI:

For dynamic selectors, provide text in the tooltip describing that the
specificity is dynamic and may change, and pointing out the element
the current value was calculated against.

* Localizations/en.lproj/localizedStrings.js:
* UserInterface/Models/CSSSelector.js:
(WebInspector.CSSSelector):
(WebInspector.CSSSelector.prototype.get specificity):
(WebInspector.CSSSelector.prototype.get dynamic):
* UserInterface/Models/DOMNodeStyles.js:
(WebInspector.DOMNodeStyles.prototype._parseSelectorListPayload.return):
(WebInspector.DOMNodeStyles.prototype._parseSelectorListPayload):
* UserInterface/Views/CSSStyleDeclarationSection.js:
(WebInspector.CSSStyleDeclarationSection.prototype.refresh.appendSelector):

LayoutTests:

* inspector/css/selector-dynamic-specificity-expected.txt: Added.
* inspector/css/selector-dynamic-specificity.html: Added.

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

4 years agohttp/tests/xmlhttprequest/xmlhttprequest-responseURL.html uses an incorrect resource...
ap@apple.com [Wed, 21 Jan 2015 00:28:33 +0000 (00:28 +0000)]
http/tests/xmlhttprequest/xmlhttprequest-responseURL.html uses an incorrect resource path
https://bugs.webkit.org/show_bug.cgi?id=140689

Reviewed by Tim Horton.

* http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt:
* http/tests/xmlhttprequest/xmlhttprequest-responseURL.html:

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

4 years agoNoise about undefined $ENV{"HTTP_ORIGIN"} in Apache logs on several tests
ap@apple.com [Wed, 21 Jan 2015 00:26:56 +0000 (00:26 +0000)]
Noise about undefined $ENV{"HTTP_ORIGIN"} in Apache logs on several tests
https://bugs.webkit.org/show_bug.cgi?id=140690

Reviewed by Tim Horton.

* http/tests/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi:

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

4 years agomalformed header from script 'noContentLength.asis': Bad header
ap@apple.com [Wed, 21 Jan 2015 00:25:28 +0000 (00:25 +0000)]
malformed header from script 'noContentLength.asis': Bad header
https://bugs.webkit.org/show_bug.cgi?id=140693

Reviewed by Tim Horton.

Changed the resource to actually have no Content-Length, and adjusted incorrect test
expectations.

* http/tests/xmlhttprequest/resources/noContentLength.asis: Removed.
* http/tests/xmlhttprequest/resources/noContentLength.cgi: Copied from LayoutTests/http/tests/xmlhttprequest/resources/noContentLength.asis.
* http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress.html:

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

4 years agoApache logs a warning in http/tests/resources/post-and-verify-hybrid.cgi
ap@apple.com [Wed, 21 Jan 2015 00:21:57 +0000 (00:21 +0000)]
Apache logs a warning in http/tests/resources/post-and-verify-hybrid.cgi
https://bugs.webkit.org/show_bug.cgi?id=140680

Reviewed by Tim Horton.

* http/tests/resources/post-and-verify-hybrid.cgi: Fix a "useless use of a variable
in void context".

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

4 years ago[Win] Build fix after r178760.
bfulgham@apple.com [Wed, 21 Jan 2015 00:13:17 +0000 (00:13 +0000)]
[Win] Build fix after r178760.

Windows will not accept a variable as the size declaration for an array.

* svg/SVGToOTFFontConversion.cpp:
(WebCore::SVGToOTFFontConverter::appendGSUBTable): Make size argument a const.

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

4 years ago[Win] Unreviewed Windows project file gardening.
bfulgham@apple.com [Wed, 21 Jan 2015 00:05:10 +0000 (00:05 +0000)]
[Win] Unreviewed Windows project file gardening.

* WebCore.vcxproj/WebCore.vcxproj: Add missing SVG files and put things in their proper
folders.
* WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.

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

4 years ago[Win] Unreviewed gardening.
bfulgham@apple.com [Tue, 20 Jan 2015 23:32:26 +0000 (23:32 +0000)]
[Win] Unreviewed gardening.

* win/tools/vsprops/FeatureDefines.props: Add feature definition for SVG converter,
but do NOT turn it on.
* win/tools/vsprops/FeatureDefinesCairo.props: Ditto.

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

4 years agoURLFilterParser dismisses the last atom when parsing a builtin character class
benjamin@webkit.org [Tue, 20 Jan 2015 23:11:17 +0000 (23:11 +0000)]
URLFilterParser dismisses the last atom when parsing a builtin character class
https://bugs.webkit.org/show_bug.cgi?id=140695

Reviewed by Andreas Kling.

The pending atom was not sunk before creating the new atom.

* contentextensions/URLFilterParser.cpp:
(WebCore::ContentExtensions::GraphBuilder::atomBuiltInCharacterClass):

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

4 years agoFast path for casting JSValue to JSDocument*.
akling@apple.com [Tue, 20 Jan 2015 23:10:12 +0000 (23:10 +0000)]
Fast path for casting JSValue to JSDocument*.
<https://webkit.org/b/134655>

Add a custom JSType bit for JSDocument so we can quickly cast to it
from JSValue in the DocumentPrototype functions. This removes a bunch
of grunt work and branches from common functions like getElementById.

Also removed GetCastingHelperForBaseObject and replace it with
simple jsCasts since we don't need dynamic type checks for the base.

Reviewed by Darin Adler.

* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMWrapper.h:
* bindings/js/JSDocumentCustom.h:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GetCastingHelperForThisObject):
(GenerateImplementation):
(GetCastingHelperForBaseObject): Deleted.
* dom/Document.idl:

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

4 years agoFix EWS python unit tests and address code comments as per 140476
commit-queue@webkit.org [Tue, 20 Jan 2015 22:43:36 +0000 (22:43 +0000)]
Fix EWS python unit tests and address code comments as per 140476
https://bugs.webkit.org/show_bug.cgi?id=140637

Patch by Jake Nielsen <jacob_nielsen@apple.com> on 2015-01-20
Reviewed by David Kilzer.

* Scripts/webkitpy/port/base.py:
(Port):
(Port.__init__):
Adds DEFAULT_ARCHITECTURE member.
(Port.architecture):
Removes architecture member and instead uses
self.get_option('architecture'). Also removes redundant architecture
method.
(Port.set_architecture):
Adds a setter for the architecture variable to be able to set a flag
upon modification.
(Port.test_configuration):
Uses self.architecture() instead of self._architecture.
* Scripts/webkitpy/port/ios.py:
Overrides DEFAULT_ARCHITECTURE.
(IOSPort):
(IOSPort.determine_full_port_name):
Uses subprocess.check_output instead of Popen. Uses rstrip instead of
strip. Fixes regex to not match arbitrary characters after the
relevent digits are matched.
(IOSPort.__init__):
Removes old _architecture defaulting strategy.
(IOSPort._build_driver_flags):
Uses self.architecture() instead of self._architecture.
(IOSSimulatorPort):
Overrides DEFAULT_ARCHITECTURE.
(IOSSimulatorPort.__init__):
Removes old _architecture defaulting strategy.
* Scripts/webkitpy/port/mac.py:
(MacPort):
Overrides DEFAULT_ARCHITECTURE.
(MacPort.__init__):
Removes old _architecture defaulting strategy.
* Scripts/webkitpy/tool/commands/earlywarningsystem.py:
(AbstractEarlyWarningSystem.run_command):
Checks the did_override_architecture flag to determine whether to add
the --architecture option.
* Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
Uses ews.architecture rather than trying to discern the correct
architecture using a port object.
(EarlyWarningSystemTest._default_expected_logs):
* Scripts/webkitpy/tool/commands/queues.py:
Removes use of optparse, and removes the import statement.
(AbstractQueue.__init__):
(PatchProcessingQueue.begin_work_queue):

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

4 years agoUnreviewed, rolling out r178751.
commit-queue@webkit.org [Tue, 20 Jan 2015 22:43:06 +0000 (22:43 +0000)]
Unreviewed, rolling out r178751.
https://bugs.webkit.org/show_bug.cgi?id=140694

Caused 32-bit JSC test failures (Requested by JoePeck on
#webkit).

Reverted changeset:

"put_by_val_direct need to check the property is index or not
for using putDirect / putDirectIndex"
https://bugs.webkit.org/show_bug.cgi?id=140426
http://trac.webkit.org/changeset/178751

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

4 years ago[iOS][WK2] Redraw find-in-page indicator on rotation
mhock@apple.com [Tue, 20 Jan 2015 22:21:26 +0000 (22:21 +0000)]
[iOS][WK2] Redraw find-in-page indicator on rotation
https://bugs.webkit.org/show_bug.cgi?id=140632
<rdar://problem/18858394>

Reviewed by Tim Horton.

* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::redraw): Add method to redraw find indicator (only used by iOS).
* WebProcess/WebPage/FindController.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::mainFrameDidLayout):
* WebProcess/WebPage/ios/FindControllerIOS.mm:
(WebKit::FindController::updateFindIndicator): Redraw should not trigger zoom.

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

4 years agoSimple line layout: Use FlowContents::Segment::text instead of renderer when possible.
zalan@apple.com [Tue, 20 Jan 2015 22:07:17 +0000 (22:07 +0000)]
Simple line layout: Use FlowContents::Segment::text instead of renderer when possible.
https://bugs.webkit.org/show_bug.cgi?id=140692

Reviewed by Myles C. Maxfield.

No change in functionality.

* rendering/SimpleLineLayoutResolver.cpp:
(WebCore::SimpleLineLayout::RunResolver::Run::text):

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

4 years agoSwitch to comparing PLATFORM_NAME in terms of macosx
ddkilzer@apple.com [Tue, 20 Jan 2015 21:49:47 +0000 (21:49 +0000)]
Switch to comparing PLATFORM_NAME in terms of macosx
<http://webkit.org/b/139516>

Reviewed by Timothy Hatcher.

Source/WebCore:

* bindings/scripts/preprocessor.pm:
(applyPreprocessor):
* generate-export-file:
(preprocessorMacros):

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* MigrateHeaders.make:
* postprocess-headers.sh:

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:
* mac/rewrite-availability-macros.sh: Remove the else block that
checked for an unknown PLATFORM_NAME.

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

4 years agoAttempt to fix 32bits builds after r178743
benjamin@webkit.org [Tue, 20 Jan 2015 21:46:42 +0000 (21:46 +0000)]
Attempt to fix 32bits builds after r178743

* contentextensions/ContentExtensionsBackend.cpp:
(WebCore::ContentExtensions::ContentExtensionsBackend::shouldBlockURL):

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

4 years agoput_by_val_direct need to check the property is index or not for using putDirect...
utatane.tea@gmail.com [Tue, 20 Jan 2015 21:14:48 +0000 (21:14 +0000)]
put_by_val_direct need to check the property is index or not for using putDirect / putDirectIndex
https://bugs.webkit.org/show_bug.cgi?id=140426

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

In the put_by_val_direct operation, we use JSObject::putDirect.
However, it only accepts non-index property. For index property, we need to use JSObject::putDirectIndex.
This patch changes Identifier::asIndex() to return Optional<uint32_t>.
It forces callers to check the value is index or not explicitly.
Additionally, it checks toString-ed Identifier is index or not to choose putDirect / putDirectIndex.

* bytecode/GetByIdStatus.cpp:
(JSC::GetByIdStatus::computeFor):
* bytecode/PutByIdStatus.cpp:
(JSC::PutByIdStatus::computeFor):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitDirectPutById):
* dfg/DFGOperations.cpp:
(JSC::DFG::operationPutByValInternal):
* jit/JITOperations.cpp:
* jit/Repatch.cpp:
(JSC::emitPutTransitionStubAndGetOldStructure):
* jsc.cpp:
* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::LLINT_SLOW_PATH_DECL):
* runtime/Arguments.cpp:
(JSC::Arguments::getOwnPropertySlot):
(JSC::Arguments::put):
(JSC::Arguments::deleteProperty):
(JSC::Arguments::defineOwnProperty):
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncSort):
* runtime/JSArray.cpp:
(JSC::JSArray::defineOwnProperty):
* runtime/JSCJSValue.cpp:
(JSC::JSValue::putToPrimitive):
* runtime/JSGenericTypedArrayViewInlines.h:
(JSC::JSGenericTypedArrayView<Adaptor>::getOwnPropertySlot):
(JSC::JSGenericTypedArrayView<Adaptor>::put):
(JSC::JSGenericTypedArrayView<Adaptor>::defineOwnProperty):
(JSC::JSGenericTypedArrayView<Adaptor>::deleteProperty):
* runtime/JSObject.cpp:
(JSC::JSObject::put):
(JSC::JSObject::putDirectAccessor):
(JSC::JSObject::putDirectCustomAccessor):
(JSC::JSObject::deleteProperty):
(JSC::JSObject::putDirectMayBeIndex):
(JSC::JSObject::defineOwnProperty):
* runtime/JSObject.h:
(JSC::JSObject::getOwnPropertySlot):
(JSC::JSObject::getPropertySlot):
(JSC::JSObject::putDirectInternal):
* runtime/JSString.cpp:
(JSC::JSString::getStringPropertyDescriptor):
* runtime/JSString.h:
(JSC::JSString::getStringPropertySlot):
* runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::parse):
* runtime/PropertyName.h:
(JSC::toUInt32FromCharacters):
(JSC::toUInt32FromStringImpl):
(JSC::PropertyName::asIndex):
* runtime/PropertyNameArray.cpp:
(JSC::PropertyNameArray::add):
* runtime/StringObject.cpp:
(JSC::StringObject::deleteProperty):
* runtime/Structure.cpp:
(JSC::Structure::prototypeChainMayInterceptStoreTo):

Source/WebCore:

Test: js/dfg-put-by-val-direct-with-edge-numbers.html

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::getOwnPropertySlot):
* bindings/js/JSHTMLAllCollectionCustom.cpp:
(WebCore::callHTMLAllCollection):
(WebCore::JSHTMLAllCollection::item):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateGetOwnPropertySlotBody):
(GenerateImplementation):
* bindings/scripts/test/JS/JSFloat64Array.cpp:
(WebCore::JSFloat64Array::getOwnPropertySlot):
(WebCore::JSFloat64Array::getOwnPropertyDescriptor):
(WebCore::JSFloat64Array::put):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTarget::getOwnPropertySlot):
* bridge/runtime_array.cpp:
(JSC::RuntimeArray::getOwnPropertySlot):
(JSC::RuntimeArray::put):

LayoutTests:

* js/dfg-put-by-val-direct-with-edge-numbers-expected.txt: Added.
* js/dfg-put-by-val-direct-with-edge-numbers.html: Added.
* js/script-tests/dfg-put-by-val-direct-with-edge-numbers.js: Added.
(lookupWithKey):
(lookupWithKey2):
(toStringThrowsError.toString):
* resources/js-test-pre.js:

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

4 years agoDrop width / height shorthands code from StylePropertyShorthand.*
cdumez@apple.com [Tue, 20 Jan 2015 20:54:19 +0000 (20:54 +0000)]
Drop width / height shorthands code from StylePropertyShorthand.*
https://bugs.webkit.org/show_bug.cgi?id=140686

Reviewed by Andreas Kling.

Drop width / height shorthands code from StylePropertyShorthand.*.
width / height are not shorthands for min-width/max-width and
min-height/max-height. Also, only matchingCustomShorthandsForLonghand()
treats these as shorthands. For e.g, the reverse method
(indexOfShorthandForLonghand()) does not.

* css/StylePropertyShorthand.cpp:
(WebCore::widthShorthand): Deleted.
(WebCore::heightShorthand): Deleted.
* css/StylePropertyShorthand.h:
(WebCore::matchingCustomShorthandsForLonghand):

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

4 years agoAdd a mechanism to ignore previous content extension rules
benjamin@webkit.org [Tue, 20 Jan 2015 20:46:16 +0000 (20:46 +0000)]
Add a mechanism to ignore previous content extension rules
https://bugs.webkit.org/show_bug.cgi?id=140663

Reviewed by Andreas Kling.

* contentextensions/ContentExtensionRule.h:
* contentextensions/ContentExtensionsBackend.cpp:
(WebCore::ContentExtensions::ContentExtensionsBackend::shouldBlockURL):
* contentextensions/ContentExtensionsManager.cpp:
(WebCore::ContentExtensions::ExtensionsManager::loadAction):

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

4 years agoResolve the epsilon transitions for each state upfront instead of dynamically
benjamin@webkit.org [Tue, 20 Jan 2015 20:43:33 +0000 (20:43 +0000)]
Resolve the epsilon transitions for each state upfront instead of dynamically
https://bugs.webkit.org/show_bug.cgi?id=140654

Reviewed by Andreas Kling.

Instead of recomputing the epsilon-closure for each set, we compute the closure
of every element at the beginning of the transformation.

We then remove the epsilon transitions from the NFA to simplify populateTransitions().
The epsilon transitions are still there, but they are now in a separate graph we use
in parallel.

* contentextensions/NFAToDFA.cpp:
(WebCore::ContentExtensions::epsilonClosureExcludingSelf):
(WebCore::ContentExtensions::resolveEpsilonClosures):
(WebCore::ContentExtensions::extendSetWithClosure):
(WebCore::ContentExtensions::populateTransitions):
(WebCore::ContentExtensions::NFAToDFA::convert):
(WebCore::ContentExtensions::epsilonClosure): Deleted.
(WebCore::ContentExtensions::populateTransitionsExcludingEpsilon): Deleted.
* contentextensions/NFAToDFA.h:

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

4 years agoLog types of resources being loaded using DiagnosticLoggingClient
cdumez@apple.com [Tue, 20 Jan 2015 20:37:20 +0000 (20:37 +0000)]
Log types of resources being loaded using DiagnosticLoggingClient
https://bugs.webkit.org/show_bug.cgi?id=140682

Reviewed by Andreas Kling.

Log types of resources being loaded using DiagnosticLoggingClient
instead of the legacy FeatureCounter.

* loader/SubresourceLoader.cpp:
(WebCore::logResourceLoaded):
(WebCore::SubresourceLoader::didFinishLoading):
(WebCore::logResourceLoadedUsingFeatureCounter): Deleted.
* page/DiagnosticLoggingKeys.cpp:
(WebCore::DiagnosticLoggingKeys::otherKey):
(WebCore::DiagnosticLoggingKeys::mainResourceKey):
(WebCore::DiagnosticLoggingKeys::loadedKey):
(WebCore::DiagnosticLoggingKeys::imageKey):
(WebCore::DiagnosticLoggingKeys::rawKey):
(WebCore::DiagnosticLoggingKeys::resourceKey):
(WebCore::DiagnosticLoggingKeys::scriptKey):
(WebCore::DiagnosticLoggingKeys::styleSheetKey):
(WebCore::DiagnosticLoggingKeys::svgDocumentKey):
(WebCore::DiagnosticLoggingKeys::fontKey):
* page/DiagnosticLoggingKeys.h:
* platform/FeatureCounterKeys.h:

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

4 years agoSimple line layout: Remove redundant style.preserveNewline check when collapsing...
zalan@apple.com [Tue, 20 Jan 2015 20:29:44 +0000 (20:29 +0000)]
Simple line layout: Remove redundant style.preserveNewline check when collapsing trailing whitespace.
https://bugs.webkit.org/show_bug.cgi?id=140684

Reviewed by Antti Koivisto.

FlowContents::isLineBreak() checks whether we are at a hard newline.

No change in functionality.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::removeTrailingWhitespace):

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