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

Side by Side Diff: sky/engine/core/css/resolver/StyleBuilderCustom.cpp

Issue 850103003: Unprefix -webkit-filter and add a pixel test for it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 if (value->isPrimitiveValue()) { 626 if (value->isPrimitiveValue()) {
627 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 627 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
628 if (primitiveValue->getValueID() == CSSValueNone) { 628 if (primitiveValue->getValueID() == CSSValueNone) {
629 state.style()->setClipPath(nullptr); 629 state.style()->setClipPath(nullptr);
630 } else if (primitiveValue->isShape()) { 630 } else if (primitiveValue->isShape()) {
631 state.style()->setClipPath(ShapeClipPathOperation::create(basicShape ForValue(state, primitiveValue->getShapeValue()))); 631 state.style()->setClipPath(ShapeClipPathOperation::create(basicShape ForValue(state, primitiveValue->getShapeValue())));
632 } 632 }
633 } 633 }
634 } 634 }
635 635
636 void StyleBuilderFunctions::applyValueCSSPropertyWebkitFilter(StyleResolverState & state, CSSValue* value) 636 void StyleBuilderFunctions::applyValueCSSPropertyFilter(StyleResolverState& stat e, CSSValue* value)
637 { 637 {
638 FilterOperations operations; 638 FilterOperations operations;
639 if (FilterOperationResolver::createFilterOperations(value, state.cssToLength ConversionData(), operations, state)) 639 if (FilterOperationResolver::createFilterOperations(value, state.cssToLength ConversionData(), operations, state))
640 state.style()->setFilter(operations); 640 state.style()->setFilter(operations);
641 } 641 }
642 642
643 // FIXME: We should use the same system for this as the rest of the pseudo-short hands (e.g. background-position) 643 // FIXME: We should use the same system for this as the rest of the pseudo-short hands (e.g. background-position)
644 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitPerspectiveOrigin(Style ResolverState& state) 644 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitPerspectiveOrigin(Style ResolverState& state)
645 { 645 {
646 applyInitialCSSPropertyWebkitPerspectiveOriginX(state); 646 applyInitialCSSPropertyWebkitPerspectiveOriginX(state);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 state.style()->setPerspective(perspectiveValue); 832 state.style()->setPerspective(perspectiveValue);
833 } 833 }
834 834
835 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(StyleReso lverState& state, CSSValue* value) 835 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(StyleReso lverState& state, CSSValue* value)
836 { 836 {
837 if (value->isPrimitiveValue()) 837 if (value->isPrimitiveValue())
838 state.setTextOrientation(*toCSSPrimitiveValue(value)); 838 state.setTextOrientation(*toCSSPrimitiveValue(value));
839 } 839 }
840 840
841 } // namespace blink 841 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/platform/animation/KeyframeValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698