Commit bce1afaa authored by Alan Cutter's avatar Alan Cutter Committed by Commit Bot

Remove unused FillLayer::ContainsImage()

Bug: 781461
Change-Id: I464ad57e04ad5047dc034f42dc9befd30696f940
Reviewed-on: https://chromium-review.googlesource.com/1080363Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563157}
parent 61e41b3c
...@@ -364,16 +364,6 @@ bool FillLayer::ClipOccludesNextLayers() const { ...@@ -364,16 +364,6 @@ bool FillLayer::ClipOccludesNextLayers() const {
return Clip() == ThisOrNextLayersClipMax(); return Clip() == ThisOrNextLayersClipMax();
} }
bool FillLayer::ContainsImage(StyleImage* s) const {
if (!s)
return false;
if (image_ && *s == *image_)
return true;
if (next_)
return next_->ContainsImage(s);
return false;
}
bool FillLayer::ImagesAreLoaded() const { bool FillLayer::ImagesAreLoaded() const {
const FillLayer* curr; const FillLayer* curr;
for (curr = this; curr; curr = curr->Next()) { for (curr = this; curr; curr = curr->Next()) {
......
...@@ -214,7 +214,6 @@ class CORE_EXPORT FillLayer { ...@@ -214,7 +214,6 @@ class CORE_EXPORT FillLayer {
bool VisuallyEqual(const FillLayer&) const; bool VisuallyEqual(const FillLayer&) const;
bool ContainsImage(StyleImage*) const;
bool ImagesAreLoaded() const; bool ImagesAreLoaded() const;
bool HasImage() const { bool HasImage() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment