[Qt] Unreviewed gardening. Added platform specific expectation after r140174.
https://bugs.webkit.org/show_bug.cgi?id=107434.

* platform/qt/TestExpectations:
* platform/qt/http/tests/cache/cancel-multiple-post-xhrs-expected.txt: Added after r140174.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: expand more chunks in DTE
https://bugs.webkit.org/show_bug.cgi?id=107698

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-01-24
Reviewed by Pavel Feldman.

Source/WebCore:

Mock DefaultTextEditor visible area as if it is slightly larger than real one and
do all chunk expandings and repaints based on this new area.

No new tests: no change in behaviour.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorChunkedPanel.prototype.findVisibleChunks):

LayoutTests:

Correct text expectation as we change amount of expanded chunks.

* inspector/editor/text-editor-selection-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Use C API inside ewk_favicon_database
https://bugs.webkit.org/show_bug.cgi?id=107680

Reviewed by Kenneth Rohde Christiansen.

Use C API inside ewk_favicon_database instead of
accessible the C++ classes and violating layering.
We still rely on some C++ methods but this will be
addressed later since there is no equivalent in
the C API and it will require more refactoring.

* UIProcess/API/efl/ewk_context.cpp:
(EwkContext::ensureFaviconDatabase):
* UIProcess/API/efl/ewk_favicon_database.cpp:
(EwkFaviconDatabase::EwkFaviconDatabase):
(EwkFaviconDatabase::~EwkFaviconDatabase):
(EwkFaviconDatabase::iconURLForPageURL):
(EwkFaviconDatabase::iconForPageURL):
(EwkFaviconDatabase::getIconSurfaceSynchronously):
(EwkFaviconDatabase::iconDataReadyForPageURL):
(ewk_favicon_database_async_icon_get):
* UIProcess/API/efl/ewk_favicon_database_private.h:
(EwkFaviconDatabase::create):
(EwkFaviconDatabase):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Inline Containing Only Collapsed Whitespace Not Getting a Linebox
https://bugs.webkit.org/show_bug.cgi?id=31397

Reviewed by David Hyatt.

Source/WebCore:

Treat inlines containing only collapsed whitespace as empty. This allows them
to get a linebox.

Test: fast/inline/inline-containing-collapsed-whitespace-treated-as-empty.html

* dom/Position.cpp:
(WebCore::boundingBoxLogicalHeight):
(WebCore):
(WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight):
* rendering/InlineIterator.h:
(WebCore::isEmptyInline):
(WebCore):
(WebCore::bidiNextShared):
(WebCore::bidiFirstSkippingEmptyInlines):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::alwaysRequiresLineBox):
(WebCore::requiresLineBox):
(WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
* rendering/RenderText.cpp:
* rendering/RenderText.h:
(RenderText):

LayoutTests:

* fast/css/first-letter-capitalized-edit-select-crash-expected.txt:
* fast/inline/inline-containing-collapsed-whitespace-treated-as-empty-expected.html: Added.
* fast/inline/inline-containing-collapsed-whitespace-treated-as-empty-vertical-rl-expected.html: Added.
* fast/inline/inline-containing-collapsed-whitespace-treated-as-empty-vertical-rl.html: Added.
* fast/inline/inline-containing-collapsed-whitespace-treated-as-empty.html: Added.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Get WTF compiling in VS2010 (32bit)
https://bugs.webkit.org/show_bug.cgi?id=106986

Reviewed by Tim Horton.

If you do not have Cygwin in the overall operating system
PATH, the project will not build.  In VS2005 we had logic
in the build system to guard against this.  We should
retain this in the VS2010 work.

Furthermore, VS2010 has a nasty bug where to Visual Studio
tools path is not defined when performing a 'clean' phase
on an NMAKE-based build.  This is corrected here as well.

* win/tools/vsprops/common.props: Revise environment setup
to ensure proper tools are in path during build.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Stipulate build order between WTFGenerated and WTF
https://bugs.webkit.org/show_bug.cgi?id=107844

Reviewed by Tim Horton.

* WTF.vcxproj/WTF.vcxproj: Use VS2010 project dependency
declaration so WTF depends on a completed WTFGenerated build.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Abandoned Memory: SVGFontElement and Corresponding SVGDocument Never Deconstructed
https://bugs.webkit.org/show_bug.cgi?id=66438

Reviewed by Dirk Schulze.

The memory leak was caused by SVGFontFaceElement storing its own parent in a RefPtr.

Fixed the bug by storing a raw pointer instead, and clearing the pointer in removedFrom
when the node detached from the document. Also added several sanity check assertions.

* svg/SVGFontFaceElement.cpp:
(WebCore::SVGFontFaceElement::SVGFontFaceElement):
(WebCore::SVGFontFaceElement::associatedFontElement):
(WebCore::SVGFontFaceElement::rebuildFontFace):
(WebCore::SVGFontFaceElement::insertedInto):
(WebCore::SVGFontFaceElement::removedFrom):
* svg/SVGFontFaceElement.h:
(SVGFontFaceElement):


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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix a typo after r139838.

* dom/NodeRareData.h:
(NodeRareData):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL rebaseline.

Rebaseline several tests on EFL port after r140693.

* platform/efl-wk1/svg/batik/text/xmlSpace-expected.png:
* platform/efl/TestExpectations:
* platform/efl/css2.1/t0505-c16-descendant-01-e-expected.png:
* platform/efl/css2.1/t0505-c16-descendant-01-e-expected.txt:
* platform/efl/editing/selection/extend-by-sentence-001-expected.png:
* platform/efl/editing/selection/extend-by-sentence-001-expected.txt:
* platform/efl/fast/inline/drawStyledEmptyInlines-expected.png:
* platform/efl/fast/inline/drawStyledEmptyInlines-expected.txt:
* platform/efl/fast/inline/drawStyledEmptyInlinesWithWS-expected.png:
* platform/efl/fast/inline/drawStyledEmptyInlinesWithWS-expected.txt:
* platform/efl/fast/text/capitalize-empty-generated-string-expected.png:
* platform/efl/fast/text/capitalize-empty-generated-string-expected.txt:
* platform/efl/fast/text/whitespace/006-expected.png:
* platform/efl/fast/text/whitespace/006-expected.txt:
* platform/efl/fast/text/whitespace/007-expected.png:
* platform/efl/fast/text/whitespace/007-expected.txt:
* platform/efl/svg/batik/text/xmlSpace-expected.png:
* platform/efl/svg/batik/text/xmlSpace-expected.txt:
* platform/efl/svg/carto.net/combobox-expected.png:
* platform/efl/svg/carto.net/combobox-expected.txt:
* platform/efl/tables/mozilla/bugs/bug113235-3-expected.png:
* platform/efl/tables/mozilla/bugs/bug113235-3-expected.txt:
* platform/efl/tables/mozilla/bugs/bug1188-expected.png:
* platform/efl/tables/mozilla/bugs/bug1188-expected.txt:
* platform/efl/tables/mozilla/bugs/bug1318-expected.png:
* platform/efl/tables/mozilla/bugs/bug1318-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Filters] CSS opacity property clips filter outsets
https://bugs.webkit.org/show_bug.cgi?id=106549

Reviewed by Dirk Schulze.

Source/WebCore:

Expand the transparencyClipBox for filter outsets and pass the filter output rect instead of
the input rect to beginTransparencyLayers for clipping. Details below.

Test: css3/filters/css-opacity-with-drop-shadow.html

* rendering/RenderLayer.cpp:
(WebCore):
(WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect):
    Replace filter outset calcuation with a call to expandRectForFilterOutsets.
(WebCore::expandRectForFilterOutsets):
    New method to factor out repeated filter outset calculation code.
(WebCore::transparencyClipBox):
    After expanding the clip rect for descendants and reflection, expand it for filter
    outsets, so they don't get clipped when we begin a transparency layer.
(WebCore::RenderLayer::paintLayerContents):
    Pass paintingInfo.paintDirtyRect instead of localPaintingInfo.paintDirtyRect to
    beginTransparencyLayers for clipping. localPaintingInfo.paintDirtyRect (aka the filter
    input rect) does not contain filter outsets, so they would get clipped. Now, we pass
    paintingInfo.paintDirtyRect (the filter output rect), which includes the filter outsets.
(WebCore::RenderLayer::calculateLayerBounds):
    Replace filter outset calcuation with a call to expandRectForFilterOutsets.
* rendering/RenderLayer.h:
(RenderLayer):

LayoutTests:

Add a reftest to verify that an element's drop shadow filter is not clipped when a CSS
opacity property is not applied.

* css3/filters/css-opacity-with-drop-shadow-expected.html: Added.
* css3/filters/css-opacity-with-drop-shadow.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r140561.
http://trac.webkit.org/changeset/140561
https://bugs.webkit.org/show_bug.cgi?id=107556

Suspected to break Android which prevens WebKit roll

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::~TestShell):
(TestShell::closeWindow):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::WebViewHost):
(WebViewHost::~WebViewHost):
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mac: Video appears in wrong place during pinch operations
https://bugs.webkit.org/show_bug.cgi?id=107730

Reviewed by Eric Carlson.

Send the correct input and output rects, post translation and scaling,
to the CIContext for drawing.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Convert RenderFullScreen to use the non-deprecated flexbox
https://bugs.webkit.org/show_bug.cgi?id=107746

Patch by Christian Biesinger <cbiesinger@chromium.org> on 2013-01-24
Reviewed by Ojan Vafai.

Tests: covered by existing tests in fullscreen/.

* rendering/RenderFullScreen.h:
* rendering/RenderFullScreen.cpp:
(RenderFullScreen::RenderFullScreen):
(RenderFullScreen::willBeDestroyed):
Inherit from RenderFlexibleBox

(createFullScreenStyle):
Use the new-style CSS properties (justify-content, etc)

* css/fullscreen.css:
(video:-webkit-full-screen, audio:-webkit-full-screen):
* css/fullscreenQuickTime.css:
(video:-webkit-full-screen::-webkit-media-controls-panel):
(video:-webkit-full-screen::-webkit-media-controls-seek-back-button):
(video:-webkit-full-screen::-webkit-media-controls-return-to-realtime-button):
(video:-webkit-full-screen::-webkit-media-controls-seek-forward-button):
* css/mediaControlsBlackBerryFullscreen.css:
(video:-webkit-full-screen::-webkit-media-controls-panel):
(video:-webkit-full-screen::-webkit-media-controls-button-group-container):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-time-display-container):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-play-button):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-timeline-container):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-current-time-display):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-time-remaining-display):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-timeline):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-fullscreen-button):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-divider):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-container, video:-webkit-full-screen::-webkit-media-controls-play-button-container):
(video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-container):
(video:-webkit-full-screen::-webkit-media-controls-play-button-container):
(video:-webkit-full-screen::-webkit-media-controls-placeholder):
* css/mediaControlsQtFullscreen.css:
(video::-webkit-media-controls-panel):
(video::-webkit-media-controls-play-button):
Update fullscreen-related CSS to use the new flexbox

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mac: Avoid using k32BGRAPixelFormat on certain platforms.
https://bugs.webkit.org/show_bug.cgi?id=107732

Reviewed by Eric Carlson.

Using a AVPlayerItemVideoOutput to generate ARGB pixel buffers is a potential performance
hit, as the AVPlayerItemVideoOutput will send YUV buffers through a VTPixeBufferTransferSession
to convert them to ARGB regardless of whether or not a given buffer will be used. Instead,
ask the AVPlayerItemVideoOutput for pixel buffers in the decoder's native pixel format and use
the VTPixelBufferTransferSession to convert to ARGB only those pixel buffers which were actually
requested.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Ask for the decoder's native
    pixel format.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createPixelBuffer): Lazily create a VTPixelTransferSession
    and convert output pixel buffers to k32BGRAPixelFormat.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement :past pseudo class for the WebVTT ::cue pseudo element
https://bugs.webkit.org/show_bug.cgi?id=105482

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-01-24
Reviewed by Eric Carlson.

Source/WebCore:

It is good to have a designated pseudo class for this, though same could
be achieved by using a combination of ::cue and ::cue(:future).
Tests also check that nested timestamps work properly.

Test: media/track/track-css-matching-timestamps.html

* css/CSSSelector.cpp:
(WebCore::CSSSelector::pseudoId):
(WebCore::nameToPseudoTypeMap):
(WebCore::CSSSelector::extractPseudoType):
* css/CSSSelector.h:
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):

LayoutTests:

* media/track/captions-webvtt/styling-timestamps.vtt: Added.
* media/track/track-css-matching-timestamps-expected.txt: Added.
* media/track/track-css-matching-timestamps.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Fix crash in SpellingHandler
https://bugs.webkit.org/show_bug.cgi?id=107842

Reviewed by Rob Buis.

If we have an empty range or one with all spaces, we can simply return 0 instead of
still creating a range. Putting in a null check after trimming to catch this case
which was causing the crash in some DRT tests.

Internally reviewed by Mike Fenton.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::trimWhitespaceFromRange):
* WebKitSupport/SpellingHandler.cpp:
(BlackBerry::WebKit::SpellingHandler::createSpellCheckRequest):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: 'console.debug' should generate messages at DebugMessageLevel.
https://bugs.webkit.org/show_bug.cgi?id=107816

Reviewed by Pavel Feldman.

Source/WebCore:

'console.debug' is currently aliased to 'console.log'. Since we now
render debug-level messages differently to log messages, we should use
the proper message level for 'console.debug'.

* page/Console.cpp:
(WebCore::Console::debug):
    Replace the alias to 'console.log' with message creation at
    DebugMessageLevel.

LayoutTests:

* inspector/console/console-tests-expected.txt:
* inspector/extensions/extensions-console-expected.txt:
    Rebaseline this test with the updated message level.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove document as a parameter from a few internals methods
https://bugs.webkit.org/show_bug.cgi?id=107757

Reviewed by Hajime Morita.

Remove document as a parameter since there's already one associated with internals.

Source/WebCore:

No new tests, this refactors some testing code and is covered by
exisiting tests.

* testing/Internals.cpp:
(WebCore::Internals::isPreloaded):
(WebCore::Internals::createContentElement):
(WebCore::Internals::absoluteCaretBounds):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

LayoutTests:

* editing/input/editable-container-with-word-wrap-normal.html:
* editing/selection/caret-alignment-for-vertical-text.html:
* editing/selection/caret-at-end-of-text-line-followed-by-block-in-vertical-mode.html:
* editing/selection/caret-in-div-containing-br-in-vertical-mode.html:
* editing/selection/caret-in-empty-inline-1.html:
* editing/selection/caret-in-empty-inline-2.html:
* editing/selection/internal-caret-rect.html:
* fast/dom/resources/shadow-test-driver.js:
(createContentWithSelect):
(createContentWithText):
(appendShadow):
(appendShadowDeep):
* fast/dom/shadow/content-element-includer.html:
* fast/dom/shadow/content-element-renderers.html:
* fast/dom/shadow/content-selector-query.html:
* fast/dom/shadow/create-content-element.html:
* fast/dom/shadow/shadow-contents-fallback-dynamic.html:
* fast/dom/shadow/shadow-contents-fallback.html:
* fast/dom/shadow/shadow-contents-select.html:
* fast/preloader/scan-body-from-head-import.html:
* http/tests/loading/preload-append-scan.php:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move WebKeyValueStorageManager to WebProcess/Storage.

Rubber-stamped by Sam Weinig.

Try this again, with DerivedSources.make correctly updated this time.

* DerivedSources.make:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Storage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp.
* WebProcess/Storage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.h.
* WebProcess/Storage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in.

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