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

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

Issue 2475003002: Revert "Allow to set display "inline" on legend element" (Closed)
Patch Set: Created 4 years, 1 month 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/css/resolver/StyleAdjuster.cpp ('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/LayoutFieldset.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
index 7766abd3897668ed0cbabddcbf52d8119b7d0f7c..4768383f5be022928a5ccc4fa0f5d645eab0f4c0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
@@ -217,10 +217,8 @@ LayoutBox* LayoutFieldset::findInFlowLegend() const {
if (legend->isFloatingOrOutOfFlowPositioned())
continue;
- if (isHTMLLegendElement(legend->node())) {
- if (legend->isBox())
- return toLayoutBox(legend);
- }
+ if (isHTMLLegendElement(legend->node()))
+ return toLayoutBox(legend);
}
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698