OLD | NEW |
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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 } | 706 } |
707 | 707 |
708 NOTREACHED(); | 708 NOTREACHED(); |
709 return BSTRETCH; | 709 return BSTRETCH; |
710 } | 710 } |
711 | 711 |
712 template <> | 712 template <> |
713 inline CSSIdentifierValue::CSSIdentifierValue(EBoxDecorationBreak e) | 713 inline CSSIdentifierValue::CSSIdentifierValue(EBoxDecorationBreak e) |
714 : CSSValue(kIdentifierClass) { | 714 : CSSValue(kIdentifierClass) { |
715 switch (e) { | 715 switch (e) { |
716 case kBoxDecorationBreakSlice: | 716 case EBoxDecorationBreak::kSlice: |
717 value_id_ = CSSValueSlice; | 717 value_id_ = CSSValueSlice; |
718 break; | 718 break; |
719 case kBoxDecorationBreakClone: | 719 case EBoxDecorationBreak::kClone: |
720 value_id_ = CSSValueClone; | 720 value_id_ = CSSValueClone; |
721 break; | 721 break; |
722 } | 722 } |
723 } | 723 } |
724 | 724 |
725 template <> | 725 template <> |
726 inline EBoxDecorationBreak CSSIdentifierValue::ConvertTo() const { | 726 inline EBoxDecorationBreak CSSIdentifierValue::ConvertTo() const { |
727 switch (value_id_) { | 727 switch (value_id_) { |
728 case CSSValueSlice: | 728 case CSSValueSlice: |
729 return kBoxDecorationBreakSlice; | 729 return EBoxDecorationBreak::kSlice; |
730 case CSSValueClone: | 730 case CSSValueClone: |
731 return kBoxDecorationBreakClone; | 731 return EBoxDecorationBreak::kClone; |
732 default: | 732 default: |
733 break; | 733 break; |
734 } | 734 } |
735 | 735 |
736 NOTREACHED(); | 736 NOTREACHED(); |
737 return kBoxDecorationBreakSlice; | 737 return EBoxDecorationBreak::kSlice; |
738 } | 738 } |
739 | 739 |
740 template <> | 740 template <> |
741 inline CSSIdentifierValue::CSSIdentifierValue(BackgroundEdgeOrigin e) | 741 inline CSSIdentifierValue::CSSIdentifierValue(BackgroundEdgeOrigin e) |
742 : CSSValue(kIdentifierClass) { | 742 : CSSValue(kIdentifierClass) { |
743 switch (e) { | 743 switch (e) { |
744 case kTopEdge: | 744 case kTopEdge: |
745 value_id_ = CSSValueTop; | 745 value_id_ = CSSValueTop; |
746 break; | 746 break; |
747 case kRightEdge: | 747 case kRightEdge: |
(...skipping 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3412 default: | 3412 default: |
3413 break; | 3413 break; |
3414 } | 3414 } |
3415 NOTREACHED(); | 3415 NOTREACHED(); |
3416 return kContainsNone; | 3416 return kContainsNone; |
3417 } | 3417 } |
3418 | 3418 |
3419 } // namespace blink | 3419 } // namespace blink |
3420 | 3420 |
3421 #endif | 3421 #endif |
OLD | NEW |