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

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

Issue 647723002: Remove -webkit-aspect-ratio. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Forgot to remove webkitAspectRatio from virtual/stable. :( Created 6 years, 2 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 | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
index a46b82f760e1779120f6d7802ddd6027d4e2acfb..1e65de9b040149ebf521bdd7d97bd5651054aa30 100644
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -43,7 +43,6 @@
#include "core/StyleBuilderFunctions.h"
#include "core/StylePropertyShorthand.h"
#include "core/css/BasicShapeFunctions.h"
-#include "core/css/CSSAspectRatioValue.h"
#include "core/css/CSSCursorImageValue.h"
#include "core/css/CSSFontValue.h"
#include "core/css/CSSGradientValue.h"
@@ -734,34 +733,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyZoom(StyleResolverState& state,
}
}
-void StyleBuilderFunctions::applyInitialCSSPropertyWebkitAspectRatio(StyleResolverState& state)
-{
- state.style()->setHasAspectRatio(RenderStyle::initialHasAspectRatio());
- state.style()->setAspectRatioDenominator(RenderStyle::initialAspectRatioDenominator());
- state.style()->setAspectRatioNumerator(RenderStyle::initialAspectRatioNumerator());
-}
-
-void StyleBuilderFunctions::applyInheritCSSPropertyWebkitAspectRatio(StyleResolverState& state)
-{
- if (!state.parentStyle()->hasAspectRatio())
- return;
- state.style()->setHasAspectRatio(true);
- state.style()->setAspectRatioDenominator(state.parentStyle()->aspectRatioDenominator());
- state.style()->setAspectRatioNumerator(state.parentStyle()->aspectRatioNumerator());
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyWebkitAspectRatio(StyleResolverState& state, CSSValue* value)
-{
- if (!value->isAspectRatioValue()) {
- state.style()->setHasAspectRatio(false);
- return;
- }
- CSSAspectRatioValue* aspectRatioValue = toCSSAspectRatioValue(value);
- state.style()->setHasAspectRatio(true);
- state.style()->setAspectRatioDenominator(aspectRatioValue->denominatorValue());
- state.style()->setAspectRatioNumerator(aspectRatioValue->numeratorValue());
-}
-
void StyleBuilderFunctions::applyValueCSSPropertyWebkitBorderImage(StyleResolverState& state, CSSValue* value)
{
NinePieceImage image;
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698