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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutItem.h

Issue 2204593003: Change requiresLineBox to return false for empty-text inline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove curly brackets around one-line control-flow statements Created 4 years, 4 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: third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
index a96cf45cf3110a3d95928e187bd295b197796343..a17d558ca2c0d9e88f7e8849230b80c679a40b1c 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
@@ -7,6 +7,7 @@
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutObjectInlines.h"
+#include "core/layout/LayoutText.h"
#include "platform/LayoutUnit.h"
#include "wtf/Allocator.h"
@@ -316,6 +317,11 @@ public:
return m_layoutObject->isText();
}
+ bool isEmptyText() const
+ {
+ return isText() && toLayoutText(m_layoutObject)->text().isEmpty();
+ }
+
bool hasLayer() const
{
return m_layoutObject->hasLayer();

Powered by Google App Engine
This is Rietveld 408576698