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

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

Issue 1350963004: Deprecate 'intrinsic' and 'min-intrinsic' CSS keywords, attempt 2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/css/resolver/StyleAdjuster.cpp
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp
index cffe90e1a6a699f5bde5aa09d48f237edde15443..ee2d4272bc03e9c41566e5268ab8a56f96c3fb19 100644
--- a/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/Source/core/css/resolver/StyleAdjuster.cpp
@@ -243,6 +243,13 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
style.clearMultiCol();
}
adjustStyleForAlignment(style, parentStyle);
+
+ if (e) {
+ if (style.width().type() == Intrinsic || style.minWidth().type() == Intrinsic || style.maxWidth().type() == Intrinsic
+ || style.height().type() == Intrinsic || style.minHeight().type() == Intrinsic || style.maxHeight().type() == Intrinsic
+ || style.flexBasis().type() == Intrinsic)
+ UseCounter::countDeprecation(e->document(), UseCounter::LegacyCSSValueIntrinsic);
+ }
}
void StyleAdjuster::adjustStyleForFirstLetter(ComputedStyle& style)

Powered by Google App Engine
This is Rietveld 408576698