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

Unified Diff: Source/core/rendering/style/RenderStyle.h

Issue 264283002: Table with fixed layout behaves like auto layout when its width is set by js instead of css. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified the API name in RenderStyle.h and other modifications as per review comments. Created 6 years, 7 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: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index eb5496ea25990b2a81140b143f74c47db208e030..e645bfb4af7fe7080c6c5cabac259fcabaacba01 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -563,6 +563,7 @@ public:
EClear clear() const { return static_cast<EClear>(noninherited_flags._clear); }
ETableLayout tableLayout() const { return static_cast<ETableLayout>(noninherited_flags._table_layout); }
+ bool isFixedTableLayout() const { return static_cast<ETableLayout>(noninherited_flags._table_layout) == TFIXED && !logicalWidth().isAuto(); }
mstensho (USE GERRIT) 2014/05/07 19:12:28 Nit: still duplicating the "static_cast<ETableLayo
const Font& font() const;
const FontMetrics& fontMetrics() const;
« Source/core/rendering/RenderTable.cpp ('K') | « Source/core/rendering/RenderTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698