| 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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 bool other_has_clip = | 914 bool other_has_clip = |
| 915 other.HasOutOfFlowPosition() && !other.visual_data_->has_auto_clip_; | 915 other.HasOutOfFlowPosition() && !other.visual_data_->has_auto_clip_; |
| 916 if (has_clip != other_has_clip || | 916 if (has_clip != other_has_clip || |
| 917 (has_clip && visual_data_->clip_ != other.visual_data_->clip_)) | 917 (has_clip && visual_data_->clip_ != other.visual_data_->clip_)) |
| 918 diff.SetCSSClipChanged(); | 918 diff.SetCSSClipChanged(); |
| 919 } | 919 } |
| 920 | 920 |
| 921 void ComputedStyle::AddPaintImage(StyleImage* image) { | 921 void ComputedStyle::AddPaintImage(StyleImage* image) { |
| 922 if (!rare_non_inherited_data_.Access()->paint_images_) { | 922 if (!rare_non_inherited_data_.Access()->paint_images_) { |
| 923 rare_non_inherited_data_.Access()->paint_images_ = | 923 rare_non_inherited_data_.Access()->paint_images_ = |
| 924 WTF::MakeUnique<Vector<Persistent<StyleImage>>>(); | 924 WTF::MakeUnique<PaintImages>(); |
| 925 } | 925 } |
| 926 rare_non_inherited_data_.Access()->paint_images_->push_back(image); | 926 rare_non_inherited_data_.Access()->paint_images_->push_back(image); |
| 927 } | 927 } |
| 928 | 928 |
| 929 void ComputedStyle::AddCursor(StyleImage* image, | 929 void ComputedStyle::AddCursor(StyleImage* image, |
| 930 bool hot_spot_specified, | 930 bool hot_spot_specified, |
| 931 const IntPoint& hot_spot) { | 931 const IntPoint& hot_spot) { |
| 932 if (!rare_inherited_data_.Access()->cursor_data_) | 932 if (!rare_inherited_data_.Access()->cursor_data_) |
| 933 rare_inherited_data_.Access()->cursor_data_ = new CursorList; | 933 rare_inherited_data_.Access()->cursor_data_ = new CursorList; |
| 934 rare_inherited_data_.Access()->cursor_data_->push_back( | 934 rare_inherited_data_.Access()->cursor_data_->push_back( |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2372 if (value < 0) | 2372 if (value < 0) |
| 2373 fvalue -= 0.5f; | 2373 fvalue -= 0.5f; |
| 2374 else | 2374 else |
| 2375 fvalue += 0.5f; | 2375 fvalue += 0.5f; |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); | 2378 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); |
| 2379 } | 2379 } |
| 2380 | 2380 |
| 2381 } // namespace blink | 2381 } // namespace blink |
| OLD | NEW |