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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp

Issue 1612273002: Don't force display:table-cell and float:none on table cell elements when in quirks mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html ('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/css/resolver/StyleAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
index 156b5b791577f0560d6aa22748a6b283c548ad37..3e335f4ac414145612739da55e1face660fe933b 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
@@ -340,12 +340,6 @@ void StyleAdjuster::adjustStyleForHTMLElement(ComputedStyle& style, const Comput
return;
if (isHTMLTableCellElement(element)) {
- // If we have a <td> that specifies a float property, in quirks mode we just drop the float property.
- // FIXME: Why is this only <td> and not <th>?
- if (element.hasTagName(tdTag) && m_useQuirksModeStyles) {
- style.setDisplay(TABLE_CELL);
- style.setFloating(NoFloat);
- }
// FIXME: We shouldn't be overriding start/-webkit-auto like this. Do it in html.css instead.
// Table headers with a text-align of -webkit-auto will change the text-align to center.
if (element.hasTagName(thTag) && style.textAlign() == TASTART)
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698