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

Unified Diff: Source/core/rendering/RenderObjectInlines.h

Issue 351213002: Change RenderObject::style(bool) to accept an enum instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed enum to OwnOrFirstLineStyle, rebased and got rid of duplicate state on the stack in RootInl… Created 6 years, 6 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/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderRubyRun.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObjectInlines.h
diff --git a/Source/core/rendering/RenderObjectInlines.h b/Source/core/rendering/RenderObjectInlines.h
index 73cc04d84a631af6c86cb38b59bbecceac3c26aa..5551db3e07190e5a2ca312569dbf1685330e67f0 100644
--- a/Source/core/rendering/RenderObjectInlines.h
+++ b/Source/core/rendering/RenderObjectInlines.h
@@ -20,9 +20,9 @@ inline RenderStyle* RenderObject::firstLineStyle() const
return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style();
}
-inline RenderStyle* RenderObject::style(bool firstLine) const
+inline RenderStyle* RenderObject::style(OwnOrFirstLineStyle firstLine) const
{
- return firstLine ? firstLineStyle() : style();
+ return firstLine == OwnStyle ? firstLineStyle() : style();
}
}
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderRubyRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698