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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp

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 | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h ('k') | no next file » | 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 "StyleRareNonInheritedData_should_stay_small"); 71 "StyleRareNonInheritedData_should_stay_small");
72 72
73 StyleRareNonInheritedData::StyleRareNonInheritedData() 73 StyleRareNonInheritedData::StyleRareNonInheritedData()
74 : opacity(ComputedStyle::InitialOpacity()), 74 : opacity(ComputedStyle::InitialOpacity()),
75 perspective_(ComputedStyle::InitialPerspective()), 75 perspective_(ComputedStyle::InitialPerspective()),
76 shape_image_threshold_(ComputedStyle::InitialShapeImageThreshold()), 76 shape_image_threshold_(ComputedStyle::InitialShapeImageThreshold()),
77 order_(ComputedStyle::InitialOrder()), 77 order_(ComputedStyle::InitialOrder()),
78 perspective_origin_(ComputedStyle::InitialPerspectiveOrigin()), 78 perspective_origin_(ComputedStyle::InitialPerspectiveOrigin()),
79 object_position_(ComputedStyle::InitialObjectPosition()), 79 object_position_(ComputedStyle::InitialObjectPosition()),
80 line_clamp(ComputedStyle::InitialLineClamp()), 80 line_clamp(ComputedStyle::InitialLineClamp()),
81 draggable_region_mode_(kDraggableRegionNone), 81 draggable_region_mode_(static_cast<unsigned>(kDraggableRegionNone)),
82 shape_outside_(ComputedStyle::InitialShapeOutside()), 82 shape_outside_(ComputedStyle::InitialShapeOutside()),
83 clip_path_(ComputedStyle::InitialClipPath()), 83 clip_path_(ComputedStyle::InitialClipPath()),
84 mask_(kMaskFillLayer, true), 84 mask_(kMaskFillLayer, true),
85 mask_box_image_(NinePieceImage::MaskDefaults()), 85 mask_box_image_(NinePieceImage::MaskDefaults()),
86 page_size_(), 86 page_size_(),
87 shape_margin_(ComputedStyle::InitialShapeMargin()), 87 shape_margin_(ComputedStyle::InitialShapeMargin()),
88 text_decoration_color_(StyleColor::CurrentColor()), 88 text_decoration_color_(StyleColor::CurrentColor()),
89 visited_link_text_decoration_color_(StyleColor::CurrentColor()), 89 visited_link_text_decoration_color_(StyleColor::CurrentColor()),
90 visited_link_background_color_(ComputedStyle::InitialBackgroundColor()), 90 visited_link_background_color_(ComputedStyle::InitialBackgroundColor()),
91 visited_link_outline_color_(StyleColor::CurrentColor()), 91 visited_link_outline_color_(StyleColor::CurrentColor()),
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 const StyleRareNonInheritedData& o) const { 323 const StyleRareNonInheritedData& o) const {
324 return DataEquivalent(shape_outside_, o.shape_outside_); 324 return DataEquivalent(shape_outside_, o.shape_outside_);
325 } 325 }
326 326
327 bool StyleRareNonInheritedData::ClipPathDataEquivalent( 327 bool StyleRareNonInheritedData::ClipPathDataEquivalent(
328 const StyleRareNonInheritedData& o) const { 328 const StyleRareNonInheritedData& o) const {
329 return DataEquivalent(clip_path_, o.clip_path_); 329 return DataEquivalent(clip_path_, o.clip_path_);
330 } 330 }
331 331
332 } // namespace blink 332 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698