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

Unified Diff: Source/core/css/CSSCalculationValue.h

Issue 227043007: CSS Length calculation with MediaValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sizes_parser3
Patch Set: Fix debug compile issue Created 6 years, 8 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 | « no previous file | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCalculationValue.h
diff --git a/Source/core/css/CSSCalculationValue.h b/Source/core/css/CSSCalculationValue.h
index e99d4a11ce9edf2afc4476462b42982f0ce63f4e..36e773b6499537347c43775679b8a32f15eb8cb6 100644
--- a/Source/core/css/CSSCalculationValue.h
+++ b/Source/core/css/CSSCalculationValue.h
@@ -43,6 +43,7 @@ namespace WebCore {
class CSSParserValueList;
class CSSValueList;
+class CSSLengthData;
class CalculationValue;
class CalcExpressionNode;
class Length;
@@ -67,7 +68,7 @@ public:
virtual bool isZero() const = 0;
virtual PassOwnPtr<CalcExpressionNode> toCalcValue(const CSSToLengthConversionData&) const = 0;
virtual double doubleValue() const = 0;
- virtual double computeLengthPx(const CSSToLengthConversionData&) const = 0;
+ virtual double computeLengthPx(const CSSLengthData*) const = 0;
virtual String customCSSText() const = 0;
virtual bool equals(const CSSCalcExpressionNode& other) const { return m_category == other.m_category && m_isInteger == other.m_isInteger; }
virtual Type type() const = 0;
@@ -109,7 +110,7 @@ public:
double doubleValue() const;
bool isNegative() const { return m_expression->doubleValue() < 0; }
ValueRange permittedValueRange() { return m_nonNegative ? ValueRangeNonNegative : ValueRangeAll; }
- double computeLengthPx(const CSSToLengthConversionData&) const;
+ double computeLengthPx(const CSSLengthData*) const;
CSSCalcExpressionNode* expressionNode() const { return m_expression.get(); }
String customCSSText() const;
« no previous file with comments | « no previous file | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698