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

Unified Diff: Source/core/inspector/InspectorCSSAgent.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. 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/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index 1265178c970b775bd6eb92c962e580af070d4a74..2a470c04089adc1567701d112eebc22e0585d49f 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -800,7 +800,7 @@ void InspectorCSSAgent::getComputedStyleForNode(ErrorString* errorString, int no
void InspectorCSSAgent::collectPlatformFontsForRenderer(RenderText* renderer, HashCountedSet<String>* fontStats)
{
for (InlineTextBox* box = renderer->firstTextBox(); box; box = box->nextTextBox()) {
- RenderStyle* style = renderer->style(box->isFirstLineStyle());
+ const RenderStyle* style = renderer->style(box->isFirstLineStyle());
const Font& font = style->font();
TextRun run = box->constructTextRunForInspector(style, font);
SimpleShaper shaper(&font, run);

Powered by Google App Engine
This is Rietveld 408576698