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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2622623003: Moved -webkit-rtl-ordering to be generated in ComputedStyleBase. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>.
3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after
3583 case SpeakNoPunctuation: 3583 case SpeakNoPunctuation:
3584 m_valueID = CSSValueNoPunctuation; 3584 m_valueID = CSSValueNoPunctuation;
3585 break; 3585 break;
3586 } 3586 }
3587 } 3587 }
3588 3588
3589 template <> 3589 template <>
3590 inline EOrder CSSIdentifierValue::convertTo() const { 3590 inline EOrder CSSIdentifierValue::convertTo() const {
3591 switch (m_valueID) { 3591 switch (m_valueID) {
3592 case CSSValueLogical: 3592 case CSSValueLogical:
3593 return EOrder::Logical; 3593 return EOrder::kLogical;
3594 case CSSValueVisual: 3594 case CSSValueVisual:
3595 return EOrder::Visual; 3595 return EOrder::kVisual;
3596 default: 3596 default:
3597 break; 3597 break;
3598 } 3598 }
3599 3599
3600 ASSERT_NOT_REACHED(); 3600 ASSERT_NOT_REACHED();
3601 return EOrder::Logical; 3601 return EOrder::kLogical;
3602 } 3602 }
3603 3603
3604 template <> 3604 template <>
3605 inline CSSIdentifierValue::CSSIdentifierValue(EOrder e) 3605 inline CSSIdentifierValue::CSSIdentifierValue(EOrder e)
3606 : CSSValue(IdentifierClass) { 3606 : CSSValue(IdentifierClass) {
3607 switch (e) { 3607 switch (e) {
3608 case EOrder::Logical: 3608 case EOrder::kLogical:
3609 m_valueID = CSSValueLogical; 3609 m_valueID = CSSValueLogical;
3610 break; 3610 break;
3611 case EOrder::Visual: 3611 case EOrder::kVisual:
3612 m_valueID = CSSValueVisual; 3612 m_valueID = CSSValueVisual;
3613 break; 3613 break;
3614 } 3614 }
3615 } 3615 }
3616 3616
3617 template <> 3617 template <>
3618 inline ESpeak CSSIdentifierValue::convertTo() const { 3618 inline ESpeak CSSIdentifierValue::convertTo() const {
3619 switch (m_valueID) { 3619 switch (m_valueID) {
3620 case CSSValueNone: 3620 case CSSValueNone:
3621 return SpeakNone; 3621 return SpeakNone;
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 default: 4785 default:
4786 break; 4786 break;
4787 } 4787 }
4788 ASSERT_NOT_REACHED(); 4788 ASSERT_NOT_REACHED();
4789 return ContainsNone; 4789 return ContainsNone;
4790 } 4790 }
4791 4791
4792 } // namespace blink 4792 } // namespace blink
4793 4793
4794 #endif 4794 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698