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

Unified Diff: Source/core/css/PseudoStyleRequest.h

Issue 572043002: Support getComputedStyle for non-rendered pseudo elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/core/css/PseudoStyleRequest.h
diff --git a/Source/core/css/PseudoStyleRequest.h b/Source/core/css/PseudoStyleRequest.h
index 7347ef393350486e88c47f0ba76cd6d088317fb6..049397f01134d16e63c934975c016bde66881225 100644
--- a/Source/core/css/PseudoStyleRequest.h
+++ b/Source/core/css/PseudoStyleRequest.h
@@ -32,13 +32,25 @@ class RenderStyle;
class PseudoStyleRequest {
public:
+
+ enum RequestType { ForRenderer, ForComputedStyle };
+
PseudoStyleRequest(PseudoId pseudoId, RenderScrollbar* scrollbar = 0, ScrollbarPart scrollbarPart = NoPart)
: pseudoId(pseudoId)
+ , type(ForRenderer)
, scrollbarPart(scrollbarPart)
, scrollbar(scrollbar)
{
}
+ PseudoStyleRequest(PseudoId pseudoId, RequestType requestType)
+ : pseudoId(pseudoId)
+ , type(requestType)
+ , scrollbarPart(NoPart)
+ , scrollbar(0)
+ {
+ }
+
// The spec disallows inheritance for ::backdrop.
bool allowsInheritance(const RenderStyle* parentStyle) const
{
@@ -46,6 +58,7 @@ public:
}
PseudoId pseudoId;
+ RequestType type;
ScrollbarPart scrollbarPart;
RenderScrollbar* scrollbar;
};

Powered by Google App Engine
This is Rietveld 408576698