Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-05-20 MORITA Hajime <morrita@google.com>
Reviewed by Dimitri Glazkov. [Refactoring] attach() following detach() should be replaced with Node::reattach() https://bugs.webkit.org/show_bug.cgi?id=61011 - Renamed forceReattach() to reattach() - Introduced reattachIfAttached() as a variant. No new tests. No behavior change. * dom/CharacterData.cpp: (WebCore::CharacterData::updateRenderer): * dom/Element.cpp: (WebCore::Element::recalcStyle): * dom/Node.h: (WebCore::Node::reattach): (WebCore::Node::reattachIfAttached): * dom/Text.cpp: (WebCore::Text::recalcStyle): * html/HTMLDetailsElement.cpp: (WebCore::HTMLDetailsElement::refreshMainSummary): (WebCore::HTMLDetailsElement::parseMappedAttribute): * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseMappedAttribute): * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::renderFallbackContent): * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::recalcStyle): * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::parseMappedAttribute): Canonical link: https://commits.webkit.org/76704@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
64 additions
and 43 deletions.
- +33 −0 Source/WebCore/ChangeLog
- +1 −2 Source/WebCore/dom/CharacterData.cpp
- +2 −3 Source/WebCore/dom/Element.cpp
- +11 −5 Source/WebCore/dom/Node.h
- +1 −1 Source/WebCore/dom/ShadowContentSelector.cpp
- +1 −1 Source/WebCore/dom/ShadowRoot.cpp
- +2 −5 Source/WebCore/dom/Text.cpp
- +6 −13 Source/WebCore/html/HTMLDetailsElement.cpp
- +2 −4 Source/WebCore/html/HTMLInputElement.cpp
- +2 −3 Source/WebCore/html/HTMLObjectElement.cpp
- +2 −4 Source/WebCore/html/HTMLPlugInImageElement.cpp
- +1 −2 Source/WebCore/html/HTMLSelectElement.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -62,7 +62,7 @@ void ShadowContentSelector::attachChildrenFor(ShadowContentElement* contentEleme | ||
if (!contentElement->shouldInclude(child)) | ||
continue; | ||
|
||
child->reattach(); | ||
m_children[i] = 0; | ||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters