Chromium Code Reviews| Index: Source/core/rendering/RenderObject.cpp |
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
| index dbe5358b397061d3e7231b524cf1a61e6217cbaf..852f2ccc0f346452af7fe4e05f441d8bc506ced9 100644 |
| --- a/Source/core/rendering/RenderObject.cpp |
| +++ b/Source/core/rendering/RenderObject.cpp |
| @@ -35,6 +35,7 @@ |
| #include "core/editing/EditingBoundary.h" |
| #include "core/editing/FrameSelection.h" |
| #include "core/editing/htmlediting.h" |
| +#include "core/fetch/ResourceLoader.h" |
| #include "core/html/HTMLAnchorElement.h" |
| #include "core/html/HTMLElement.h" |
| #include "core/html/HTMLHtmlElement.h" |
| @@ -2822,6 +2823,20 @@ void RenderObject::layout() |
| clearNeedsLayout(); |
| } |
| +void RenderObject::didLayout(ResourceLoadPriorityOptimizer& priorityModifier) |
| +{ |
| + for (RenderObject* child = firstChild(); child; child = child->nextSibling()) { |
|
eseidel
2013/12/10 17:15:30
nit: I wouldn't bother with the {} but that's more
shatch
2013/12/10 18:56:19
Done.
|
| + child->didLayout(priorityModifier); |
| + } |
| +} |
| + |
| +void RenderObject::didScroll(ResourceLoadPriorityOptimizer& priorityModifier) |
| +{ |
| + for (RenderObject* child = firstChild(); child; child = child->nextSibling()) { |
| + child->didScroll(priorityModifier); |
| + } |
| +} |
| + |
| void RenderObject::forceLayout() |
| { |
| setSelfNeedsLayout(true); |