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

Side by Side Diff: cc/layers/layer_position_constraint.cc

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to save the comments. sorry. :( Created 7 years, 8 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 | « cc/layers/layer_position_constraint.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/layers/layer_position_constraint.h"
6
7 namespace cc {
8
9 LayerPositionConstraint::LayerPositionConstraint()
10 : is_fixed_position_(false),
11 is_fixed_to_right_edge_(false),
12 is_fixed_to_bottom_edge_(false) {
13 }
14
15 bool LayerPositionConstraint::operator==(
16 const LayerPositionConstraint& other) const {
17 if (!is_fixed_position_ && !other.is_fixed_position_)
18 return true;
19 return is_fixed_position_ == other.is_fixed_position_ &&
20 is_fixed_to_right_edge_ == other.is_fixed_to_right_edge_ &&
21 is_fixed_to_bottom_edge_ == other.is_fixed_to_bottom_edge_;
22 }
23
24 bool LayerPositionConstraint::operator!=(
25 const LayerPositionConstraint& other) const {
26 return !(*this == other);
27 }
28
29 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_position_constraint.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698