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

Unified Diff: Source/core/dom/Node.h

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 years, 11 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/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index f941954bd47603c076e288624dc76d478e12a2f1..343be506ff5a419fea489ea546d139aa4fcef997 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -544,8 +544,9 @@ public:
bool shouldCallRecalcStyle(StyleRecalcChange);
// Wrapper for nodes that don't have a renderer, but still cache the style (like HTMLOptionElement).
- RenderStyle* renderStyle() const;
- RenderStyle* parentRenderStyle() const;
+ const RenderStyle* renderStyle() const;
+ RenderStyle* mutableRenderStyle() const;
+ const RenderStyle* parentRenderStyle() const;
RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { return virtualComputedStyle(pseudoElementSpecifier); }

Powered by Google App Engine
This is Rietveld 408576698