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

Unified Diff: Source/web/mac/WebSubstringUtil.mm

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/web/mac/WebSubstringUtil.mm
diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm
index a1354ff5d3e9ed0ae567c91db16a50b6afb870d3..30d7cf71abbce327b9ef2dac966b3a4bbac87323 100644
--- a/Source/web/mac/WebSubstringUtil.mm
+++ b/Source/web/mac/WebSubstringUtil.mm
@@ -77,7 +77,7 @@ static NSAttributedString* attributedSubstringFromRange(const Range* range)
if (!renderer)
continue;
- RenderStyle* style = renderer->style();
+ const RenderStyle* style = renderer->style();
NSFont* font = style->font().primaryFont()->getNSFont();
// If the platform font can't be loaded, it's likely that the site is
// using a web font. For now, just use the default font instead.

Powered by Google App Engine
This is Rietveld 408576698