<https://webkit.org/b/119997> Page::progress() should return a reference.

Reviewed by Antti Koivisto.

Page::m_progress is never null.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/119996> Introduce toSVGAnimateElement(), and use it

Reviewed by Andreas Kling.

As a step to clean-up static_cast<SVGXXX>, static_cast<SVGAnimateElement*> also can be changed
with toSVGAnimateElement().

* svg/SVGAnimateElement.cpp:
(WebCore::SVGAnimateElement::calculateAnimatedValue):
* svg/SVGAnimateElement.h:
(WebCore::toSVGAnimateElement):
* svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::currentValuesForValuesAnimation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/119990> Add toSVGStopElement(Node* node) to clean-up a static_cast<SVGStopElement*>

Reviewed by Darin Adler.

Clean up remained static_cast<SVGStopElement*> using toSVGStopElement(toSVGElement()).

* rendering/svg/SVGRenderTreeAsText.cpp:
(WebCore::writeSVGGradientStop):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/120001> Clean up StyleElement

Reviewed by Andreas Kling.

- Make it non-virtual so we don't use virtual multiple inheritance
- Improve names
- Improve code clarity

* dom/StyleElement.cpp:
(WebCore::StyleElement::StyleElement):
(WebCore::StyleElement::insertedIntoDocument):
(WebCore::StyleElement::clearDocumentData):
(WebCore::StyleElement::childrenChanged):
(WebCore::StyleElement::finishParsingChildren):
(WebCore::StyleElement::createSheetFromTextContents):
(WebCore::isValidCSSContentType):
(WebCore::StyleElement::createSheet):
(WebCore::StyleElement::isLoading):
* dom/StyleElement.h:
(WebCore::StyleElement::setStyleSheetContentType):
(WebCore::StyleElement::setStyleSheetMedia):
* html/HTMLStyleElement.cpp:
(WebCore::HTMLStyleElement::parseAttribute):
* html/HTMLStyleElement.h:
* svg/SVGStyleElement.cpp:
(WebCore::SVGStyleElement::isSupportedAttribute):
(WebCore::SVGStyleElement::parseAttribute):
* svg/SVGStyleElement.h:



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