Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: third_party/WebKit/Source/core/dom/StyleElement.cpp

Issue 2350743002: Remove unused StyleElement::clearDocumentData(). (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleElement.cpp b/third_party/WebKit/Source/core/dom/StyleElement.cpp
index 8b379886e2075cd2ca5b994def791e4178b1528c..7a8f7123fadb7b69dd4027f986bb67901402d329 100644
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp
@@ -105,18 +105,6 @@ void StyleElement::removedFrom(Element* element, ContainerNode* insertionPoint)
document.styleEngine().setNeedsActiveStyleUpdate(removedSheet, AnalyzedStyleUpdate);
}
-void StyleElement::clearDocumentData(Document& document, Element* element)
-{
- if (m_sheet)
- m_sheet->clearOwnerNode();
-
- if (m_registeredAsCandidate) {
- DCHECK(element->isConnected());
- document.styleEngine().removeStyleSheetCandidateNode(element, element->treeScope());
- m_registeredAsCandidate = false;
- }
-}
-
StyleElement::ProcessingResult StyleElement::childrenChanged(Element* element)
{
DCHECK(element);
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698