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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.cpp

Issue 2601923003: [css-tables] Fix caret position inside empty cell (Closed)
Patch Set: Test rebaselines Created 4 years 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 | « third_party/WebKit/Source/core/layout/LayoutTableCell.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index 43b900803256831f1519017d9cd7383dcedb7225..bfacd7af9777c4b9c14841dc961c30ee69e1a493 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -27,6 +27,7 @@
#include "core/HTMLNames.h"
#include "core/css/StylePropertySet.h"
+#include "core/editing/EditingUtilities.h"
#include "core/html/HTMLTableCellElement.h"
#include "core/layout/LayoutAnalyzer.h"
#include "core/layout/LayoutTableCol.h"
@@ -1489,4 +1490,11 @@ void LayoutTableCell::adjustChildDebugRect(LayoutRect& r) const {
r.move(0, -intrinsicPaddingBefore());
}
+bool LayoutTableCell::hasLineIfEmpty() const {
+ if (node() && hasEditableStyle(*node()))
+ return true;
+
+ return LayoutBlock::hasLineIfEmpty();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698