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

Unified Diff: Source/core/css/resolver/StyleResolverState.h

Issue 18139007: Remove StyleResolverState::styledElement() since we can just check isHTMLElement() or isSVGElement() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a comment Created 7 years, 5 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 | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolverState.h
diff --git a/Source/core/css/resolver/StyleResolverState.h b/Source/core/css/resolver/StyleResolverState.h
index a5ca4aebc1e01b9442204c6213ef8f868a4d508d..b8bb0368bc0e9d502caab302da68ab5ccf15caa0 100644
--- a/Source/core/css/resolver/StyleResolverState.h
+++ b/Source/core/css/resolver/StyleResolverState.h
@@ -44,7 +44,6 @@ class ElementResolveContext {
public:
ElementResolveContext()
: m_element(0)
- , m_styledElement(0)
, m_parentNode(0)
, m_rootElementStyle(0)
, m_elementLinkState(NotInsideLink)
@@ -61,7 +60,6 @@ public:
void deprecatedPartialClear()
{
m_element = 0;
- m_styledElement = 0;
m_parentNode = 0;
}
@@ -69,7 +67,6 @@ public:
bool isDocumentElement() const { return m_element && m_element == m_element->document()->documentElement(); }
Element* element() const { return m_element; }
- Element* styledElement() const { return m_styledElement; }
const ContainerNode* parentNode() const { return m_parentNode; }
RenderStyle* rootElementStyle() const { return m_rootElementStyle; }
EInsideLink elementLinkState() const { return m_elementLinkState; }
@@ -78,7 +75,6 @@ public:
private:
Element* m_element;
- Element* m_styledElement;
ContainerNode* m_parentNode;
RenderStyle* m_rootElementStyle;
EInsideLink m_elementLinkState;
@@ -104,7 +100,6 @@ public:
// These are all just pass-through methods to ElementResolveContext.
Document* document() const { return m_elementContext.document(); }
Element* element() const { return m_elementContext.element(); }
- Element* styledElement() const { return m_elementContext.styledElement(); }
const ContainerNode* parentNode() const { return m_elementContext.parentNode(); }
RenderStyle* rootElementStyle() const { return m_elementContext.rootElementStyle(); }
EInsideLink elementLinkState() const { return m_elementContext.elementLinkState(); }
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698