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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2757553002: Editing: Content of display:table elements should be editable. (Closed)
Patch Set: Remove parenthesis Created 3 years, 9 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/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 53f009d3d6b8723fe627a99fe6e9a96affba3813..736d889bf286020e88b7afa6ef2f399bf276d8fd 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -1507,11 +1507,7 @@ bool canMergeLists(Element* firstList, Element* secondList) {
}
bool isDisplayInsideTable(const Node* node) {
- if (!node || !node->isElementNode())
- return false;
-
- LayoutObject* layoutObject = node->layoutObject();
- return (layoutObject && layoutObject->isTable());
+ return node && node->layoutObject() && isHTMLTableElement(node);
}
bool isTableCell(const Node* node) {

Powered by Google App Engine
This is Rietveld 408576698