<https://webkit.org/b/119998> [Qt] Build fix (broken since r154257).

Patch by Julien Brianceau <jbrianceau@nds.com> on 2013-08-19
Reviewed by Andreas Kling.

Element::attach() doesn't exist anymore since r154257.

* xml/parser/XMLDocumentParserQt.cpp:
(WebCore::XMLDocumentParser::parseStartElement):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] QtWebKit (using the Arora browser) displays the border radii (radius) of a button very ugly
https://bugs.webkit.org/show_bug.cgi?id=28113

Reviewed by Jocelyn Turcotte.

StylePainter::init() was called twice making it clobber the previous antialiasing setting.

This patch cleans up the construction so we only have one constructor with init inlined.

* platform/qt/RenderThemeQStyle.cpp:
(WebCore::StylePainterQStyle::StylePainterQStyle):
(WebCore::StylePainterQStyle::setupStyleOption):
* platform/qt/RenderThemeQStyle.h:
* platform/qt/RenderThemeQt.cpp:
(WebCore::StylePainter::StylePainter):
* platform/qt/RenderThemeQt.h:
* platform/qt/RenderThemeQtMobile.cpp:
(WebCore::StylePainterMobile::StylePainterMobile):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/120004> Rename StyleElement to InlineStyleSheetOwner and stop inheriting from it

Reviewed by Andreas Kling.
        
Saner names and class relations.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMAllInOne.cpp:
* dom/InlineStyleSheetOwner.cpp: Copied from Source/WebCore/dom/StyleElement.cpp.
(WebCore::InlineStyleSheetOwner::InlineStyleSheetOwner):
(WebCore::InlineStyleSheetOwner::~InlineStyleSheetOwner):
(WebCore::InlineStyleSheetOwner::insertedIntoDocument):
(WebCore::InlineStyleSheetOwner::removedFromDocument):
(WebCore::InlineStyleSheetOwner::clearDocumentData):
(WebCore::InlineStyleSheetOwner::childrenChanged):
(WebCore::InlineStyleSheetOwner::finishParsingChildren):
(WebCore::InlineStyleSheetOwner::createSheetFromTextContents):
(WebCore::InlineStyleSheetOwner::clearSheet):
(WebCore::InlineStyleSheetOwner::createSheet):
(WebCore::InlineStyleSheetOwner::isLoading):
(WebCore::InlineStyleSheetOwner::sheetLoaded):
(WebCore::InlineStyleSheetOwner::startLoadingDynamicSheet):
* dom/InlineStyleSheetOwner.h: Copied from Source/WebCore/dom/StyleElement.h.
* dom/StyleElement.cpp: Removed.
* dom/StyleElement.h: Removed.
* html/HTMLStyleElement.cpp:
(WebCore::HTMLStyleElement::HTMLStyleElement):
(WebCore::HTMLStyleElement::~HTMLStyleElement):
(WebCore::HTMLStyleElement::parseAttribute):
(WebCore::HTMLStyleElement::finishParsingChildren):
(WebCore::HTMLStyleElement::insertedInto):
(WebCore::HTMLStyleElement::removedFrom):
(WebCore::HTMLStyleElement::childrenChanged):
* html/HTMLStyleElement.h:
* svg/SVGStyleElement.cpp:
(WebCore::SVGStyleElement::SVGStyleElement):
(WebCore::SVGStyleElement::~SVGStyleElement):
(WebCore::SVGStyleElement::parseAttribute):
(WebCore::SVGStyleElement::finishParsingChildren):
(WebCore::SVGStyleElement::insertedInto):
(WebCore::SVGStyleElement::removedFrom):
(WebCore::SVGStyleElement::childrenChanged):
* svg/SVGStyleElement.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/120000> Chrome::client() should return a reference.

Reviewed by Antti Koivisto.

Chrome::m_client should never be null.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/119933> [Qt] Fix tst_QObjectBridge::connectAndDisconnect() fail

Patch by Arunprasad Rajkumar <arurajku@cisco.com> on 2013-08-19
Reviewed by Allan Sandfeld Jensen.

Latest version of JSC has unquoted undefined in exception messages. So replaced 'undefined' with undefined.

* tests/qobjectbridge/tst_qobjectbridge.cpp:
(tst_QObjectBridge::connectAndDisconnect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/119882> Speed up moving cursor/selection up or down past non-rendered elements.

Patch by Mario Sanchez Prada <mario.prada@samsung.com> on 2013-08-19
Reviewed by Darin Adler.

This is a port from Blink originally written by Dominic Mazzoni:
https://src.chromium.org/viewvc/blink?revision=154977&view=revision

Source/WebCore:

From the original commit:

Skips calling firstPositionInOrBeforeNode when a node doesn't have a
renderer, since there couldn't possibly be a visible position there.
This was particularly wasteful when trying to move the cursor up when at
the beginning of a document, as it did a O(n^2) scan through the document head.

Test: editing/execCommand/move-up-down-should-skip-hidden-elements.html

* editing/VisibleUnits.cpp:
(WebCore::previousRootInlineBoxCandidatePosition): Updated.
(WebCore::nextRootInlineBoxCandidatePosition): Updates.

LayoutTests:

* editing/execCommand/move-up-down-should-skip-hidden-elements-expected.txt: Added.
* editing/execCommand/move-up-down-should-skip-hidden-elements.html: Added.

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