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

Side by Side Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more 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 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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 } 581 }
582 582
583 void StyleBuilderFunctions::applyValueCSSPropertyWebkitFilter(StyleResolverState & state, CSSValue* value) 583 void StyleBuilderFunctions::applyValueCSSPropertyWebkitFilter(StyleResolverState & state, CSSValue* value)
584 { 584 {
585 // FIXME: We should just make this a converter 585 // FIXME: We should just make this a converter
586 FilterOperations operations; 586 FilterOperations operations;
587 FilterOperationResolver::createFilterOperations(*value, state.cssToLengthCon versionData(), operations, state); 587 FilterOperationResolver::createFilterOperations(*value, state.cssToLengthCon versionData(), operations, state);
588 state.style()->setFilter(operations); 588 state.style()->setFilter(operations);
589 } 589 }
590 590
591 void StyleBuilderFunctions::applyValueCSSPropertyBackdropFilter(StyleResolverSta te& state, CSSValue* value)
592 {
593 // FIXME: We should just make this a converter
594 FilterOperations operations;
595 FilterOperationResolver::createFilterOperations(*value, state.cssToLengthCon versionData(), operations, state);
596 state.style()->setBackdropFilter(operations);
597 }
598
591 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state) 599 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state)
592 { 600 {
593 state.style()->setTextEmphasisFill(ComputedStyle::initialTextEmphasisFill()) ; 601 state.style()->setTextEmphasisFill(ComputedStyle::initialTextEmphasisFill()) ;
594 state.style()->setTextEmphasisMark(ComputedStyle::initialTextEmphasisMark()) ; 602 state.style()->setTextEmphasisMark(ComputedStyle::initialTextEmphasisMark()) ;
595 state.style()->setTextEmphasisCustomMark(ComputedStyle::initialTextEmphasisC ustomMark()); 603 state.style()->setTextEmphasisCustomMark(ComputedStyle::initialTextEmphasisC ustomMark());
596 } 604 }
597 605
598 void StyleBuilderFunctions::applyInheritCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state) 606 void StyleBuilderFunctions::applyInheritCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state)
599 { 607 {
600 state.style()->setTextEmphasisFill(state.parentStyle()->textEmphasisFill()); 608 state.style()->setTextEmphasisFill(state.parentStyle()->textEmphasisFill());
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 return; 838 return;
831 case CSSValueSuper: 839 case CSSValueSuper:
832 svgStyle.setBaselineShift(BS_SUPER); 840 svgStyle.setBaselineShift(BS_SUPER);
833 return; 841 return;
834 default: 842 default:
835 ASSERT_NOT_REACHED(); 843 ASSERT_NOT_REACHED();
836 } 844 }
837 } 845 }
838 846
839 } // namespace blink 847 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698