[Qt] Build fix after r153751

Unreviewed build fix.

Fix build when PAGE_VISIBILITY_API is disabled.

* WebCoreSupport/QWebPageAdapter.cpp:
(QWebPageAdapter::visibilityState):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move style recalculation out from Element
https://bugs.webkit.org/show_bug.cgi?id=119497

Reviewed by Andreas Kling.

Element currently does too much. Element::recalcStyle() and the related functions can be turned into
standalone functions that operate on DOM tree. This will also give more freedom for future refactoring,
for example making style recalculation non-recursive.

* WebCore.xcodeproj/project.pbxproj:
* css/StyleResolveTree.cpp: Added.
(WebCore::Style::determineChange):
                
    - moved and renamed from Node::diff
    - factored to use early return style
    - simplifield the null input logic

(WebCore::Style::pseudoStyleCacheIsInvalid):
        
    - moved from Element::pseudoStyleCacheIsInvalid
    - narrowed to take RenderObject rather than operate on Element

(WebCore::Style::resolveLocal):
        
    - split from Element::recalcStyle
    - factored to use early return style

(WebCore::Style::resolveTree):
        
    - moved and renamed from Element::recalcStyle

* css/StyleResolveTree.h: Added.
        
    - introcuduce Style namespace for style related classes and functions
    - move and rename Node::StyleChange -> Style::Change

* css/StyleResolver.h:
(WebCore::StyleResolverParentPusher::StyleResolverParentPusher):
(WebCore::StyleResolverParentPusher::push):
(WebCore::StyleResolverParentPusher::~StyleResolverParentPusher):
        
    Moved this stack helper to StyleResolver.h for now since it is needed by both
    StyleRecalculation and Element.

* dom/Document.cpp:
(WebCore::Document::recalcStyle):
(WebCore::Document::updateStyleIfNeeded):
(WebCore::Document::updateLayoutIgnorePendingStylesheets):
(WebCore::Document::attach):
(WebCore::Document::styleResolverChanged):
(WebCore::Document::webkitWillEnterFullScreenForElement):
* dom/Document.h:
* dom/Element.cpp:
(WebCore::shouldIgnoreAttributeCase):
(WebCore::Element::updatePseudoElement):
(WebCore::Element::resetComputedStyle):
(WebCore::Element::willRecalcStyle):
(WebCore::Element::didRecalcStyle):
* dom/Element.h:
        
    - remove Element::recalcStyle
    - make a few private functions needed by StyleRecalculation public

* dom/ElementShadow.cpp:
(WebCore::ElementShadow::recalcStyle):
* dom/ElementShadow.h:
* dom/Node.cpp:
* dom/Node.h:

    - remove Node::StyleChange
    - remove Node::diff

* dom/PseudoElement.cpp:
(WebCore::PseudoElement::didRecalcStyle):
* dom/PseudoElement.h:
* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::recalcStyle):
(WebCore::ShadowRoot::setResetStyleInheritance):
* dom/ShadowRoot.h:
* dom/Text.cpp:
(WebCore::Text::recalcTextStyle):
* dom/Text.h:
* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::didRecalcStyle):
* html/HTMLFormControlElement.h:
* html/HTMLFrameSetElement.cpp:
(WebCore::HTMLFrameSetElement::willRecalcStyle):
* html/HTMLFrameSetElement.h:
* html/HTMLIFrameElement.cpp:
(WebCore::HTMLIFrameElement::didRecalcStyle):
* html/HTMLIFrameElement.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::didRecalcStyle):
* html/HTMLMediaElement.h:
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::didRecalcStyle):
* html/HTMLOptionElement.h:
* html/HTMLPlugInImageElement.cpp:
(WebCore::HTMLPlugInImageElement::willRecalcStyle):
(WebCore::HTMLPlugInImageElement::documentWillSuspendForPageCache):
(WebCore::HTMLPlugInImageElement::documentDidResumeFromPageCache):
* html/HTMLPlugInImageElement.h:
* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::update):
* loader/DocumentWriter.cpp:
(WebCore::DocumentWriter::reportDataReceived):
* page/Frame.cpp:
(WebCore::Frame::setPageAndTextZoomFactors):
* page/Page.cpp:
(WebCore::Page::setPageScaleFactor):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateFirstLetterStyle):
* svg/SVGElement.cpp:
(WebCore::SVGElement::willRecalcStyle):
* svg/SVGElement.h:
* svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::willRecalcStyle):
* svg/SVGUseElement.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Blending] Add test suite to validate background blending with different properties
https://bugs.webkit.org/show_bug.cgi?id=118243

Patch by Mirela Budaes <mbudaes@adobe.com> on 2013-08-07
Reviewed by Dirk Schulze.

* css3/compositing/background-blend-mode-background-attachement-fixed-expected.html: Added.
* css3/compositing/background-blend-mode-background-attachement-fixed.html: Added.
* css3/compositing/background-blend-mode-background-clip-content-box-expected.html: Added.
* css3/compositing/background-blend-mode-background-clip-content-box.html: Added.
* css3/compositing/background-blend-mode-background-clip-padding-box-expected.html: Added.
* css3/compositing/background-blend-mode-background-clip-padding-box.html: Added.
* css3/compositing/background-blend-mode-background-origin-border-box-expected.html: Added.
* css3/compositing/background-blend-mode-background-origin-border-box.html: Added.
* css3/compositing/background-blend-mode-background-position-percentage-expected.html: Added.
* css3/compositing/background-blend-mode-background-position-percentage.html: Added.
* css3/compositing/background-blend-mode-background-repeat-no-repeat-expected.html: Added.
* css3/compositing/background-blend-mode-background-repeat-no-repeat.html: Added.
* css3/compositing/background-blend-mode-background-size-contain-expected.html: Added.
* css3/compositing/background-blend-mode-background-size-contain.html: Added.
* css3/compositing/background-blend-mode-background-size-cover-expected.html: Added.
* css3/compositing/background-blend-mode-background-size-cover.html: Added.
* css3/compositing/resources/white_square.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Create WebCore/style and move StyleResolveTree there
https://bugs.webkit.org/show_bug.cgi?id=119543

Reviewed by Andreas Kling.

WebCore/css is bloated. We should move the internal style representation and the style resolver
related code to a directory of their own. CSS language related code including parser and 
CSSOM stays under css.

Things named StyleFoo should generally move under WebCore/style. They should also be moved to
the Style namespace at the same time.

* CMakeLists.txt:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.pri:
* Target.pri:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCoreCommon.props:
* WebCore.vcxproj/copyForwardingHeaders.cmd:
* WebCore.xcodeproj/project.pbxproj:
* css/StyleResolveTree.cpp: Removed.
* css/StyleResolveTree.h: Removed.
* style: Added.
* style/StyleResolveTree.cpp: Copied from Source/WebCore/css/StyleResolveTree.cpp.
* style/StyleResolveTree.h: Copied from Source/WebCore/css/StyleResolveTree.h.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix EFL build.
        
Not reviewed.

* CMakeLists.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Do no check seek offset against internal size on gstreamer source element
https://bugs.webkit.org/show_bug.cgi?id=116533

Patch by Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk> on 2013-08-07
Reviewed by Philippe Normand.

The internal size on gstreamer source element may be wrong in case the received size in
didReceiveResponse is not accurate. Lets just try to seek and let it fail if necessary.

* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcSeekDataCb):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2.5% regression on page cycler moz
https://bugs.webkit.org/show_bug.cgi?id=102822

Source/WebCore: 

Reviewed by Andreas Kling.

DocumentStyleSheetCollection::invalidateInjectedStyleSheetCache() triggers a style recalc for quirks mode
documents in the beginning of document parsing via Document::setCompatibilityMode. This often coalesces 
with style recalc triggered by stylesheet loading. However on very simple documents it can generate genuinely
unnecessary work.

* dom/DocumentStyleSheetCollection.cpp:
(WebCore::DocumentStyleSheetCollection::invalidateInjectedStyleSheetCache):
        
    Check that we actually have cached injected stylesheets before triggering style recalc.
            
* page/PageGroup.cpp:
(WebCore::PageGroup::addUserStyleSheetToWorld):
(WebCore::PageGroup::removeUserStyleSheetFromWorld):
(WebCore::PageGroup::removeUserStyleSheetsFromWorld):
(WebCore::PageGroup::removeAllUserContent):
        
    Fix a misspelling.

(WebCore::PageGroup::invalidateInjectedStyleSheetCacheInAllFrames):
        
    Always invalidate style when user sheets change since we don't do that in
    DocumentStyleSheetCollection::invalidateInjectedStyleSheetCache anymore.

* page/PageGroup.h:

LayoutTests: 

Reviewed by Andreas Kling.
        
This is a progression.

* inspector/timeline/timeline-script-tag-1-expected.txt:



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