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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address jchaffraix remarks 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/RenderTextControl.cpp
diff --git a/Source/core/rendering/RenderTextControl.cpp b/Source/core/rendering/RenderTextControl.cpp
index 523dd0c288b7035a104b19d6bc5a85d7bf36d0d4..8854c7381a9052df7f07f837df912652aef73581 100644
--- a/Source/core/rendering/RenderTextControl.cpp
+++ b/Source/core/rendering/RenderTextControl.cpp
@@ -100,18 +100,6 @@ int RenderTextControl::textBlockLogicalHeight() const
return logicalHeight() - borderAndPaddingLogicalHeight();
}
-int RenderTextControl::textBlockLogicalWidth() const
-{
- Element* innerEditor = innerEditorElement();
- ASSERT(innerEditor);
-
- LayoutUnit unitWidth = logicalWidth() - borderAndPaddingLogicalWidth();
- if (innerEditor->renderer())
- unitWidth -= innerEditor->renderBox()->paddingStart() + innerEditor->renderBox()->paddingEnd();
-
- return unitWidth;
-}
-
void RenderTextControl::updateFromElement()
{
Element* innerEditor = innerEditorElement();

Powered by Google App Engine
This is Rietveld 408576698