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

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

Issue 2913723002: Generate enum/getters/setters/mappings for text-orientation. (Closed)
Patch Set: Rebase Created 3 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. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode( 820 void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(
821 StyleResolverState& state, 821 StyleResolverState& state,
822 const CSSValue& value) { 822 const CSSValue& value) {
823 state.SetWritingMode(ToCSSIdentifierValue(value).ConvertTo<WritingMode>()); 823 state.SetWritingMode(ToCSSIdentifierValue(value).ConvertTo<WritingMode>());
824 } 824 }
825 825
826 void StyleBuilderFunctions::applyValueCSSPropertyTextOrientation( 826 void StyleBuilderFunctions::applyValueCSSPropertyTextOrientation(
827 StyleResolverState& state, 827 StyleResolverState& state,
828 const CSSValue& value) { 828 const CSSValue& value) {
829 state.SetTextOrientation( 829 state.SetTextOrientation(
830 ToCSSIdentifierValue(value).ConvertTo<TextOrientation>()); 830 ToCSSIdentifierValue(value).ConvertTo<ETextOrientation>());
831 } 831 }
832 832
833 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation( 833 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(
834 StyleResolverState& state, 834 StyleResolverState& state,
835 const CSSValue& value) { 835 const CSSValue& value) {
836 state.SetTextOrientation( 836 state.SetTextOrientation(
837 ToCSSIdentifierValue(value).ConvertTo<TextOrientation>()); 837 ToCSSIdentifierValue(value).ConvertTo<ETextOrientation>());
838 } 838 }
839 839
840 void StyleBuilderFunctions::applyValueCSSPropertyVariable( 840 void StyleBuilderFunctions::applyValueCSSPropertyVariable(
841 StyleResolverState& state, 841 StyleResolverState& state,
842 const CSSValue& value) { 842 const CSSValue& value) {
843 const CSSCustomPropertyDeclaration& declaration = 843 const CSSCustomPropertyDeclaration& declaration =
844 ToCSSCustomPropertyDeclaration(value); 844 ToCSSCustomPropertyDeclaration(value);
845 const AtomicString& name = declaration.GetName(); 845 const AtomicString& name = declaration.GetName();
846 const PropertyRegistration* registration = nullptr; 846 const PropertyRegistration* registration = nullptr;
847 const PropertyRegistry* registry = state.GetDocument().GetPropertyRegistry(); 847 const PropertyRegistry* registry = state.GetDocument().GetPropertyRegistry();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 state.Style()->SetCaretColor( 987 state.Style()->SetCaretColor(
988 StyleBuilderConverter::ConvertStyleAutoColor(state, value)); 988 StyleBuilderConverter::ConvertStyleAutoColor(state, value));
989 } 989 }
990 if (state.ApplyPropertyToVisitedLinkStyle()) { 990 if (state.ApplyPropertyToVisitedLinkStyle()) {
991 state.Style()->SetVisitedLinkCaretColor( 991 state.Style()->SetVisitedLinkCaretColor(
992 StyleBuilderConverter::ConvertStyleAutoColor(state, value, true)); 992 StyleBuilderConverter::ConvertStyleAutoColor(state, value, true));
993 } 993 }
994 } 994 }
995 995
996 } // namespace blink 996 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698