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

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

Issue 2922483004: Generate enum/getters/setters/mappings for image-rendering. (Closed)
Patch Set: 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 return kDoNotRespectImageOrientation; 1000 return kDoNotRespectImageOrientation;
1001 } 1001 }
1002 RespectImageOrientationEnum RespectImageOrientation() const { 1002 RespectImageOrientationEnum RespectImageOrientation() const {
1003 return static_cast<RespectImageOrientationEnum>( 1003 return static_cast<RespectImageOrientationEnum>(
1004 rare_inherited_data_->respect_image_orientation_); 1004 rare_inherited_data_->respect_image_orientation_);
1005 } 1005 }
1006 void SetRespectImageOrientation(RespectImageOrientationEnum v) { 1006 void SetRespectImageOrientation(RespectImageOrientationEnum v) {
1007 SET_VAR(rare_inherited_data_, respect_image_orientation_, v); 1007 SET_VAR(rare_inherited_data_, respect_image_orientation_, v);
1008 } 1008 }
1009 1009
1010 // image-rendering
1011 static EImageRendering InitialImageRendering() {
1012 return EImageRendering::kAuto;
1013 }
1014 EImageRendering ImageRendering() const {
1015 return static_cast<EImageRendering>(rare_inherited_data_->image_rendering_);
1016 }
1017 void SetImageRendering(EImageRendering v) {
1018 SET_VAR(rare_inherited_data_, image_rendering_, static_cast<unsigned>(v));
1019 }
1020
1021 // isolation 1010 // isolation
1022 static EIsolation InitialIsolation() { return kIsolationAuto; } 1011 static EIsolation InitialIsolation() { return kIsolationAuto; }
1023 EIsolation Isolation() const { 1012 EIsolation Isolation() const {
1024 return static_cast<EIsolation>(rare_non_inherited_data_->isolation_); 1013 return static_cast<EIsolation>(rare_non_inherited_data_->isolation_);
1025 } 1014 }
1026 void SetIsolation(EIsolation v) { 1015 void SetIsolation(EIsolation v) {
1027 rare_non_inherited_data_.Access()->isolation_ = v; 1016 rare_non_inherited_data_.Access()->isolation_ = v;
1028 } 1017 }
1029 1018
1030 // -webkit-margin-before-collapse (aka -webkit-margin-top-collapse) 1019 // -webkit-margin-before-collapse (aka -webkit-margin-top-collapse)
(...skipping 2593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3624 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3613 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3625 } 3614 }
3626 3615
3627 inline bool ComputedStyle::HasPseudoElementStyle() const { 3616 inline bool ComputedStyle::HasPseudoElementStyle() const {
3628 return PseudoBitsInternal() & kElementPseudoIdMask; 3617 return PseudoBitsInternal() & kElementPseudoIdMask;
3629 } 3618 }
3630 3619
3631 } // namespace blink 3620 } // namespace blink
3632 3621
3633 #endif // ComputedStyle_h 3622 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698