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

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

Issue 2905493008: Make TextIndentType an enum class. (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) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
8 * Copyright (C) 2015 Google Inc. All rights reserved. 8 * Copyright (C) 2015 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2874 list->Append( 2874 list->Append(
2875 *CSSIdentifierValue::Create(style.GetTextEmphasisMark())); 2875 *CSSIdentifierValue::Create(style.GetTextEmphasisMark()));
2876 return list; 2876 return list;
2877 } 2877 }
2878 } 2878 }
2879 case CSSPropertyTextIndent: { 2879 case CSSPropertyTextIndent: {
2880 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); 2880 CSSValueList* list = CSSValueList::CreateSpaceSeparated();
2881 list->Append(*ZoomAdjustedPixelValueForLength(style.TextIndent(), style)); 2881 list->Append(*ZoomAdjustedPixelValueForLength(style.TextIndent(), style));
2882 if (RuntimeEnabledFeatures::css3TextEnabled() && 2882 if (RuntimeEnabledFeatures::css3TextEnabled() &&
2883 (style.GetTextIndentLine() == TextIndentLine::kEachLine || 2883 (style.GetTextIndentLine() == TextIndentLine::kEachLine ||
2884 style.GetTextIndentType() == kTextIndentHanging)) { 2884 style.GetTextIndentType() == TextIndentType::kHanging)) {
2885 if (style.GetTextIndentLine() == TextIndentLine::kEachLine) 2885 if (style.GetTextIndentLine() == TextIndentLine::kEachLine)
2886 list->Append(*CSSIdentifierValue::Create(CSSValueEachLine)); 2886 list->Append(*CSSIdentifierValue::Create(CSSValueEachLine));
2887 if (style.GetTextIndentType() == kTextIndentHanging) 2887 if (style.GetTextIndentType() == TextIndentType::kHanging)
2888 list->Append(*CSSIdentifierValue::Create(CSSValueHanging)); 2888 list->Append(*CSSIdentifierValue::Create(CSSValueHanging));
2889 } 2889 }
2890 return list; 2890 return list;
2891 } 2891 }
2892 case CSSPropertyTextShadow: 2892 case CSSPropertyTextShadow:
2893 return ValueForShadowList(style.TextShadow(), style, false); 2893 return ValueForShadowList(style.TextShadow(), style, false);
2894 case CSSPropertyTextRendering: 2894 case CSSPropertyTextRendering:
2895 return CSSIdentifierValue::Create( 2895 return CSSIdentifierValue::Create(
2896 style.GetFontDescription().TextRendering()); 2896 style.GetFontDescription().TextRendering());
2897 case CSSPropertyTextOverflow: 2897 case CSSPropertyTextOverflow:
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
3753 case CSSPropertyAll: 3753 case CSSPropertyAll:
3754 return nullptr; 3754 return nullptr;
3755 default: 3755 default:
3756 break; 3756 break;
3757 } 3757 }
3758 NOTREACHED(); 3758 NOTREACHED();
3759 return nullptr; 3759 return nullptr;
3760 } 3760 }
3761 3761
3762 } // namespace blink 3762 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698