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

Unified Diff: trunk/Source/core/css/resolver/ElementResolveContext.h

Issue 948053002: Revert 190605 "Make RenderObject::style() return a const object" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 10 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 | « trunk/Source/core/css/SelectorChecker.cpp ('k') | trunk/Source/core/css/resolver/ElementResolveContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/css/resolver/ElementResolveContext.h
===================================================================
--- trunk/Source/core/css/resolver/ElementResolveContext.h (revision 190671)
+++ trunk/Source/core/css/resolver/ElementResolveContext.h (working copy)
@@ -43,7 +43,7 @@
Element* element() const { return m_element; }
const ContainerNode* parentNode() const { return m_parentNode; }
const LayoutStyle* rootElementStyle() const { return m_rootElementStyle; }
- const LayoutStyle* parentStyle() const { return parentNode() ? parentNode()->layoutStyle() : nullptr; }
+ LayoutStyle* parentStyle() const { return parentNode() ? parentNode()->layoutStyle() : nullptr; }
EInsideLink elementLinkState() const { return m_elementLinkState; }
bool distributedToInsertionPoint() const { return m_distributedToInsertionPoint; }
@@ -50,7 +50,7 @@
private:
RawPtrWillBeMember<Element> m_element;
RawPtrWillBeMember<ContainerNode> m_parentNode;
- const LayoutStyle* m_rootElementStyle;
+ LayoutStyle* m_rootElementStyle;
EInsideLink m_elementLinkState;
bool m_distributedToInsertionPoint;
};
« no previous file with comments | « trunk/Source/core/css/SelectorChecker.cpp ('k') | trunk/Source/core/css/resolver/ElementResolveContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698