| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 Vector<ImageResource*> images; | 358 Vector<ImageResource*> images; |
| 359 appendImagesFromStyle(images, *newStyle); | 359 appendImagesFromStyle(images, *newStyle); |
| 360 if (images.isEmpty()) | 360 if (images.isEmpty()) |
| 361 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeRe
nderObject(this); | 361 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeRe
nderObject(this); |
| 362 else | 362 else |
| 363 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRende
rObject(this); | 363 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->addRende
rObject(this); |
| 364 } | 364 } |
| 365 | 365 |
| 366 void RenderBlock::repaintTreeAfterLayout(const RenderLayerModelObject& repaintCo
ntainer) | 366 void RenderBlock::repaintTreeAfterLayout(const RenderLayerModelObject& repaintCo
ntainer) |
| 367 { | 367 { |
| 368 if (!shouldCheckForInvalidationAfterLayout()) | 368 // Note, we don't want to early out here using shouldCheckForInvalidationAft
erLayout as |
| 369 return; | 369 // we have to make sure we go through any positioned objects as they won't b
e seen in |
| 370 // the normal tree walk. |
| 370 | 371 |
| 371 RenderBox::repaintTreeAfterLayout(repaintContainer); | 372 if (shouldCheckForInvalidationAfterLayout()) |
| 373 RenderBox::repaintTreeAfterLayout(repaintContainer); |
| 372 | 374 |
| 373 // Take care of positioned objects. This is required as LayoutState keeps a
single clip rect. | 375 // Take care of positioned objects. This is required as LayoutState keeps a
single clip rect. |
| 374 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects(
)) { | 376 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects(
)) { |
| 375 TrackedRendererListHashSet::iterator end = positionedObjects->end(); | 377 TrackedRendererListHashSet::iterator end = positionedObjects->end(); |
| 376 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l
ocationOffset()); | 378 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l
ocationOffset()); |
| 379 |
| 377 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin(
); it != end; ++it) { | 380 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin(
); it != end; ++it) { |
| 378 RenderBox* box = *it; | 381 RenderBox* box = *it; |
| 379 | |
| 380 // One of the renderers we're skipping over here may be the child's
repaint container, | 382 // One of the renderers we're skipping over here may be the child's
repaint container, |
| 381 // so we can't pass our own repaint container along. | 383 // so we can't pass our own repaint container along. |
| 382 const RenderLayerModelObject& repaintContainerForChild = *box->conta
inerForRepaint(); | 384 const RenderLayerModelObject& repaintContainerForChild = *box->conta
inerForRepaint(); |
| 383 | 385 |
| 384 // If the positioned renderer is absolutely positioned and it is ins
ide | 386 // If the positioned renderer is absolutely positioned and it is ins
ide |
| 385 // a relatively positioend inline element, we need to account for | 387 // a relatively positioend inline element, we need to account for |
| 386 // the inline elements position in LayoutState. | 388 // the inline elements position in LayoutState. |
| 387 if (box->style()->position() == AbsolutePosition) { | 389 if (box->style()->position() == AbsolutePosition) { |
| 388 RenderObject* container = box->container(&repaintContainerForChi
ld, 0); | 390 RenderObject* container = box->container(&repaintContainerForChi
ld, 0); |
| 389 if (container->isInFlowPositioned() && container->isRenderInline
()) { | 391 if (container->isInFlowPositioned() && container->isRenderInline
()) { |
| (...skipping 4627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5017 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5019 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
| 5018 { | 5020 { |
| 5019 showRenderObject(); | 5021 showRenderObject(); |
| 5020 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5022 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 5021 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5023 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 5022 } | 5024 } |
| 5023 | 5025 |
| 5024 #endif | 5026 #endif |
| 5025 | 5027 |
| 5026 } // namespace WebCore | 5028 } // namespace WebCore |
| OLD | NEW |