OLD | NEW |
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, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
4 * reserved. | 4 * reserved. |
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 if (box_data_.Get() != other.box_data_.Get()) { | 564 if (box_data_.Get() != other.box_data_.Get()) { |
565 if (box_data_->width_ != other.box_data_->width_ || | 565 if (box_data_->width_ != other.box_data_->width_ || |
566 box_data_->min_width_ != other.box_data_->min_width_ || | 566 box_data_->min_width_ != other.box_data_->min_width_ || |
567 box_data_->max_width_ != other.box_data_->max_width_ || | 567 box_data_->max_width_ != other.box_data_->max_width_ || |
568 box_data_->height_ != other.box_data_->height_ || | 568 box_data_->height_ != other.box_data_->height_ || |
569 box_data_->min_height_ != other.box_data_->min_height_ || | 569 box_data_->min_height_ != other.box_data_->min_height_ || |
570 box_data_->max_height_ != other.box_data_->max_height_) | 570 box_data_->max_height_ != other.box_data_->max_height_) |
571 return true; | 571 return true; |
572 } | 572 } |
573 | 573 |
574 if (ComputedStyleBase::ScrollAnchorDisablingPropertyChanged(other, diff)) | 574 if (ComputedStyleBase::ScrollAnchorDisablingPropertyChanged(other)) |
575 return true; | 575 return true; |
576 | 576 |
577 if (diff.TransformChanged()) | 577 if (diff.TransformChanged()) |
578 return true; | 578 return true; |
579 | 579 |
580 return false; | 580 return false; |
581 } | 581 } |
582 | 582 |
583 bool ComputedStyle::DiffNeedsFullLayoutAndPaintInvalidation( | 583 bool ComputedStyle::DiffNeedsFullLayoutAndPaintInvalidation( |
584 const ComputedStyle& other) const { | 584 const ComputedStyle& other) const { |
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 if (value < 0) | 2524 if (value < 0) |
2525 fvalue -= 0.5f; | 2525 fvalue -= 0.5f; |
2526 else | 2526 else |
2527 fvalue += 0.5f; | 2527 fvalue += 0.5f; |
2528 } | 2528 } |
2529 | 2529 |
2530 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); | 2530 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); |
2531 } | 2531 } |
2532 | 2532 |
2533 } // namespace blink | 2533 } // namespace blink |
OLD | NEW |