Remove remaining Nix port related files
https://bugs.webkit.org/show_bug.cgi?id=130179

Reviewed by Csaba Osztrogonác.

GLContextFromCurrentEGL was added in r155360 as a part of nix
upstreaming. As Nix port is removed from the source tree, these files
are in no use.

* platform/graphics/egl/GLContextFromCurrentEGL.cpp: Removed.
* platform/graphics/egl/GLContextFromCurrentEGL.h: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: AXI: Expose focused/focusable state in the Accessibility Node Inspector
https://bugs.webkit.org/show_bug.cgi?id=129779

Patch by Diego Pino Garcia <dpino@igalia.com> on 2014-03-13
Reviewed by Timothy Hatcher.

Source/WebCore:

* inspector/InspectorDOMAgent.cpp: Set property "focused".
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
* inspector/protocol/DOM.json: Add property "focused" to
AccessibilityProperties.

Source/WebInspectorUI:

* Localizations/en.lproj/localizedStrings.js: Add label "Focused".
* UserInterface/Models/DOMNode.js: Set property "focused" in
accessibilityProperties.
(WebInspector.DOMNode.prototype.accessibilityProperties): Add row for
property "focused".
* UserInterface/Views/DOMNodeDetailsSidebarPanel.js:
(WebInspector.DOMNodeDetailsSidebarPanel):
(WebInspector.DOMNodeDetailsSidebarPanel.prototype._refreshAccessibility):
Refresh value of property "focused" in UI.

LayoutTests:

* inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
Updated test.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add SPI to run javascript in main frame on WKWebView
https://bugs.webkit.org/show_bug.cgi?id=130047

Patch by Paul Hankes Drielsma <phd@apple.com> on 2014-03-13
Reviewed by Anders Carlsson.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Network process instantiates JSC::VM under fake memory pressure.
<https://webkit.org/b/130143>

Stop calling GCController::garbageCollectSoon() in the fake memory
pressure callback. The pressure relief code already schedules GC
by way of discardAllCode() which does reportAbandonedObjectGraph().
This way we don't accidentally instantiate a VM in the networking
process for no reason.

Reviewed by Geoffrey Garen.

* platform/mac/MemoryPressureHandlerMac.mm:
(WebCore::MemoryPressureHandler::install):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
VM::discardAllCode() should clear the RegExp cache.
<https://webkit.org/b/130144>

Reviewed by Michael Saboff.

* runtime/VM.cpp:
(JSC::VM::discardAllCode):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add SPI to set a custom user agent on WKWebView
https://bugs.webkit.org/show_bug.cgi?id=130164

Patch by Paul Hankes Drielsma <phd@apple.com> on 2014-03-13
Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _customUserAgent]):
(-[WKWebView _setCustomUserAgent:]):
* UIProcess/API/Cocoa/WKWebViewPrivate.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[SVG2] support paint-order presentation attribute
https://bugs.webkit.org/show_bug.cgi?id=129373

Reviewed by Dean Jackson.

Source/WebCore:

Add support for the paint-order property from SVG2. The presentation
attribute/CSS property allows to paint fill, stroke and markers in any order
the author desires.

Firefox supports this but behind a runtime flag. It is just activated in
nightly builds by default.

Chromium supports it behind a runtime flag as well but is going to ship it
pretty soon.

Tests: svg/paint-order/paint-order-fill-expected.svg
       svg/paint-order/paint-order-fill-markers-expected.svg
       svg/paint-order/paint-order-fill-markers.svg
       svg/paint-order/paint-order-fill.svg
       svg/paint-order/paint-order-markers-expected.svg
       svg/paint-order/paint-order-markers-stroke-expected.svg
       svg/paint-order/paint-order-markers-stroke.svg
       svg/paint-order/paint-order-markers.svg
       svg/paint-order/paint-order-normal-expected.svg
       svg/paint-order/paint-order-normal.svg
       svg/paint-order/paint-order-stroke-expected.svg
       svg/paint-order/paint-order-stroke-marker-expected.svg
       svg/paint-order/paint-order-stroke-marker.svg
       svg/paint-order/paint-order-stroke.svg
       svg/paint-order/paint-order-text-markers-expected.svg
       svg/paint-order/paint-order-text-markers.svg
       svg/paint-order/paint-order-text-normal-expected.svg
       svg/paint-order/paint-order-text-normal.svg
       svg/paint-order/paint-order-text-stroke-expected.svg
       svg/paint-order/paint-order-text-stroke.svg
       svg/paint-order/paint-order-text-tspan-001-expected.svg
       svg/paint-order/paint-order-text-tspan-001.svg
       svg/paint-order/paint-order-text-tspan-002-expected.svg
       svg/paint-order/paint-order-text-tspan-002.svg
       svg/paint-order/parsing-paint-order.html

* css/CSSComputedStyleDeclaration.cpp: Computed style for paint-order.
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSParser.h:
* css/CSSPropertyNames.in:
* css/CSSValueKeywords.in:
* css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::paintOrder):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
* css/SVGCSSParser.cpp: Parse paint-order. Take care of serialization
    at this point already to get element style correct.
(WebCore::CSSParser::parseSVGValue):
(WebCore::CSSParser::parsePaintOrder):
* css/SVGCSSStyleSelector.cpp:
(WebCore::StyleResolver::applySVGProperty):
* rendering/style/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::paintTypesForPaintOrder):
(WebCore::SVGRenderStyle::diff): Repaint on change.
* rendering/style/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::initialPaintOrder):
(WebCore::SVGRenderStyle::setPaintOrder):
(WebCore::SVGRenderStyle::paintOrder):
(WebCore::SVGRenderStyle::InheritedFlags::operator==):
(WebCore::SVGRenderStyle::setBitDefaults):
* rendering/style/SVGRenderStyleDefs.h:
* rendering/svg/RenderSVGShape.cpp: Change order of painting based on paint-order.
(WebCore::RenderSVGShape::strokeShape):
(WebCore::RenderSVGShape::fillStrokeMarkers):
(WebCore::RenderSVGShape::paint):
(WebCore::RenderSVGShape::addFocusRingRects):
* rendering/svg/RenderSVGShape.h:
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::paint): Ditto.
* svg/SVGElement.cpp: Make property a presentation attribute.
(WebCore::populateAttributeNameToCSSPropertyIDMap):
(WebCore::populateAttributeNameToAnimatedPropertyTypeMap):
* svg/svgattrs.in: Add paint-order attribute.

LayoutTests:

Test parsing and bahvior of the paint-order property.

* svg/paint-order/paint-order-fill-expected.svg: Added.
* svg/paint-order/paint-order-fill-markers-expected.svg: Added.
* svg/paint-order/paint-order-fill-markers.svg: Added.
* svg/paint-order/paint-order-fill.svg: Added.
* svg/paint-order/paint-order-markers-expected.svg: Added.
* svg/paint-order/paint-order-markers-stroke-expected.svg: Added.
* svg/paint-order/paint-order-markers-stroke.svg: Added.
* svg/paint-order/paint-order-markers.svg: Added.
* svg/paint-order/paint-order-normal-expected.svg: Added.
* svg/paint-order/paint-order-normal.svg: Added.
* svg/paint-order/paint-order-stroke-expected.svg: Added.
* svg/paint-order/paint-order-stroke-marker-expected.svg: Added.
* svg/paint-order/paint-order-stroke-marker.svg: Added.
* svg/paint-order/paint-order-stroke.svg: Added.
* svg/paint-order/paint-order-text-markers-expected.svg: Added.
* svg/paint-order/paint-order-text-markers.svg: Added.
* svg/paint-order/paint-order-text-normal-expected.svg: Added.
* svg/paint-order/paint-order-text-normal.svg: Added.
* svg/paint-order/paint-order-text-stroke-expected.svg: Added.
* svg/paint-order/paint-order-text-stroke.svg: Added.
* svg/paint-order/paint-order-text-tspan-001-expected.svg: Added.
* svg/paint-order/paint-order-text-tspan-001.svg: Added.
* svg/paint-order/paint-order-text-tspan-002-expected.svg: Added.
* svg/paint-order/paint-order-text-tspan-002.svg: Added.
* svg/paint-order/parsing-paint-order-expected.txt: Added.
* svg/paint-order/parsing-paint-order.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Fix compilation warning in Minibrowser
https://bugs.webkit.org/show_bug.cgi?id=130132

Patch by Sanghyup Lee <sh53.lee@samsung.com> on 2014-03-13
Reviewed by Csaba Osztrogonác.

Replace mktemp() with mkstemp() to fix compilation warning in MiniBrowser.

* MiniBrowser/efl/main.c:
(on_download_request):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: AXI: Use loc strings for known aria-invalid types
https://bugs.webkit.org/show_bug.cgi?id=129952

Patch by James Craig <jcraig@apple.com> on 2014-03-13
Reviewed by Joseph Pecoraro.

Source/WebCore:

Updating inspector-protocol enum and UI display values for @aria-invalid.

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

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

Source/WebInspectorUI:

Updating inspector-protocol and UI display values for @aria-invalid.

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

* Localizations/en.lproj/localizedStrings.js: "Grammar" and "Spelling" value strings.
* UserInterface/Protocol/InspectorWebBackendCommands.js: New enum for DOM.AccessibilityPropertiesInvalid
* UserInterface/Views/DOMNodeDetailsSidebarPanel.js: Use enum instead of passing value through directly.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refactor Vibration algorithm to use only one timer.
https://bugs.webkit.org/show_bug.cgi?id=130059

Patch by Jinwoo Jeong <jw00.jeong@samsung.com> on 2014-03-13
Reviewed by Darin Adler.

Source/WebCore:

Currently Vibration is using two timers,
one is to start a vibration and another is to check termination of a vibration.
But they do not work in same time, if one of them is fired, then anothor will start.
Thus this patch removes one of them, and manages vibration states by enumeration.

Also, this patch implement the missing part of the algorithm,
which check the maximum length of the vibration pattern and the maximum duration of the vibration.

Lastly, this patch removes unused methods from Vibration.

* Modules/vibration/Vibration.cpp:
(WebCore::Vibration::Vibration):
(WebCore::Vibration::vibrate):
(WebCore::Vibration::cancelVibration):
Removed stopVibration() and its contents moved to cancelVibration().
(WebCore::Vibration::timerFired): Combined timerStartFired() and timerStopFired().
Removed suspendVibration() and resumeVibration(), which is never called since r.
* Modules/vibration/Vibration.h: Added new enumertaion to specify states of Vibration.
(WebCore::Vibration::isVibrating):

Source/WebKit2:

This patch adds a vibration unit test regression after r161257.
It consists of two short term requests to check
that Vibration could work properly by sequential requests.

Indeed this patch tightens condition of existing tests.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Pass const RenderStyle& to box decoration functions.
https://bugs.webkit.org/show_bug.cgi?id=130201

Reviewed by Andreas Goran Kling.

No change in functionality.

* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::paintBoxShadow):
(WebCore::InlineFlowBox::paintBoxDecorations):
(WebCore::InlineFlowBox::paintMask):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintBoxDecorations):
(WebCore::RenderBox::paintMaskImages):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintNinePieceImage):
(WebCore::RenderBoxModelObject::paintOneBorderSide):
(WebCore::RenderBoxModelObject::paintBorderSides):
(WebCore::RenderBoxModelObject::paintTranslucentBorderSides):
(WebCore::RenderBoxModelObject::paintBorder):
(WebCore::RenderBoxModelObject::drawBoxSideFromPath):
(WebCore::RenderBoxModelObject::getBorderEdgeInfo):
(WebCore::RenderBoxModelObject::borderObscuresBackgroundEdge):
(WebCore::RenderBoxModelObject::borderObscuresBackground):
(WebCore::RenderBoxModelObject::paintBoxShadow):
* rendering/RenderBoxModelObject.h:
* rendering/RenderFieldset.cpp:
(WebCore::RenderFieldset::paintBoxDecorations):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::paintBoxDecorations):
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBoxDecorations):

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