diff options
Diffstat (limited to 'Source/WebCore/css/StyleResolver.cpp')
-rw-r--r-- | Source/WebCore/css/StyleResolver.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/css/StyleResolver.cpp b/Source/WebCore/css/StyleResolver.cpp index 8bc5efee8..b4cbd8a21 100644 --- a/Source/WebCore/css/StyleResolver.cpp +++ b/Source/WebCore/css/StyleResolver.cpp @@ -4105,11 +4105,6 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value) m_style->setGridItemRow(row); return; } -#if ENABLE(CSS_VARIABLES) - case CSSPropertyVariable: - // FIXME: This should have an actual implementation. - return; -#endif // These properties are implemented in the StyleBuilder lookup table. case CSSPropertyBackgroundAttachment: case CSSPropertyBackgroundClip: @@ -4174,6 +4169,9 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value) case CSSPropertyFontVariant: case CSSPropertyFontWeight: case CSSPropertyHeight: +#if ENABLE(CSS_IMAGE_ORIENTATION) + case CSSPropertyImageOrientation: +#endif case CSSPropertyImageRendering: #if ENABLE(CSS_IMAGE_RESOLUTION) case CSSPropertyImageResolution: @@ -4226,6 +4224,9 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value) case CSSPropertyTextTransform: case CSSPropertyTop: case CSSPropertyUnicodeBidi: +#if ENABLE(CSS_VARIABLES) + case CSSPropertyVariable: +#endif case CSSPropertyVerticalAlign: case CSSPropertyVisibility: case CSSPropertyWebkitAnimationDelay: @@ -4559,9 +4560,7 @@ float StyleResolver::getComputedSizeFromSpecifiedSize(Document* document, float if (useSmartMinimumForFontSize && zoomedSize < minLogicalSize && (specifiedSize >= minLogicalSize || !isAbsoluteSize)) zoomedSize = minLogicalSize; - // Also clamp to a reasonable maximum to prevent insane font sizes from causing crashes on various - // platforms (I'm looking at you, Windows.) - return min(1000000.0f, zoomedSize); + return zoomedSize; } const int fontSizeTableMax = 16; |