Chromium Code Reviews| OLD | NEW |
|---|---|
| 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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 355 Vector<ImageResource*> images; | 355 Vector<ImageResource*> images; |
| 356 appendImagesFromStyle(images, *newStyle); | 356 appendImagesFromStyle(images, *newStyle); |
| 357 if (images.isEmpty()) | 357 if (images.isEmpty()) |
| 358 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeRe nderObject(this); | 358 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeRe nderObject(this); |
| 359 else | 359 else |
| 360 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRende rObject(this); | 360 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRende rObject(this); |
| 361 } | 361 } |
| 362 | 362 |
| 363 void RenderBlock::repaintTreeAfterLayout() | 363 void RenderBlock::repaintTreeAfterLayout() |
| 364 { | 364 { |
| 365 bool checkInvalidations = shouldCheckForInvalidations(); | |
| 366 | |
| 365 RenderBox::repaintTreeAfterLayout(); | 367 RenderBox::repaintTreeAfterLayout(); |
| 366 | 368 |
| 369 if (!checkInvalidations) | |
|
leviw_travelin_and_unemployed
2014/05/05 18:52:32
What does the call to RenderBox::repaintTreeAfterL
dsinclair
2014/05/05 19:38:26
Done.
| |
| 370 return; | |
| 371 | |
| 367 // Take care of positioned objects. This is required as LayoutState keeps a single clip rect. | 372 // Take care of positioned objects. This is required as LayoutState keeps a single clip rect. |
| 368 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects( )) { | 373 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects( )) { |
| 369 TrackedRendererListHashSet::iterator end = positionedObjects->end(); | 374 TrackedRendererListHashSet::iterator end = positionedObjects->end(); |
| 370 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l ocationOffset()); | 375 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l ocationOffset()); |
| 371 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin( ); it != end; ++it) | 376 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin( ); it != end; ++it) |
| 372 (*it)->repaintTreeAfterLayout(); | 377 (*it)->repaintTreeAfterLayout(); |
| 373 } | 378 } |
| 374 } | 379 } |
| 375 | 380 |
| 376 RenderBlock* RenderBlock::continuationBefore(RenderObject* beforeChild) | 381 RenderBlock* RenderBlock::continuationBefore(RenderObject* beforeChild) |
| (...skipping 4596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4973 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const | 4978 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const |
| 4974 { | 4979 { |
| 4975 showRenderObject(); | 4980 showRenderObject(); |
| 4976 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) | 4981 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) |
| 4977 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); | 4982 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); |
| 4978 } | 4983 } |
| 4979 | 4984 |
| 4980 #endif | 4985 #endif |
| 4981 | 4986 |
| 4982 } // namespace WebCore | 4987 } // namespace WebCore |
| OLD | NEW |