WebKit-https.git
4 years ago[Win] No plugin content on some sites.
commit-queue@webkit.org [Fri, 23 Jan 2015 00:18:35 +0000 (00:18 +0000)]
[Win] No plugin content on some sites.
https://bugs.webkit.org/show_bug.cgi?id=140780

Patch by peavo@outlook.com <peavo@outlook.com> on 2015-01-22
Reviewed by Anders Carlsson.

Source/WebCore:

Return script instance from ScriptController::createScriptInstanceForWidget(),
instead of always returning null.

* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::createScriptInstanceForWidget):
* plugins/PluginViewBase.h:
(WebCore::PluginViewBase::bindingInstance):

Source/WebKit/win:

Add override modifier to bindingInstance method.

* Plugins/PluginView.h:

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

4 years ago[Mac][EME] Adopt changes to AVStreamSession class methods
jer.noble@apple.com [Fri, 23 Jan 2015 00:17:13 +0000 (00:17 +0000)]
[Mac][EME] Adopt changes to AVStreamSession class methods
https://bugs.webkit.org/show_bug.cgi?id=140778
rdar://problem/19458200

Reviewed by Eric Carlson.

AVStreamSession class methods have added a "storageDirectoryAtURL:" parameter so as to be able to
read and modify records stored at non-default storage locations.

* Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::mediaKeysStorageDirectory): Implement client method by querying document and settings.
* Modules/encryptedmedia/MediaKeySession.h:
* platform/graphics/CDMSession.h:
* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
(WebCore::CDMSessionMediaSourceAVFObjC::releaseKeys): Check whether the AVStreamSession class responds to new selector before calling.
(WebCore::CDMSessionMediaSourceAVFObjC::update): Ditto.
(WebCore::CDMSessionMediaSourceAVFObjC::generateKeyReleaseMessage): Ditto.
(WebCore::CDMSessionMediaSourceAVFObjC::storagePath): Fetch the storage path from the client.

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

4 years agoREGRESSION (174847): can't view NHK(Japan's national public broadcasting organization...
msaboff@apple.com [Fri, 23 Jan 2015 00:15:51 +0000 (00:15 +0000)]
REGRESSION (174847): can't view NHK(Japan's national public broadcasting organization)’s news pages
https://bugs.webkit.org/show_bug.cgi?id=140794

Reviewed by Anders Carlsson.

Source/WebCore:

If a document.open has been set, return it instead of always returning a new,
non-cached instance of jsHTMLDocumentPrototypeFunctionOpen.

Test: js/dom/document-overwrite-open.html

* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::getOwnPropertySlot):

LayoutTests:

* js/dom/document-overwrite-open-expected.txt: Added.
* js/dom/document-overwrite-open.html: Added.

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

4 years ago[Win] Expose missing editing features through WebView interface
bfulgham@apple.com [Thu, 22 Jan 2015 23:46:41 +0000 (23:46 +0000)]
[Win] Expose missing editing features through WebView interface
https://bugs.webkit.org/show_bug.cgi?id=140773
<rdar://problem/19565421>

Reviewed by Dean Jackson.

Connect the various WebView editing delegate methods to our
test infrastructure. Also prefer _bstr_t to raw BSTR types
to simplify life cycle management.

Source/WebKit/win:

* DOMCoreClasses.cpp: Flesh out the DOMRange object.
(DOMElement::createInstance):
(DOMRange::QueryInterface):
(DOMRange::DOMRange):
(DOMRange::~DOMRange):
(DOMRange::createInstance):
(DOMRange::startContainer):
(DOMRange::startOffset):
(DOMRange::endContainer):
(DOMRange::endOffset):
(DOMRange::collapsed):
(DOMRange::commonAncestorContainer):
(DOMRange::setStart):
(DOMRange::setEnd):
(DOMRange::setStartBefore):
(DOMRange::setStartAfter):
(DOMRange::setEndBefore):
(DOMRange::setEndAfter):
(DOMRange::collapse):
(DOMRange::selectNode):
(DOMRange::selectNodeContents):
(DOMRange::compareBoundaryPoints):
(DOMRange::deleteContents):
(DOMRange::extractContents):
(DOMRange::cloneContents):
(DOMRange::insertNode):
(DOMRange::surroundContents):
(DOMRange::cloneRange):
(DOMRange::toString):
(DOMRange::detach):
* DOMCoreClasses.h:
(DOMRange::AddRef):
(DOMRange::Release):
(DOMRange::throwException):
(DOMRange::callWebScriptMethod):
(DOMRange::evaluateWebScript):
(DOMRange::removeWebScriptKey):
(DOMRange::stringRepresentation):
(DOMRange::webScriptValueAtIndex):
(DOMRange::setWebScriptValueAtIndex):
(DOMRange::setException):
* Interfaces/IWebEditingDelegate.idl:
* Interfaces/IWebView.idl:
* WebCoreSupport/WebEditorClient.cpp: Connect more methods
to actual editing features in WebCore.
(WebEditorClient::shouldBeginEditing):
(WebEditorClient::shouldEndEditing):
(WebEditorClient::didBeginEditing):
(WebEditorClient::respondToChangedContents):
(WebEditorClient::respondToChangedSelection):
(WebEditorClient::didEndEditing):
(WebEditorClient::shouldDeleteRange):
(WebEditorClient::shouldInsertNode):
(WebEditorClient::shouldInsertText):
(WebEditorClient::shouldChangeSelectedRange):
(WebEditorClient::webViewDidChangeTypingStyle):
(WebEditorClient::webViewDidChangeSelection):
(WebEditorClient::isSelectTrailingWhitespaceEnabled):
* WebView.cpp:
(WebView::setEditingDelegate): Added.

Tools:

* DumpRenderTree/win/DumpRenderTree.cpp:
(resetWebViewToConsistentStateBeforeTesting):
* DumpRenderTree/win/EditingDelegate.cpp:
(EditingDelegate::QueryInterface):
(dumpPath):
(dump):
(EditingDelegate::shouldBeginEditingInDOMRange):
(EditingDelegate::shouldEndEditingInDOMRange):
(EditingDelegate::shouldInsertNode):
(EditingDelegate::shouldInsertText):
(EditingDelegate::shouldDeleteDOMRange):
(EditingDelegate::shouldChangeSelectedDOMRange):
(EditingDelegate::shouldApplyStyle):
(EditingDelegate::shouldChangeTypingStyle):
(EditingDelegate::doPlatformCommand):
(EditingDelegate::webViewDidBeginEditing):
(EditingDelegate::webViewDidChange):
(EditingDelegate::webViewDidEndEditing):
(EditingDelegate::webViewDidChangeTypingStyle):
(EditingDelegate::webViewDidChangeSelection):
(EditingDelegate::checkSpellingOfString):
(EditingDelegate::onNotify):
* DumpRenderTree/win/EditingDelegate.h:

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

4 years agoSimple line layout: Reset LineState when starting a new line.
zalan@apple.com [Thu, 22 Jan 2015 23:42:46 +0000 (23:42 +0000)]
Simple line layout: Reset LineState when starting a new line.
https://bugs.webkit.org/show_bug.cgi?id=140789

Reviewed by Antti Koivisto.

Reset LineState when starting a new line to ensure we always
start with a clean state.

No change in functionality.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::updateLineConstrains):
(WebCore::SimpleLineLayout::initializeNewLine):
(WebCore::SimpleLineLayout::splitFragmentToFitLine):
(WebCore::SimpleLineLayout::createTextRuns):

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

4 years ago[WebGL2] Create empty interface files for new WebGL2 objects.
roger_fong@apple.com [Thu, 22 Jan 2015 23:35:15 +0000 (23:35 +0000)]
[WebGL2] Create empty interface files for new WebGL2 objects.
https://bugs.webkit.org/show_bug.cgi?id=140779.
<rdar://problem/15002288>

Reviewed by Dean Jackson.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* html/canvas/WebGLQuery.cpp: Added.
(WebCore::WebGLQuery::create):
(WebCore::WebGLQuery::~WebGLQuery):
(WebCore::WebGLQuery::WebGLQuery):
(WebCore::WebGLQuery::deleteObjectImpl):
* html/canvas/WebGLQuery.h: Added.
* html/canvas/WebGLQuery.idl: Added.
* html/canvas/WebGLSampler.cpp: Added.
(WebCore::WebGLSampler::create):
(WebCore::WebGLSampler::~WebGLSampler):
(WebCore::WebGLSampler::WebGLSampler):
(WebCore::WebGLSampler::deleteObjectImpl):
* html/canvas/WebGLSampler.h: Added.
* html/canvas/WebGLSampler.idl: Added.
* html/canvas/WebGLSharedObject.h:
(WebCore::WebGLSharedObject::isQuery):
(WebCore::WebGLSharedObject::isSampler):
(WebCore::WebGLSharedObject::isSync):
(WebCore::WebGLSharedObject::isTransformFeedback):
(WebCore::WebGLSharedObject::isVertexArrayObject):
* html/canvas/WebGLSync.cpp: Added.
(WebCore::WebGLSync::create):
(WebCore::WebGLSync::~WebGLSync):
(WebCore::WebGLSync::WebGLSync):
(WebCore::WebGLSync::deleteObjectImpl):
* html/canvas/WebGLSync.h: Added.
* html/canvas/WebGLSync.idl: Added.
* html/canvas/WebGLTransformFeedback.cpp: Added.
(WebCore::WebGLTransformFeedback::create):
(WebCore::WebGLTransformFeedback::~WebGLTransformFeedback):
(WebCore::WebGLTransformFeedback::WebGLTransformFeedback):
(WebCore::WebGLTransformFeedback::deleteObjectImpl):
* html/canvas/WebGLTransformFeedback.h: Added.
* html/canvas/WebGLTransformFeedback.idl: Added.
* html/canvas/WebGLVertexArrayObject.cpp: Added.
(WebCore::WebGLVertexArrayObject::create):
(WebCore::WebGLVertexArrayObject::~WebGLVertexArrayObject):
(WebCore::WebGLVertexArrayObject::WebGLVertexArrayObject):
(WebCore::WebGLVertexArrayObject::deleteObjectImpl):
* html/canvas/WebGLVertexArrayObject.h: Added.
* html/canvas/WebGLVertexArrayObject.idl: Added.
* platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:

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

4 years ago[iOS] Fix build for external iphoneos SDK
ddkilzer@apple.com [Thu, 22 Jan 2015 23:34:34 +0000 (23:34 +0000)]
[iOS] Fix build for external iphoneos SDK

Reviewed by Daniel Bates.

* WebKitSystemInterface.h: Remove import of the
<IOSurface/IOSurface.h> header, and add a typedef for
IOSurfaceRef in its place.

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

4 years agoUserData decoding of WKTypeRefWrapper always fails
timothy_horton@apple.com [Thu, 22 Jan 2015 23:21:37 +0000 (23:21 +0000)]
UserData decoding of WKTypeRefWrapper always fails
https://bugs.webkit.org/show_bug.cgi?id=140791
<rdar://problem/19438402>

Reviewed by Anders Carlsson.

* Shared/mac/ObjCObjectGraph.mm:
(WebKit::ObjCObjectGraph::decode):
Add a missing break.

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

4 years agoSkip another copy of oes-vertex-array-object test, because it has the same problems
ap@apple.com [Thu, 22 Jan 2015 23:20:33 +0000 (23:20 +0000)]
Skip another copy of oes-vertex-array-object test, because it has the same problems
as the old one.

* platform/mac/TestExpectations:

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

4 years ago[Win] Unreviewed test gardening.
bfulgham@apple.com [Thu, 22 Jan 2015 23:16:30 +0000 (23:16 +0000)]
[Win] Unreviewed test gardening.

Clean up editing-related tests and rebaseline some output.

* platform/win/TestExpectations:
* platform/win/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt:
* platform/win/editing/input/reveal-caret-of-multiline-input-expected.txt:
* platform/win/editing/inserting/4960120-1-expected.txt:
* platform/win/editing/inserting/break-blockquote-after-delete-expected.txt:
* platform/win/editing/inserting/insert-3907422-fix-expected.txt: Removed.
* platform/win/editing/pasteboard/4641033-expected.txt: Added.
* platform/win/editing/pasteboard/4944770-1-expected.txt: Added.
* platform/win/editing/pasteboard/4944770-2-expected.txt: Added.
* platform/win/editing/pasteboard/drop-text-without-selection-expected.txt: Added.
* platform/win/editing/selection/3690703-2-expected.txt:
* platform/win/editing/selection/3690703-expected.txt:
* platform/win/editing/selection/3690719-expected.txt:
* platform/win/editing/selection/4975120-expected.txt: Added.
* platform/win/editing/selection/5240265-expected.txt:
* platform/win/editing/selection/caret-before-select-expected.txt: Added.
* platform/win/editing/selection/caret-rtl-2-expected.txt: Added.
* platform/win/editing/selection/caret-rtl-2-left-expected.txt:
* platform/win/editing/selection/caret-rtl-expected.txt: Added.
* platform/win/editing/selection/caret-rtl-right-expected.txt:
* platform/win/editing/selection/drag-select-1-expected.txt: Added.
* platform/win/editing/selection/mixed-editability-10-expected.txt:
* platform/win/editing/selection/replaced-boundaries-3-expected.txt: Added.
* platform/win/editing/selection/select-box-expected.txt: Added.
* platform/win/editing/selection/select-element-paragraph-boundary-expected.txt: Added.
* platform/win/editing/selection/select-from-textfield-outwards-expected.txt:
* platform/win/editing/selection/selection-button-text-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt:

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

4 years agoFix remaining multiple targets per rule issues in DerivedSources.make
cdumez@apple.com [Thu, 22 Jan 2015 23:13:36 +0000 (23:13 +0000)]
Fix remaining multiple targets per rule issues in DerivedSources.make
https://bugs.webkit.org/show_bug.cgi?id=140790

Reviewed by David Kilzer.

Fix remaining multiple target per rule issues in DerivedSources.make,
similarly to Bug 140784 and Bug 140756.

This was causing us to run scripts several times to generate the same
files and may lead to malformed files in case of concurrency.

* DerivedSources.make:

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

4 years agoAdd a build flag for ES6 class syntax
rniwa@webkit.org [Thu, 22 Jan 2015 23:12:26 +0000 (23:12 +0000)]
Add a build flag for ES6 class syntax
https://bugs.webkit.org/show_bug.cgi?id=140760

Reviewed by Michael Saboff.

.:

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

Source/JavaScriptCore:

Added ES6_CLASS_SYNTAX build flag and used it in tokenizer to recognize
"class", "extends", "static" and "super" keywords.

* Configurations/FeatureDefines.xcconfig:
* parser/Keywords.table:
* parser/ParserTokens.h:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

Source/WTF:

* wtf/FeatureDefines.h:

Tools:

* Scripts/webkitperl/FeatureList.pm:

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

4 years agoUnreviewed, skip flakey inspector test.
joepeck@webkit.org [Thu, 22 Jan 2015 23:09:53 +0000 (23:09 +0000)]
Unreviewed, skip flakey inspector test.

* TestExpectations:

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

4 years agoSVGNames.cpp and HTMLNames.cpp are sometimes malformed
cdumez@apple.com [Thu, 22 Jan 2015 22:23:55 +0000 (22:23 +0000)]
SVGNames.cpp and HTMLNames.cpp are sometimes malformed
https://bugs.webkit.org/show_bug.cgi?id=140784
<rdar://problem/17701233>

Reviewed by David Kilzer.

Due to bad rules in DerivedSources.make, make_names.pl was called
several times with the same arguments during build. This is because
SVG/HTML/MathML each had several targets associated to the same
command. This would cause the command (make_names.pl) to be called
once per target. However, make_names.pl only needs to be executed
once to generate all of the files currently marked as target.

Calling make_names.pl several times for the same files is not only
wasteful, but it can also lead to malformed generated files if the
scripts instances are executed in parallel as they will read / write
from / to the same files.

This patch uses INTERMEDIATE targets instead so that we can still
indicate which files are generated by make_names.pl but only run
the script once.

This is a similar fix as for Bug 140756. There may several other
similar issues in DerivedSources.make but this patch focuses on
make_names.pl. I will take care of other in follow-ups if needed.

* DerivedSources.make:

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

4 years agoHave Counter::create() return a Ref<Counter>
cdumez@apple.com [Thu, 22 Jan 2015 22:21:08 +0000 (22:21 +0000)]
Have Counter::create() return a Ref<Counter>
https://bugs.webkit.org/show_bug.cgi?id=140777

Reviewed by Andreas Kling.

Have Counter::create() return a Ref<Counter> instead of a PassRefPtr.

The CSSPrimitiveValue class needed some updates as well to support
constructing a CSSPrimitiveValue object from a Ref<>.

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::init):
* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::create):
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* css/Counter.h:
(WebCore::Counter::create):
(WebCore::Counter::cloneForCSSOM):

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

4 years agoDrop the legacy FeatureCounter class
cdumez@apple.com [Thu, 22 Jan 2015 22:19:46 +0000 (22:19 +0000)]
Drop the legacy FeatureCounter class
https://bugs.webkit.org/show_bug.cgi?id=140749

Reviewed by Andreas Kling.

Drop the legacy FeatureCounter class and use DiagnosticLoggingClient
instead.

Source/WebCore:

* CMakeLists.txt:
* Configurations/WebCore.xcconfig:
* WebCore.exp.in:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::willSendRequest):
(WebCore::SubresourceLoader::didReceiveResponse):
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::mustRevalidateDueToCacheHeaders):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::logMemoryCacheResourceRequest):
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::determineRevalidationPolicy):
* page/DiagnosticLoggingKeys.cpp:
(WebCore::DiagnosticLoggingKeys::mustRevalidateIsExpiredKey):
(WebCore::DiagnosticLoggingKeys::playedKey):
(WebCore::DiagnosticLoggingKeys::noCacheKey):
(WebCore::DiagnosticLoggingKeys::noStoreKey):
(WebCore::DiagnosticLoggingKeys::notInMemoryCacheKey):
(WebCore::DiagnosticLoggingKeys::mediaKey):
(WebCore::DiagnosticLoggingKeys::isExpiredKey):
(WebCore::DiagnosticLoggingKeys::loadingKey):
(WebCore::DiagnosticLoggingKeys::inMemoryCacheKey):
(WebCore::DiagnosticLoggingKeys::reasonKey):
(WebCore::DiagnosticLoggingKeys::audioKey):
(WebCore::DiagnosticLoggingKeys::cachedResourceRevalidationKey):
(WebCore::DiagnosticLoggingKeys::resourceRequestKey):
(WebCore::DiagnosticLoggingKeys::revalidatingKey):
(WebCore::DiagnosticLoggingKeys::unusedKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonErrorKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonNoStoreKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonRedirectChainKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonReloadKey):
(WebCore::DiagnosticLoggingKeys::unusedReasonTypeMismatchKey):
(WebCore::DiagnosticLoggingKeys::usedKey):
(WebCore::DiagnosticLoggingKeys::userKey):
(WebCore::DiagnosticLoggingKeys::videoKey):
(WebCore::DiagnosticLoggingKeys::webViewKey):
(WebCore::DiagnosticLoggingKeys::zoomedKey):
* page/DiagnosticLoggingKeys.h:
* page/Settings.in:
* platform/FeatureCounter.cpp: Removed.
* platform/FeatureCounter.h: Removed.
* platform/FeatureCounterKeys.h: Removed.
* platform/ios/FeatureCounter.mm: Removed.

Source/WebKit2:

* Shared/WebPreferencesDefinitions.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView initWithFrame:configuration:]):
* UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration init]):
(-[WKWebViewConfiguration copyWithZone:]):
(-[WKWebViewConfiguration _featureCounterEnabled]):
(-[WKWebViewConfiguration _setFeatureCounterEnabled:]):
* UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::willStartUserTriggeredZooming):

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

4 years agoWhen extending the fallback transitions with their closure, we are modifying the...
benjamin@webkit.org [Thu, 22 Jan 2015 22:17:32 +0000 (22:17 +0000)]
When extending the fallback transitions with their closure, we are modifying the Set while iterating it
https://bugs.webkit.org/show_bug.cgi?id=140785

Reviewed by Andreas Kling.

* contentextensions/NFAToDFA.cpp:
(WebCore::ContentExtensions::populateTransitions):
Make that in two steps: accumulate the fallback transitions then add the closure
of every element.

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

4 years agohttps://bugs.webkit.org/show_bug.cgi?id=140755
ap@apple.com [Thu, 22 Jan 2015 22:13:19 +0000 (22:13 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=140755
rdar://problem/7881290

* http/tests/appcache/404-resource-with-slow-main-resource.php: Try updating the
tiemout, as it's not sufficient for appcache load to fail on some bots.

* http/tests/appcache/404-resource-with-slow-main-resource.php:

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

4 years agoRename SimpleFontData to Font
antti@apple.com [Thu, 22 Jan 2015 21:57:04 +0000 (21:57 +0000)]
Rename SimpleFontData to Font
https://bugs.webkit.org/show_bug.cgi?id=140496

Reviewed by Zalan Bujtas.

The fallback supporting Font type was renamed FontCascade.
We can now rename SimpleFontData to Font matching the usual definition.

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

4 years agoSimple line layout: Make trailing whitespace handling more explicit.
zalan@apple.com [Thu, 22 Jan 2015 21:54:53 +0000 (21:54 +0000)]
Simple line layout: Make trailing whitespace handling more explicit.
https://bugs.webkit.org/show_bug.cgi?id=140776

Reviewed by Antti Koivisto.

Differentiate between committed and uncommitted trailing whitespace.
This enables further cleanup in removeTrailingWhitespace().

No change in functionality.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::LineState::commitAndCreateRun):
(WebCore::SimpleLineLayout::LineState::addUncommitted):
(WebCore::SimpleLineLayout::LineState::hasWhitespaceOnly):
(WebCore::SimpleLineLayout::LineState::removeTrailingWhitespace):
(WebCore::SimpleLineLayout::removeTrailingWhitespace):
(WebCore::SimpleLineLayout::LineState::LineState): Deleted.
(WebCore::SimpleLineLayout::LineState::removeCommittedTrailingWhitespace): Deleted.
(WebCore::SimpleLineLayout::LineState::resetTrailingWhitespace): Deleted.

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

4 years agoibtoold crash below -[WebView close]
bdakin@apple.com [Thu, 22 Jan 2015 21:40:02 +0000 (21:40 +0000)]
ibtoold crash below -[WebView close]
https://bugs.webkit.org/show_bug.cgi?id=140782
-and corresponding-
rdar://problem/19558472

Reviewed by Tim Horton.

Retain the NSImmediateActionGestureRecognizer. This should not be necessary, but
Source/WebKit/mac:

it is because interface builder is messing with our views.
* WebView/WebImmediateActionController.h:
* WebView/WebImmediateActionController.mm:
(-[WebImmediateActionController webViewClosed]):
(-[WebImmediateActionController _cancelImmediateAction]):
(-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
(-[WebImmediateActionController _updateImmediateActionItem]):

Source/WebKit2:

it is because interface builder can mess with our views.
* UIProcess/mac/WKImmediateActionController.h:
* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController willDestroyView:]):
(-[WKImmediateActionController _cancelImmediateAction]):
(-[WKImmediateActionController _cancelImmediateActionIfNeeded]):
(-[WKImmediateActionController _updateImmediateActionItem]):

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

4 years agoCrash in URL::protocol() after appcache load fails
ap@apple.com [Thu, 22 Jan 2015 21:04:39 +0000 (21:04 +0000)]
Crash in URL::protocol() after appcache load fails
https://bugs.webkit.org/show_bug.cgi?id=140755
rdar://problem/7881290

Reviewed by Dan Bates.

Source/WebCore:

Test: http/tests/appcache/404-resource-with-slow-main-resource.php

Not every cache that isn't being updated is complete. It could also be in a zombie
state after failing to load. We get rid of the cache once the main resource finishes
loading, but while it's being loaded, the zombie still looks like a regular
candidate application cache.

* loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::isComplete):
* loader/appcache/ApplicationCache.h:
Removed const from isComplete(), because otherwise we couldn't use ApplicationCacheGroup::m_caches.contains().
Constness doesn't make a lot of sense for these objects anyway.

* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::ApplicationCacheGroup::failedLoadingMainResource): Toned down an assertion.
We can fail a main resource load when the document has a zombie appcache, too.

* loader/appcache/ApplicationCacheGroup.h:
(WebCore::ApplicationCacheGroup::cacheIsComplete):
(WebCore::ApplicationCacheGroup::cacheIsBeingUpdated): Deleted.
These functions are only used in ApplicationCache::isComplete().

LayoutTests:

* http/tests/appcache/404-resource-with-slow-main-resource-expected.txt: Added.
* http/tests/appcache/404-resource-with-slow-main-resource.php: Added.

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

4 years agoAvoid defining always empty Vector<TextCheckingResult>
g.czajkowski@samsung.com [Thu, 22 Jan 2015 20:01:24 +0000 (20:01 +0000)]
Avoid defining always empty Vector<TextCheckingResult>
https://bugs.webkit.org/show_bug.cgi?id=140765

Reviewed by Alexey Proskuryakov.

Pass an empty vector direclty instead.

No new tests. No behavior change.

* editing/SpellChecker.cpp:
(WebCore::SpellChecker::didCheckCancel):

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

4 years agomakeprop.pl script is called too many times during build
cdumez@apple.com [Thu, 22 Jan 2015 19:38:43 +0000 (19:38 +0000)]
makeprop.pl script is called too many times during build
https://bugs.webkit.org/show_bug.cgi?id=140756
<rdar://problem/19467942>

Reviewed by David Kilzer.

The makeprop.pl script was called 4 times (instead of once) during
build due to a bad Makefile rule in DerivedSources.make. makeprop.pl
had 4 associated targets and thus was called 4 times (with the same
parameter). Calling it once is sufficient to generate all 4 files
that were marked as target. This patch uses an INTERMEDIATE target
instead so that we can indicate that several files are generated
by the same command.

I believe this may be the reason for the sporatic build failures
that look like:
"""
CSSPropertyNames.gperf: No keywords in input file!
calling gperf failed: 256 at WebCore/css/makeprop.pl line 1036.
"""
The makeprop.pl script is generating gperf's input file and calling the
gperf executable on this file. If the script is executed several times
in parallel, it would explain the build failures as several instances
of makeprop.pl may be writing / reading from the same
CSSPropertyNames.gperf file.

* DerivedSources.make:

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

4 years agoUnreviewed, rolling out r178894.
commit-queue@webkit.org [Thu, 22 Jan 2015 19:34:34 +0000 (19:34 +0000)]
Unreviewed, rolling out r178894.
https://bugs.webkit.org/show_bug.cgi?id=140775

Broke JSC and bindings tests (Requested by ap_ 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/178894

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

4 years ago[iOS] Fix iphoneos SDK builds for ios-ews queue
ddkilzer@apple.com [Thu, 22 Jan 2015 19:27:25 +0000 (19:27 +0000)]
[iOS] Fix iphoneos SDK builds for ios-ews queue
<http://webkit.org/b/140748>

Reviewed by Daniel Bates.

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj: Add new SPI headers.
* platform/graphics/cg/ImageBufferCG.cpp: Switch to using
"IOSurfaceSPI.h" from <IOSurface/IOSurface.h>.
* platform/graphics/cg/ImageBufferDataCG.cpp: Ditto.
* platform/graphics/cocoa/IOSurface.mm: Ditto.  Move definitions
in <IOSurface/IOSurfacePrivate.h> into "IOSurfaceSPI.h".
* platform/spi/cg/CoreGraphicsSPI.h: Switch to
WTF_EXTERN_C_{BEGIN,END}.  Add
CGContextGetFontAntialiasingStyle() and
CGContextSetFontAntialiasingStyle().
* platform/spi/cocoa/IOPMLibSPI.h: Switch to use IOReturnSPI.h.
* platform/spi/cocoa/IOReturnSPI.h: Add.
* platform/spi/cocoa/IOSurfaceSPI.h: Add.
* platform/spi/cocoa/IOTypesSPI.h: Add.

Source/WebKit2:

* Platform/spi/ios/BKSProcessAssertionSPI.h: Add -invalidate
definition.  Sort @property to the top of BKSProcessAssertion.

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

4 years agoBytecodeGenerator::initializeCapturedVariable() sets a misleading value for the 5th...
mark.lam@apple.com [Thu, 22 Jan 2015 19:05:42 +0000 (19:05 +0000)]
BytecodeGenerator::initializeCapturedVariable() sets a misleading value for the 5th operand of op_put_to_scope.
<https://webkit.org/b/140743>

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

BytecodeGenerator::initializeCapturedVariable() was setting the 5th operand to
op_put_to_scope to an inappropriate value (i.e. 0).  As a result, the execution
of put_to_scope could store a wrong inferred value into the VariableWatchpointSet
for which ever captured variable is at local index 0.  In practice, this turns
out to be the local for the Arguments object.  In this reproduction case in the
bug, the wrong inferred value written there is the boolean true.

Subsequently, DFG compilation occurs and CreateArguments is emitted to first do
a check of the local for the Arguments object.  But because that local has a
wrong inferred value, the check always discovers a non-null value and we never
actually create the Arguments object.  Immediately after this, an OSR exit
occurs leaving the Arguments object local uninitialized.  Later on at arguments
tear off, we run into a boolean true where we had expected to find an Arguments
object, which in turn, leads to the crash.

The fix is to:
1. In the case where the resolveModeType is LocalClosureVar, change the
   5th operand of op_put_to_scope to be a boolean.  True means that the
   local var is watchable.  False means it is not watchable.  We no longer
   pass the local index (instead of true) and UINT_MAX (instead of false).

   This allows us to express more clearer in the code what that value means,
   as well as remove the redundant way of getting the local's identifier.
   The identifier is always the one passed in the 2nd operand.

2. Previously, though intuitively, we know that the watchable variable
   identifier should be the same as the one that is passed in operand 2, this
   relationship was not clear in the code.  By code analysis, I confirmed that
   the callers of BytecodeGenerator::emitPutToScope() always use the same
   identifier for operand 2 and for filling out the ResolveScopeInfo from
   which we get the watchable variable identifier later.  I've changed the
   code to make this clear now by always using the identifier passed in
   operand 2.

3. In the case where the resolveModeType is LocalClosureVar,
   initializeCapturedVariable() and emitPutToScope() will now query
   hasWatchableVariable() to determine if the local is watchable or not.
   Accordingly, we pass the boolean result of hasWatchableVariable() as
   operand 5 of op_put_to_scope.

Also added some assertions.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::CodeBlock):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::initializeCapturedVariable):
(JSC::BytecodeGenerator::hasConstant):
(JSC::BytecodeGenerator::emitPutToScope):
* bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::hasWatchableVariable):
(JSC::BytecodeGenerator::watchableVariableIdentifier):
(JSC::BytecodeGenerator::watchableVariable): Deleted.

LayoutTests:

* js/dfg-osr-exit-between-create-and-tearoff-arguments-expected.txt: Added.
* js/dfg-osr-exit-between-create-and-tearoff-arguments.html: Added.
* js/script-tests/dfg-osr-exit-between-create-and-tearoff-arguments.js: Added.
(foo):

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

4 years ago[iOS] run-webkit-tests --ios-sim dies with an error; fails to parse Apple Internal
dbates@webkit.org [Thu, 22 Jan 2015 18:51:56 +0000 (18:51 +0000)]
[iOS] run-webkit-tests --ios-sim dies with an error; fails to parse Apple Internal
runtime in simctl output
https://bugs.webkit.org/show_bug.cgi?id=140751

Reviewed by David Kilzer.

Following the fix for <rdar://problem/19444383>, run-webkit-tests --ios-sim dies
with an error because it does not know how to parse the output of the simctl tool
to identify an Apple Internal runtime.

* Scripts/webkitpy/xcode/simulator.py:
(Runtime.__init__): Add parameter is_internal_runtime (defaults to False).
(Runtime.__eq__): Take is_internal_runtime when comparing two Runtime objects for equality.
(Runtime.__repr__): Update printable representation of Runtime object to indicate whether
the runtime is an internal runtime.
(Simulator): Update regular expressions runtime_re and version_re to match an internal runtime.
(Simulator._parse_runtimes): Pass is_internal_runtime to the Runtime constructor with the
appropriate value.
(Simulator._parse_devices): Pass argument is_internal_runtime to Simulator.runtime() so that
it updates the appropriate Runtime object.
(Simulator.runtime): Added optional parameter, is_internal_runtime. Modified to support
looking up a Runtime object for an internal runtime.

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

4 years ago[Win] More unskips and rebaselines.
bfulgham@apple.com [Thu, 22 Jan 2015 18:25:18 +0000 (18:25 +0000)]
[Win] More unskips and rebaselines.

* platform/win/TestExpectations:
* platform/win/fast/repaint/repaint-across-writing-mode-boundary-expected.png:
* platform/win/fast/repaint/repaint-across-writing-mode-boundary-expected.txt:
* platform/win/inspector-protocol: Added.
* platform/win/inspector-protocol/debugger: Added.
* platform/win/inspector-protocol/debugger/breakpoint-eval-with-exception-expected.txt: Added.
* platform/win/inspector-protocol/debugger/setBreakpoint-actions-expected.txt: Added.
* platform/win/inspector-protocol/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local-expected.txt: Added.
* platform/win/svg/text/kerning-expected.txt:
* platform/win/svg/text/multichar-glyph-expected.txt:
* platform/win/svg/transforms/text-with-mask-with-svg-transform-expected.png:
* platform/win/svg/transforms/text-with-mask-with-svg-transform-expected.txt:

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

4 years agoPropertyListNode::emitNode duplicates the code to put a constant property
rniwa@webkit.org [Thu, 22 Jan 2015 18:07:16 +0000 (18:07 +0000)]
PropertyListNode::emitNode duplicates the code to put a constant property
https://bugs.webkit.org/show_bug.cgi?id=140761

Reviewed by Geoffrey Garen.

Extracted PropertyListNode::emitPutConstantProperty to share the code.

Also made PropertyListNode::emitBytecode private since nobody is calling this function directly.

* bytecompiler/NodesCodegen.cpp:
(JSC::PropertyListNode::emitBytecode):
(JSC::PropertyListNode::emitPutConstantProperty): Added.
* parser/Nodes.h:

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

4 years agoLeaksViewer doesn't show recent builds if there are less than 10
ap@apple.com [Thu, 22 Jan 2015 17:59:08 +0000 (17:59 +0000)]
LeaksViewer doesn't show recent builds if there are less than 10
https://bugs.webkit.org/show_bug.cgi?id=140716

Reviewed by Tim Horton.

* BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:

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

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