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

Unified Diff: sky/engine/core/rendering/line/LineWidth.h

Issue 1068683002: Delete RenderBlockFlow. (Closed) Base URL: https://github.com/domokit/mojo.git@block
Patch Set: Remove unused float-related code instead of moving it. Created 5 years, 8 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 | « sky/engine/core/rendering/line/LineLayoutState.h ('k') | sky/engine/core/rendering/line/LineWidth.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/line/LineWidth.h
diff --git a/sky/engine/core/rendering/line/LineWidth.h b/sky/engine/core/rendering/line/LineWidth.h
index 0572b30c55445ae0c517f53ff6b0f7ea82df7843..ed839fa0c8bddc1ee05a2faa26b7ad80cc99b040 100644
--- a/sky/engine/core/rendering/line/LineWidth.h
+++ b/sky/engine/core/rendering/line/LineWidth.h
@@ -36,14 +36,14 @@ namespace blink {
class FloatingObject;
class RenderObject;
-class RenderBlockFlow;
+class RenderParagraph;
enum IndentTextOrNot { DoNotIndentText, IndentText };
enum WhitespaceTreatment { ExcludeWhitespace, IncludeWhitespace };
class LineWidth {
public:
- LineWidth(RenderBlockFlow&, bool isFirstLine, IndentTextOrNot shouldIndentText);
+ LineWidth(RenderParagraph&, bool isFirstLine, IndentTextOrNot shouldIndentText);
bool fitsOnLine() const { return currentWidth() <= (m_availableWidth + LayoutUnit::epsilon()); }
bool fitsOnLine(float extra) const { return currentWidth() + extra <= (m_availableWidth + LayoutUnit::epsilon()); }
@@ -71,7 +71,7 @@ private:
void computeAvailableWidthFromLeftAndRight();
void updateLineDimension(LayoutUnit newLineTop, LayoutUnit newLineWidth, const float& newLineLeft, const float& newLineRight);
- RenderBlockFlow& m_block;
+ RenderParagraph& m_block;
float m_uncommittedWidth;
float m_committedWidth;
float m_trailingWhitespaceWidth;
« no previous file with comments | « sky/engine/core/rendering/line/LineLayoutState.h ('k') | sky/engine/core/rendering/line/LineWidth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698