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

Unified Diff: Source/core/layout/LayoutBR.cpp

Issue 931633003: Move and rename RenderBR to LayoutBR. (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/layout/LayoutBR.h ('k') | Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBR.cpp
diff --git a/Source/core/rendering/RenderBR.cpp b/Source/core/layout/LayoutBR.cpp
similarity index 82%
rename from Source/core/rendering/RenderBR.cpp
rename to Source/core/layout/LayoutBR.cpp
index 005f283770a0ec991df7af2a3b67cffaf5ad9609..1be9a14e333f67f6320424a876952f02e7415828 100644
--- a/Source/core/rendering/RenderBR.cpp
+++ b/Source/core/layout/LayoutBR.cpp
@@ -20,7 +20,7 @@
*/
#include "config.h"
-#include "core/rendering/RenderBR.h"
+#include "core/layout/LayoutBR.h"
#include "core/dom/Document.h"
#include "core/dom/StyleEngine.h"
@@ -35,37 +35,37 @@ static PassRefPtr<StringImpl> newlineString()
return string.impl();
}
-RenderBR::RenderBR(Node* node)
+LayoutBR::LayoutBR(Node* node)
: RenderText(node, newlineString())
{
}
-RenderBR::~RenderBR()
+LayoutBR::~LayoutBR()
{
}
-int RenderBR::lineHeight(bool firstLine) const
+int LayoutBR::lineHeight(bool firstLine) const
{
const LayoutStyle& style = styleRef(firstLine && document().styleEngine()->usesFirstLineRules());
return style.computedLineHeight();
}
-void RenderBR::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle)
+void LayoutBR::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle)
{
RenderText::styleDidChange(diff, oldStyle);
}
-int RenderBR::caretMinOffset() const
+int LayoutBR::caretMinOffset() const
{
return 0;
}
-int RenderBR::caretMaxOffset() const
+int LayoutBR::caretMaxOffset() const
{
return 1;
}
-PositionWithAffinity RenderBR::positionForPoint(const LayoutPoint&)
+PositionWithAffinity LayoutBR::positionForPoint(const LayoutPoint&)
{
return createPositionWithAffinity(0, DOWNSTREAM);
}
« no previous file with comments | « Source/core/layout/LayoutBR.h ('k') | Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698