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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2845893002: Make EBoxDecorationBreak an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 return static_cast<EBoxAlignment>( 808 return static_cast<EBoxAlignment>(
809 rare_non_inherited_data_->deprecated_flexible_box_->align); 809 rare_non_inherited_data_->deprecated_flexible_box_->align);
810 } 810 }
811 void SetBoxAlign(EBoxAlignment a) { 811 void SetBoxAlign(EBoxAlignment a) {
812 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, align, 812 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, align,
813 a); 813 a);
814 } 814 }
815 815
816 // -webkit-box-decoration-break 816 // -webkit-box-decoration-break
817 static EBoxDecorationBreak InitialBoxDecorationBreak() { 817 static EBoxDecorationBreak InitialBoxDecorationBreak() {
818 return kBoxDecorationBreakSlice; 818 return EBoxDecorationBreak::kSlice;
819 } 819 }
820 EBoxDecorationBreak BoxDecorationBreak() const { 820 EBoxDecorationBreak BoxDecorationBreak() const {
821 return static_cast<EBoxDecorationBreak>(box_data_->box_decoration_break_); 821 return static_cast<EBoxDecorationBreak>(box_data_->box_decoration_break_);
822 } 822 }
823 void SetBoxDecorationBreak(EBoxDecorationBreak b) { 823 void SetBoxDecorationBreak(EBoxDecorationBreak b) {
824 SET_VAR(box_data_, box_decoration_break_, static_cast<unsigned>(b)); 824 SET_VAR(box_data_, box_decoration_break_, static_cast<unsigned>(b));
825 } 825 }
826 826
827 // -webkit-box-lines 827 // -webkit-box-lines
828 static EBoxLines InitialBoxLines() { return SINGLE; } 828 static EBoxLines InitialBoxLines() { return SINGLE; }
(...skipping 2866 matching lines...) Expand 10 before | Expand all | Expand 10 after
3695 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3695 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3696 } 3696 }
3697 3697
3698 inline bool ComputedStyle::HasPseudoElementStyle() const { 3698 inline bool ComputedStyle::HasPseudoElementStyle() const {
3699 return PseudoBitsInternal() & kElementPseudoIdMask; 3699 return PseudoBitsInternal() & kElementPseudoIdMask;
3700 } 3700 }
3701 3701
3702 } // namespace blink 3702 } // namespace blink
3703 3703
3704 #endif // ComputedStyle_h 3704 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698