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

Unified Diff: Source/core/css/resolver/StyleResolverState.cpp

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/resolver/StyleResolverState.h ('k') | Source/core/css/resolver/ViewportStyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolverState.cpp
diff --git a/Source/core/css/resolver/StyleResolverState.cpp b/Source/core/css/resolver/StyleResolverState.cpp
index 1ec955272b13c23d8dc65661f253f882a85390b5..5d90f5b9bfa8831816b038b72a0ec9f71b1b9087 100644
--- a/Source/core/css/resolver/StyleResolverState.cpp
+++ b/Source/core/css/resolver/StyleResolverState.cpp
@@ -29,7 +29,7 @@
namespace blink {
-StyleResolverState::StyleResolverState(Document& document, const ElementResolveContext& elementContext, LayoutStyle* parentStyle)
+StyleResolverState::StyleResolverState(Document& document, const ElementResolveContext& elementContext, const LayoutStyle* parentStyle)
: m_elementContext(elementContext)
, m_document(document)
, m_style(nullptr)
@@ -45,7 +45,7 @@ StyleResolverState::StyleResolverState(Document& document, const ElementResolveC
m_elementStyleResources.setDeviceScaleFactor(document.frameHost()->deviceScaleFactor());
}
-StyleResolverState::StyleResolverState(Document& document, Element* element, LayoutStyle* parentStyle)
+StyleResolverState::StyleResolverState(Document& document, Element* element, const LayoutStyle* parentStyle)
: StyleResolverState(document, element ? ElementResolveContext(*element) : ElementResolveContext(document), parentStyle)
{
}
« no previous file with comments | « Source/core/css/resolver/StyleResolverState.h ('k') | Source/core/css/resolver/ViewportStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698