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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 355843002: Rename style(bool) to styleOrFirstLineStyle(bool) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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.h ('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/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 4728932f4336a8a2e5db0e9762673725d363d0dc..4beab5aa66caa8bb94df0f4a37abbd0cc50cff5b 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -3140,7 +3140,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
Color resultColor;
TextDecorationStyle resultStyle;
do {
- styleToUse = curr->style(firstlineStyle);
+ styleToUse = curr->styleOrFirstLineStyle(firstlineStyle);
currDecs = styleToUse->textDecoration();
currDecs &= decorations;
resultColor = styleToUse->visitedDependentDecorationColor();
@@ -3172,7 +3172,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
// If we bailed out, use the element we bailed out at (typically a <font> or <a> element).
if (decorations && curr) {
- styleToUse = curr->style(firstlineStyle);
+ styleToUse = curr->styleOrFirstLineStyle(firstlineStyle);
resultColor = styleToUse->visitedDependentDecorationColor();
if (decorations & TextDecorationUnderline) {
underline.color = resultColor;
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderRubyRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698