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

Unified Diff: Source/core/dom/Element.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/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index dc781e7f08c08a67a0f47969407a83e82a7e6146..a6d1dfcabad606ebc7650413945f21ea6006f291 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -310,7 +310,7 @@ public:
virtual void attach(const AttachContext& = AttachContext()) override;
virtual void detach(const AttachContext& = AttachContext()) override;
- virtual RenderObject* createRenderer(RenderStyle*);
+ virtual RenderObject* createRenderer(const RenderStyle*);
virtual bool rendererIsNeeded(const RenderStyle&);
void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr);
void pseudoStateChanged(CSSSelector::PseudoType);
@@ -613,7 +613,7 @@ private:
virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) override { return computedStyle(pseudoElementSpecifier); }
- inline void updateCallbackSelectors(RenderStyle* oldStyle, RenderStyle* newStyle);
+ inline void updateCallbackSelectors(const RenderStyle* oldStyle, const RenderStyle* newStyle);
inline void removeCallbackSelectors();
inline void addCallbackSelectors();

Powered by Google App Engine
This is Rietveld 408576698