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

Unified Diff: Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/layout/svg/SVGTextLayoutEngineBaseline.h ('k') | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp
diff --git a/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp b/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp
index 4cfbe3c4a134b8d9f0f31fb2070f4d97c009c0bd..6a48f9b5c338863d808f2c3522bc652ada996c1c 100644
--- a/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp
+++ b/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp
@@ -21,7 +21,7 @@
#include "core/layout/svg/SVGTextLayoutEngineBaseline.h"
#include "core/layout/LayoutObject.h"
-#include "core/layout/style/SVGLayoutStyle.h"
+#include "core/layout/style/SVGComputedStyle.h"
#include "core/layout/svg/SVGTextMetrics.h"
#include "core/svg/SVGLengthContext.h"
#include "platform/fonts/Font.h"
@@ -34,9 +34,9 @@ SVGTextLayoutEngineBaseline::SVGTextLayoutEngineBaseline(const Font& font)
{
}
-float SVGTextLayoutEngineBaseline::calculateBaselineShift(const LayoutStyle& style) const
+float SVGTextLayoutEngineBaseline::calculateBaselineShift(const ComputedStyle& style) const
{
- const SVGLayoutStyle& svgStyle = style.svgStyle();
+ const SVGComputedStyle& svgStyle = style.svgStyle();
switch (svgStyle.baselineShift()) {
case BS_LENGTH:
@@ -58,7 +58,7 @@ EAlignmentBaseline SVGTextLayoutEngineBaseline::dominantBaselineToAlignmentBasel
ASSERT(textRenderer->parent());
ASSERT(textRenderer->parent()->style());
- const SVGLayoutStyle& style = textRenderer->style()->svgStyle();
+ const SVGComputedStyle& style = textRenderer->style()->svgStyle();
EDominantBaseline baseline = style.dominantBaseline();
if (baseline == DB_AUTO) {
@@ -141,7 +141,7 @@ float SVGTextLayoutEngineBaseline::calculateAlignmentBaselineShift(bool isVertic
}
}
-float SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle(bool isVerticalText, const SVGLayoutStyle& style, const UChar& character) const
+float SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle(bool isVerticalText, const SVGComputedStyle& style, const UChar& character) const
{
switch (isVerticalText ? style.glyphOrientationVertical() : style.glyphOrientationHorizontal()) {
case GO_AUTO: {
« no previous file with comments | « Source/core/layout/svg/SVGTextLayoutEngineBaseline.h ('k') | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698