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

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

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improved check Created 5 years, 6 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 svgStyle.setBaselineShift(BS_SUB); 826 svgStyle.setBaselineShift(BS_SUB);
827 return; 827 return;
828 case CSSValueSuper: 828 case CSSValueSuper:
829 svgStyle.setBaselineShift(BS_SUPER); 829 svgStyle.setBaselineShift(BS_SUPER);
830 return; 830 return;
831 default: 831 default:
832 ASSERT_NOT_REACHED(); 832 ASSERT_NOT_REACHED();
833 } 833 }
834 } 834 }
835 835
836 void StyleBuilderFunctions::applyInitialCSSPropertyImageOrientation(StyleResolve rState& state)
837 {
838 state.style()->setRespectImageOrientation(ComputedStyle::initialRespectImage Orientation());
839 }
840
841 void StyleBuilderFunctions::applyInheritCSSPropertyImageOrientation(StyleResolve rState& state)
842 {
843 state.style()->setRespectImageOrientation(state.parentStyle()->respectImageO rientation());
844 }
845
846 void StyleBuilderFunctions::applyValueCSSPropertyImageOrientation(StyleResolverS tate& state, CSSValue* value)
847 {
848 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
849 state.style()->setRespectImageOrientation(primitiveValue->getValueID() == CS SValueFromImage ? RespectImageOrientation : DoNotRespectImageOrientation);
850 }
851
836 } // namespace blink 852 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698