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

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

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 2 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/rendering/TextRunConstructor.cpp
diff --git a/Source/core/rendering/TextRunConstructor.cpp b/Source/core/rendering/TextRunConstructor.cpp
index 3bba54cf1a4cfcd4e9cc6e7fbbda2593d31c609d..cc9f6c4b5225fb6401ae80032ef1045aeb000a30 100644
--- a/Source/core/rendering/TextRunConstructor.cpp
+++ b/Source/core/rendering/TextRunConstructor.cpp
@@ -33,7 +33,6 @@
#include "core/rendering/RenderText.h"
#include "core/rendering/style/RenderStyle.h"
-#include "core/rendering/svg/SVGTextRunRenderingContext.h"
#include "platform/text/BidiTextRun.h"
namespace blink {
@@ -45,9 +44,6 @@ static inline TextRun constructTextRunInternal(RenderObject* context, const Font
bool directionalOverride = style->rtlOrdering() == VisualOrder;
TextRun run(characters, length, 0, 0, expansion, direction, directionalOverride);
- if (textRunNeedsRenderingContext(font))
- run.setRenderingContext(SVGTextRunRenderingContext::create(context));
-
return run;
}
@@ -66,9 +62,6 @@ static inline TextRun constructTextRunInternal(RenderObject* context, const Font
}
TextRun run(characters, length, 0, 0, expansion, textDirection, directionalOverride);
- if (textRunNeedsRenderingContext(font))
- run.setRenderingContext(SVGTextRunRenderingContext::create(context));
-
return run;
}

Powered by Google App Engine
This is Rietveld 408576698