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

Unified Diff: Source/core/inspector/InspectorCSSAgent.cpp

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/inspector/InspectorCSSAgent.h ('k') | Source/core/layout/BidiRun.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index 68932b6eb235fbac72065f65ee08c131b4af5ca8..01663692d2de56bca9a365953c06cb5e9bd4de05 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -61,11 +61,11 @@
#include "core/inspector/InstrumentingAgents.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutObjectInlines.h"
+#include "core/layout/LayoutText.h"
+#include "core/layout/LayoutTextFragment.h"
#include "core/layout/line/InlineTextBox.h"
#include "core/loader/DocumentLoader.h"
#include "core/page/Page.h"
-#include "core/rendering/RenderText.h"
-#include "core/rendering/RenderTextFragment.h"
#include "platform/fonts/Font.h"
#include "platform/fonts/GlyphBuffer.h"
#include "platform/fonts/shaping/SimpleShaper.h"
@@ -797,7 +797,7 @@ void InspectorCSSAgent::getComputedStyleForNode(ErrorString* errorString, int no
style = inspectorStyle->buildArrayForComputedStyle();
}
-void InspectorCSSAgent::collectPlatformFontsForRenderer(RenderText* renderer, HashCountedSet<String>* fontStats)
+void InspectorCSSAgent::collectPlatformFontsForRenderer(LayoutText* renderer, HashCountedSet<String>* fontStats)
{
for (InlineTextBox* box = renderer->firstTextBox(); box; box = box->nextTextBox()) {
const LayoutStyle& style = renderer->styleRef(box->isFirstLineStyle());
@@ -838,7 +838,7 @@ void InspectorCSSAgent::getPlatformFontsForNode(ErrorString* errorString, int no
HashCountedSet<String> fontStats;
for (size_t i = 0; i < textNodes.size(); ++i) {
- RenderText* renderer = textNodes[i]->renderer();
+ LayoutText* renderer = textNodes[i]->renderer();
collectPlatformFontsForRenderer(renderer, &fontStats);
if (!renderer->isTextFragment())
@@ -855,7 +855,7 @@ void InspectorCSSAgent::getPlatformFontsForNode(ErrorString* errorString, int no
// The first-letter pseudoElement only has one child, which is the
// first-letter renderer.
- collectPlatformFontsForRenderer(toRenderText(previous->slowFirstChild()), &fontStats);
+ collectPlatformFontsForRenderer(toLayoutText(previous->slowFirstChild()), &fontStats);
}
platformFonts = TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage>::create();
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.h ('k') | Source/core/layout/BidiRun.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698