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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2912673002: Make StyleRareNonInheritedData::draggable_regions a bit field. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 2bf27aa48daceb6dd597a342271789111a0d699c..1771f1881ea48557ad9392eb90c7a460117200d4 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1528,10 +1528,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// -webkit-app-region
DraggableRegionMode GetDraggableRegionMode() const {
- return rare_non_inherited_data_->draggable_region_mode_;
+ return static_cast<DraggableRegionMode>(
+ rare_non_inherited_data_->draggable_region_mode_);
}
void SetDraggableRegionMode(DraggableRegionMode v) {
- SET_VAR(rare_non_inherited_data_, draggable_region_mode_, v);
+ SET_VAR(rare_non_inherited_data_, draggable_region_mode_,
+ static_cast<unsigned>(v));
}
// -webkit-appearance
« 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