WebKit-https.git
7 years agoRename InlineBox::remove() to removeFromParent
antti@apple.com [Sun, 13 Oct 2013 11:39:33 +0000 (11:39 +0000)]
Rename InlineBox::remove() to removeFromParent
https://bugs.webkit.org/show_bug.cgi?id=122725

Reviewed by Andreas Kling.

Also make it clear from the code that all InlineTextBoxes have behavesLikeText set.

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

7 years agoMake absoluteQuads/Rects functions return Vectors
antti@apple.com [Sun, 13 Oct 2013 11:05:33 +0000 (11:05 +0000)]
Make absoluteQuads/Rects functions return Vectors
https://bugs.webkit.org/show_bug.cgi?id=122722

Reviewed by Andreas Kling.

* dom/Document.cpp:
(WebCore::Document::adjustFloatQuadsForScrollAndAbsoluteZoomAndFrameScale):
(WebCore::Document::adjustFloatRectForScrollAndAbsoluteZoomAndFrameScale):

    Take RenderStyle instead of RenderObject

* dom/Document.h:
* dom/Element.cpp:
(WebCore::Element::getClientRects):
(WebCore::Element::getBoundingClientRect):
* dom/Range.cpp:
(WebCore::Range::textRects):
(WebCore::Range::textQuads):
(WebCore::Range::getBorderAndTextQuads):

    Adapt to the changes.

* rendering/RenderObject.h:

    Removed unnecessary adjustFloatQuad/RectForAbsoluteZoom functions, inline code to
    adjustFloatQuads/RectForScrollAndAbsoluteZoomAndFrameScale.

* rendering/RenderText.cpp:
(WebCore::RenderText::absoluteRects):
(WebCore::RenderText::absoluteRectsForRange):
(WebCore::RenderText::absoluteQuadsClippedToEllipsis):
(WebCore::RenderText::absoluteQuads):
(WebCore::RenderText::absoluteQuadsForRange):
* rendering/RenderText.h:
* rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::absoluteRects):
(WebCore::RenderTextLineBoxes::absoluteRectsForRange):
(WebCore::RenderTextLineBoxes::absoluteQuads):
(WebCore::RenderTextLineBoxes::absoluteQuadsForRange):
* rendering/RenderTextLineBoxes.h:

    Use return value instead of an out-arg, except for the virtual versions.

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

7 years agoLiveNodeList: rootNode() and document() should return references.
akling@apple.com [Sun, 13 Oct 2013 11:01:08 +0000 (11:01 +0000)]
LiveNodeList: rootNode() and document() should return references.
<https://webkit.org/b/122720>

Reviewed by Antti Koivisto.

Tighten up this code a bit by having rootNode() and document()
return references. Also replaced some handwritten traversal
with a call to Node::lastDescendant().

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

7 years agoDocument::createRenderTree() should assert that there is no arena.
akling@apple.com [Sun, 13 Oct 2013 10:59:40 +0000 (10:59 +0000)]
Document::createRenderTree() should assert that there is no arena.
<https://webkit.org/b/122723>

Reviewed by Antti Koivisto.

Calling createRenderTree() with a RenderArena already in place would
be a programming error.

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

7 years agoRemove dead ENABLE(CUSTOM_ELEMENTS) code.
akling@apple.com [Sun, 13 Oct 2013 10:16:54 +0000 (10:16 +0000)]
Remove dead ENABLE(CUSTOM_ELEMENTS) code.
<https://webkit.org/b/122721>

Reviewed by Antti Koivisto.

There are no ports building with this flag since April and the code
has bitrotted since. Remove it for now. If someone wants to resurrect
the feature someday, getting back to this point is trivial.

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

7 years agoMove absoluteRects/Quads to RenderTextLineBoxes
antti@apple.com [Sun, 13 Oct 2013 09:39:44 +0000 (09:39 +0000)]
Move absoluteRects/Quads to RenderTextLineBoxes
https://bugs.webkit.org/show_bug.cgi?id=122706

Reviewed by Andreas Kling.

* rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::absoluteRects):
(WebCore::RenderTextLineBoxes::absoluteRectsForRange):
(WebCore::RenderTextLineBoxes::absoluteQuads):
(WebCore::RenderTextLineBoxes::absoluteQuadsForRange):

    These move.

(WebCore::RenderTextLineBoxes::selectionRectForRange):
(WebCore::RenderTextLineBoxes::setSelectionState):

    Also moved a few smaller functions.

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

7 years agoRemove dead code hiding behind ENABLE(TOUCH_EVENT_TRACKING).
akling@apple.com [Sun, 13 Oct 2013 09:02:30 +0000 (09:02 +0000)]
Remove dead code hiding behind ENABLE(TOUCH_EVENT_TRACKING).
<https://webkit.org/b/122719>

Reviewed by Antti Koivisto.

Nobody is building with this flag, and it has broken-looking code
behind it anyway. Nuke from orbit.

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

7 years agoRenderLayer: Check SVG bit instead of element namespace in isTransparent().
akling@apple.com [Sun, 13 Oct 2013 07:17:23 +0000 (07:17 +0000)]
RenderLayer: Check SVG bit instead of element namespace in isTransparent().
<https://webkit.org/b/118171>

Reviewed by Darin Adler.

Replace the (virtual) namespaceURI() check with an isSVGElement() bit check.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::isTransparent):

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

7 years agoRemove Chromium specific code from flakiness dashboard
ap@apple.com [Sun, 13 Oct 2013 07:08:21 +0000 (07:08 +0000)]
Remove Chromium specific code from flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=122714

Reviewed by Sam Weinig.

Also removed code related to GPU tests and virtual suites.
"Fallbacks map" was chromium only too, not sure why they needed special handling there.

* TestResultServer/model/jsonresults_unittest.py:
* TestResultServer/static-dashboards/builders.js:
* TestResultServer/static-dashboards/dashboard_base.js:
* TestResultServer/static-dashboards/flakiness_dashboard.html:
* TestResultServer/static-dashboards/flakiness_dashboard.js:
* TestResultServer/static-dashboards/flakiness_dashboard_tests.css:
* TestResultServer/static-dashboards/flakiness_dashboard_unittests.js:
* TestResultServer/static-dashboards/history.js:
* TestResultServer/static-dashboards/loader.js:
* TestResultServer/static-dashboards/ui.js:
* TestResultServer/templates/uploadform.html:

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

7 years agoUse nullptr in Document.cpp
darin@apple.com [Sun, 13 Oct 2013 06:55:44 +0000 (06:55 +0000)]
Use nullptr in Document.cpp
https://bugs.webkit.org/show_bug.cgi?id=122715

Reviewed by Sam Weinig.

* dom/Document.cpp:
(WebCore::widgetForElement):
(WebCore::Document::Document):
(WebCore::Document::~Document):
(WebCore::Document::dropChildren):
(WebCore::Document::getElementByAccessKey):
(WebCore::Document::doctype):
(WebCore::Document::createElement):
(WebCore::Document::createElementNS):
(WebCore::Document::registerElement):
(WebCore::Document::createCDATASection):
(WebCore::Document::createProcessingInstruction):
(WebCore::Document::createEntityReference):
(WebCore::Document::importNode):
(WebCore::Document::adoptNode):
(WebCore::Document::webkitGetNamedFlows):
(WebCore::Document::elementFromPoint):
(WebCore::Document::caretRangeFromPoint):
(WebCore::Document::setTitle):
(WebCore::Document::removeTitle):
(WebCore::Document::view):
(WebCore::Document::page):
(WebCore::Document::settings):
(WebCore::Document::createNodeIterator):
(WebCore::Document::createTreeWalker):
(WebCore::Document::updateStyleIfNeeded):
(WebCore::Document::styleForElementIgnoringPendingStylesheets):
(WebCore::Document::disconnectFromFrame):
(WebCore::Document::destroyRenderTree):
(WebCore::Document::existingAXObjectCache):
(WebCore::Document::axObjectCache):
(WebCore::Document::scriptableDocumentParser):
(WebCore::Document::body):
(WebCore::Document::head):
(WebCore::Document::processBaseElement):
(WebCore::Document::findUnsafeParentScrollPropagationBoundary):
(WebCore::Document::cloneNode):
(WebCore::Document::styleResolverChanged):
(WebCore::Document::removeFocusedNodeOfSubtree):
(WebCore::Document::setFocusedElement):
(WebCore::Document::getWindowAttributeEventListener):
(WebCore::Document::createEvent):
(WebCore::Document::getOverrideStyle):
(WebCore::Document::ownerElement):
(WebCore::Document::setInPageCache):
(WebCore::Document::parentDocument):
(WebCore::Document::createAttributeNS):
(WebCore::Document::initSecurityContext):
(WebCore::Document::resetHiddenFocusElementTimer):
(WebCore::Document::getCSSCanvasContext):
(WebCore::Document::enqueuePopstateEvent):
(WebCore::Document::takeAnyMediaCanStartListener):
(WebCore::Document::requestFullScreenForElement):
(WebCore::Document::webkitExitFullscreen):
(WebCore::Document::webkitWillEnterFullScreenForElement):
(WebCore::Document::webkitDidExitFullScreenForElement):
(WebCore::Document::fullScreenRendererDestroyed):
(WebCore::Document::webkitPointerLockElement):
(WebCore::Document::seamlessParentIFrame):
(WebCore::Document::loader):
(WebCore::eventTargetElementForDocument):
(WebCore::nearestCommonHoverAncestor):
(WebCore::Document::ensureTemplateDocument):
Use nullptr in many places we were using 0.

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

7 years agoGet rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
darin@apple.com [Sun, 13 Oct 2013 06:54:56 +0000 (06:54 +0000)]
Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
https://bugs.webkit.org/show_bug.cgi?id=122713

Reviewed by Sam Weinig.

Source/WebCore:

Since we are using the function name toHTMLElement for casting to an HTMLElement
from a Node or Element, it's awkward to also use it for a quite different type of
type conversion on a FormAssociatedElement. We already have an asHTMLElement member
function, so lets use that.

* html/DOMFormData.cpp:
(WebCore::DOMFormData::DOMFormData): Use references instead of pointers, and
asHTMLElement instead of toHTMLElement.

* html/FormAssociatedElement.cpp: Made FormAttributeTargetObserver FINAL, made
its private inheritance explicit, made its constructor public so we can use it
with make_unique and got rid of its creation function. Also use reference instead
of a pointer.
(WebCore::FormAssociatedElement::FormAssociatedElement): Use nullptr.
(WebCore::FormAssociatedElement::~FormAssociatedElement): Ditto.
(WebCore::FormAssociatedElement::didMoveToNewDocument): Use asHTMLElement instead
of toHTMLElement and use a reference instead of a pointer.
(WebCore::FormAssociatedElement::insertedInto): Ditto.
(WebCore::FormAssociatedElement::removedFrom): Ditto.
(WebCore::FormAssociatedElement::formRemovedFromTree): Ditto.
(WebCore::FormAssociatedElement::resetFormOwner): Ditto.
(WebCore::FormAssociatedElement::formAttributeChanged): Ditto.
(WebCore::FormAssociatedElement::customError): Ditto.
(WebCore::FormAssociatedElement::resetFormAttributeTargetObserver): Use make_unique
instead of create here.
(WebCore::FormAssociatedElement::name): Use asHTMLElement.
(WebCore::FormAttributeTargetObserver::FormAttributeTargetObserver): Ditto.
(WebCore::FormAttributeTargetObserver::idTargetChanged): Updated since m_element is
now a reference.

* html/FormAssociatedElement.h: Removed some unneeded class declarations.
Made isFormAssociatedElement const. Use std::unique_ptr instead of OwnPtr.

* html/FormNamedItem.h: Made asHTMLElement return a reference, and overloaded it
for both const and non-const. Made isFormAssociatedElement const.

* html/HTMLFormControlElement.h: Updated for FormNamedItem changes. Removed an
unneeded class declaration.

* html/HTMLFormControlsCollection.cpp:
(WebCore::HTMLFormControlsCollection::virtualItemAfter): Use references, asHTMLElement,
and nullptr.
(WebCore::firstNamedItem): Ditto.
(WebCore::HTMLFormControlsCollection::namedItem): Ditto.
(WebCore::HTMLFormControlsCollection::updateNameCache): Ditto.

* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::validateInteractively): Use asHTMLElement and references.
(WebCore::HTMLFormElement::getTextFieldValues): Ditto.
(WebCore::HTMLFormElement::formElementIndexWithFormAttribute): Ditto.
(WebCore::HTMLFormElement::formElementIndex): Ditto.
(WebCore::HTMLFormElement::assertItemCanBeInPastNamesMap): Ditto.
(WebCore::HTMLFormElement::elementFromPastNamesMap): Ditto, and nullptr.

* html/HTMLImageElement.h: Updated for FormNamedItem changes.
* html/HTMLObjectElement.h: Ditto.

* loader/FormSubmission.cpp:
(WebCore::FormSubmission::create): Use asHTMLElement and references.

Source/WebKit/blackberry:

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::updateFormState): Use asHTMLElement.

Source/WebKit/mac:

* WebView/WebHTMLRepresentation.mm:
(-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
(-[WebHTMLRepresentation controlsInForm:]): Ditto.

Source/WebKit/win:

* WebFrame.cpp:
(WebFrame::controlsInForm): Use asHTMLElement.

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

7 years agoUse nullptr instead of 0 in TreeScope.cpp
darin@apple.com [Sun, 13 Oct 2013 06:32:14 +0000 (06:32 +0000)]
Use nullptr instead of 0 in TreeScope.cpp
https://bugs.webkit.org/show_bug.cgi?id=122711

Reviewed by Andreas Kling.

* dom/TreeScope.cpp:
(WebCore::TreeScope::TreeScope):
(WebCore::TreeScope::~TreeScope):
(WebCore::TreeScope::clearDocumentScope):
(WebCore::TreeScope::getElementById):
(WebCore::TreeScope::getAllElementsById):
(WebCore::TreeScope::getElementByName):
(WebCore::TreeScope::ancestorInThisScope):
(WebCore::TreeScope::getImageMap):
(WebCore::nodeFromPoint):
(WebCore::TreeScope::labelElementForId):
(WebCore::TreeScope::getSelection):
(WebCore::TreeScope::findAnchor):
(WebCore::focusedFrameOwnerElement):
(WebCore::TreeScope::focusedElement):
(WebCore::commonTreeScope):
Use a lot more nullptr, and also rewrite one while loop as a for loop.

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

7 years agoRemove the not-much-used isShadowHost function from Element.h
darin@apple.com [Sun, 13 Oct 2013 06:03:21 +0000 (06:03 +0000)]
Remove the not-much-used isShadowHost function from Element.h
https://bugs.webkit.org/show_bug.cgi?id=122710

Reviewed by Andreas Kling.

* dom/Element.h: Removed isShadowHost, which just checks if shadowRoot is null.

* page/FocusController.cpp:
(WebCore::FocusNavigationScope::focusNavigationScopeOwnedByShadowHost): Added
individual assertions instead of just asserting isShadowHost.
(WebCore::FocusNavigationScope::focusNavigationScopeOwnedByIFrame): Broke an
assertion with && in it into two assertions.
(WebCore::hasCustomFocusLogic): Changed argument type to be Element& and take
a reference instead of a pointer.
(WebCore::isNonFocusableShadowHost): Made arguments references instead of pointers.
Replaced isShadowHost check with a direct check of whether shadowRoot returns null
or not, which seems nearly as clear.
(WebCore::isFocusableShadowHost): Ditto.
(WebCore::adjustedTabIndex): Ditto.
(WebCore::shouldVisit): Ditto.
(WebCore::FocusController::findFocusableElementDescendingDownIntoFrameDocument):
Updated for changes above.
(WebCore::FocusController::advanceFocusInDocumentOrder): Ditto. Also some nullptr.
(WebCore::FocusController::findFocusableElementAcrossFocusScope): Ditto.
(WebCore::FocusController::findFocusableElementRecursively): Ditto.
(WebCore::FocusController::findElementWithExactTabIndex): Ditto.
(WebCore::nextElementWithGreaterTabIndex): Ditto.
(WebCore::previousElementWithLowerTabIndex): Ditto.
(WebCore::FocusController::nextFocusableElement): Ditto.
(WebCore::FocusController::previousFocusableElement): Ditto.

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

7 years agoMove querySelector from Node to ContainerNode and use references instead of pointers
darin@apple.com [Sun, 13 Oct 2013 05:42:49 +0000 (05:42 +0000)]
Move querySelector from Node to ContainerNode and use references instead of pointers
https://bugs.webkit.org/show_bug.cgi?id=122709

Reviewed by Anders Carlsson.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::querySelector): Moved here from Node. Pass a reference instead
of a pointer to SelectorQuery. Changed return types to RefPtr and raw pointer instead of
PassRefPtr.
(WebCore::ContainerNode::querySelectorAll): Ditto.
* dom/ContainerNode.h: Added the new functions.

* dom/Element.cpp:
(WebCore::Element::webkitMatchesSelector): Use && instead of an if statement and a reference rather than
a pointer.

* dom/Node.cpp: Sorted includes, removed SelectorQuery.h, removed the querySelector functions.
(WebCore::Node::ownerDocument): Use document instead of doc and nullptr instead of 0.
* dom/Node.h: Removed the querySelector functions.

* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::selectorMatches): Take references instead of pointers.
(WebCore::SelectorDataList::matches): Ditto.
(WebCore::SelectorDataList::queryAll): Return a RefPtr instead of PassRefPtr.
(WebCore::SelectorDataList::queryFirst): Ditto. Also use nullptr.
(WebCore::selectorForIdLookup): Take references instead of pointers.
(WebCore::isTreeScopeRoot): Ditto.
(WebCore::SelectorDataList::executeFastPathForIdSelector): Ditto.
(WebCore::isSingleTagNameSelector): Ditto.
(WebCore::elementsForLocalName): Ditto. Also use iterators instead of traversal.
(WebCore::anyElement): Ditto.
(WebCore::SelectorDataList::executeSingleTagNameSelectorData): Ditto.
(WebCore::isSingleClassNameSelector): Ditto.
(WebCore::SelectorDataList::executeSingleClassNameSelectorData): Ditto.
(WebCore::SelectorDataList::executeSingleSelectorData): Ditto.
(WebCore::SelectorDataList::executeSingleMultiSelectorData): Ditto.
(WebCore::SelectorDataList::execute): Ditto.
(WebCore::SelectorQueryCache::add): Ditto.

* dom/SelectorQuery.h: Update to use ContainerNode, references, and RefPtr and raw pointers
rather than PassRefPtr.

* dom/TreeScope.cpp:
(WebCore::TreeScope::getElementById): Use nullptr instead of 0.
(WebCore::TreeScope::getAllElementsById): Ditto.
(WebCore::TreeScope::getElementByName): Ditto.
(WebCore::TreeScope::ancestorInThisScope): Ditto.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::assertNode): Use nullptr instead of 0.
(WebCore::InspectorDOMAgent::assertDocument): Ditto.
(WebCore::InspectorDOMAgent::assertElement): Ditto. Also use isElementNode instead of nodeType.
(WebCore::InspectorDOMAgent::assertEditableNode): Use nullptr instead of 0.
(WebCore::InspectorDOMAgent::assertEditableElement): Ditto.
(WebCore::InspectorDOMAgent::getDocument): Use document instead of doc.
(WebCore::InspectorDOMAgent::querySelector): Changed to pass a ContainerNode.
(WebCore::InspectorDOMAgent::querySelectorAll): Ditto.

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

7 years agoMove code to find elements in slider shadow tree into RangeInputType class, since...
darin@apple.com [Sun, 13 Oct 2013 05:01:29 +0000 (05:01 +0000)]
Move code to find elements in slider shadow tree into RangeInputType class, since it creates that tree
https://bugs.webkit.org/show_bug.cgi?id=122708

Reviewed by Anders Carlsson.

* accessibility/AccessibilitySlider.cpp:
(WebCore::AccessibilitySliderThumb::elementRect): Use HTMLInputElement::sliderThumbElement
to find the thumb, rather than using the sliderThumbElementOf function.

* html/InputType.h: Use nullptr instead of 0. Tweak formatting a bit.

* html/RangeInputType.cpp:
(WebCore::RangeInputType::handleMouseDownEvent): Use typedSliderThumbElement function.
(WebCore::RangeInputType::handleTouchEvent): Ditto.
(WebCore::RangeInputType::createShadowSubtree): Fixed assertion to match the code below.
(WebCore::RangeInputType::sliderTrackElement): Moved next to the createShadowSubtree function
since it is finding an element in that subtree. Changed to do the work here instead of calling
a function in another file.
(WebCore::RangeInputType::typedSliderThumbElement): Added. Finds the slider thumb element,
and returns it as a reference with a specific type.
(WebCore::RangeInputType::sliderThumbElement): Changed to call typedSliderThumbElement, loosening
the type, and returning a pointer Changed to call typedSliderThumbElement, loosening
the type, and returning a pointer.
(WebCore::RangeInputType::minOrMaxAttributeChanged): Use typedSliderThumbElement.
(WebCore::RangeInputType::setValue): Ditto.
(WebCore::RangeInputType::listAttributeTargetChanged): Ditto.

* html/RangeInputType.h: Marked the class FINAL. Tweaked formatting a bit.
Added the typedSliderThumbElement function.

* html/shadow/SliderThumbElement.cpp:
(WebCore::SliderThumbElement::setPositionFromPoint): Call the HTMLInputElement::sliderTrackElement
function instead of having the input element's shadow subtree hierarchy hard-coded here.
(WebCore::SliderThumbElement::cloneElementWithoutAttributesAndChildren): Moved here from the header,
since it's a virtual function that won't be inlined.

* html/shadow/SliderThumbElement.h: Removed unneeded forward declarations. Made more virtual
functions private and added more OVERRIDE. Removed the toSliderThumbElement, sliderThumbElementOf,
and sliderTrackElementOf functions.

* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::layout): Use HTMLInputElement::sliderThumbElement.
(WebCore::RenderSlider::inDragMode): Ditto.

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

7 years agoRemove unneeded extra memory allocation and indirection for ValidityState
darin@apple.com [Sun, 13 Oct 2013 05:00:42 +0000 (05:00 +0000)]
Remove unneeded extra memory allocation and indirection for ValidityState
https://bugs.webkit.org/show_bug.cgi?id=122705

Reviewed by Anders Carlsson.

* CMakeLists.txt: Removed ValidityState.cpp.
* GNUmakefile.list.am: Ditto.
* WebCore.vcxproj/WebCore.vcxproj: Ditto.
* WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.

* html/FormAssociatedElement.cpp: Removed ValidityState.h include and the
FormAssociatedElement::validity function. That function is now an inline
in the ValidityState.h header.

* html/FormAssociatedElement.h: Added badInput function, the only function
from the ValidityState interface that was not already present here. Removed
m_validityState.

* html/HTMLFormControlElement.cpp: Removed include of ValidityState.h.
(WebCore::HTMLFormControlElement::isValidFormControlElement): Use the valid
function directly instead of indirectly through the validity state.
(WebCore::HTMLFormControlElement::setNeedsValidityCheck): Ditto.

* html/ValidityState.cpp: Removed.

* html/ValidityState.h: Removed the body of the ValidityState class and
made it effectively a "typedef" for FormAssociatedElement. It's actually
a derived class that adds no members, which is not quite right but will
work just fine for this.
(WebCore::FormAssociatedElement::validity): Implemented; just returns the
FormAssociatedElement, which the bindings expose as a ValidityState.

* html/ValidityState.idl: Use SkipVTableValidation instead of
ImplementationLacksVTable because FormAssociatedElement does have a vtable.

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

7 years agoWebViews inside OS X screen savers have large caches, but should not
aroben@webkit.org [Sun, 13 Oct 2013 04:05:49 +0000 (04:05 +0000)]
WebViews inside OS X screen savers have large caches, but should not
https://bugs.webkit.org/show_bug.cgi?id=122604

We use WebCacheModelDocumentViewer by default for apps linked against
modern WebKit, and WebCacheModelDocumentBrowser for apps linked
against legacy WebKit. ScreenSaverEngine.app doesn't link against
WebKit at all, and thus falls into the legacy case by accident because
NSVersionOfLinkTimeLibrary("WebKit") returns -1.

But WebViews inside screen savers are almost certainly not being used
as browsers, so this large-ish cache specified by
WebCacheModelDocumentBrowser is wasteful. This is likely true for all
apps that don't directly link against WebKit, so now we use
WebCacheModelDocumentViewer by default for those apps.

Reviewed by Darin Adler.

* WebView/WebPreferences.mm:
(cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
for apps that don't link against WebKit directly. Also converted to
use @autoreleasepool {} and early returns while I was in here.

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

7 years agoRename toParentMediaElement to parentMediaElement, since it's not a type cast
darin@apple.com [Sun, 13 Oct 2013 01:18:08 +0000 (01:18 +0000)]
Rename toParentMediaElement to parentMediaElement, since it's not a type cast
https://bugs.webkit.org/show_bug.cgi?id=122707

Reviewed by Eric Carlson.

* accessibility/AccessibilityMediaControls.cpp:
(WebCore::AccessibilityMediaControlsContainer::controllingVideoElement): Call the
function by its new name, and also remove unnecessary type casting.

* html/shadow/MediaControlElementTypes.cpp:
(WebCore::parentMediaElement): Renamed from toParentMediaElement. Changed to use
nullptr. Removed an unnecessary null check.

* html/shadow/MediaControlElementTypes.h: Renamed from toParentMediaElement.
Changed the argument to the RenderObject overload to be a reference rather than
a pointer since it doesn't handle null.

* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlClosedCaptionsTrackListElement::defaultEventHandler):
(WebCore::MediaControlClosedCaptionsTrackListElement::updateDisplay):
(WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
(WebCore::MediaControlFullscreenButtonElement::defaultEventHandler):
(WebCore::MediaControlTextTrackContainerElement::updateDisplay):
(WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
(WebCore::MediaControlTextTrackContainerElement::clearTextTrackRepresentation):
(WebCore::MediaControlTextTrackContainerElement::updateSizes):
(WebCore::MediaControlTextTrackContainerElement::createTextTrackRepresentationImage):
Updated to use the new name. Also use nullptr.

* html/shadow/MediaControlsBlackBerry.cpp:
(WebCore::MediaControlFullscreenFullscreenButtonElement::defaultEventHandler):
Updated to use the new name.

* platform/blackberry/RenderThemeBlackBerry.cpp:
(WebCore::determineFullScreenMultiplier):
(WebCore::RenderThemeBlackBerry::adjustMediaControlStyle):
(WebCore::RenderThemeBlackBerry::paintMediaPlayButton):
(WebCore::RenderThemeBlackBerry::paintMediaRewindButton):
(WebCore::RenderThemeBlackBerry::paintMediaMuteButton):
(WebCore::RenderThemeBlackBerry::paintMediaFullscreenButton):
(WebCore::RenderThemeBlackBerry::paintMediaSliderTrack):
(WebCore::RenderThemeBlackBerry::paintMediaVolumeSliderTrack):
Updated to use the new name.

* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::paintMediaSliderTrack):
Updated to use the new name.

* platform/gtk/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::paintMediaSliderTrack):
(WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack):
Updated to use the new name.

* rendering/RenderMediaControls.cpp:
(WebCore::RenderMediaControls::paintMediaControlsPart):
Call the function by its new name and with a reference instead of a pointer.

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

7 years agoMove positionForPoint to RenderTextLineBoxes
antti@apple.com [Sat, 12 Oct 2013 22:33:53 +0000 (22:33 +0000)]
Move positionForPoint to RenderTextLineBoxes
https://bugs.webkit.org/show_bug.cgi?id=122703

Reviewed by Andreas Kling.

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

7 years agoRemove unused ScrollingCoordinator hooks.
akling@apple.com [Sat, 12 Oct 2013 22:23:06 +0000 (22:23 +0000)]
Remove unused ScrollingCoordinator hooks.
<https://webkit.org/b/122701>

Reviewed by Anders Carlsson.

Remove leftover ScrollingCoordinator hooks that were only used
by the Chromium port.

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

7 years ago[Soup] The NeverDestroyed<std::unique_ptr<NetworkStorageSession>> variable in default...
zandobersek@gmail.com [Sat, 12 Oct 2013 21:14:58 +0000 (21:14 +0000)]
[Soup] The NeverDestroyed<std::unique_ptr<NetworkStorageSession>> variable in defaultSession() should be static
https://bugs.webkit.org/show_bug.cgi?id=122700

Reviewed by Anders Carlsson.

* platform/network/soup/NetworkStorageSessionSoup.cpp:
(WebCore::defaultSession): The NeverDestroyed variable should be static to avoid its reinitialization every time
the function is called. This was exposed by r157337 and should fix the subsequent crashes.

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

7 years agoMove line dirtying code to RenderTextLineBoxes
antti@apple.com [Sat, 12 Oct 2013 20:33:29 +0000 (20:33 +0000)]
Move line dirtying code to RenderTextLineBoxes
https://bugs.webkit.org/show_bug.cgi?id=122699

Reviewed by Andreas Kling.

* rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::removeAllFromParent):

    Also moved the removal loop.

(WebCore::RenderTextLineBoxes::dirtyAll):
(WebCore::RenderTextLineBoxes::dirtyRange):

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

7 years agoMove more code to RenderTextLineBoxes
antti@apple.com [Sat, 12 Oct 2013 18:40:48 +0000 (18:40 +0000)]
Move more code to RenderTextLineBoxes
https://bugs.webkit.org/show_bug.cgi?id=122697

Reviewed by Andreas Kling.

* rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::boundingBox):
(WebCore::RenderTextLineBoxes::visualOverflowBoundingBox):
(WebCore::RenderTextLineBoxes::hasRenderedText):
(WebCore::RenderTextLineBoxes::caretMinOffset):
(WebCore::RenderTextLineBoxes::caretMaxOffset):

    Moved these.

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

7 years agoAdd a feature define for SubtleCrypto
ap@apple.com [Sat, 12 Oct 2013 18:34:14 +0000 (18:34 +0000)]
Add a feature define for SubtleCrypto
https://bugs.webkit.org/show_bug.cgi?id=122683

Reviewed by Anders Carlsson.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

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

7 years agoGenerate tighter isFooElement() functions for HTML elements.
akling@apple.com [Sat, 12 Oct 2013 18:26:47 +0000 (18:26 +0000)]
Generate tighter isFooElement() functions for HTML elements.
<https://webkit.org/b/122696>

Reviewed by Antti Koivisto.

Specialize HTML element type checking helpers to only compare the
localName and not the fully qualified tag name.

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

7 years agoReplace static cast ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
akling@apple.com [Sat, 12 Oct 2013 18:16:42 +0000 (18:16 +0000)]
Replace static cast ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
https://bugs.webkit.org/show_bug.cgi?id=120803

Patch by Jessica Pease <jessica_n_pease@apple.com> on 2013-09-27
Reviewed by Andreas Kling.

No new tests because we're just changing assertions.

Source/WebCore:

* accessibility/AccessibilityMockObject.h:
(WebCore::toAccessibilityMockObject):
* bindings/js/JSCanvasRenderingContextCustom.cpp:
(WebCore::toJS):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::execute):
* css/CSSGradientValue.cpp:
(WebCore::CSSGradientValue::image):
* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyTextUnderlinePosition::applyValue):
* dom/Element.cpp:
(WebCore::Element::elementRareData):
(WebCore::Element::synchronizeAttribute):
* dom/FocusEvent.h:
(WebCore::toFocusEvent):
* dom/MouseEvent.h:
(WebCore::toMouseEvent):
* dom/Node.cpp:
(WebCore::Node::rareData):
* dom/StyledElement.cpp:
(WebCore::StyledElement::ensureMutableInlineStyle):
* dom/TouchEvent.h:
(WebCore::toTouchEvent):
* editing/CompositeEditCommand.h:
(WebCore::toCompositeEditCommand):
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::shouldAllowQuickTimeClassIdQuirk):
* html/track/AudioTrack.h:
(WebCore::toAudioTrack):
* html/track/TextTrack.h:
(WebCore::toTextTrack):
* html/track/VideoTrack.h:
(WebCore::toVideoTrack):
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::buildObjectForAttributesStyle):
* loader/cache/CachedResourceClientWalker.h:
(WebCore::CachedResourceClientWalker::next):
* page/FrameView.h:
(WebCore::toFrameView):
* rendering/InlineBox.cpp:
(WebCore::InlineBox::root):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::createLineBoxesFromBidiRuns):
* rendering/svg/SVGPathData.cpp:
(WebCore::updatePathFromEllipseElement):
(WebCore::updatePathFromLineElement):
(WebCore::updatePathFromPolygonElement):
(WebCore::updatePathFromPolylineElement):
* workers/WorkerMessagingProxy.cpp:
(WebCore::WorkerMessagingProxy::startWorkerGlobalScope):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::document):

Source/WebKit2:

* Shared/Plugins/NPObjectProxy.h:
(WebKit::NPObjectProxy::toNPObjectProxy):
* WebProcess/Plugins/Netscape/NPJSObject.h:
(WebKit::NPJSObject::toNPJSObject):

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

7 years agoReplace bounds checking ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
akling@apple.com [Sat, 12 Oct 2013 18:03:39 +0000 (18:03 +0000)]
Replace bounds checking ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
https://bugs.webkit.org/show_bug.cgi?id=120893

Patch by Jessica Pease <jessica_n_pease@apple.com> on 2013-09-06
Reviewed by Darin Adler.

Source/WebCore:

* Modules/indexeddb/IDBKeyPath.cpp:
(WebCore::IDBKeyPathLexer::lex):
* Modules/indexeddb/IDBLevelDBCoding.cpp:
(WebCore::IDBLevelDBCoding::compareEncodedIDBKeys):
* bindings/js/JSCSSStyleDeclarationCustom.cpp:
(WebCore::cssPropertyIDForJSCSSPropertyName):
* css/CSSFontSelector.cpp:
(WebCore::compareFontFaces):
* css/CSSParser.cpp:
(WebCore::CSSParser::rewriteSpecifiers):
* html/HTMLCollection.cpp:
(WebCore::traverseMatchingElementsForwardToOffset):
(WebCore::LiveNodeListBase::traverseChildNodeListForwardToOffset):
(WebCore::HTMLCollection::traverseForwardToOffset):
* html/HTMLFontElement.cpp:
(WebCore::parseFontSize):
* html/parser/HTMLParserIdioms.cpp:
(WebCore::parseHTMLIntegerInternal):
(WebCore::parseHTMLNonNegativeIntegerInternal):
* inspector/InspectorStyleSheet.h:
(WebCore::InspectorStyleProperty::setRawTextFromStyleDeclaration):
* platform/graphics/StringTruncator.cpp:
(WebCore::centerTruncateToBuffer):
(WebCore::rightTruncateToBuffer):
(WebCore::truncateString):
* platform/graphics/TextRun.h:
(WebCore::TextRun::subRun):
* platform/text/BidiRunList.h:
(WebCore::::reverseRuns):
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::selectionRectForTextFragment):
(WebCore::SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates):
* rendering/svg/SVGTextChunkBuilder.cpp:
(WebCore::SVGTextChunkBuilder::buildTextChunks):
* rendering/svg/SVGTextLayoutEngine.cpp:
(WebCore::SVGTextLayoutEngine::currentLogicalCharacterMetrics):
* rendering/svg/SVGTextQuery.cpp:
(WebCore::SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates):
* svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
* svg/SVGPathByteStreamSource.h:
(WebCore::SVGPathByteStreamSource::readType):

Source/WebKit2:

* Shared/Plugins/PluginQuirks.h:
(WebKit::PluginQuirks::add):

Source/WTF:

* wtf/BumpPointerAllocator.h:
(WTF::BumpPointerPool::ensureCapacity):
(WTF::BumpPointerPool::alloc):
(WTF::BumpPointerPool::ensureCapacityCrossPool):
* wtf/FastMalloc.cpp:
(WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
* wtf/StringPrintStream.cpp:
(WTF::StringPrintStream::increaseSize):
* wtf/dtoa/utils.h:
(WTF::double_conversion::BufferReference::SubBufferReference):
* wtf/text/WTFString.cpp:
(WTF::String::fromUTF8):

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

7 years agoFactor line box code from RenderText to a class
antti@apple.com [Sat, 12 Oct 2013 17:41:13 +0000 (17:41 +0000)]
Factor line box code from RenderText to a class
https://bugs.webkit.org/show_bug.cgi?id=122694

Reviewed by Andreas Kling.

Create RenderTextLineBoxes and move some line box specific code there.

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

7 years agoFix potential register trampling in JIT since r157313.
commit-queue@webkit.org [Sat, 12 Oct 2013 15:15:14 +0000 (15:15 +0000)]
Fix potential register trampling in JIT since r157313.
https://bugs.webkit.org/show_bug.cgi?id=122691

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-10-12
Reviewed by Michael Saboff.

* jit/CCallHelpers.h:
(JSC::CCallHelpers::setupArgumentsWithExecState):

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

7 years agoReplace RenderText::renderedTextLength with hasRenderedText
antti@apple.com [Sat, 12 Oct 2013 14:51:01 +0000 (14:51 +0000)]
Replace RenderText::renderedTextLength with hasRenderedText
https://bugs.webkit.org/show_bug.cgi?id=122693

Reviewed by Andreas Kling.

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

7 years agoUse unique_ptr instead of delete in a few places
darin@apple.com [Sat, 12 Oct 2013 14:15:33 +0000 (14:15 +0000)]
Use unique_ptr instead of delete in a few places
https://bugs.webkit.org/show_bug.cgi?id=122639

Reviewed by Anders Carlsson.

Source/WebCore:

* Modules/webdatabase/DatabaseBackendBase.cpp:
(WebCore::guidToDatabaseMap): Use NeverDestroyed instead of DEFINE_STATIC_LOCAL.
(WebCore::guidForOriginAndName): Ditto.
(WebCore::DatabaseBackendBase::DatabaseBackendBase): Removed unneeded initialization
of m_guid, which is set in the body of the constructor explicitly anyway. Use emptyString.
Use unique_ptr for the values in the map. Use the add idiom instead of the get/set idiom.
(WebCore::DatabaseBackendBase::closeDatabase): Use the find/remove idiom instead of the
get/remove idiom.
(WebCore::DatabaseBackendBase::performOpenAndVerify): Use auto here to avoid having to
use the map type by name.

* loader/cache/CachedFont.cpp:
(WebCore::CachedFont::CachedFont): Don't initialize m_fontData to 0; unique_ptr will do that.
(WebCore::CachedFont::~CachedFont): Don't delete m_fontData. unique_ptr will do that.
(WebCore::CachedFont::ensureCustomFontData): Add a get.
(WebCore::CachedFont::allClientsRemoved): Don't delete m_fontData. Use nullptr instead of 0.
* loader/cache/CachedFont.h: Changed m_fontData to a unique_ptr.

* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::BitmapImage): Don't initialize m_frameTimer to 0; unique_ptr will do that.
(WebCore::BitmapImage::startAnimation): Use make_unique to create the timer.
(WebCore::BitmapImage::stopAnimation): Don't delete m_frameTimer. Use nullptr instead of 0.
* platform/graphics/BitmapImage.h: Changed m_FrameTimer to a unique_ptr.
* platform/graphics/cg/BitmapImageCG.cpp:
(WebCore::BitmapImage::BitmapImage): Don't initialize m_frameTimer to 0; unique_ptr will do that.

* platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::FontCustomPlatformData::~FontCustomPlatformData): Don't call CGFontRelease on m_cgFont.
(WebCore::FontCustomPlatformData::fontPlatformData): Use get on m_cgFont.
(WebCore::createFontCustomPlatformData): Use nullptr instead of 0, and make_unique instead of new.
* platform/graphics/mac/FontCustomPlatformData.h: Chnaged m_cgFont to be a RetainPtr, and the
return value from createFontCustomPlatformData to be a unique_ptr.

* platform/graphics/blackberry/FontCustomPlatformData.h:
* platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/cairo/BitmapImageCairo.cpp:
(WebCore::BitmapImage::BitmapImage):
* platform/graphics/cairo/FontCustomPlatformData.h:
* platform/graphics/cg/BitmapImageCG.cpp:
(WebCore::BitmapImage::BitmapImage):
* platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformData.h:
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.h:
Same thing on all the other platforms.

* platform/network/NetworkStorageSession.h: Changed return value of createPrivateBrowsingSession
to a unique_ptr, and made constructors public.

* platform/network/cf/NetworkStorageSessionCFNet.cpp:
(WebCore::NetworkStorageSession::createPrivateBrowsingSession): Use make_unique.

* platform/network/soup/NetworkStorageSessionSoup.cpp:
(WebCore::defaultSession):
(WebCore::NetworkStorageSession::defaultStorageSession):
(WebCore::NetworkStorageSession::createPrivateBrowsingSession):
(WebCore::NetworkStorageSession::switchToNewTestingSession):
Same thing on all the other platforms.

Source/WebKit/mac:

* History/WebHistory.mm:
(-[WebHistoryPrivate init]): Use make_unique.
(-[WebHistoryPrivate dealloc]): Don't delete.
(-[WebHistoryPrivate finalize]): Don't delete.
(-[WebHistoryPrivate data]): Use get.

* WebCoreSupport/WebFrameNetworkingContext.mm:
(privateSession): Use NeverDestroyed here instead of a raw pointer.
(WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
new function instead of direct global variable access.
(WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
(WebFrameNetworkingContext::storageSession): Ditto.

* WebView/WebFrame.mm:
(-[WebFramePrivate dealloc]): Don't delete.
(-[WebFramePrivate finalize]): Don't delete.
(-[WebFrame _attachScriptDebugger]): Use make_unique.
(-[WebFrame _detachScriptDebugger]): Don't delete.
* WebView/WebFrameInternal.h: Use unique_ptr.

Source/WebKit/win:

* WebCoreSupport/WebFrameNetworkingContext.cpp:
(privateSession):
(identifierBase):
(WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
(WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
(WebFrameNetworkingContext::ensurePrivateBrowsingSession):
(WebFrameNetworkingContext::destroyPrivateBrowsingSession):
(WebFrameNetworkingContext::storageSession):

Source/WebKit2:

* NetworkProcess/mac/RemoteNetworkingContext.mm:
(WebKit::privateBrowsingStorageSession): Use NeverDestroyed and unique_ptr.
(WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession): Use std::move.

* Shared/Downloads/DownloadManager.cpp:
(WebKit::DownloadManager::startDownload): Use std::move. Also add instead of set.
(WebKit::DownloadManager::convertHandleToDownload): Ditto.
(WebKit::DownloadManager::downloadFinished): Don't delete.

* Shared/Downloads/DownloadManager.h: Changed m_downloads to hold unique_ptr instead
of raw pointers.

* Shared/SandboxExtension.h: Use std::unique_ptr for m_data.

* Shared/mac/SandboxExtensionMac.mm:
(WebKit::SandboxExtension::HandleArray::HandleArray): Don't initialize m_data to 0.
(WebKit::SandboxExtension::HandleArray::~HandleArray): Don't delete m_data.
(WebKit::SandboxExtension::HandleArray::allocate): Use make_unique to allocate m_data.

* WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
(WebKit::privateSession): Use NeverDestroyed and unique_ptr.
(WebKit::identifierBase): Use NeverDestroyed.
(WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
Updated to use the above.
(WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession): Ditto.
(WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
(WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts): Ditto.
(WebKit::WebFrameNetworkingContext::storageSession): Ditto.

* WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
(WebKit::privateSession):
(WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
(WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
(WebKit::WebFrameNetworkingContext::storageSession):
(WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
More of the same.

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

7 years agoMake LayoutState not arena-allocated.
akling@apple.com [Sat, 12 Oct 2013 10:06:26 +0000 (10:06 +0000)]
Make LayoutState not arena-allocated.
<https://webkit.org/b/122649>

Reviewed by Antti Koivisto.

Let RenderView own a singly-linked chain of LayoutState objects
managed by unique_ptr.

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

7 years ago[sh4] Add missing spaces in JITStubsSH4.h
commit-queue@webkit.org [Sat, 12 Oct 2013 09:25:44 +0000 (09:25 +0000)]
[sh4] Add missing spaces in JITStubsSH4.h
https://bugs.webkit.org/show_bug.cgi?id=122690

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-10-12
Reviewed by Andreas Kling.

* jit/JITStubsSH4.h: Space between string concatenation is mandatory with C++11

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

7 years ago[sh4] Add missing test32 implementation in macro assembler.
commit-queue@webkit.org [Sat, 12 Oct 2013 09:19:19 +0000 (09:19 +0000)]
[sh4] Add missing test32 implementation in macro assembler.
https://bugs.webkit.org/show_bug.cgi?id=122689

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-10-12
Reviewed by Andreas Kling.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::test32):

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

7 years agoMake RenderLayer not arena-allocated.
akling@apple.com [Sat, 12 Oct 2013 09:15:33 +0000 (09:15 +0000)]
Make RenderLayer not arena-allocated.
<https://webkit.org/b/87523>

Reviewed by Antti Koivisto.

Let RenderLayerModelObject store its RenderLayer in a unique_ptr.
Layers are relatively low-volume objects and this looks neutral
on our performance tests.

Re-landing this since the original commit exposed a problem with
the destruction order. This pattern:

    m_someRenderer->destroy();
    m_someRenderer = nullptr;

..is different from what we get with unique_ptr, which clears
the pointer storage before calling the destructor.
I believe that the new order is strictly better as it removes
one path to accessing an object that is undergoing destruction.

The exposed bug was in RLC::fixedRootBackgroundLayerChanged()
where we were dereferencing the RenderView's layer() without
checking, despite it being called below ~RenderLayer.

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

7 years agoMove firstPositiveWidth/adjustLogicalLineTop functions where they're actually used
zoltan@webkit.org [Sat, 12 Oct 2013 06:03:17 +0000 (06:03 +0000)]
Move firstPositiveWidth/adjustLogicalLineTop functions where they're actually used
https://bugs.webkit.org/show_bug.cgi?id=122685

Reviewed by Darin Adler.

I'm working on the refactoring of RenderBlockLineLayout, progress tracked under bug #121261. For the better readability, I moved
firstPositiveWidth and adjustLogicalLineTop functions above pushShapeContentOverflowBelowTheContentBox, where these're actually used.

No new tests, no behavior change.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::firstPositiveWidth):
(WebCore::adjustLogicalLineTop):

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

7 years agoExtract an iterator/resolver class from calculateAdjustedNodes
rniwa@webkit.org [Sat, 12 Oct 2013 04:52:45 +0000 (04:52 +0000)]
Extract an iterator/resolver class from calculateAdjustedNodes
https://bugs.webkit.org/show_bug.cgi?id=122687

Reviewed by Darin Adler.

Extracted EventRelatedNodeResolver out of calculateAdjustedNodes and replaced calls to calculateAdjustedNodes
in updateTouchListsInEventPath and setRelatedTarget by the use of this newly added class.

* dom/EventContext.h: Added some helper functions to TouchEventContext so that updateTouchListsInEventPath
could obtain respective TouchList* without having to hard-code the name.
* dom/EventDispatcher.cpp:
(WebCore::EventRelatedNodeResolver::EventRelatedNodeResolver): Added.
(WebCore::EventRelatedNodeResolver::moveToParentOrShadowHost): Extracted from calculateAdjustedNodes.
(WebCore::EventPath::updateTouchListsInEventPath): Updated to use EventRelatedNodeResolver. Also made this
a member function of EventPath.
(WebCore::EventPath::updateTouchLists): Removed local Vectors to TouchList now that updateTouchListsInEventPath
can obtain TouchList* on demand.
(WebCore::EventPath::setRelatedTarget): Upsed to use EventRelatedNodeResolver.

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

7 years agoChange most call sites to call ICU directly instead of through WTF::Unicode
darin@apple.com [Sat, 12 Oct 2013 04:16:42 +0000 (04:16 +0000)]
Change most call sites to call ICU directly instead of through WTF::Unicode
https://bugs.webkit.org/show_bug.cgi?id=122635

Reviewed by Alexey Proskuryakov.

Source/JavaScriptCore:

* parser/Lexer.cpp:
(JSC::isNonLatin1IdentStart): Take a UChar since that's what the only caller wants to pass.
Use U_GET_GC_MASK instead of WTF::Unicode::category.
(JSC::isNonLatin1IdentPart): Ditto.

* parser/Lexer.h:
(JSC::Lexer::isWhiteSpace): Use u_charType instead of WTF::Unicode::isSeparatorSpace.

* runtime/JSFunction.cpp: Removed "using namespace" for WTF::Unicode, this will no longer
compile since this doesn't include anything that defines that namespace.

* runtime/JSGlobalObjectFunctions.cpp:
(JSC::isStrWhiteSpace): Use u_charType instead of WTF::Unicode::isSeparatorSpace.

* yarr/YarrInterpreter.cpp:
(JSC::Yarr::ByteCompiler::atomPatternCharacter): Use u_tolower and u_toupper instead of
Unicode::toLower and Unicode::toUpper. Also added some assertions since this code assumes
it can convert any UChar to lowercase or uppercase in another UChar, with no risk of needing
a UChar32 for the result. I guess that's probably true, but it would be good to know in a
debug build if not.

Source/WebCore:

* Modules/indexeddb/IDBKeyPath.cpp:
(isIdentifierStartCharacter): Use U_GET_GC_MASK instead of WTF::Unicode::category.
(isIdentifierCharacter): Ditto.

* css/CSSParser.cpp:
(WebCore::makeLower): Use u_tolower instead of WTF::Unicode::toLower.
Also assert the character fits in a UChar.

* dom/Document.cpp:
(WebCore::isValidNameStart): Use U_GET_GC_MASK instead of WTF::Unicode::category,
and u_getIntPropertyValue instead of WTF::Unicode::decompositionType.
(WebCore::isValidNamePart): Ditto.
(WebCore::canonicalizedTitle): Ditto.

* editing/Editor.cpp:
(WebCore::Editor::insertTextWithoutSendingTextEvent): Use u_isPunct instead of
WTF::Unicode::isPunct.

* editing/TextIterator.cpp:
(WebCore::SearchBuffer::append): Use u_strFoldCase instead of WTF::Unicode::foldCase.

* html/HTMLElement.cpp:
(WebCore::HTMLElement::directionality): Use UCharDirection instead of
WTF::Unicode::Direction.

* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::defaultEventHandler): Use u_isprint instead of
WTF::Unicode::isPrintableChar.

* html/TypeAhead.cpp:
(WebCore::stripLeadingWhiteSpace): Use u_charDirection instead of
WTF::Unicode::direction.

* html/track/TextTrackCue.cpp:
(WebCore::isCueParagraphSeparator): Use u_charType instead of
WTF::Unicode::category.
(WebCore::TextTrackCue::determineTextDirection): Use u_charDirection instead of
WTF::Unicode::direction.

* page/ContextMenuController.cpp:
(WebCore::selectionContainsPossibleWord): Use U_GET_GC_MASK instead of
WTF::Unicode::category.
* platform/graphics/Font.cpp:
(WebCore::Font::canReceiveTextEmphasis): Ditto.

* platform/graphics/FontGlyphs.cpp:
(WebCore::FontGlyphs::glyphDataAndPageForCharacter): Use u_toupper instead of
WTF::Unicode::toUpper. Use u_charMirror instead of WTF::Unicode::mirroredChar.

* platform/graphics/GraphicsContext.cpp:
(WebCore::TextRunIterator::direction): Use u_charDirection instead of
WTF::Unicode::direction.

* platform/graphics/SVGGlyph.cpp:
(WebCore::charactersWithArabicForm): Use ublock_getCode instead of
WTF::Unicode::isArabicChar.

* platform/graphics/SurrogatePairAwareTextIterator.cpp:
(WebCore::SurrogatePairAwareTextIterator::normalizeVoicingMarks): Use
u_getCombiningClass instead of WTF::Unicode::combiningClass.

* platform/graphics/WidthIterator.cpp:
(WebCore::WidthIterator::advanceInternal): Use u_toupper instead of
WTF::Unicode::toUpper.

* platform/graphics/mac/ComplexTextController.cpp:
(WebCore::ComplexTextController::collectComplexTextRuns): Added some
assertions about the user of u_toupper and tweaked coding style a bit.

* platform/text/BidiContext.cpp:
(WebCore::BidiContext::createUncached): Use UCharDirection instead of
WTF::Unicode::Direction.
(WebCore::BidiContext::create): Ditto.
(WebCore::copyContextAndRebaselineLevel): Ditto.
* platform/text/BidiContext.h:
(WebCore::BidiContext::dir): Ditto.
(WebCore::BidiContext::BidiContext): Ditto.
* platform/text/BidiResolver.h:
(WebCore::BidiStatus::BidiStatus): Ditto.
(WebCore::BidiEmbedding::BidiEmbedding): Ditto.
(WebCore::BidiEmbedding::direction): Ditto.
(WebCore::BidiCharacterRun::BidiCharacterRun): Ditto.
(WebCore::BidiResolver::BidiResolver): Ditto.
(WebCore::BidiResolver::setLastDir): Ditto.
(WebCore::BidiResolver::setLastStrongDir): Ditto.
(WebCore::BidiResolver::setEorDir): Ditto.
(WebCore::BidiResolver::dir): Ditto.
(WebCore::BidiResolver::setDir): Ditto.
(WebCore::BidiResolver::appendRun): Ditto.
(WebCore::BidiResolver::embed): Ditto.
(WebCore::BidiResolver::checkDirectionInLowerRaiseEmbeddingLevel): Ditto.
(WebCore::BidiResolver::lowerExplicitEmbeddingLevel): Ditto.
(WebCore::BidiResolver::raiseExplicitEmbeddingLevel): Ditto.
(WebCore::BidiResolver::commitExplicitEmbedding): Ditto.
(WebCore::BidiResolver::updateStatusLastFromCurrentDirection): Ditto.
(WebCore::BidiResolver::createBidiRunsForLine): Ditto.

* platform/text/SegmentedString.h:
(WebCore::SegmentedString::advanceAndASSERTIgnoringCase): Use u_foldCase
instead of WTF::Unicode::foldCase.

* platform/text/TextBoundaries.cpp:
(WebCore::findNextWordFromIndex): Use u_isalnum instead of
WTF::Unicode::isAlphanumeric.

* platform/text/TextBoundaries.h:
(WebCore::requiresContextForWordBoundary): Use u_getIntPropertyValue directly
instead of WTF::Unicode::requiresComplexContextForWordBreaking.

* platform/text/mac/TextBoundaries.mm: Removed explicit use of WTF::Unicode,
which was unneeded and also will no longer compile.

* rendering/BidiRun.h:
(WebCore::BidiRun::BidiRun): Use UCharDirection instead of WTF::Unicode::Direction.
* rendering/InlineFlowBox.h: Ditto.
* rendering/InlineIterator.h:
(WebCore::embedCharFromDirection): Ditto.
(WebCore::notifyObserverWillExitObject): Ditto.
(WebCore::InlineIterator::direction): Ditto.
(WebCore::IsolateTracker::embed): Ditto.
(WebCore::InlineBidiResolver::appendRun): Ditto.

* rendering/RenderBlock.cpp:
(WebCore::isPunctuationForFirstLetter): Use U_GET_GC_MASK instead of
WTF::Unicode::category.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::determineDirectionality): Use u_charDirection instead of
WTF::Unicode::direction.
(WebCore::RenderBlockFlow::handleTrailingSpaces): Ditto.
(WebCore::statusWithDirection): Ditto.
(WebCore::LineBreaker::nextSegmentBreak): Use U_GET_GC_MASK instead of
WTF::Unicode::category.

* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::paint): Use u_charDirection instead of
WTF::Unicode::direction.

* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::adjustInnerStyle): Use UCharDirection instead of
WTF::Unicode::Direction.

* rendering/RenderText.cpp:
(WebCore::makeCapitalized): Use u_totile instead of WTF::Unicode::toTitleCase.
Also added a comment about the fact that we need to use u_strToTitle instead.

* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::lineBreakBidiStatus): Use UCharDirection instead of
WTF::Unicode::Direction.

* svg/SVGFontData.cpp:
(WebCore::SVGFontData::createStringWithMirroredCharacters): Use u_charMirror
instead of WTF::Unicode::mirroredChar.

* xml/XPathParser.cpp:
(WebCore::XPath::charCat): Use U_GET_GC_MASK instead of WTF::Unicode::category.

* platform/graphics/win/UniscribeController.cpp:
(WebCore::UniscribeController::advance):
* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenuWin::paint):
* platform/win/WebCoreTextRenderer.cpp:
(WebCore::isOneLeftToRightRun):
More of the same for Windows.

Source/WTF:

* wtf/text/StringHash.h:
(WTF::CaseFoldingHash::foldCase): Use u_foldCase instead of WTF::Unicode::foldCase.
(WTF::CaseFoldingHash::hash): Added an overload for a StringImpl& because why not.

* wtf/text/StringImpl.cpp:
(WTF::StringImpl::lower): Use u_tolower rather than WTF::Unicode::toLower. Also added
an assertion to check that the lowercase version is also part of Latin-1. If this
is not guaranteed it would be good to know in a debug build at least. Use u_strToLower
rather than WTF::Unicode::toLower. Also removed #if USE(ICU_UNICODE) around the
locale-specific version.
(WTF::StringImpl::upper): Use u_toupper and u_strToUpper, as above.
(WTF::StringImpl::foldCase): Use u_tolower and u_strFoldCase, as above.
(WTF::equalIgnoringCase): Use u_foldCase instead of WTF::Unicode::foldCase.
(WTF::StringImpl::defaultWritingDirection): Use u_charDirection and UCharDirection
instead of WTF::Unicode::direction and WTF::Unicode::Direction.

* wtf/text/StringImpl.h:
(WTF::equalIgnoringCase): Use u_memcasecmp instead of WTF::Unicode::umemcasecmp.
(WTF::isSpaceOrNewline): Use u_charDirection instead of WTF::Unicode::direction.

* wtf/text/WTFString.h:
(WTF::String::defaultWritingDirection): Use UCharDirection instead of WTF::Unicode::Direction.

* wtf/unicode/icu/UnicodeIcu.h: Removed almost everything.

* wtf/unicode/wchar/UnicodeWchar.cpp: Tried to do the right thing in this file, but
I did not actually compile it. Also, the implementations here aren't really sufficient
to make WebKit work broadly. There are many things that just aren't working with this
implementation, such as parsing that uses u_charType to figure out which characters are valid.
(unorm_normalize): Added.
(u_charDirection): Added.
(u_charMirror): Added.
(u_charType): Added.
(u_getCombiningClass): Added.
(u_getIntPropertyValue): Added.
(u_memcasecmp): Added.
(convertWithFunction): Changed to work with ICU-style status code instead of error bool.
(u_strFoldCase): Added.
(u_strToLower): Added.
(u_strToUpper): Added.
* wtf/unicode/wchar/UnicodeWchar.h: Ditto. Later this file should just be named like the
real ICU headers so the code can include it the same way it would ICU. But that will be
in a future patch.

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

7 years agoDFG: Add JIT support for LogicalNot(String/StringIdent)
commit-queue@webkit.org [Sat, 12 Oct 2013 02:21:45 +0000 (02:21 +0000)]
DFG: Add JIT support for  LogicalNot(String/StringIdent)
https://bugs.webkit.org/show_bug.cgi?id=122627

Patch by Nadav Rotem <nrotem@apple.com> on 2013-10-11
Reviewed by Filip Pizlo.

* dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::::executeEffects):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileStringZeroLength):
* dfg/DFGSpeculativeJIT.h:
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compileLogicalNot):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileLogicalNot):

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

7 years agoDramatically simplify calculateAdjustedNodes
rniwa@webkit.org [Sat, 12 Oct 2013 02:05:53 +0000 (02:05 +0000)]
Dramatically simplify calculateAdjustedNodes
https://bugs.webkit.org/show_bug.cgi?id=122680

Reviewed by Antti Koivisto.

Without insertion points, we never have to worry about entering a shadow DOM we've already climbed out of.
Deleted the logic to deal with insertion points in calculateAdjustedNodes accordingly.

* dom/EventDispatcher.cpp:
(WebCore::EventPath::EventPath):
(WebCore::calculateAdjustedNodes):
(WebCore::updateTouchListsInEventPath):
(WebCore::EventPath::updateTouchLists):
(WebCore::EventPath::setRelatedTarget):

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

7 years agosunspider-1.0/math-spectral-norm.js.dfg-eager occasionally fails with Trap 5 (i.e...
fpizlo@apple.com [Sat, 12 Oct 2013 01:35:49 +0000 (01:35 +0000)]
sunspider-1.0/math-spectral-norm.js.dfg-eager occasionally fails with Trap 5 (i.e int $3)
https://bugs.webkit.org/show_bug.cgi?id=122462

Reviewed by Mark Hahnenberg.

This fixes two bugs, both of which led to GetByVal on Int32 trapping because the
array no longer had Int32 shape but the check wasn't executed:

1) We weren't snapshotting the structures of mustHandleValues. This led to an awesome
   race where if a mustHandleValue JSValue's structure changed on the main thread
   between runs of the AI, the AI would contradict each other and things would just
   get corrupted in funny ways.

2) The constant folder has a long standing bug! It will fold a node to a constant if
   the AI proved it to be a constant. But it's possible that the original node also
   proved things about the constant's structure. In that case "folding" to a
   JSConstant actually loses information since JSConstant doesn't guarantee anything
   about a constant's structure. There are various things we could do here to ensure
   that a folded constant's structure doesn't change, and that if it does, we
   deoptimize the code. But for now we can just make this sound by disabling folding
   in this pathological case.

* dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::Graph):
* dfg/DFGGraph.h:
* dfg/DFGInPlaceAbstractState.cpp:
(JSC::DFG::InPlaceAbstractState::initialize):

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

7 years agoFix handling of indirect stackmap locations in FTL OSR exit
fpizlo@apple.com [Sat, 12 Oct 2013 01:33:16 +0000 (01:33 +0000)]
Fix handling of indirect stackmap locations in FTL OSR exit
https://bugs.webkit.org/show_bug.cgi?id=122666

Reviewed by Mark Hahnenberg.

With this change, the llvm.webkit.stackmap-based OSR exit only fails one test, down from
five tests previously.

* ftl/FTLLocation.cpp:
(JSC::FTL::Location::gpr): It's OK to call this method when kind() == Indirect, so asserting that isGPR() is wrong; change to assert that involvesGPR().
(JSC::FTL::Location::restoreInto): Stack-related registers aren't saved to the scratch buffer, so use them directly.
* ftl/FTLLocation.h: Add comment about requirements for stack layout.
* ftl/FTLOSRExitCompiler.cpp:
(JSC::FTL::compileStubWithOSRExitStackmap): Make enough room on the stack so that saveAllRegisters() has a scratchpad to save things to. Without this, saveAllRegisters() may clobber a spilled value.

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

7 years agoUnreviewed EFL gardening.
ryuan.choi@samsung.com [Sat, 12 Oct 2013 01:22:29 +0000 (01:22 +0000)]
Unreviewed EFL gardening.

Unskip tests that are already passing.

* platform/efl-wk2/TestExpectations:

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

7 years ago[Windows] Fix for fast/xpath test regressions caused by r157205.
roger_fong@apple.com [Sat, 12 Oct 2013 00:43:49 +0000 (00:43 +0000)]
[Windows] Fix for fast/xpath test regressions caused by r157205.
https://bugs.webkit.org/show_bug.cgi?id=122658.

Reviewed by Darin Adler.

* xml/XPathStep.h:
(WebCore::XPath::Step::NodeTest::NodeTest):
(WebCore::XPath::Step::NodeTest::operator=):
We were incorrectly setting the predicate list to null instead of the predicate list of the NodeTest being passed in.

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

7 years agoRemove preference support for picking the old Web Inspector.
timothy@apple.com [Fri, 11 Oct 2013 23:09:02 +0000 (23:09 +0000)]
Remove preference support for picking the old Web Inspector.
https://bugs.webkit.org/show_bug.cgi?id=122655

Reviewed by Alexey Proskuryakov.

Source/WebKit/mac:

* WebCoreSupport/WebInspectorClient.mm:
(WebInspectorFrontendClient::localizedStringsURL):
(-[WebInspectorWindowController inspectorPagePath]):

Source/WebKit2:

* Shared/WebPreferencesStore.h:
* UIProcess/API/C/WKPreferences.cpp:
* UIProcess/API/C/WKPreferencesPrivate.h:
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::inspectorPageURL):
(WebKit::WebInspectorProxy::inspectorBaseURL):
* WebProcess/WebPage/WebInspector.cpp:
(WebKit::WebInspector::WebInspector):
* WebProcess/WebPage/WebInspector.h:
* WebProcess/WebPage/mac/WebInspectorMac.mm:
(WebKit::WebInspector::localizedStringsURL):
* WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::platformPreferencesDidChange):

Tools:

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):

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

7 years agoFix 64-bit build on everything but Windows.
fpizlo@apple.com [Fri, 11 Oct 2013 22:59:47 +0000 (22:59 +0000)]
Fix 64-bit build on everything but Windows.

Rubber stamped by Brent Fulgham.

* Scripts/webkitdirs.pm:
(argumentsForConfiguration):

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

7 years agoTouch a file to see how auto-update works.
ap@apple.com [Fri, 11 Oct 2013 22:45:02 +0000 (22:45 +0000)]
Touch a file to see how auto-update works.

Rubber-stamped by Tim Hatcher.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:

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

7 years agoLay the groundwork for a multi-process aware Indexed DB implementation in WebKit2.
beidson@apple.com [Fri, 11 Oct 2013 22:12:17 +0000 (22:12 +0000)]
Lay the groundwork for a multi-process aware Indexed DB implementation in WebKit2.
https://bugs.webkit.org/show_bug.cgi?id=122675

Reviewed by Alexey Proskuryakov.

* CMakeLists.txt:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebKit2.xcodeproj/project.pbxproj:

* WebProcess/IndexedDB/WebIDBFactoryBackend.cpp: Added.
(WebKit::WebIDBFactoryBackend::WebIDBFactoryBackend):
(WebKit::WebIDBFactoryBackend::~WebIDBFactoryBackend):
(WebKit::WebIDBFactoryBackend::getDatabaseNames):
(WebKit::WebIDBFactoryBackend::open):
(WebKit::WebIDBFactoryBackend::deleteDatabase):
* WebProcess/IndexedDB/WebIDBFactoryBackend.h: Added.
(WebKit::WebIDBFactoryBackend::create):

* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::createIDBFactoryBackend): Return a WebIDBFactoryBackend.

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

7 years agoRemove ENABLE(GESTURE_EVENTS) from WebKit2
andersca@apple.com [Fri, 11 Oct 2013 21:14:06 +0000 (21:14 +0000)]
Remove ENABLE(GESTURE_EVENTS) from WebKit2
https://bugs.webkit.org/show_bug.cgi?id=122673

Reviewed by Ryosuke Niwa.

* Shared/WebEvent.h:
* Shared/WebEventConversion.cpp:
* Shared/WebEventConversion.h:
* Shared/WebGestureEvent.cpp: Removed.
* Shared/mac/WebEventFactory.h:
* Shared/mac/WebEventFactory.mm:
* UIProcess/API/mac/PageClientImpl.h:
* UIProcess/API/mac/PageClientImpl.mm:
* UIProcess/API/mac/WKView.mm:
(-[WKView viewDidMoveToWindow]):
* UIProcess/PageClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didReceiveEvent):
(WebKit::WebPageProxy::resetStateAfterProcessExited):
* UIProcess/WebPageProxy.h:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebPage/EventDispatcher.cpp:
* WebProcess/WebPage/EventDispatcher.h:
* WebProcess/WebPage/EventDispatcher.messages.in:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebPage/WebPage.h:

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

7 years ago[CSS Shapes] Use the floatingObject's logical coordinates to determine its size in...
zoltan@webkit.org [Fri, 11 Oct 2013 21:01:40 +0000 (21:01 +0000)]
[CSS Shapes] Use the floatingObject's logical coordinates to determine its size in computeLogicalLocationForFloat
https://bugs.webkit.org/show_bug.cgi?id=122663

Reviewed by David Hyatt.

Covered by existing float tests in fast/shapes/shape-inside.
I'll add additional tests in bug #122664.

* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::computeLogicalLocationForFloat):

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

7 years agoUnreviewed, rolling out r157307.
commit-queue@webkit.org [Fri, 11 Oct 2013 19:18:27 +0000 (19:18 +0000)]
Unreviewed, rolling out r157307.
http://trac.webkit.org/changeset/157307
https://bugs.webkit.org/show_bug.cgi?id=122671

Many assertion failures (Requested by ap on #webkit).

* jit/ThunkGenerators.cpp:
(JSC::arrayIteratorNextThunkGenerator):
* jit/ThunkGenerators.h:
* runtime/ArrayIteratorPrototype.cpp:
(JSC::ArrayIteratorPrototype::finishCreation):
(JSC::createIteratorResult):
(JSC::arrayIteratorPrototypeNext):
* runtime/Intrinsic.h:
* runtime/JSArrayIterator.cpp:
(JSC::JSArrayIterator::finishCreation):
* runtime/VM.cpp:
(JSC::thunkGeneratorForIntrinsic):

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

7 years agoRemove gesture event support from WebCore
andersca@apple.com [Fri, 11 Oct 2013 19:16:35 +0000 (19:16 +0000)]
Remove gesture event support from WebCore
https://bugs.webkit.org/show_bug.cgi?id=122650

Reviewed by Ryosuke Niwa.

Source/WebCore:

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.exp.in:
* WebCore.xcodeproj/project.pbxproj:
* dom/GestureEvent.cpp: Removed.
* dom/GestureEvent.h: Removed.
* dom/Node.cpp:
* dom/Node.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler):
(WebCore::EventHandler::clear):
(WebCore::EventHandler::sendContextMenuEventForKey):
* page/EventHandler.h:
* platform/PlatformGestureEvent.h: Removed.
* platform/Scrollbar.cpp:
* platform/Scrollbar.h:
* platform/mac/PlatformEventFactoryMac.h:
* platform/mac/PlatformEventFactoryMac.mm:

Source/WTF:

* wtf/FeatureDefines.h:
* wtf/nix/FeatureDefinesNix.h:

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

7 years agoUnreviewed gardening. Rebaseline after 157292.
gns@gnome.org [Fri, 11 Oct 2013 19:15:29 +0000 (19:15 +0000)]
Unreviewed gardening. Rebaseline after 157292.

* platform/gtk/editing/unsupported-content/table-delete-001-expected.txt:
* platform/gtk/editing/unsupported-content/table-delete-003-expected.txt:

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

7 years agoRemove some dead code from PlatformCALayer*
timothy_horton@apple.com [Fri, 11 Oct 2013 19:04:33 +0000 (19:04 +0000)]
Remove some dead code from PlatformCALayer*
https://bugs.webkit.org/show_bug.cgi?id=122641

Reviewed by Anders Carlsson.

Remove some unused getters from PlatformCALayer and its implementations.

No new tests, just removing dead code.

* platform/graphics/ca/PlatformCALayer.h:
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
* platform/graphics/ca/win/PlatformCALayerWin.cpp:

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

7 years agoTransition op_new_* JITStubs to JIT operations.
mark.lam@apple.com [Fri, 11 Oct 2013 19:03:39 +0000 (19:03 +0000)]
Transition op_new_* JITStubs to JIT operations.
https://bugs.webkit.org/show_bug.cgi?id=122460.

Reviewed by Michael Saboff.

Also:
- Removed the redundant operationNewFunctionExpression().  It is identical to
  operationNewFunctionNoCheck().
- Sorted JIT operation signature keys in the comment in JITOperations.h.
- Removed the unused returnValue2Register definition for X86_64.

* dfg/DFGOperations.cpp:
* dfg/DFGOperations.h:
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileNewFunctionExpression):
* jit/CCallHelpers.h:
(JSC::CCallHelpers::setupArgumentsWithExecState):
* jit/JIT.h:
* jit/JITInlines.h:
(JSC::JIT::callOperation):
* jit/JITOpcodes.cpp:
(JSC::JIT::emitSlow_op_new_object):
(JSC::JIT::emit_op_new_func):
(JSC::JIT::emit_op_new_func_exp):
(JSC::JIT::emit_op_new_array):
(JSC::JIT::emit_op_new_array_with_size):
(JSC::JIT::emit_op_new_array_buffer):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::emitSlow_op_new_object):
* jit/JITOperations.cpp:
* jit/JITOperations.h:
* jit/JITStubs.cpp:
* jit/JITStubs.h:
* jit/JSInterfaceJIT.h:

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

7 years agoLeaksViewer fails to present recent results list if current build is still updating svn
ap@apple.com [Fri, 11 Oct 2013 18:59:05 +0000 (18:59 +0000)]
LeaksViewer fails to present recent results list if current build is still updating svn
https://bugs.webkit.org/show_bug.cgi?id=122670

Fixed an obvious mistake in the previous patch.

* BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:
(RecentBuildsLoader.prototype.start):

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

7 years agoLeaksViewer fails to present recent results list if current build is still updating svn
ap@apple.com [Fri, 11 Oct 2013 18:56:15 +0000 (18:56 +0000)]
LeaksViewer fails to present recent results list if current build is still updating svn
https://bugs.webkit.org/show_bug.cgi?id=122670

Reviewed by Adam Roben.

* BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:
(RecentBuildsLoader.prototype.start): Skip builds that don't have an svn revision yet.

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

7 years agoConfusing CGImageRef memory management in ImageBuffer::copyImage
aroben@webkit.org [Fri, 11 Oct 2013 18:50:50 +0000 (18:50 +0000)]
Confusing CGImageRef memory management in ImageBuffer::copyImage
https://bugs.webkit.org/show_bug.cgi?id=122605

Source/WebCore:

BitmapImage::create was adopting the CGImage passed into it, which
resulted in some strange contortions in ImageBuffer::copyImage that
made it look like it was leaking CGImages, when in fact it was just
relying on BitmapImage to adopt the extra references.

BitmapImage::create now retains the passed-in CGImage, and I updated
the two callers to it to expect that (one here, one in WebKit2). I
also changed ImageBuffer::copyNativeImage to return a RetainPtr to
reduce the number of adoptCF()s needed and make it harder to make
programming mistakes.

Reviewed by Simon Fraser.

No new tests because this is just a code cleanup.

* platform/graphics/ImageBuffer.h: Changed copyNativeImage to return a
RetainPtr<CGImageRef.

* platform/graphics/cg/BitmapImageCG.cpp:
(WebCore::BitmapImage::BitmapImage): Adopt the passed-in CGImage,
since we're taking ownership of it. (We release it in
FrameData::clear.)

* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::copyImage): Updated for copyNativeImage's new
return type and to take into account BitmapImage::create's new
retaining semantics. This makes this function not have to be so clever
about retain counts.

(WebCore::ImageBuffer::copyNativeImage): Changed to return a
RetainPtr<CGImageRef>.

(WebCore::ImageBuffer::draw):
(WebCore::ImageBuffer::clip):
(WebCore::ImageBuffer::putByteArray):
(WebCore::ImageBuffer::toDataURL):
Updated for changes to copyNativeImage.

Source/WebKit2:

Reviewed by Simon Fraser.

* Shared/cg/ShareableBitmapCG.cpp:
(WebKit::ShareableBitmap::createImage): BitmapImage::create now
retains the passed-in CGImage, so we don't need to dance around it
anymore. Also changed to use nullptr instead of 0 while I was in here.

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

7 years ago[CSS Shapes] Shape-Image-Threshold should be animatable
betravis@adobe.com [Fri, 11 Oct 2013 18:01:39 +0000 (18:01 +0000)]
[CSS Shapes] Shape-Image-Threshold should be animatable
https://bugs.webkit.org/show_bug.cgi?id=122622

Reviewed by Darin Adler.

Source/WebCore:

Make the shape-image-threshold property respond to dynamic changes
made through JS or CSS animations. Responding to changes made to
shape-image-threshold is handled in RenderBox::updateShapeOutsideInfoAfterStyleChange,
while CSSPropertyAnimation.cpp adds the property to the list of
animatable properties.

Tests: fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-image-threshold.html
       fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation.html

* page/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): Add
shape-image-threshold to the list of animatable properties.
* rendering/RenderBox.cpp:
(WebCore::RenderBox::styleDidChange): updateShapeOutsideInfoAfterStyleChange
needs to take two RenderStyle arguments to compare multiple shape properties,
rather than just the shape-outside property.
(WebCore::RenderBox::updateShapeOutsideInfoAfterStyleChange): Compare
shape-image-threshold values to see if they changed, and invalidate the layout
if necessary.
* rendering/RenderBox.h:

LayoutTests:

Adding tests for dynamically changing shape-image threshold via JS and CSS
animations. Included are some SVG resources used as the shape image sources.

* fast/shapes/resources/svg-shape-002.svg: Added.
* fast/shapes/resources/svg-shape-003.svg: Added.
* fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-image-threshold-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-image-threshold.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation-expected.txt: Added.
* fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation.html: Added.

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

7 years agoUnreviewed gardening. Remove a Windows work-around that is not needed.
bfulgham@apple.com [Fri, 11 Oct 2013 17:57:34 +0000 (17:57 +0000)]
Unreviewed gardening. Remove a Windows work-around that is not needed.

* dom/Range.cpp:
(WebCore::rangeOfContents): Move implementation back to source file.
* dom/Range.h: Remove inline I added to work around a compiler bug.

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

7 years agoSeparate out array iteration intrinsics
oliver@apple.com [Fri, 11 Oct 2013 17:30:56 +0000 (17:30 +0000)]
Separate out array iteration intrinsics
https://bugs.webkit.org/show_bug.cgi?id=122656

Reviewed by Michael Saboff.

Separate out the intrinsics for key and values iteration
of arrays.

This requires moving moving array iteration into the iterator
instance, rather than the prototype, but this is essentially
unobservable so we'll live with it for now.

* jit/ThunkGenerators.cpp:
(JSC::arrayIteratorNextThunkGenerator):
(JSC::arrayIteratorNextKeyThunkGenerator):
(JSC::arrayIteratorNextValueThunkGenerator):
* jit/ThunkGenerators.h:
* runtime/ArrayIteratorPrototype.cpp:
(JSC::ArrayIteratorPrototype::finishCreation):
* runtime/Intrinsic.h:
* runtime/JSArrayIterator.cpp:
(JSC::JSArrayIterator::finishCreation):
(JSC::createIteratorResult):
(JSC::arrayIteratorNext):
(JSC::arrayIteratorNextKey):
(JSC::arrayIteratorNextValue):
(JSC::arrayIteratorNextGeneric):
* runtime/VM.cpp:
(JSC::thunkGeneratorForIntrinsic):

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

7 years agoUnreviewed, rolling out r157297.
commit-queue@webkit.org [Fri, 11 Oct 2013 16:54:27 +0000 (16:54 +0000)]
Unreviewed, rolling out r157297.
http://trac.webkit.org/changeset/157297
https://bugs.webkit.org/show_bug.cgi?id=122651

Caused crashes on multiple platform/mac-wk2/tiled-drawing
tests (Requested by ap on #webkit).

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::operator new):
(WebCore::RenderLayer::operator delete):
(WebCore::RenderLayer::destroy):
* rendering/RenderLayer.h:
* rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::RenderLayerModelObject):
(WebCore::RenderLayerModelObject::destroyLayer):
(WebCore::RenderLayerModelObject::ensureLayer):
* rendering/RenderLayerModelObject.h:
(WebCore::RenderLayerModelObject::layer):

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

7 years ago[CSS Shapes] New positioning model: Negative margins
bjonesbe@adobe.com [Fri, 11 Oct 2013 16:53:07 +0000 (16:53 +0000)]
[CSS Shapes] New positioning model: Negative margins
https://bugs.webkit.org/show_bug.cgi?id=118090

Reviewed by Darin Adler.

Tests for shape-outside with negative margins:

negative top margin
negative left margin
negative right margin
negative bottom margin
negative top margin vertical right-left writing mode
negative left margin vertical right-left writing mode
negative right margin vertical right-left writing mode
negative bottom margin vertical right-left writing mode
negative top margin vertical left-right writing mode
negative left margin vertical left-right writing mode
negative right margin vertical left-right writing mode
negative bottom margin vertical left-right writing mode

* csswg/contributors/adobe/submitted/shapes/shape-outside/resources/w3c-import.log:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-010-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-010.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-011-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-011.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-012-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-012.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-013-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-013.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-014-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-014.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-015-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-015.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-016-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-016.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-017-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-017.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-018-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-018.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-019-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-019.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-020-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-020.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-021-expected.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-margin-021.html: Added.
* csswg/contributors/adobe/submitted/shapes/shape-outside/w3c-import.log:

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

7 years ago[EFL] Added new accessibility expectation after r154697
commit-queue@webkit.org [Fri, 11 Oct 2013 16:51:21 +0000 (16:51 +0000)]
[EFL] Added new accessibility expectation after r154697
https://bugs.webkit.org/show_bug.cgi?id=122646

Unreviewed EFL gardening

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-10-11

* platform/efl-wk2/TestExpectations:
* platform/efl/accessibility/aria-checkbox-sends-notification-expected.txt: Added.

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

7 years agoUnreviewed build fix for --64-bit target.
bfulgham@apple.com [Fri, 11 Oct 2013 16:46:51 +0000 (16:46 +0000)]
Unreviewed build fix for --64-bit target.

* Scripts/webkitdirs.pm:
(argumentsForConfiguration): Use 'isWin64' test, since @ARGV value may have
been removed by this point.
(hasArgument): Remove unused temporary.

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

7 years agoFix build.
darin@apple.com [Fri, 11 Oct 2013 16:34:25 +0000 (16:34 +0000)]
Fix build.

* html/HTMLElement.cpp:
(WebCore::HTMLElement::translate): Do a const_cast when creating the
lineage, since it doesn't yet work with const pointers.

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

7 years agoPass VM instead of ExecState to JSGenericTypedArrayViewPrototype.
akling@apple.com [Fri, 11 Oct 2013 15:26:11 +0000 (15:26 +0000)]
Pass VM instead of ExecState to JSGenericTypedArrayViewPrototype.
<https://webkit.org/b/122632>

Reviewed by Sam Weinig.

This code was only using the ExecState to find the VM.

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

7 years agoDo a bit of optimization and cleanup in the HTMLElement class
darin@apple.com [Fri, 11 Oct 2013 15:07:12 +0000 (15:07 +0000)]
Do a bit of optimization and cleanup in the HTMLElement class
https://bugs.webkit.org/show_bug.cgi?id=122640

Reviewed by Andreas Kling.

* html/HTMLElement.cpp:
(WebCore::unicodeBidiAttributeForDirAuto): Take a reference.
(WebCore::HTMLElement::collectStyleForPresentationAttribute): Pass one.
(WebCore::mergeWithNextTextNode): Take a reference to a Text node instead
of a PassRefPtr to a Node. Also removed unnecessary check of parentNode.
Also update to new calling convention for mergeWithNextTextNode.
(WebCore::HTMLElement::setOuterHTML): Use parentElement instead of
parentNode, since Antti says that's the future, and either will work here.
Also use nullptr.
(WebCore::HTMLElement::textToFragment): Fix indentation and use nullptr.
(WebCore::HTMLElement::setOuterText): Use a RefPtr for the parent here,
since otherwise there is no guarantee it survives. Also use nullptr and
update to new calling convention for mergeWithNextTextNode.
(WebCore::HTMLElement::insertAdjacent): Use nullptr.
(WebCore::HTMLElement::insertAdjacentElement): Use nullptr.
(WebCore::contextElementForInsertion): Use nullptr.
(WebCore::HTMLElement::contentEditable): Use ASCIILiteral.
(WebCore::HTMLElement::setContentEditable): Use AtomicString::ConstructFromLiteral.
(WebCore::HTMLElement::draggable): Use fastGetAttribute.
(WebCore::HTMLElement::setDraggable): Use AtomicString::ConstructFromLiteral.
(WebCore::HTMLElement::setSpellcheck): Use AtomicString::ConstructFromLiteral.
(WebCore::HTMLElement::click): Use nullptr.
(WebCore::HTMLElement::accessKeyAction): Use nullptr.
(WebCore::HTMLElement::title): Use fastGetAttribute.
(WebCore::HTMLElement::translateAttributeMode): Use fastGetAttribute, isNull,
and isEmpty.
(WebCore::HTMLElement::translate): Use parentElement and toHTMLElement.
Use early-continue style instead of nesting the whole loop body inside an if.
(WebCore::setHasDirAutoFlagRecursively): Use nullptr.
(WebCore::HTMLElement::hasDirectionAuto): Use isNull.
(WebCore::HTMLElement::directionality): Use nullptr.
(WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged): Use nullptr.
(WebCore::HTMLElement::addHTMLLengthToStyle): Use longer variable names.

* html/HTMLTableCellElement.cpp:
(WebCore::HTMLTableCellElement::abbr): Use fastGetAttribute.
(WebCore::HTMLTableCellElement::axis): Ditto.
(WebCore::HTMLTableCellElement::headers): Ditto.
(WebCore::HTMLTableCellElement::scope): Ditto.
* html/HTMLTableColElement.cpp:
(WebCore::HTMLTableColElement::width): Ditto.

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

7 years agoSource/WebCore: Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRe...
dino@apple.com [Fri, 11 Oct 2013 09:44:39 +0000 (09:44 +0000)]
Source/WebCore: Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=121033

Patch by Darin Adler <darin@apple.com> on 2013-10-10
Reviewed by Dean Jackson.

For safe iteration, use a set rather than a vector, and remove the clients from
the set if they are removed during iteration.

Test: fast/animation/request-animation-frame-remove-client.html

* platform/graphics/DisplayRefreshMonitor.cpp:
(WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor): Initialize the
m_clientsToBeNotified pointer to null.
(WebCore::DisplayRefreshMonitor::removeClient): If there is a m_clientsToBeNotified
set, remove from it as well as the real m_clients set.
(WebCore::DisplayRefreshMonitor::displayDidRefresh): Use a HashSet instead of a
vector for the copy of the clients set we iterate.

* platform/graphics/DisplayRefreshMonitor.h: Moved some of the BlackBerry-specific
part of this out of the header. Added a new HashSet pointer, m_clientsToBeNotified,
to be used to remove clients during the notification process. Also added a FIXME.

* platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp: Moved the
DisplayAnimationClient class in here.

LayoutTests: Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded
http://webkit.org/b/121033

Update test to indicate it no longer crashes.

* TestExpectations: Mark test as passing.
* fast/animation/request-animation-frame-remove-client-expected.txt:
* fast/animation/request-animation-frame-remove-client.html:

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

7 years agoUse after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded
dino@apple.com [Fri, 11 Oct 2013 09:43:56 +0000 (09:43 +0000)]
Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded
http://webkit.org/b/121033

Reviewed by Darin Adler.

Source/WebCore:

Add an ASSERT to detect if an animation client will be removed
during the callback dispatch.

Test: fast/animation/request-animation-frame-remove-client.html

* platform/graphics/DisplayRefreshMonitor.cpp:
(WebCore::DisplayRefreshMonitor::displayDidRefresh):

LayoutTests:

Test that assertion fires if you try to remove potential client while in a
animation dispatch.

* TestExpectations: Mark test as crashing.
* fast/animation/request-animation-frame-remove-client-expected.txt: Added.
* fast/animation/request-animation-frame-remove-client.html: Added.

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

7 years agoMake RenderLayer not arena-allocated.
akling@apple.com [Fri, 11 Oct 2013 09:39:28 +0000 (09:39 +0000)]
Make RenderLayer not arena-allocated.
<https://webkit.org/b/87523>

Reviewed by Antti Koivisto.

Let RenderLayerModelObject store its RenderLayer in a unique_ptr.
Layers are relatively low-volume objects and this looks neutral
on our performance tests.

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

7 years agoREGRESSION (r155607): Javascript site does not load visually on panerabread.com
zalan@apple.com [Fri, 11 Oct 2013 08:35:36 +0000 (08:35 +0000)]
REGRESSION (r155607): Javascript site does not load visually on panerabread.com
https://bugs.webkit.org/show_bug.cgi?id=122461

Reviewed by Simon Fraser.

Do not modify the composited layer backing's internal layer structure directly
when the clipping behaviour changes.

When we directly create/destroy RenderLayerBacking::m_ancestorClippingLayer to
reflect the new clipping state, other, depending layers need updating. In order to
not to corrupt the internal hierarchy, mark the compositing layers dirty and let
the normal updating mechanism take care of creating/destroying the ancestor layers.

Source/WebCore:

Existing tests are extended.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::checkIfDescendantClippingContextNeedsUpdate):
(WebCore::RenderLayer::styleChanged):
* rendering/RenderLayer.h:
* rendering/RenderLayerBacking.h:

LayoutTests:

* compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt:
* compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants.html:
* compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt:
* compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2.html:
* platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt:
* platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt:

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

7 years ago[sh4] Fix build after r157209.
commit-queue@webkit.org [Fri, 11 Oct 2013 08:26:43 +0000 (08:26 +0000)]
[sh4] Fix build after r157209.
https://bugs.webkit.org/show_bug.cgi?id=122643

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-10-11
Reviewed by Ryosuke Niwa.

* assembler/MacroAssemblerSH4.h: Add framePointerRegister declaration.
* assembler/SH4Assembler.h: Add firstRegister() declaration.
(JSC::SH4Assembler::firstRegister):

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

7 years agoMake EventPath private to EventDispatcher.cpp
rniwa@webkit.org [Fri, 11 Oct 2013 06:41:50 +0000 (06:41 +0000)]
Make EventPath private to EventDispatcher.cpp
https://bugs.webkit.org/show_bug.cgi?id=122638

Reviewed by Darin Adler.

Move the declaration of EventPath into EventDispatcher.cpp since EventPath is only used in this file.
Also make EventDispatcher a namespace since it is never instantiated since r157250.

* dom/EventDispatcher.cpp:
(WebCore::EventPath::isEmpty):
(WebCore::EventPath::size):
(WebCore::EventPath::contextAt):
(WebCore::EventPath::lastContextIfExists):
* dom/EventDispatcher.h:
* inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::willDispatchEvent):

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

7 years agoFTL shouldn't pass i1's into llvm.webkit.stackmap's
fpizlo@apple.com [Fri, 11 Oct 2013 06:37:33 +0000 (06:37 +0000)]
FTL shouldn't pass i1's into llvm.webkit.stackmap's
https://bugs.webkit.org/show_bug.cgi?id=122629
<rdar://problem/15203037>

Reviewed by Sam Weinig and Nadav Rotem.

LLVM's stackmap support requires that we only pass operands with legal types (i.e. types
that are hardware-representable). i1, which the FTL previously used for Booleans, is not
legal.

We have two options: either add support in LLVM to legalize stackmap operands, or add
support to the FTL to legalize stackmap operands. It's easier to fix this in FTL, and
that's what this patch does.

* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::addExitArgumentForNode):

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

7 years agocontentEditable with "position:relative" paragraphs is buggy
commit-queue@webkit.org [Fri, 11 Oct 2013 06:18:44 +0000 (06:18 +0000)]
contentEditable with "position:relative" paragraphs is buggy
https://bugs.webkit.org/show_bug.cgi?id=33950

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-10-10
Reviewed by Darin Adler.

Source/WebCore:

When paragraph is positioned(relative/absolute/fixed) then deleting
that paragraph cause wrong merging of other(below) paragraphs. This is
happening because positioned element is treated as special element and
on deletion complete paragraph element is removed. The ranges become
paragraph. This issue happens when all the content of special element
are deleted. So the merging of paragraph is avoided in this scenario.

Test: editing/deleting/deleting-relative-positioned-special-element.html

* editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::initializeStartEnd):Avoid merging
block when special candidate are included in deletion range

LayoutTests:

LayoutTests:

Added a testcase to verify that when paragraph is relative positioned
then deleting the all content of paragraph should not incorrectly collapse the
others(below) paragraphs.
And Rebaseline the test expectation.

* editing/deleting/5546763-expected.txt: Updated.
* editing/deleting/deleting-relative-positioned-special-element-expected.txt: Added.
* editing/deleting/deleting-relative-positioned-special-element.html: Added.
* editing/unsupported-content/table-delete-001.html: Adjusted to dump
as markup.
* editing/unsupported-content/table-delete-003.html: Adjusted to dump
as markup.

Below tests had wrong cursor position previously now corrected and
both expected file has been changed to markup dump.
* platform/mac/editing/unsupported-content/table-delete-001-expected.txt:
* platform/mac/editing/unsupported-content/table-delete-003-expected.txt:

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

7 years agoLayout Test fast/css/font-face-download-error.html is flaky
ap@apple.com [Fri, 11 Oct 2013 06:17:10 +0000 (06:17 +0000)]
Layout Test fast/css/font-face-download-error.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=122636

Reviewed by Darin Adler.

* fast/css/font-face-download-error-expected.txt: TEST COMPLETE is now printed
after the test is complete.

* fast/css/font-face-download-error.html: Changed to properly wait for fonts to load.
Also, updated to use a proper async test implementation.

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

7 years agoTrack controls show metadata and chapter tracks
commit-queue@webkit.org [Fri, 11 Oct 2013 06:16:23 +0000 (06:16 +0000)]
Track controls show metadata and chapter tracks
https://bugs.webkit.org/show_bug.cgi?id=122468

Patch by Brendan Long <b.long@cablelabs.com> on 2013-10-10
Reviewed by Darin Adler.

Source/WebCore:

Test: media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles.html

* page/CaptionUserPreferences.cpp:
(WebCore::CaptionUserPreferences::sortedTrackListForMenu): Only show captions, descriptions and subtitles in the track controls.

LayoutTests:

Add a test to make sure we don't show metadata and chapter tracks in the track controls.

* media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles-expected.txt: Added.
* media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles.html: Added.
* platform/efl/TestExpectations: Skip, uses caption button, not track menu.
* platform/mac/TestExpectations: Skip, track menu tests all fail on Mac.
* platform/win/TestExpectations: Same.

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

7 years ago[EFL][WK2] Separate dispatch context from WorkQueue.
bw80.lee@samsung.com [Fri, 11 Oct 2013 04:55:47 +0000 (04:55 +0000)]
[EFL][WK2] Separate dispatch context from WorkQueue.
https://bugs.webkit.org/show_bug.cgi?id=115332

Reviewed by Anders Carlsson.

Refactor WorkQueue to prevent dangling workqueue access.

Previously, the WorkQueue class had all context about dispatch.
WorkQueue had dispatch item queue and socket event handler,
and those were accessed on the work queue thread through WorkQueue
instance.

With reference countable WorkQueue concept, this implementation
complicates handling workqueue ref-counting and causes dangling
workqueue access problem.

To make it easy to handle WorkQueue reference count and to prevent
dangling access problem, DispatchQueue class is added to handle
dispatch tasks, and the WorkQueue instance and DispatchQueue thread
will have the reference count of the DispatchQueue instance to prevent
dangling access.

* Platform/WorkQueue.h:
* Platform/efl/DispatchQueueEfl.cpp: Added.
(DispatchQueue::ThreadContext::start):
(DispatchQueue::ThreadContext::ThreadContext):
(DispatchQueue::ThreadContext::function):
(DispatchQueue::create):
(DispatchQueue::DispatchQueue):
(DispatchQueue::~DispatchQueue):
(DispatchQueue::dispatch):
(DispatchQueue::stopThread):
(DispatchQueue::setSocketEventHandler):
(DispatchQueue::clearSocketEventHandler):
(DispatchQueue::performWork):
(DispatchQueue::performTimerWork):
(DispatchQueue::performFileDescriptorWork):
(DispatchQueue::insertTimerWorkItem):
(DispatchQueue::dispatchQueueThread):
(DispatchQueue::wakeUpThread):
(DispatchQueue::getNextTimeOut):
* Platform/efl/DispatchQueueEfl.h: Added.
* Platform/efl/DispatchQueueWorkItemEfl.h: Added.
(WorkItem::create):
(WorkItem::dispatch):
(WorkItem::WorkItem):
(TimerWorkItem::create):
(TimerWorkItem::expirationTimeSeconds):
(TimerWorkItem::hasExpired):
(TimerWorkItem::TimerWorkItem):
* Platform/efl/WorkQueueEfl.cpp:
(WorkQueue::platformInitialize):
(WorkQueue::platformInvalidate):
(WorkQueue::registerSocketEventHandler):
(WorkQueue::unregisterSocketEventHandler):
(WorkQueue::dispatch):
(WorkQueue::dispatchAfterDelay):
* PlatformEfl.cmake:

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

7 years agoEventContext should be used only in EventDispatcher.cpp
rniwa@webkit.org [Fri, 11 Oct 2013 03:56:23 +0000 (03:56 +0000)]
EventContext should be used only in EventDispatcher.cpp
https://bugs.webkit.org/show_bug.cgi?id=122631

Reviewed by Anders Carlsson.

Merged WindowEventContext into EventDispatcher. Moved the code to avoid dispatching load event on
window into dispatchEventInDOM so that WindowEventContext's constructor doesn't need Event.

Also replaced DOMWindow, Node, and EventPath arguments to InspectorInstrumentation::willDispatchEvent
by a single boolean indicating whether window, the origin, or the event path has an event listener.

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMAllInOne.cpp:
* dom/EventDispatcher.cpp:
(WebCore::WindowEventContext::window): Moved from WindowEventContext.
(WebCore::WindowEventContext::target): Ditto.
(WebCore::WindowEventContext::WindowEventContext): Ditto; removed the code to avoid dispatching load
event on window since that's checked in dispatchEventInDOM now.
(WebCore::WindowEventContext::handleLocalEvents): Ditto.
(WebCore::dispatchEventInDOM): Avoid calling handleLocalEvent on a load event with WindowEventContext.
(WebCore::EventDispatcher::dispatchEvent): Pass a boolean to indicate whether window, the origin, or
the event path contains any event listener to InspectorInstrumentation::willDispatchEvent to hide
EventPath from the inspector code.
* dom/EventDispatcher.h:
* dom/Node.cpp:
* dom/Node.h:
* dom/WindowEventContext.cpp: Removed.
* dom/WindowEventContext.h: Removed.
* inspector/InspectorDOMAgent.cpp:
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::willDispatchEventImpl):
* inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::willDispatchEvent):

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

7 years agoREGRESSION (r157205?): Leaks in XPath
darin@apple.com [Fri, 11 Oct 2013 03:51:44 +0000 (03:51 +0000)]
REGRESSION (r157205?): Leaks in XPath
https://bugs.webkit.org/show_bug.cgi?id=122609

Reviewed by Andreas Kling.

* xml/XPathGrammar.y: Fixed warnings by adding missing "$$ = $1" to various rules.
Added local unique_ptr for NodeTest and ArgumentList in three rules, so they
won't be leaked.

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

7 years agoAdd toSVGColor|Paint() to cleanup static_cast<>, and use it
gyuyoung.kim@samsung.com [Fri, 11 Oct 2013 03:37:18 +0000 (03:37 +0000)]
Add toSVGColor|Paint() to cleanup static_cast<>, and use it
https://bugs.webkit.org/show_bug.cgi?id=122630

Reviewed by Andreas Kling.

SVGColor and SVGPaint can't use CSS_VALUE_TYPE_CASTS(), this cl adds
toSVGColor() and toSVGPaint() manually. Those functions will help to
detect bad type cast.

* css/CSSValue.cpp:
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):
(WebCore::CSSValue::cloneForCSSOM):
* css/SVGCSSStyleSelector.cpp:
(WebCore::StyleResolver::applySVGProperty):
* svg/SVGColor.h:
(WebCore::toSVGColor):
* svg/SVGPaint.h:
(WebCore::toSVGPaint):

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

7 years agoKill WebCore::BindingState.
akling@apple.com [Fri, 11 Oct 2013 01:47:45 +0000 (01:47 +0000)]
Kill WebCore::BindingState.
<https://webkit.org/b/122606>

Reviewed by Darin Adler.

Just use JSC::ExecState directly instead.

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

7 years agowebkit-patch failure-reason has a quite low limit for 'too many failures'
kov@webkit.org [Fri, 11 Oct 2013 01:47:38 +0000 (01:47 +0000)]
webkit-patch failure-reason has a quite low limit for 'too many failures'
https://bugs.webkit.org/show_bug.cgi?id=122556

Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-10-10
Reviewed by Darin Adler.

* Scripts/webkitpy/tool/commands/queries.py:
(FailureReason._explain_failures_for_builder): adjust the number of too many failures
to match what the layout test runners use these days.

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

7 years agowebkit-patch failure-reason should allow specifying failures one is interested in
kov@webkit.org [Fri, 11 Oct 2013 01:41:52 +0000 (01:41 +0000)]
webkit-patch failure-reason should allow specifying failures one is interested in
https://bugs.webkit.org/show_bug.cgi?id=122554

Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-10-10
Reviewed by Darin Adler.

* Scripts/webkitpy/tool/commands/queries.py:
(FailureReason):
(FailureReason._explain_failures_for_builder): keep track of explained failures and drop out of the
loop if the ones we're interested in been explained.
(FailureReason._done_explaining): check the failures we're interested in have been explained, if any.
(FailureReason.execute): initialize failures to explain and the explained set.

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

7 years agoRemove EventRetargeter.h/cpp
rniwa@webkit.org [Fri, 11 Oct 2013 01:14:04 +0000 (01:14 +0000)]
Remove EventRetargeter.h/cpp
https://bugs.webkit.org/show_bug.cgi?id=122625

Reviewed by Anders Carlsson.

Merged the remaining contents of EventRetargeter.h and EventRetargter.cpp into EventDispatcher.cpp.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Modules/indieui/UIRequestEvent.cpp:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMAllInOne.cpp:
* dom/Event.cpp:
* dom/Event.h:
* dom/EventDispatcher.cpp:
(WebCore::eventTargetRespectingTargetRules):
(WebCore::shouldEventCrossShadowBoundary):
(WebCore::nodeOrHostIfPseudoElement):
(WebCore::EventPath::EventPath):
(WebCore::buildRelatedNodeMap):
(WebCore::addRelatedNodeForUnmapedTreeScopes):
(WebCore::calculateAdjustedNodes):
(WebCore::updateTouchListsInEventPath):
(WebCore::EventPath::updateTouchLists):
(WebCore::EventPath::setRelatedTarget):
* dom/EventRetargeter.cpp: Removed.
* dom/EventRetargeter.h: Removed.
* dom/FocusEvent.cpp:
* dom/GestureEvent.h:
* dom/KeyboardEvent.h:
* dom/MouseEvent.cpp:
* dom/MouseEvent.h:
* dom/TouchEvent.cpp:
* dom/UIEvent.cpp:
* dom/WheelEvent.cpp:

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

7 years agoWindows build fix attempt.
rniwa@webkit.org [Fri, 11 Oct 2013 00:51:30 +0000 (00:51 +0000)]
Windows build fix attempt.

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

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

7 years agoMaking the base implementation of isAudioStreamSource, in MediaStreamSource, return...
commit-queue@webkit.org [Fri, 11 Oct 2013 00:40:55 +0000 (00:40 +0000)]
Making the base implementation of isAudioStreamSource, in MediaStreamSource, return the correct value
https://bugs.webkit.org/show_bug.cgi?id=122612

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
Reviewed by Jer Noble.

There is no reason for this implementation, in the base class, to always return false
if we already have the information about the type of the source.

No new tests needed.

* Modules/webaudio/MediaStreamAudioSource.h:
* platform/mediastream/MediaStreamSource.h:
(WebCore::MediaStreamSource::isAudioStreamSource):

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

7 years agoAlways force layout before flushing compositing layers
simon.fraser@apple.com [Fri, 11 Oct 2013 00:30:29 +0000 (00:30 +0000)]
Always force layout before flushing compositing layers
https://bugs.webkit.org/show_bug.cgi?id=122626

Reviewed by Tim Horton.

[m_webView _flushCompositingChanges] only actually flushes compositing
layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
returns in this case). In this situation, flushLayers() does actually try
to force a layout, but on some platforms it's possible for something else
to dirty layout before the runloop observer fires again. This can result
in flushLayers() never actually managing to flush, which stalls visual
updates.

Fix by always calling -viewWillDraw (which updates layout) before flushing
layers. This now matches WebKit2 behavior.

* WebView/WebView.mm:
(LayerFlushController::flushLayers):

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

7 years agoWeb Inspector: Remove the old front-end from WebKit.
timothy@apple.com [Fri, 11 Oct 2013 00:17:48 +0000 (00:17 +0000)]
Web Inspector: Remove the old front-end from WebKit.

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

* inspector/front-end/AceTextEditor.js: Removed.
* inspector/front-end/AdvancedSearchController.js: Removed.
* inspector/front-end/ApplicationCacheItemsView.js: Removed.
* inspector/front-end/ApplicationCacheModel.js: Removed.
* inspector/front-end/AuditCategories.js: Removed.
* inspector/front-end/AuditController.js: Removed.
* inspector/front-end/AuditFormatters.js: Removed.
* inspector/front-end/AuditLauncherView.js: Removed.
* inspector/front-end/AuditResultView.js: Removed.
* inspector/front-end/AuditRules.js: Removed.
* inspector/front-end/AuditsPanel.js: Removed.
* inspector/front-end/BottomUpProfileDataGridTree.js: Removed.
* inspector/front-end/BreakpointManager.js: Removed.
* inspector/front-end/BreakpointsSidebarPane.js: Removed.
* inspector/front-end/CPUProfileView.js: Removed.
* inspector/front-end/CSSMetadata.js: Removed.
* inspector/front-end/CSSNamedFlowCollectionsView.js: Removed.
* inspector/front-end/CSSNamedFlowView.js: Removed.
* inspector/front-end/CSSSelectorProfileView.js: Removed.
* inspector/front-end/CSSStyleModel.js: Removed.
* inspector/front-end/CallStackSidebarPane.js: Removed.
* inspector/front-end/CanvasProfileView.js: Removed.
* inspector/front-end/Checkbox.js: Removed.
* inspector/front-end/CodeMirrorTextEditor.js: Removed.
* inspector/front-end/Color.js: Removed.
* inspector/front-end/CompilerScriptMapping.js: Removed.
* inspector/front-end/ConsoleMessage.js: Removed.
* inspector/front-end/ConsoleModel.js: Removed.
* inspector/front-end/ConsolePanel.js: Removed.
* inspector/front-end/ConsoleView.js: Removed.
* inspector/front-end/ContentProvider.js: Removed.
* inspector/front-end/ContentProviderBasedProjectDelegate.js: Removed.
* inspector/front-end/ContentProviders.js: Removed.
* inspector/front-end/ContextMenu.js: Removed.
* inspector/front-end/CookieItemsView.js: Removed.
* inspector/front-end/CookieParser.js: Removed.
* inspector/front-end/CookiesTable.js: Removed.
* inspector/front-end/DOMAgent.js: Removed.
* inspector/front-end/DOMBreakpointsSidebarPane.js: Removed.
* inspector/front-end/DOMCountersGraph.js: Removed.
* inspector/front-end/DOMExtension.js: Removed.
* inspector/front-end/DOMPresentationUtils.js: Removed.
* inspector/front-end/DOMStorage.js: Removed.
* inspector/front-end/DOMStorageItemsView.js: Removed.
* inspector/front-end/DOMSyntaxHighlighter.js: Removed.
* inspector/front-end/DataGrid.js: Removed.
* inspector/front-end/Database.js: Removed.
* inspector/front-end/DatabaseQueryView.js: Removed.
* inspector/front-end/DatabaseTableView.js: Removed.
* inspector/front-end/DebuggerModel.js: Removed.
* inspector/front-end/DebuggerScriptMapping.js: Removed.
* inspector/front-end/DefaultScriptMapping.js: Removed.
* inspector/front-end/DefaultTextEditor.js: Removed.
* inspector/front-end/Dialog.js: Removed.
* inspector/front-end/DirectoryContentView.js: Removed.
* inspector/front-end/DockController.js: Removed.
* inspector/front-end/Drawer.js: Removed.
* inspector/front-end/ElementsPanel.js: Removed.
* inspector/front-end/ElementsPanelDescriptor.js: Removed.
* inspector/front-end/ElementsTreeOutline.js: Removed.
* inspector/front-end/EmptyView.js: Removed.
* inspector/front-end/EventListenersSidebarPane.js: Removed.
* inspector/front-end/ExtensionAPI.js: Removed.
* inspector/front-end/ExtensionAuditCategory.js: Removed.
* inspector/front-end/ExtensionPanel.js: Removed.
* inspector/front-end/ExtensionRegistryStub.js: Removed.
* inspector/front-end/ExtensionServer.js: Removed.
* inspector/front-end/ExtensionView.js: Removed.
* inspector/front-end/FileContentView.js: Removed.
* inspector/front-end/FileManager.js: Removed.
* inspector/front-end/FileMapping.js: Removed.
* inspector/front-end/FileSystemMapping.js: Removed.
* inspector/front-end/FileSystemModel.js: Removed.
* inspector/front-end/FileSystemProjectDelegate.js: Removed.
* inspector/front-end/FileSystemView.js: Removed.
* inspector/front-end/FileUtils.js: Removed.
* inspector/front-end/FilteredItemSelectionDialog.js: Removed.
* inspector/front-end/FlameChart.js: Removed.
* inspector/front-end/FontView.js: Removed.
* inspector/front-end/GoToLineDialog.js: Removed.
* inspector/front-end/HAREntry.js: Removed.
* inspector/front-end/HandlerRegistry.js: Removed.
* inspector/front-end/HeapSnapshot.js: Removed.
* inspector/front-end/HeapSnapshotDataGrids.js: Removed.
* inspector/front-end/HeapSnapshotGridNodes.js: Removed.
* inspector/front-end/HeapSnapshotLoader.js: Removed.
* inspector/front-end/HeapSnapshotProxy.js: Removed.
* inspector/front-end/HeapSnapshotView.js: Removed.
* inspector/front-end/HeapSnapshotWorker.js: Removed.
* inspector/front-end/HeapSnapshotWorkerDispatcher.js: Removed.
* inspector/front-end/HelpScreen.js: Removed.
* inspector/front-end/ImageView.js: Removed.
* inspector/front-end/Images/addIcon.png: Removed.
* inspector/front-end/Images/applicationCache.png: Removed.
* inspector/front-end/Images/back.png: Removed.
* inspector/front-end/Images/breakpointBorder.png: Removed.
* inspector/front-end/Images/breakpointConditionalBorder.png: Removed.
* inspector/front-end/Images/breakpointConditionalCounterBorder.png: Removed.
* inspector/front-end/Images/breakpointCounterBorder.png: Removed.
* inspector/front-end/Images/checker.png: Removed.
* inspector/front-end/Images/closeButtons.png: Removed.
* inspector/front-end/Images/cookie.png: Removed.
* inspector/front-end/Images/database.png: Removed.
* inspector/front-end/Images/databaseTable.png: Removed.
* inspector/front-end/Images/debuggerContinue.png: Removed.
* inspector/front-end/Images/debuggerPause.png: Removed.
* inspector/front-end/Images/debuggerStepInto.png: Removed.
* inspector/front-end/Images/debuggerStepOut.png: Removed.
* inspector/front-end/Images/debuggerStepOver.png: Removed.
* inspector/front-end/Images/deleteIcon.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallDown.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallDownBlack.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallDownWhite.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRight.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRightBlack.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRightDown.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRightDownBlack.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRightDownWhite.png: Removed.
* inspector/front-end/Images/disclosureTriangleSmallRightWhite.png: Removed.
* inspector/front-end/Images/domain.png: Removed.
* inspector/front-end/Images/errorIcon.png: Removed.
* inspector/front-end/Images/errorMediumIcon.png: Removed.
* inspector/front-end/Images/errorRedDot.png: Removed.
* inspector/front-end/Images/fileSystem.png: Removed.
* inspector/front-end/Images/forward.png: Removed.
* inspector/front-end/Images/frame.png: Removed.
* inspector/front-end/Images/glossyHeader.png: Removed.
* inspector/front-end/Images/glossyHeaderPressed.png: Removed.
* inspector/front-end/Images/glossyHeaderSelected.png: Removed.
* inspector/front-end/Images/glossyHeaderSelectedPressed.png: Removed.
* inspector/front-end/Images/goArrow.png: Removed.
* inspector/front-end/Images/graphLabelCalloutLeft.png: Removed.
* inspector/front-end/Images/graphLabelCalloutRight.png: Removed.
* inspector/front-end/Images/indexedDB.png: Removed.
* inspector/front-end/Images/indexedDBIndex.png: Removed.
* inspector/front-end/Images/indexedDBObjectStore.png: Removed.
* inspector/front-end/Images/localStorage.png: Removed.
* inspector/front-end/Images/namedFlowOverflow.png: Removed.
* inspector/front-end/Images/navigatorShowHideButton.png: Removed.
* inspector/front-end/Images/paneAddButtons.png: Removed.
* inspector/front-end/Images/paneBottomGrow.png: Removed.
* inspector/front-end/Images/paneBottomGrowActive.png: Removed.
* inspector/front-end/Images/paneElementStateButtons.png: Removed.
* inspector/front-end/Images/paneFilterButtons.png: Removed.
* inspector/front-end/Images/paneGrowHandleLine.png: Removed.
* inspector/front-end/Images/paneRefreshButtons.png: Removed.
* inspector/front-end/Images/paneSettingsButtons.png: Removed.
* inspector/front-end/Images/popoverArrows.png: Removed.
* inspector/front-end/Images/popoverBackground.png: Removed.
* inspector/front-end/Images/profileGroupIcon.png: Removed.
* inspector/front-end/Images/profileIcon.png: Removed.
* inspector/front-end/Images/profileSmallIcon.png: Removed.
* inspector/front-end/Images/profilesSilhouette.png: Removed.
* inspector/front-end/Images/programCounterBorder.png: Removed.
* inspector/front-end/Images/radioDot.png: Removed.
* inspector/front-end/Images/regionEmpty.png: Removed.
* inspector/front-end/Images/regionFit.png: Removed.
* inspector/front-end/Images/regionOverset.png: Removed.
* inspector/front-end/Images/resourceCSSIcon.png: Removed.
* inspector/front-end/Images/resourceDocumentIcon.png: Removed.
* inspector/front-end/Images/resourceDocumentIconSmall.png: Removed.
* inspector/front-end/Images/resourceJSIcon.png: Removed.
* inspector/front-end/Images/resourcePlainIcon.png: Removed.
* inspector/front-end/Images/resourcePlainIconSmall.png: Removed.
* inspector/front-end/Images/resourcesSizeGraphIcon.png: Removed.
* inspector/front-end/Images/resourcesTimeGraphIcon.png: Removed.
* inspector/front-end/Images/scriptsSilhouette.png: Removed.
* inspector/front-end/Images/searchNext.png: Removed.
* inspector/front-end/Images/searchPrev.png: Removed.
* inspector/front-end/Images/searchSmallBlue.png: Removed.
* inspector/front-end/Images/searchSmallBrightBlue.png: Removed.
* inspector/front-end/Images/searchSmallGray.png: Removed.
* inspector/front-end/Images/searchSmallWhite.png: Removed.
* inspector/front-end/Images/segment.png: Removed.
* inspector/front-end/Images/segmentEnd.png: Removed.
* inspector/front-end/Images/segmentHover.png: Removed.
* inspector/front-end/Images/segmentHoverEnd.png: Removed.
* inspector/front-end/Images/segmentSelected.png: Removed.
* inspector/front-end/Images/segmentSelectedEnd.png: Removed.
* inspector/front-end/Images/sessionStorage.png: Removed.
* inspector/front-end/Images/spinner.gif: Removed.
* inspector/front-end/Images/spinnerActive.gif: Removed.
* inspector/front-end/Images/spinnerActiveSelected.gif: Removed.
* inspector/front-end/Images/spinnerInactive.gif: Removed.
* inspector/front-end/Images/spinnerInactiveSelected.gif: Removed.
* inspector/front-end/Images/splitviewDimple.png: Removed.
* inspector/front-end/Images/splitviewDividerBackground.png: Removed.
* inspector/front-end/Images/statusbarButtonGlyphs.png: Removed.
* inspector/front-end/Images/statusbarButtonGlyphs2x.png: Removed.
* inspector/front-end/Images/statusbarResizerHorizontal.png: Removed.
* inspector/front-end/Images/statusbarResizerVertical.png: Removed.
* inspector/front-end/Images/successGreenDot.png: Removed.
* inspector/front-end/Images/thumbActiveHoriz.png: Removed.
* inspector/front-end/Images/thumbActiveVert.png: Removed.
* inspector/front-end/Images/thumbHoriz.png: Removed.
* inspector/front-end/Images/thumbHoverHoriz.png: Removed.
* inspector/front-end/Images/thumbHoverVert.png: Removed.
* inspector/front-end/Images/thumbVert.png: Removed.
* inspector/front-end/Images/tickMark.png: Removed.
* inspector/front-end/Images/timelineHollowPillBlue.png: Removed.
* inspector/front-end/Images/timelineHollowPillGray.png: Removed.
* inspector/front-end/Images/timelineHollowPillGreen.png: Removed.
* inspector/front-end/Images/timelineHollowPillOrange.png: Removed.
* inspector/front-end/Images/timelineHollowPillPurple.png: Removed.
* inspector/front-end/Images/timelineHollowPillRed.png: Removed.
* inspector/front-end/Images/timelineHollowPillYellow.png: Removed.
* inspector/front-end/Images/timelinePillBlue.png: Removed.
* inspector/front-end/Images/timelinePillGray.png: Removed.
* inspector/front-end/Images/timelinePillGreen.png: Removed.
* inspector/front-end/Images/timelinePillOrange.png: Removed.
* inspector/front-end/Images/timelinePillPurple.png: Removed.
* inspector/front-end/Images/timelinePillRed.png: Removed.
* inspector/front-end/Images/timelinePillYellow.png: Removed.
* inspector/front-end/Images/toolbarIcons.png: Removed.
* inspector/front-end/Images/toolbarIconsSmall.png: Removed.
* inspector/front-end/Images/toolbarItemSelected.png: Removed.
* inspector/front-end/Images/trackHoriz.png: Removed.
* inspector/front-end/Images/trackVert.png: Removed.
* inspector/front-end/Images/treeDownTriangleBlack.png: Removed.
* inspector/front-end/Images/treeDownTriangleWhite.png: Removed.
* inspector/front-end/Images/treeRightTriangleBlack.png: Removed.
* inspector/front-end/Images/treeRightTriangleWhite.png: Removed.
* inspector/front-end/Images/treeUpTriangleBlack.png: Removed.
* inspector/front-end/Images/treeUpTriangleWhite.png: Removed.
* inspector/front-end/Images/userInputIcon.png: Removed.
* inspector/front-end/Images/userInputPreviousIcon.png: Removed.
* inspector/front-end/Images/userInputResultIcon.png: Removed.
* inspector/front-end/Images/warningIcon.png: Removed.
* inspector/front-end/Images/warningMediumIcon.png: Removed.
* inspector/front-end/Images/warningOrangeDot.png: Removed.
* inspector/front-end/Images/warningsErrors.png: Removed.
* inspector/front-end/IndexedDBModel.js: Removed.
* inspector/front-end/IndexedDBViews.js: Removed.
* inspector/front-end/InspectElementModeController.js: Removed.
* inspector/front-end/InspectorBackend.js: Removed.
* inspector/front-end/InspectorBackendCommands.qrc: Removed.
* inspector/front-end/InspectorFrontendAPI.js: Removed.
* inspector/front-end/InspectorFrontendHostStub.js: Removed.
* inspector/front-end/InspectorView.js: Removed.
* inspector/front-end/IsolatedFileSystem.js: Removed.
* inspector/front-end/IsolatedFileSystemManager.js: Removed.
* inspector/front-end/JSHeapSnapshot.js: Removed.
* inspector/front-end/JavaScriptFormatter.js: Removed.
* inspector/front-end/JavaScriptSourceFrame.js: Removed.
* inspector/front-end/KeyboardShortcut.js: Removed.
* inspector/front-end/Linkifier.js: Removed.
* inspector/front-end/LiveEditSupport.js: Removed.
* inspector/front-end/MemoryStatistics.js: Removed.
* inspector/front-end/MetricsSidebarPane.js: Removed.
* inspector/front-end/NativeBreakpointsSidebarPane.js: Removed.
* inspector/front-end/NativeHeapSnapshot.js: Removed.
* inspector/front-end/NativeMemoryGraph.js: Removed.
* inspector/front-end/NavigatorOverlayController.js: Removed.
* inspector/front-end/NavigatorView.js: Removed.
* inspector/front-end/NetworkItemView.js: Removed.
* inspector/front-end/NetworkLog.js: Removed.
* inspector/front-end/NetworkManager.js: Removed.
* inspector/front-end/NetworkPanel.js: Removed.
* inspector/front-end/NetworkPanelDescriptor.js: Removed.
* inspector/front-end/NetworkRequest.js: Removed.
* inspector/front-end/NetworkUISourceCodeProvider.js: Removed.
* inspector/front-end/Object.js: Removed.
* inspector/front-end/ObjectPopoverHelper.js: Removed.
* inspector/front-end/ObjectPropertiesSection.js: Removed.
* inspector/front-end/OverridesView.js: Removed.
* inspector/front-end/OverviewGrid.js: Removed.
* inspector/front-end/Panel.js: Removed.
* inspector/front-end/PanelEnablerView.js: Removed.
* inspector/front-end/ParsedURL.js: Removed.
* inspector/front-end/Placard.js: Removed.
* inspector/front-end/Popover.js: Removed.
* inspector/front-end/PresentationConsoleMessageHelper.js: Removed.
* inspector/front-end/ProfileDataGridTree.js: Removed.
* inspector/front-end/ProfileLauncherView.js: Removed.
* inspector/front-end/ProfilesPanel.js: Removed.
* inspector/front-end/ProfilesPanelDescriptor.js: Removed.
* inspector/front-end/Progress.js: Removed.
* inspector/front-end/ProgressIndicator.js: Removed.
* inspector/front-end/PropertiesSection.js: Removed.
* inspector/front-end/PropertiesSidebarPane.js: Removed.
* inspector/front-end/RawSourceCode.js: Removed.
* inspector/front-end/RemoteObject.js: Removed.
* inspector/front-end/RequestCookiesView.js: Removed.
* inspector/front-end/RequestHTMLView.js: Removed.
* inspector/front-end/RequestHeadersView.js: Removed.
* inspector/front-end/RequestJSONView.js: Removed.
* inspector/front-end/RequestPreviewView.js: Removed.
* inspector/front-end/RequestResponseView.js: Removed.
* inspector/front-end/RequestTimingView.js: Removed.
* inspector/front-end/RequestView.js: Removed.
* inspector/front-end/Resource.js: Removed.
* inspector/front-end/ResourceScriptMapping.js: Removed.
* inspector/front-end/ResourceTreeModel.js: Removed.
* inspector/front-end/ResourceType.js: Removed.
* inspector/front-end/ResourceUtils.js: Removed.
* inspector/front-end/ResourceView.js: Removed.
* inspector/front-end/ResourceWebSocketFrameView.js: Removed.
* inspector/front-end/ResourcesPanel.js: Removed.
* inspector/front-end/RevisionHistoryView.js: Removed.
* inspector/front-end/RuntimeModel.js: Removed.
* inspector/front-end/SASSSourceMapping.js: Removed.
* inspector/front-end/ScopeChainSidebarPane.js: Removed.
* inspector/front-end/Script.js: Removed.
* inspector/front-end/ScriptFormatter.js: Removed.
* inspector/front-end/ScriptFormatterWorker.js: Removed.
* inspector/front-end/ScriptSnippetModel.js: Removed.
* inspector/front-end/ScriptsNavigator.js: Removed.
* inspector/front-end/ScriptsPanel.js: Removed.
* inspector/front-end/ScriptsPanelDescriptor.js: Removed.
* inspector/front-end/ScriptsSearchScope.js: Removed.
* inspector/front-end/SearchController.js: Removed.
* inspector/front-end/Section.js: Removed.
* inspector/front-end/Settings.js: Removed.
* inspector/front-end/SettingsScreen.js: Removed.
* inspector/front-end/ShortcutsScreen.js: Removed.
* inspector/front-end/ShowMoreDataGridNode.js: Removed.
* inspector/front-end/SidebarOverlay.js: Removed.
* inspector/front-end/SidebarPane.js: Removed.
* inspector/front-end/SidebarTreeElement.js: Removed.
* inspector/front-end/SidebarView.js: Removed.
* inspector/front-end/SimpleWorkspaceProvider.js: Removed.
* inspector/front-end/SnippetJavaScriptSourceFrame.js: Removed.
* inspector/front-end/SnippetStorage.js: Removed.
* inspector/front-end/SoftContextMenu.js: Removed.
* inspector/front-end/SourceCSSTokenizer.js: Removed.
* inspector/front-end/SourceCSSTokenizer.re2js: Removed.
* inspector/front-end/SourceFrame.js: Removed.
* inspector/front-end/SourceHTMLTokenizer.js: Removed.
* inspector/front-end/SourceHTMLTokenizer.re2js: Removed.
* inspector/front-end/SourceJavaScriptTokenizer.js: Removed.
* inspector/front-end/SourceJavaScriptTokenizer.re2js: Removed.
* inspector/front-end/SourceMap.js: Removed.
* inspector/front-end/SourceMapping.js: Removed.
* inspector/front-end/SourceTokenizer.js: Removed.
* inspector/front-end/Spectrum.js: Removed.
* inspector/front-end/SplitView.js: Removed.
* inspector/front-end/StatusBarButton.js: Removed.
* inspector/front-end/StyleSheetOutlineDialog.js: Removed.
* inspector/front-end/StylesSidebarPane.js: Removed.
* inspector/front-end/StylesSourceMapping.js: Removed.
* inspector/front-end/SuggestBox.js: Removed.
* inspector/front-end/TabbedEditorContainer.js: Removed.
* inspector/front-end/TabbedPane.js: Removed.
* inspector/front-end/TestController.js: Removed.
* inspector/front-end/TextEditor.js: Removed.
* inspector/front-end/TextEditorHighlighter.js: Removed.
* inspector/front-end/TextEditorModel.js: Removed.
* inspector/front-end/TextPrompt.js: Removed.
* inspector/front-end/TextUtils.js: Removed.
* inspector/front-end/TimelineFrameController.js: Removed.
* inspector/front-end/TimelineGrid.js: Removed.
* inspector/front-end/TimelineManager.js: Removed.
* inspector/front-end/TimelineModel.js: Removed.
* inspector/front-end/TimelineOverviewPane.js: Removed.
* inspector/front-end/TimelinePanel.js: Removed.
* inspector/front-end/TimelinePanelDescriptor.js: Removed.
* inspector/front-end/TimelinePresentationModel.js: Removed.
* inspector/front-end/Toolbar.js: Removed.
* inspector/front-end/TopDownProfileDataGridTree.js: Removed.
* inspector/front-end/UISourceCode.js: Removed.
* inspector/front-end/UISourceCodeFrame.js: Removed.
* inspector/front-end/UIString.js: Removed.
* inspector/front-end/UIUtils.js: Removed.
* inspector/front-end/UglifyJS/parse-js.js: Removed.
* inspector/front-end/UserAgentSupport.js: Removed.
* inspector/front-end/UserMetrics.js: Removed.
* inspector/front-end/View.js: Removed.
* inspector/front-end/ViewportControl.js: Removed.
* inspector/front-end/WatchExpressionsSidebarPane.js: Removed.
* inspector/front-end/WebKit.qrc: Removed.
* inspector/front-end/WorkerManager.js: Removed.
* inspector/front-end/WorkersSidebarPane.js: Removed.
* inspector/front-end/Workspace.js: Removed.
* inspector/front-end/ace/LICENSE.txt: Removed.
* inspector/front-end/ace/ace.js: Removed.
* inspector/front-end/ace/acedevtools.css: Removed.
* inspector/front-end/ace/mode_css.js: Removed.
* inspector/front-end/ace/mode_html.js: Removed.
* inspector/front-end/ace/mode_javascript.js: Removed.
* inspector/front-end/ace/theme_textmate.js: Removed.
* inspector/front-end/auditsPanel.css: Removed.
* inspector/front-end/breadcrumbList.css: Removed.
* inspector/front-end/breakpointsList.css: Removed.
* inspector/front-end/buildSystemOnly.js: Removed.
* inspector/front-end/canvasProfiler.css: Removed.
* inspector/front-end/cm/LICENSE: Removed.
* inspector/front-end/cm/closebrackets.js: Removed.
* inspector/front-end/cm/cmdevtools.css: Removed.
* inspector/front-end/cm/codemirror.css: Removed.
* inspector/front-end/cm/codemirror.js: Removed.
* inspector/front-end/cm/css.js: Removed.
* inspector/front-end/cm/htmlmixed.js: Removed.
* inspector/front-end/cm/javascript.js: Removed.
* inspector/front-end/cm/matchbrackets.js: Removed.
* inspector/front-end/cm/xml.js: Removed.
* inspector/front-end/cssNamedFlows.css: Removed.
* inspector/front-end/dataGrid.css: Removed.
* inspector/front-end/dialog.css: Removed.
* inspector/front-end/elementsPanel.css: Removed.
* inspector/front-end/externs.js: Removed.
* inspector/front-end/filteredItemSelectionDialog.css: Removed.
* inspector/front-end/flameChart.css: Removed.
* inspector/front-end/heapProfiler.css: Removed.
* inspector/front-end/helpScreen.css: Removed.
* inspector/front-end/indexedDBViews.css: Removed.
* inspector/front-end/inspector.css: Removed.
* inspector/front-end/inspector.html: Removed.
* inspector/front-end/inspector.js: Removed.
* inspector/front-end/inspectorCommon.css: Removed.
* inspector/front-end/inspectorSyntaxHighlight.css: Removed.
* inspector/front-end/jsdifflib.js: Removed.
* inspector/front-end/navigatorView.css: Removed.
* inspector/front-end/networkLogView.css: Removed.
* inspector/front-end/networkPanel.css: Removed.
* inspector/front-end/panelEnablerView.css: Removed.
* inspector/front-end/popover.css: Removed.
* inspector/front-end/profilesPanel.css: Removed.
* inspector/front-end/resourceView.css: Removed.
* inspector/front-end/resourcesPanel.css: Removed.
* inspector/front-end/revisionHistory.css: Removed.
* inspector/front-end/scriptsPanel.css: Removed.
* inspector/front-end/sidebarPane.css: Removed.
* inspector/front-end/spectrum.css: Removed.
* inspector/front-end/splitView.css: Removed.
* inspector/front-end/tabbedPane.css: Removed.
* inspector/front-end/test-runner.html: Removed.
* inspector/front-end/textEditor.css: Removed.
* inspector/front-end/textPrompt.css: Removed.
* inspector/front-end/timelinePanel.css: Removed.
* inspector/front-end/treeoutline.js: Removed.
* inspector/front-end/utilities.js: Removed.

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

7 years agoAdd failing expectations to some tests on Mac Lion.
rniwa@webkit.org [Fri, 11 Oct 2013 00:07:30 +0000 (00:07 +0000)]
Add failing expectations to some tests on Mac Lion.

* platform/mac-lion/TestExpectations:

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

7 years agoFix build.
andersca@apple.com [Fri, 11 Oct 2013 00:05:56 +0000 (00:05 +0000)]
Fix build.

* Interfaces/WebKit.idl:
Oops, didn't mean to remove the uuid for WebURLResponse.

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

7 years agoWeb Inspector: Remove the old front-end from WebKit
commit-queue@webkit.org [Fri, 11 Oct 2013 00:05:42 +0000 (00:05 +0000)]
Web Inspector: Remove the old front-end from WebKit
https://bugs.webkit.org/show_bug.cgi?id=122295

Patch by Marcelo Morais <m.morais@samsung.com> on 2013-10-10
Reviewed by Timothy Hatcher.

.:

* Source/PlatformGTK.cmake: Removed. This file was using files from the
old inspector, not needed anymore.

Source/WebCore:

Updating the project files to remove all references from the old
inspector front-end.

* WebCore.vcxproj/WebCore.vcxproj: Removed the references for the old
inspector front-end.
* WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.
* inspector/compile-front-end.py: Removed.

Source/WebKit:

* PlatformBlackBerry.cmake: Removed the references for the old
inspector front-end.

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

7 years agoUnreviewed build fix with ENABLE_DEVICE_ORIENTATION after r157215
ryuan.choi@samsung.com [Fri, 11 Oct 2013 00:01:36 +0000 (00:01 +0000)]
Unreviewed build fix with ENABLE_DEVICE_ORIENTATION after r157215

Now, impl() return reference instead of a pointer.

* bindings/js/JSDeviceMotionEventCustom.cpp:
(WebCore::JSDeviceMotionEvent::acceleration):
(WebCore::JSDeviceMotionEvent::accelerationIncludingGravity):
(WebCore::JSDeviceMotionEvent::rotationRate):
(WebCore::JSDeviceMotionEvent::interval):
(WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
* bindings/js/JSDeviceOrientationEventCustom.cpp:
(WebCore::JSDeviceOrientationEvent::alpha):
(WebCore::JSDeviceOrientationEvent::beta):
(WebCore::JSDeviceOrientationEvent::gamma):
(WebCore::JSDeviceOrientationEvent::absolute):
(WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):

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

7 years ago[MediaStream API] update MediaStream object to match spec
commit-queue@webkit.org [Thu, 10 Oct 2013 23:56:07 +0000 (23:56 +0000)]
[MediaStream API] update MediaStream object to match spec
https://bugs.webkit.org/show_bug.cgi?id=121939

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
Reviewed by Jer Noble.

Source/WebCore:

Test: fast/mediastream/MediaStream-clone.html

* Modules/mediastream/MediaStream.cpp:
(WebCore::MediaStream::MediaStream):
(WebCore::MediaStream::ended):
(WebCore::MediaStream::clone):
(WebCore::MediaStream::cloneMediaStreamTrackVector):
(WebCore::MediaStream::contextDestroyed):
(WebCore::MediaStream::scheduledEventTimerFired):
* Modules/mediastream/MediaStream.h:
* Modules/mediastream/MediaStream.idl:

LayoutTests:

* TestExpectations:
* fast/mediastream/MediaStream-add-remove-tracks-expected.txt:
* fast/mediastream/MediaStream-add-remove-tracks.html:
* fast/mediastream/MediaStream-clone.html: Added.
* fast/mediastream/MediaStreamConstructor-expected.txt:
* fast/mediastream/MediaStreamConstructor.html:

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

7 years agoCalling setUsePresentationValue on MountainLion results in unrecognized selector
bdakin@apple.com [Thu, 10 Oct 2013 23:51:28 +0000 (23:51 +0000)]
Calling setUsePresentationValue on MountainLion results in unrecognized selector
warnings
https://bugs.webkit.org/show_bug.cgi?id=122624

Reviewed by Tim Horton.

Only call setUsePresentationValue if the scrollbar supports updates on a secondary
thread.
* platform/mac/ScrollAnimatorMac.mm:
(-[WebScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]):

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

7 years agoValidate uniform input when setting texture sampler uniforms.
roger_fong@apple.com [Thu, 10 Oct 2013 23:34:29 +0000 (23:34 +0000)]
Validate uniform input when setting texture sampler uniforms.
https://bugs.webkit.org/show_bug.cgi?id=122610.

Reviewed by Dean Jackson.

Covered by Khronos Conformance Suite 1.0.2.
Specifically, conformance/uniforms/uniform-samplers-test.html.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::uniform1i):
(WebCore::WebGLRenderingContext::uniform1iv):

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

7 years agoUnreviewed build fix after r157250
seokju@webkit.org [Thu, 10 Oct 2013 23:31:21 +0000 (23:31 +0000)]
Unreviewed build fix after r157250

* dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::dispatchEvent):

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

7 years agoWeb Inspector: content views and managers should save/restore view state.
commit-queue@webkit.org [Thu, 10 Oct 2013 23:20:56 +0000 (23:20 +0000)]
Web Inspector: content views and managers should save/restore view state.
https://bugs.webkit.org/show_bug.cgi?id=122546

To restore the same content view and sidebars when re-opening the
inspector, a cookie is saved whenever a new content view is shown
in the main content browser. Previously, this cookie was created
and restored using navigation sidebar-specific logic. This has two
major flaws: non-default sidebars for a represented object are not
restored correctly; and it centralizes storage of view-specific
state such as subview selections.

This patch adds ContentView methods for saving a key for the
view's represented object, and saving/restoring any view-specific
state as the view is shown. The 'type' field of the cookie
specifies the manager which deserializes the cookie into a
represented object.

Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-10-10
Reviewed by Timothy Hatcher.

* UserInterface/ApplicationCacheFrameContentView.js:
(WebInspector.ApplicationCacheFrameContentView):
(WebInspector.ApplicationCacheFrameContentView.prototype.saveToCookie):
(WebInspector.ApplicationCacheFrameContentView.prototype._maybeUpdate):
(WebInspector.ApplicationCacheFrameContentView.prototype._updateStatus):
(WebInspector.ApplicationCacheFrameContentView.prototype.updateStatus):
(WebInspector.ApplicationCacheFrameContentView.prototype._updateCallback):
* UserInterface/ApplicationCacheManager.js:
(WebInspector.ApplicationCacheManager.prototype.networkStateUpdated):
(WebInspector.ApplicationCacheManager.prototype.applicationCacheStatusUpdated):
(WebInspector.ApplicationCacheManager.prototype.):
(WebInspector.ApplicationCacheManager.prototype.requestApplicationCache):
(WebInspector.ApplicationCacheManager.prototype.objectForCookie):
(WebInspector.ApplicationCacheManager.prototype._manifestForFrameLoaded):
(WebInspector.ApplicationCacheManager.prototype._framesWithManifestsLoaded):
(WebInspector.ApplicationCacheManager.prototype._frameManifestUpdated):
* UserInterface/BackForwardEntry.js:
(WebInspector.BackForwardEntry):
(WebInspector.BackForwardEntry.prototype._restoreFromCookie):
* UserInterface/ContentBrowser.js:
(WebInspector.ContentBrowser.prototype.showContentViewForRepresentedObject):
(WebInspector.ContentBrowser.prototype.showContentView):
* UserInterface/ContentView.js:
(WebInspector.ContentView.prototype.saveToCookie):
(WebInspector.ContentView.prototype.restoreFromCookie):
* UserInterface/ContentViewContainer.js:
(WebInspector.ContentViewContainer.prototype.showContentView):
* UserInterface/CookieStorageContentView.js:
(WebInspector.CookieStorageContentView.prototype.update):
(WebInspector.CookieStorageContentView.prototype.saveToCookie):
(WebInspector.CookieStorageContentView.prototype._rebuildTable):
(WebInspector.CookieStorageContentView.prototype._filterCookies):
* UserInterface/DOMStorageContentView.js:
(WebInspector.DOMStorageContentView.prototype.saveToCookie):
* UserInterface/DatabaseContentView.js:
(WebInspector.DatabaseContentView.prototype.saveToCookie):
(WebInspector.DatabaseContentView.prototype._messagesClicked):
* UserInterface/DatabaseTableContentView.js:
(WebInspector.DatabaseTableContentView):
(WebInspector.DatabaseTableContentView.prototype.saveToCookie):
* UserInterface/FrameContentView.js:
(WebInspector.FrameContentView.prototype.saveToCookie):
(WebInspector.FrameContentView.prototype.restoreFromCookie):
* UserInterface/FrameResourceManager.js:
(WebInspector.FrameResourceManager.prototype.objectForCookie):
* UserInterface/InstrumentSidebarPanel.js:
(WebInspector.InstrumentSidebarPanel):
(WebInspector.InstrumentSidebarPanel.prototype.showTimeline):
(WebInspector.InstrumentSidebarPanel.prototype.shown):
(WebInspector.InstrumentSidebarPanel.prototype._timelinesTreeElementSelected):
* UserInterface/Main.js:
(WebInspector.loaded):
(WebInspector.contentLoaded):
(WebInspector.openURL):
(WebInspector._updateCurrentContentViewCookie):
(WebInspector._showContentViewForCookie.lastAttemptToRestoreFromCookie):
(WebInspector._showContentViewForCookie):
(WebInspector._resolveAndShowPendingContentViewCookie.delayedWork):
(WebInspector._resolveAndShowPendingContentViewCookie):
(WebInspector.elementDragStart):
(WebInspector.elementDragEnd):
(WebInspector.createMessageTextView):
(WebInspector.linkifyStringAsFragment):
* UserInterface/NavigationSidebarPanel.js:
* UserInterface/ResourceClusterContentView.js:
(WebInspector.ResourceClusterContentView.prototype.saveToCookie):
(WebInspector.ResourceClusterContentView.prototype.restoreFromCookie):
* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel.prototype.showSourceCode):
(WebInspector.ResourceSidebarPanel.prototype._mainFrameDidChange):
(WebInspector.ResourceSidebarPanel.prototype._domStorageObjectWasAdded):
(WebInspector.ResourceSidebarPanel.prototype._databaseWasAdded):
(WebInspector.ResourceSidebarPanel.prototype._cookieStorageObjectWasAdded):
(WebInspector.ResourceSidebarPanel.prototype._frameManifestAdded):
* UserInterface/ScriptContentView.js:
(WebInspector.ScriptContentView.prototype.saveToCookie):
(WebInspector.ScriptContentView.prototype.restoreFromCookie):
* UserInterface/StorageManager.js:
(WebInspector.StorageManager.prototype.findMatchingObjectInArray):
(WebInspector.StorageManager.prototype.objectForCookie):
* UserInterface/TimelineManager.js:
(WebInspector.TimelineManager):
(WebInspector.TimelineManager.prototype.get timelines):
(WebInspector.TimelineManager.prototype.objectForCookie):
* UserInterface/TimelinesContentView.js:
(WebInspector.TimelinesContentView.prototype.saveToCookie):
(WebInspector.TimelinesContentView.prototype.restoreFromCookie):
(WebInspector.TimelinesContentView.prototype._makeColumnScopeBar):

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

7 years agoCreate MediaStream object with ended attribute set if all tracks that are being used...
commit-queue@webkit.org [Thu, 10 Oct 2013 23:17:17 +0000 (23:17 +0000)]
Create MediaStream object with ended attribute set if all tracks that are being used on its creation are ended
https://bugs.webkit.org/show_bug.cgi?id=122358

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
Reviewed by Jer Noble.

Source/WebCore:

Spec tells that if all tracks that belongs to a new MediaStream object being created are ended,
then the ended attribute of this MediaStream must be set to true.
http://www.w3.org/TR/mediacapture-streams/#widl-MediaStream-ended

Since there is no port supporting MediaStream yet, we are skipping this test for now.

Test: fast/mediastream/MediaStream-construct-with-ended-tracks.html

* Modules/mediastream/MediaStream.cpp:
(WebCore::createFromSourceVectors):
(WebCore::MediaStream::create):
* Modules/webaudio/MediaStreamAudioDestinationNode.cpp:
(WebCore::MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode):
* platform/mediastream/MediaStreamDescriptor.cpp:
(WebCore::MediaStreamDescriptor::create):
(WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
* platform/mediastream/MediaStreamDescriptor.h:
* platform/mock/MockMediaStreamCenter.cpp:
(WebCore::MockMediaStreamCenter::createMediaStream):

LayoutTests:

Since there is no port supporting MediaStream yet, we are skipping this test for now.

* TestExpectations:
* fast/mediastream/MediaStream-construct-with-ended-tracks.html: Added.

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