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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 606618a95dcdba81fbe8db9563ee5fdae391845d..9369f621d7503506eed58e31ff0172fda6a75546 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -61,6 +61,7 @@ class MutableStylePropertySet;
class NamedNodeMap;
class ElementIntersectionObserverData;
class PseudoElement;
+class PseudoStyleRequest;
class ResizeObservation;
class ResizeObserver;
class ScrollState;
@@ -626,6 +627,12 @@ class CORE_EXPORT Element : public ContainerNode {
PseudoElement* pseudoElement(PseudoId) const;
LayoutObject* pseudoElementLayoutObject(PseudoId) const;
+ ComputedStyle* pseudoStyle(const PseudoStyleRequest&,
+ const ComputedStyle* parentStyle = nullptr);
+ PassRefPtr<ComputedStyle> getUncachedPseudoStyle(
+ const PseudoStyleRequest&,
+ const ComputedStyle* parentStyle = nullptr);
+
virtual bool matchesDefaultPseudoClass() const { return false; }
virtual bool matchesEnabledPseudoClass() const { return false; }
virtual bool matchesReadOnlyPseudoClass() const { return false; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698