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

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

Issue 2912673002: Make StyleRareNonInheritedData::draggable_regions a bit field. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 1521
1522 // zoom 1522 // zoom
1523 static float InitialZoom() { return 1.0f; } 1523 static float InitialZoom() { return 1.0f; }
1524 float Zoom() const { return ZoomInternal(); } 1524 float Zoom() const { return ZoomInternal(); }
1525 float EffectiveZoom() const { return rare_inherited_data_->effective_zoom_; } 1525 float EffectiveZoom() const { return rare_inherited_data_->effective_zoom_; }
1526 bool SetZoom(float); 1526 bool SetZoom(float);
1527 bool SetEffectiveZoom(float); 1527 bool SetEffectiveZoom(float);
1528 1528
1529 // -webkit-app-region 1529 // -webkit-app-region
1530 DraggableRegionMode GetDraggableRegionMode() const { 1530 DraggableRegionMode GetDraggableRegionMode() const {
1531 return rare_non_inherited_data_->draggable_region_mode_; 1531 return static_cast<DraggableRegionMode>(
1532 rare_non_inherited_data_->draggable_region_mode_);
1532 } 1533 }
1533 void SetDraggableRegionMode(DraggableRegionMode v) { 1534 void SetDraggableRegionMode(DraggableRegionMode v) {
1534 SET_VAR(rare_non_inherited_data_, draggable_region_mode_, v); 1535 SET_VAR(rare_non_inherited_data_, draggable_region_mode_,
1536 static_cast<unsigned>(v));
1535 } 1537 }
1536 1538
1537 // -webkit-appearance 1539 // -webkit-appearance
1538 static ControlPart InitialAppearance() { return kNoControlPart; } 1540 static ControlPart InitialAppearance() { return kNoControlPart; }
1539 ControlPart Appearance() const { 1541 ControlPart Appearance() const {
1540 return static_cast<ControlPart>(rare_non_inherited_data_->appearance_); 1542 return static_cast<ControlPart>(rare_non_inherited_data_->appearance_);
1541 } 1543 }
1542 void SetAppearance(ControlPart a) { 1544 void SetAppearance(ControlPart a) {
1543 SET_VAR(rare_non_inherited_data_, appearance_, a); 1545 SET_VAR(rare_non_inherited_data_, appearance_, a);
1544 } 1546 }
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
3751 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3753 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3752 } 3754 }
3753 3755
3754 inline bool ComputedStyle::HasPseudoElementStyle() const { 3756 inline bool ComputedStyle::HasPseudoElementStyle() const {
3755 return PseudoBitsInternal() & kElementPseudoIdMask; 3757 return PseudoBitsInternal() & kElementPseudoIdMask;
3756 } 3758 }
3757 3759
3758 } // namespace blink 3760 } // namespace blink
3759 3761
3760 #endif // ComputedStyle_h 3762 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698