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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/rendering/TextRunConstructor.cpp ('k') | Source/core/rendering/style/ContentData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/VerticalPositionCache.h
diff --git a/Source/core/rendering/VerticalPositionCache.h b/Source/core/rendering/VerticalPositionCache.h
index 9b01291932a896ed542c7b49a0a83f7969e4e977..da2573a89b633834aab6193c01fa8bc2be599687 100644
--- a/Source/core/rendering/VerticalPositionCache.h
+++ b/Source/core/rendering/VerticalPositionCache.h
@@ -31,7 +31,7 @@
namespace blink {
-class RenderObject;
+class LayoutObject;
// Values for vertical alignment.
const int PositionUndefined = 0x80000000;
@@ -42,16 +42,16 @@ public:
VerticalPositionCache()
{ }
- int get(RenderObject* renderer, FontBaseline baselineType) const
+ int get(LayoutObject* renderer, FontBaseline baselineType) const
{
- const HashMap<RenderObject*, int>& mapToCheck = baselineType == AlphabeticBaseline ? m_alphabeticPositions : m_ideographicPositions;
- const HashMap<RenderObject*, int>::const_iterator it = mapToCheck.find(renderer);
+ const HashMap<LayoutObject*, int>& mapToCheck = baselineType == AlphabeticBaseline ? m_alphabeticPositions : m_ideographicPositions;
+ const HashMap<LayoutObject*, int>::const_iterator it = mapToCheck.find(renderer);
if (it == mapToCheck.end())
return PositionUndefined;
return it->value;
}
- void set(RenderObject* renderer, FontBaseline baselineType, int position)
+ void set(LayoutObject* renderer, FontBaseline baselineType, int position)
{
if (baselineType == AlphabeticBaseline)
m_alphabeticPositions.set(renderer, position);
@@ -60,8 +60,8 @@ public:
}
private:
- HashMap<RenderObject*, int> m_alphabeticPositions;
- HashMap<RenderObject*, int> m_ideographicPositions;
+ HashMap<LayoutObject*, int> m_alphabeticPositions;
+ HashMap<LayoutObject*, int> m_ideographicPositions;
};
} // namespace blink
« no previous file with comments | « Source/core/rendering/TextRunConstructor.cpp ('k') | Source/core/rendering/style/ContentData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698