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

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: 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/dom/FirstLetterPseudoElement.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 3c2f001d337def1d751bed235517888795f2a8d6..db7b9dc88533bc6800626122efe69530e1ec2713 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).
- LayoutStyle* layoutStyle() const;
- LayoutStyle* parentLayoutStyle() const;
+ const LayoutStyle* layoutStyle() const;
+ LayoutStyle* mutableLayoutStyle() const;
+ const LayoutStyle* parentLayoutStyle() const;
const LayoutStyle& layoutStyleRef() const;
« no previous file with comments | « Source/core/dom/FirstLetterPseudoElement.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698