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

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

Issue 2447843002: Revert "Allow to set display "inline" on legend element" (Closed)
Patch Set: Created 4 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
« 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 cf1f1885e97db68e82ed84c79909d34ac122a1b2..d1a5453f4e63ef71459bea458c1c287b7ca3e692 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
@@ -221,10 +221,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