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

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

Issue 2899633002: Make EImageRendering 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) 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 } 954 }
955 RespectImageOrientationEnum RespectImageOrientation() const { 955 RespectImageOrientationEnum RespectImageOrientation() const {
956 return static_cast<RespectImageOrientationEnum>( 956 return static_cast<RespectImageOrientationEnum>(
957 rare_inherited_data_->respect_image_orientation_); 957 rare_inherited_data_->respect_image_orientation_);
958 } 958 }
959 void SetRespectImageOrientation(RespectImageOrientationEnum v) { 959 void SetRespectImageOrientation(RespectImageOrientationEnum v) {
960 SET_VAR(rare_inherited_data_, respect_image_orientation_, v); 960 SET_VAR(rare_inherited_data_, respect_image_orientation_, v);
961 } 961 }
962 962
963 // image-rendering 963 // image-rendering
964 static EImageRendering InitialImageRendering() { return kImageRenderingAuto; } 964 static EImageRendering InitialImageRendering() {
965 return EImageRendering::kAuto;
966 }
965 EImageRendering ImageRendering() const { 967 EImageRendering ImageRendering() const {
966 return static_cast<EImageRendering>(rare_inherited_data_->image_rendering_); 968 return static_cast<EImageRendering>(rare_inherited_data_->image_rendering_);
967 } 969 }
968 void SetImageRendering(EImageRendering v) { 970 void SetImageRendering(EImageRendering v) {
969 SET_VAR(rare_inherited_data_, image_rendering_, v); 971 SET_VAR(rare_inherited_data_, image_rendering_, static_cast<unsigned>(v));
970 } 972 }
971 973
972 // isolation 974 // isolation
973 static EIsolation InitialIsolation() { return kIsolationAuto; } 975 static EIsolation InitialIsolation() { return kIsolationAuto; }
974 EIsolation Isolation() const { 976 EIsolation Isolation() const {
975 return static_cast<EIsolation>(rare_non_inherited_data_->isolation_); 977 return static_cast<EIsolation>(rare_non_inherited_data_->isolation_);
976 } 978 }
977 void SetIsolation(EIsolation v) { 979 void SetIsolation(EIsolation v) {
978 rare_non_inherited_data_.Access()->isolation_ = v; 980 rare_non_inherited_data_.Access()->isolation_ = v;
979 } 981 }
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3747 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3746 } 3748 }
3747 3749
3748 inline bool ComputedStyle::HasPseudoElementStyle() const { 3750 inline bool ComputedStyle::HasPseudoElementStyle() const {
3749 return PseudoBitsInternal() & kElementPseudoIdMask; 3751 return PseudoBitsInternal() & kElementPseudoIdMask;
3750 } 3752 }
3751 3753
3752 } // namespace blink 3754 } // namespace blink
3753 3755
3754 #endif // ComputedStyle_h 3756 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698