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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. 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 | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/resolver/ElementResolveContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/ElementResolveContext.h
diff --git a/Source/core/css/resolver/ElementResolveContext.h b/Source/core/css/resolver/ElementResolveContext.h
index ef775eaaaff9943d8223e3ae185eb85c177d756a..81672879a0445cac00f49a6c651303c421e72d5a 100644
--- a/Source/core/css/resolver/ElementResolveContext.h
+++ b/Source/core/css/resolver/ElementResolveContext.h
@@ -43,14 +43,14 @@ public:
Element* element() const { return m_element; }
const ContainerNode* parentNode() const { return m_parentNode; }
const LayoutStyle* rootElementStyle() const { return m_rootElementStyle; }
- LayoutStyle* parentStyle() const { return parentNode() ? parentNode()->layoutStyle() : nullptr; }
+ const LayoutStyle* parentStyle() const { return parentNode() ? parentNode()->layoutStyle() : nullptr; }
EInsideLink elementLinkState() const { return m_elementLinkState; }
bool distributedToInsertionPoint() const { return m_distributedToInsertionPoint; }
private:
RawPtrWillBeMember<Element> m_element;
RawPtrWillBeMember<ContainerNode> m_parentNode;
- LayoutStyle* m_rootElementStyle;
+ const LayoutStyle* m_rootElementStyle;
EInsideLink m_elementLinkState;
bool m_distributedToInsertionPoint;
};
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/resolver/ElementResolveContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698