commit | 454418f4b51e9752e57d926bfb0d6be2df29e755 | [log] [tgz] |
---|---|---|
author | antti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Mon Apr 25 19:49:23 2016 +0000 |
committer | antti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Mon Apr 25 19:49:23 2016 +0000 |
tree | 578de4d551e6a7e6c80ef6b4a1f3ed202628193d | |
parent | 2f8880b667b62e7fc9a2f9a1578680858c6970dc [diff] |
Inline RenderStyle into RenderElement https://bugs.webkit.org/show_bug.cgi?id=156981 Reviewed by Andreas Kling. We can save memory and reduce indirection of style access by inlining RenderStyle to RenderElement. This patch also makes RenderStyle moveable and switches from std::unique_ptr<RenderStyle> to RenderStyle&& in many places where ownership is passed. * Modules/plugins/PluginReplacement.h: (WebCore::PluginReplacement::scriptObject): (WebCore::PluginReplacement::willCreateRenderer): * Modules/plugins/QuickTimePluginReplacement.h: * Modules/plugins/QuickTimePluginReplacement.mm: (WebCore::QuickTimePluginReplacement::~QuickTimePluginReplacement): (WebCore::QuickTimePluginReplacement::createElementRenderer): * Modules/plugins/YouTubePluginReplacement.cpp: (WebCore::YouTubePluginReplacement::YouTubePluginReplacement): (WebCore::YouTubePluginReplacement::createElementRenderer): * Modules/plugins/YouTubePluginReplacement.h: * css/StyleResolver.cpp: (WebCore::StyleResolver::styleForElement): (WebCore::StyleResolver::styleForKeyframe): (WebCore::StyleResolver::pseudoStyleForElement): (WebCore::StyleResolver::styleForPage): (WebCore::StyleResolver::defaultStyleForElement): (WebCore::StyleResolver::addToMatchedPropertiesCache): (WebCore::StyleResolver::applyPropertyToStyle): * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::webkitWillEnterFullScreenForElement): (WebCore::Document::setFullScreenRenderer): * dom/Element.cpp: (WebCore::Element::rendererIsNeeded): (WebCore::Element::createElementRenderer): * dom/Element.h: (WebCore::Element::copyNonAttributePropertiesFromElement): * dom/PseudoElement.cpp: (WebCore::PseudoElement::resolveCustomStyle): (WebCore::PseudoElement::didAttachRenderers): (WebCore::PseudoElement::didRecalcStyle): * html/BaseButtonInputType.cpp: (WebCore::BaseButtonInputType::appendFormData): (WebCore::BaseButtonInputType::createInputRenderer): * html/BaseButtonInputType.h: * html/FileInputType.cpp: (WebCore::FileInputType::handleDOMActivateEvent): (WebCore::FileInputType::createInputRenderer): * html/FileInputType.h: * html/HTMLAppletElement.cpp: (WebCore::HTMLAppletElement::rendererIsNeeded): (WebCore::HTMLAppletElement::createElementRenderer): ... git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200041 268f45cc-cd09-0410-ab3c-d52691b4dbfc