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

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

Issue 2847303002: Remove unnecessary zoom argument from GetImage() as its value is always available through the Layou… (Closed)
Patch Set: (rebased) 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void StyleGeneratedImage::AddClient(LayoutObject* layout_object) { 62 void StyleGeneratedImage::AddClient(LayoutObject* layout_object) {
63 image_generator_value_->AddClient(layout_object, IntSize()); 63 image_generator_value_->AddClient(layout_object, IntSize());
64 } 64 }
65 65
66 void StyleGeneratedImage::RemoveClient(LayoutObject* layout_object) { 66 void StyleGeneratedImage::RemoveClient(LayoutObject* layout_object) {
67 image_generator_value_->RemoveClient(layout_object); 67 image_generator_value_->RemoveClient(layout_object);
68 } 68 }
69 69
70 PassRefPtr<Image> StyleGeneratedImage::GetImage( 70 PassRefPtr<Image> StyleGeneratedImage::GetImage(
71 const LayoutObject& layout_object, 71 const LayoutObject& layout_object,
72 const IntSize& size, 72 const IntSize& size) const {
73 float zoom) const { 73 return image_generator_value_->GetImage(layout_object, size);
74 return image_generator_value_->GetImage(layout_object, size, zoom);
75 } 74 }
76 75
77 bool StyleGeneratedImage::KnownToBeOpaque( 76 bool StyleGeneratedImage::KnownToBeOpaque(
78 const LayoutObject& layout_object) const { 77 const LayoutObject& layout_object) const {
79 return image_generator_value_->KnownToBeOpaque(layout_object); 78 return image_generator_value_->KnownToBeOpaque(layout_object);
80 } 79 }
81 80
82 DEFINE_TRACE(StyleGeneratedImage) { 81 DEFINE_TRACE(StyleGeneratedImage) {
83 visitor->Trace(image_generator_value_); 82 visitor->Trace(image_generator_value_);
84 StyleImage::Trace(visitor); 83 StyleImage::Trace(visitor);
85 } 84 }
86 85
87 } // namespace blink 86 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleGeneratedImage.h ('k') | third_party/WebKit/Source/core/style/StyleImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698