Add JoinExistingSession to the WebContext XPC.
<rdar://problem/13541540> and https://bugs.webkit.org/show_bug.cgi?id=114882

Reviewed by Sam Weinig.

This fixes <keygen> and maybe other things.

* WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
* WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove the OpenVG backend
https://bugs.webkit.org/show_bug.cgi?id=114881

Reviewed by Tim Horton.

* platform/graphics/FloatRect.h:
(FloatRect): Remove #ifdefs for OpenVG backend.
* platform/graphics/GraphicsContext.cpp:
(WebCore): Ditto.
* platform/graphics/GraphicsContext.h:
* platform/graphics/NativeImagePtr.h:
(WebCore): Ditto.
* platform/graphics/Path.cpp:
(WebCore): Ditto.
* platform/graphics/Path.h:
* platform/graphics/openvg/EGLDisplayOpenVG.cpp: Removed.
* platform/graphics/openvg/EGLDisplayOpenVG.h: Removed.
* platform/graphics/openvg/EGLUtils.h: Removed.
* platform/graphics/openvg/GraphicsContextOpenVG.cpp: Removed.
* platform/graphics/openvg/ImageOpenVG.cpp: Removed.
* platform/graphics/openvg/PainterOpenVG.cpp: Removed.
* platform/graphics/openvg/PainterOpenVG.h: Removed.
* platform/graphics/openvg/PathOpenVG.cpp: Removed.
* platform/graphics/openvg/PlatformPathOpenVG.h: Removed.
* platform/graphics/openvg/SharedResourceOpenVG.cpp: Removed.
* platform/graphics/openvg/SharedResourceOpenVG.h: Removed.
* platform/graphics/openvg/SurfaceOpenVG.cpp: Removed.
* platform/graphics/openvg/SurfaceOpenVG.h: Removed.
* platform/graphics/openvg/TiledImageOpenVG.cpp: Removed.
* platform/graphics/openvg/TiledImageOpenVG.h: Removed.
* platform/graphics/openvg/VGUtils.cpp: Removed.
* platform/graphics/openvg/VGUtils.h: Removed.
* platform/graphics/transforms/AffineTransform.h:
(AffineTransform): Ditto.
* platform/graphics/transforms/TransformationMatrix.h:
(TransformationMatrix): Ditto.
* platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit should not decode or support PDF favicons
https://bugs.webkit.org/show_bug.cgi?id=114650
<rdar://problem/10133914>

Reviewed by Dan Bernstein.

Drop the image data on the floor if it begins with the PDF magic number.
No other browser I can find on OS X supports PDF favicons (by experimentation),
and we do not properly display them.

* loader/icon/IconLoader.cpp:
(WebCore::IconLoader::notifyFinished):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make loops in RenderObject::containingBlock homogeneous in their forms to simplify
https://bugs.webkit.org/show_bug.cgi?id=114853

Reviewed by David Hyatt.

This patch prepares us to avoid computing containing blocks during a depth-first traversal of the render tree.

Extracted inline functions out of RenderBlock::containingBlock to make the code simpler. Also moved the code
to obtain the nearest containing block out of the loop for a relatively positioned inline.

* rendering/RenderObject.cpp:
(WebCore::isNonReplacedInlineInFlowPosition): Extracted.
(WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject): Extracted.
(WebCore::isNonRenderBlockInline): Extracted.
(WebCore::RenderObject::containingBlock): Refactored as stated above.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. WebKit_Source is incorrectly set.

* WTF.vcxproj/WTF.make:
* JavaScriptCore.vcxproj/JavaScriptCore.make:
* WebCore.vcxproj/WebCore.make:
* WebKit.vcxproj/WebKit.make:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Find-on-page should do the scoping again when highlight policy changed
https://bugs.webkit.org/show_bug.cgi?id=114885

Patch by Andy Chen <andchen@blackberry.com> on 2013-04-19
Reviewed by Rob Buis.

PR 195773
Internally reviewed by Mike Fenton.
For find on page, we need to treat it as a new search if highlightAllMatches
changes but the text is not changed.

* WebKitSupport/InPageSearchManager.cpp:
(BlackBerry::WebKit::InPageSearchManager::findNextString):
(BlackBerry::WebKit::InPageSearchManager::findAndMarkText):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove non-overlap testing code in RenderLayerCompositor
https://bugs.webkit.org/show_bug.cgi?id=85521

Reviewed by Simon Fraser.

m_compositingConsultsOverlap is always true in the current
code. This patch removes this flag, and removes dead code that is
never executed because it was never false.

No new tests, no change in behavior.  The cleanup is covered by
existing tests.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateCompositingLayersAfterScroll):
removed if-statement that is always true.

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::shouldClipCompositedBounds):
removed if-statement that would never get triggered.

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::RenderLayerCompositor):
(WebCore::RenderLayerCompositor::updateCompositingLayers):
removed m_compositingConsultsOverlap, and retained the code as if the flag were "true".

* rendering/RenderLayerCompositor.h:
(RenderLayerCompositor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make StringImpl::cost const
https://bugs.webkit.org/show_bug.cgi?id=114790

Reviewed by Andreas Kling.

* wtf/text/StringImpl.h:
(WTF::StringImpl::cost):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename JSStringJoiner::build() to join()
https://bugs.webkit.org/show_bug.cgi?id=114845

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-19
Reviewed by Geoffrey Garen.

The method name build() came from StringBuilder history. It does not make much
sense on the StringJoiner.

* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncToString):
(JSC::arrayProtoFuncToLocaleString):
(JSC::arrayProtoFuncJoin):
* runtime/JSStringJoiner.cpp:
(JSC::JSStringJoiner::join):
* runtime/JSStringJoiner.h:
(JSStringJoiner):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Backend should detect sourceMappingURLs in CSS Resources
https://bugs.webkit.org/show_bug.cgi?id=114854

Source/WebCore:

Reviewed by Timothy Hatcher.

Test: http/tests/inspector/network/css-source-mapping-url.html

* inspector/Inspector.json:
- Page.getResourceTree - add sourceMapURL to resource payloads
- Network.loadingFinished and Network.requestServedFromMemoryCache,
  include extra resource info object with possible sourceMapURL.

* inspector/ContentSearchUtils.h:
* inspector/ContentSearchUtils.cpp:
(WebCore::ContentSearchUtils::scriptCommentPattern):
(WebCore::ContentSearchUtils::stylesheetCommentPattern):
(WebCore::ContentSearchUtils::findMagicComment):
(WebCore::ContentSearchUtils::findScriptSourceURL):
(WebCore::ContentSearchUtils::findScriptSourceMapURL):
(WebCore::ContentSearchUtils::findStylesheetSourceMapURL):
Separate Script and Stylesheet regex pattern creation, but
share the search function using the pattern.

* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
(WebCore::InspectorDebuggerAgent::didParseSource):
Update function names. Check for the SourceMap header before
checking for a sourceMappingURL comment.

* inspector/InspectorPageAgent.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::sourceMapURLForResource):
(WebCore::InspectorPageAgent::buildObjectForFrameTree):
Provide the sourceMapURL for Page.getResourceTree.

* inspector/InspectorResourceAgent.cpp:
(WebCore::buildObjectForExtraResourceInfo):
(WebCore::buildObjectForCachedResource):
(WebCore::InspectorResourceAgent::didFinishLoading):
(WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
Include ExtraResourceInfo objects in finish loading and
request served from cache.

LayoutTests:

Test a different ways we would expect to see a sourceMapURL for
stylesheet resources.

Reviewed by NOBODY (OOPS!).

* http/tests/inspector/network/css-source-mapping-url-expected.txt: Added.
* http/tests/inspector/network/css-source-mapping-url.html: Added.
* http/tests/inspector/network/resources/source-map-test-style.css: Added.
* http/tests/inspector/network/resources/source-map-test-style.css.map: Added.
* http/tests/inspector/network/resources/source-map-test-style.scss: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Support the SourceMap header, X-SourceMap was deprecated
https://bugs.webkit.org/show_bug.cgi?id=114888

Check first for SourceMap, then fallback to X-SourceMap. Leaving in
support for the deprecated header because most tools and articles
online mention that version and have not yet updated.

Reviewed by Timothy Hatcher.

* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::sourceMapURLForResource):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
StyledMarkupAccumulator::appendText() should not allocate an intermediary StringBuilder
https://bugs.webkit.org/show_bug.cgi?id=114847

Reviewed by Geoffrey Garen.

For some reason StyledMarkupAccumulator::appendText() was allocating a separate buffer
for invoking appendStyleNodeOpenTag. This is a bad idea.

* editing/markup.cpp:
(WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
(WebCore::StyledMarkupAccumulator::appendText):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove the declaration of MemoryObjectInfo from StringImpl
https://bugs.webkit.org/show_bug.cgi?id=114788

Reviewed by Andreas Kling.

* wtf/text/StringImpl.h: The declaration is an other left over from chromium.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use Vector instead of StringBuilder for CSSPreloadScanner's buffers
https://bugs.webkit.org/show_bug.cgi?id=114794

Reviewed by Ryosuke Niwa.

Cleanup for other String changes.

CSSPreloadScanner only handles UChar, StringBuilder was a little
overkill.

* html/parser/CSSPreloadScanner.cpp:
(WebCore):
(WebCore::ruleEqualIgnoringCase):
(WebCore::CSSPreloadScanner::emitRule):
* html/parser/CSSPreloadScanner.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac Lion] media/W3C/video/events/event_canplay.html is flakey, sometimes times out
https://bugs.webkit.org/show_bug.cgi?id=114889

* platform/mac-lion/TestExpectations:
Mark it as such.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] [WK2] Layout Test fast/regions/fixed-pos-elem-in-region.html is flaky on Debug builders
https://bugs.webkit.org/show_bug.cgi?id=114571

* platform/mac-wk2/TestExpectations:
The bots are also seeing image failures flakily, so add that expectation.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a missing null pointer check after r148759.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::containingBlock):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fixes for the flakiness dashboard.

* TestResultServer/static-dashboards/flakiness_dashboard.js:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove uses of WebKit_Source from AppleWin build in WTF and JavaScriptCore.

* JavaScriptCore.vcxproj/JavaScriptCore.make:
* JavaScriptCore.vcxproj/build-generated-files.sh:
* JavaScriptCore.vcxproj/copy-files.cmd:
* JavaScriptCore.vcxproj/testRegExp/testRegExp.vcxproj:
* WTF.vcxproj/WTF.make:
* WTF.vcxproj/copy-files.cmd:
* WTF.vcxproj/work-around-vs-dependency-tracking-bugs.py:
(react_to_vsprops_changes):
(react_to_webkit1_interface_changes):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Exclusions] Implement empty segments for multiple-segment shape-insides
https://bugs.webkit.org/show_bug.cgi?id=100049

Reviewed by David Hyatt.

Source/WebCore:

Content should not overflow a shape-inside segment, even if that means no content
will be placed in that segment. Overflow may be pushed to outside the shape. This
patch removes the restriction that every line must consume at least some text
input while inside a shape-inside. Content that does not fit is pushed down until
it does, either inside the shape or just below it.

Test: fast/exclusions/shape-inside/shape-inside-empty-segments.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::constructBidiRunsForSegment): Do not include empty segments for
consideration, as the actual BidiRuns construction expects to consume at
least one character.
(WebCore::constructBidiRunsForLine): Ditto.
(WebCore::firstPositiveWidth): Find the first positive word measurement width,
as there may be some empty word break measurements inserted.
(WebCore::adjustLogicalLineTop): Move the current line down, if necessary, to
fit it within the shape inside.
(WebCore::RenderBlock::layoutRunsAndFloatsInRange): If nothing fit in the
current segment, find the first available position for the smallest item
at the beginning of the text.
(WebCore::RenderBlock::LineBreaker::nextLineBreak): Return an empty segment
for a line that is inside the shape, but has no segments.
(WebCore::RenderBlock::LineBreaker::nextSegmentBreak): Do not consume
input to meet minimum size requirements if you are inside a shape.

LayoutTests:

Testing that shape-insides do not place content where it will not fit. Also
fixing up some previous tests and expectations.

* fast/exclusions/resources/multi-segment-polygon.js:
(simulateWithText): Enable multi-line shape expectations using arrays.
* fast/exclusions/resources/simple-rectangle.js:
(createRectangleTest): Add overflow: break-word property to tests.
(createRectangleTestResult): Ditto.
* fast/exclusions/shape-inside/shape-inside-empty-expected.html: Adjust results
for tests where content should be pushed down.
* fast/exclusions/shape-inside/shape-inside-empty-segments-expected.html: Added.
* fast/exclusions/shape-inside/shape-inside-empty-segments.html: Added.
* fast/exclusions/shape-inside/shape-inside-empty.html: Shapes with height but
no width should still push content down below the shape.


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