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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 1728313003: Split ImageResourceClient into ResourceClient and ImageResourceObserver [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit refine. Created 4 years, 9 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 } 3233 }
3234 3234
3235 bool LayoutObject::isInert() const 3235 bool LayoutObject::isInert() const
3236 { 3236 {
3237 const LayoutObject* layoutObject = this; 3237 const LayoutObject* layoutObject = this;
3238 while (!layoutObject->node()) 3238 while (!layoutObject->node())
3239 layoutObject = layoutObject->parent(); 3239 layoutObject = layoutObject->parent();
3240 return layoutObject->node()->isInert(); 3240 return layoutObject->node()->isInert();
3241 } 3241 }
3242 3242
3243 void LayoutObject::imageChanged(ImageResource* image, const IntRect* rect) 3243 void LayoutObject::imageChanged(bool isNotifyingFinish, ImageResource* image, co nst IntRect* rect)
3244 { 3244 {
3245 ASSERT(m_node); 3245 ASSERT(m_node);
3246 imageChanged(static_cast<WrappedImagePtr>(image), rect); 3246 imageChanged(isNotifyingFinish, static_cast<WrappedImagePtr>(image), rect);
3247 } 3247 }
3248 3248
3249 Element* LayoutObject::offsetParent() const 3249 Element* LayoutObject::offsetParent() const
3250 { 3250 {
3251 if (isDocumentElement() || isBody()) 3251 if (isDocumentElement() || isBody())
3252 return nullptr; 3252 return nullptr;
3253 3253
3254 if (isOutOfFlowPositioned() && style()->position() == FixedPosition) 3254 if (isOutOfFlowPositioned() && style()->position() == FixedPosition)
3255 return nullptr; 3255 return nullptr;
3256 3256
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
3711 const blink::LayoutObject* root = object1; 3711 const blink::LayoutObject* root = object1;
3712 while (root->parent()) 3712 while (root->parent())
3713 root = root->parent(); 3713 root = root->parent();
3714 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3714 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3715 } else { 3715 } else {
3716 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3716 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3717 } 3717 }
3718 } 3718 }
3719 3719
3720 #endif 3720 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698