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

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

Issue 2774383002: Move getCached/getUncachedPseudoStyle to Element. (Closed)
Patch Set: Move getCached/getUncachedPseudoStyle to Element. Created 3 years, 9 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
Index: third_party/WebKit/Source/core/dom/PseudoElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/PseudoElement.cpp b/third_party/WebKit/Source/core/dom/PseudoElement.cpp
index b3692d8be0eb5db206eb7cb55d4b77fda002e105..706efc152f993dadbc662cb86a14c578a3aeeefe 100644
--- a/third_party/WebKit/Source/core/dom/PseudoElement.cpp
+++ b/third_party/WebKit/Source/core/dom/PseudoElement.cpp
@@ -97,8 +97,8 @@ PseudoElement::PseudoElement(Element* parent, PseudoId pseudoId)
}
PassRefPtr<ComputedStyle> PseudoElement::customStyleForLayoutObject() {
- return parentOrShadowHostElement()->layoutObject()->getCachedPseudoStyle(
- m_pseudoId);
+ return parentOrShadowHostElement()->pseudoStyle(
+ PseudoStyleRequest(m_pseudoId));
}
void PseudoElement::dispose() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698