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

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

Issue 2912923003: Generate enum/getters/setters/mappings for user-modify. (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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 1733
1734 // -webkit-user-drag 1734 // -webkit-user-drag
1735 static EUserDrag InitialUserDrag() { return DRAG_AUTO; } 1735 static EUserDrag InitialUserDrag() { return DRAG_AUTO; }
1736 EUserDrag UserDrag() const { 1736 EUserDrag UserDrag() const {
1737 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag_); 1737 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag_);
1738 } 1738 }
1739 void SetUserDrag(EUserDrag d) { 1739 void SetUserDrag(EUserDrag d) {
1740 SET_VAR(rare_non_inherited_data_, user_drag_, d); 1740 SET_VAR(rare_non_inherited_data_, user_drag_, d);
1741 } 1741 }
1742 1742
1743 // -webkit-user-modify
1744 static EUserModify InitialUserModify() { return EUserModify::kReadOnly; }
1745 EUserModify UserModify() const {
1746 return static_cast<EUserModify>(rare_inherited_data_->user_modify_);
1747 }
1748 void SetUserModify(EUserModify u) {
1749 SET_VAR(rare_inherited_data_, user_modify_, static_cast<unsigned>(u));
1750 }
1751
1752 // caret-color 1743 // caret-color
1753 void SetCaretColor(const StyleAutoColor& color) { 1744 void SetCaretColor(const StyleAutoColor& color) {
1754 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color())); 1745 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color()));
1755 SET_VAR(rare_inherited_data_, caret_color_is_current_color_, 1746 SET_VAR(rare_inherited_data_, caret_color_is_current_color_,
1756 color.IsCurrentColor()); 1747 color.IsCurrentColor());
1757 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor()); 1748 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor());
1758 } 1749 }
1759 1750
1760 // Font properties. 1751 // Font properties.
1761 const Font& GetFont() const; 1752 const Font& GetFont() const;
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3627 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3637 } 3628 }
3638 3629
3639 inline bool ComputedStyle::HasPseudoElementStyle() const { 3630 inline bool ComputedStyle::HasPseudoElementStyle() const {
3640 return PseudoBitsInternal() & kElementPseudoIdMask; 3631 return PseudoBitsInternal() & kElementPseudoIdMask;
3641 } 3632 }
3642 3633
3643 } // namespace blink 3634 } // namespace blink
3644 3635
3645 #endif // ComputedStyle_h 3636 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698