[Qt][Wk2] Many tests are flaky on Qt 5.1
https://bugs.webkit.org/show_bug.cgi?id=118232

Reviewed by Jocelyn Turcotte.

We need to set renderToOffscreenBuffer since we won't otherwise get
the paint calls necessary to synchronize UI- and Web-Process. It was
only disabled in Qt 5.0 because it conflicted with setRenderWithoutShowing
which is no longer supported or needed.

* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
(WTR::WrapperWindow::handleStatusChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make descendant iterators always require ContainerNode root
https://bugs.webkit.org/show_bug.cgi?id=120393

Reviewed by Andreas Kling.

Remove Node* root versions of the iterators. 
Fix the few call sites that required them to have tighter typing.

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::canvasHasFallbackContent):
(WebCore::siblingWithAriaRole):
* dom/ChildIterator.h:
(WebCore::::ChildIteratorAdapter):
(WebCore::::begin):
(WebCore::::end):
(WebCore::elementChildren):
(WebCore::childrenOfType):
* dom/DescendantIterator.h:
(WebCore::::DescendantIterator):
(WebCore::::DescendantIteratorAdapter):
(WebCore::::begin):
(WebCore::::end):
(WebCore::elementDescendants):
(WebCore::descendantsOfType):
* editing/ApplyStyleCommand.cpp:
(WebCore::dummySpanAncestorForNode):
(WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
(WebCore::ApplyStyleCommand::applyInlineStyle):
* editing/ApplyStyleCommand.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r154593.
http://trac.webkit.org/changeset/154593
https://bugs.webkit.org/show_bug.cgi?id=120403

Caused 50+ flaky tests on WebKit1 bots (Requested by carewolf
on #webkit).

Source/WebKit/qt:

* WidgetApi/qwebpage.cpp:
(QWebPage::javaScriptConsoleMessage):

Tools:

* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebPage::~WebPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Http tests fails on Debian with Apache 2.4
https://bugs.webkit.org/show_bug.cgi?id=120352

Reviewed by Andreas Kling.

Tools:

Select httpd.conf file for debian based on version, matching Fedora behavior.

* Scripts/webkitpy/port/base.py:
(Port._apache_config_file_name_for_platform):

LayoutTests:

Added an apache 2.4 configuration file adapted from Fedora's,
and renamed the 2.2 file to have consistent naming.

* http/conf/debian-httpd-2.2.conf: Renamed from LayoutTests/http/conf/apache2-debian-httpd.conf.
* http/conf/debian-httpd-2.4.conf: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix unused variable warning.
https://bugs.webkit.org/show_bug.cgi?id=120396

Patch by Ábrahám Gábor <abrhm@inf.u-szeged.hu> on 2013-08-28
Reviewed by Allan Sandfeld Jensen.

Fix unused variable compiler warning in PageOverlay.h

* WebProcess/WebPage/PageOverlay.h:
(WebKit::PageOverlay::Client::copyAccessibilityAttributeValue):
(WebKit::PageOverlay::Client::copyAccessibilityAttributeNames):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't use NodeRenderingContext when attaching text renderers
https://bugs.webkit.org/show_bug.cgi?id=120402

Reviewed by Andreas Kling.

This patch moves various functions for creating text renderers from NodeRenderingContext and Text to StyleResolveTree.
It also tightens the logic and combines some functions.

* dom/CharacterData.cpp:
(WebCore::CharacterData::parserAppendData):
(WebCore::CharacterData::setDataAndUpdate):
* dom/ContainerNode.cpp:
(WebCore::attachChild):
(WebCore::detachChild):
* dom/NodeRenderingContext.cpp:
* dom/NodeRenderingContext.h:
* dom/Text.cpp:
(WebCore::Text::~Text):
* dom/Text.h:
* html/HTMLViewSourceDocument.cpp:
(WebCore::HTMLViewSourceDocument::addText):
* html/parser/HTMLConstructionSite.cpp:
(WebCore::executeTask):
* html/shadow/InsertionPoint.cpp:
(WebCore::InsertionPoint::willAttachRenderers):
(WebCore::InsertionPoint::willDetachRenderers):
* style/StyleResolveTree.cpp:
(WebCore::Style::isRendererReparented):
(WebCore::Style::previousSiblingRenderer):
(WebCore::Style::nextSiblingRenderer):
        
    From NodeRenderingContext::next/previousRenderer

(WebCore::Style::createTextRenderersForSiblingsAfterAttachIfNeeded):
        
    From Text::createTextRenderersForSiblingsAfterAttachIfNeeded()

(WebCore::Style::textRendererIsNeeded):
        
    From Text::textRendererIsNeeded

(WebCore::Style::createTextRendererIfNeeded):
        
    Combines code from Text::createTextRendererIfNeeded, NodeRenderingContext::createRendererForTextIfNeeded,
    NodeRenderingContext constructor and text node relevant code NodeRenderingContext::shouldCreateRenderer.

(WebCore::Style::attachTextRenderer):
(WebCore::Style::detachTextRenderer):
        
    New functions of attaching text renderers. From Text::attach/detachText()

(WebCore::Style::updateTextRendererAfterContentChange):
        
    From Text::updateTextRenderer.

(WebCore::Style::attachShadowRoot):
(WebCore::Style::attachChildren):
(WebCore::Style::attachRenderTree):
(WebCore::Style::detachShadowRoot):
(WebCore::Style::detachChildren):
(WebCore::Style::updateTextStyle):
* style/StyleResolveTree.h:
* xml/parser/XMLDocumentParser.cpp:
(WebCore::XMLDocumentParser::exitText):
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::XMLDocumentParser::cdataBlock):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Http tests fails on Debian with Apache 2.4
https://bugs.webkit.org/show_bug.cgi?id=120352

Unreviewed fix-up.

Remember to update unit-test expectations and old-run-webkit-tests as well.

* Scripts/webkitperl/httpd.pm:
(getHTTPDConfigPathForTestDirectory):
* Scripts/webkitpy/port/port_testcase.py:
(test_apache_config_file_name_for_platform):

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