| 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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 // with empty rects. Use LayoutRect::contains in that case. | 1313 // with empty rects. Use LayoutRect::contains in that case. |
| 1314 bool isVisible; | 1314 bool isVisible; |
| 1315 if (!objectBounds.isEmpty()) | 1315 if (!objectBounds.isEmpty()) |
| 1316 isVisible = viewBounds.intersects(objectBounds); | 1316 isVisible = viewBounds.intersects(objectBounds); |
| 1317 else | 1317 else |
| 1318 isVisible = viewBounds.contains(objectBounds); | 1318 isVisible = viewBounds.contains(objectBounds); |
| 1319 | 1319 |
| 1320 ResourceLoadPriorityOptimizer::VisibilityStatus status = isVisible ? | 1320 ResourceLoadPriorityOptimizer::VisibilityStatus status = isVisible ? |
| 1321 ResourceLoadPriorityOptimizer::Visible : ResourceLoadPriorityOptimizer::
NotVisible; | 1321 ResourceLoadPriorityOptimizer::Visible : ResourceLoadPriorityOptimizer::
NotVisible; |
| 1322 | 1322 |
| 1323 LayoutRect screenArea; |
| 1324 if (!objectBounds.isEmpty()) { |
| 1325 screenArea = viewBounds; |
| 1326 screenArea.intersect(objectBounds); |
| 1327 } |
| 1328 |
| 1323 for (Vector<ImageResource*>::iterator it = images.begin(), end = images.end(
); it != end; ++it) | 1329 for (Vector<ImageResource*>::iterator it = images.begin(), end = images.end(
); it != end; ++it) |
| 1324 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->notifyIm
ageResourceVisibility(*it, status); | 1330 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->notifyIm
ageResourceVisibility(*it, status, screenArea); |
| 1325 | 1331 |
| 1326 return true; | 1332 return true; |
| 1327 } | 1333 } |
| 1328 | 1334 |
| 1329 void RenderBlock::relayoutShapeDescendantIfMoved(RenderBlock* child, LayoutSize
offset) | 1335 void RenderBlock::relayoutShapeDescendantIfMoved(RenderBlock* child, LayoutSize
offset) |
| 1330 { | 1336 { |
| 1331 LayoutUnit left = isHorizontalWritingMode() ? offset.width() : offset.height
(); | 1337 LayoutUnit left = isHorizontalWritingMode() ? offset.width() : offset.height
(); |
| 1332 if (!left || !child || child->shapeInsideInfo() || !layoutShapeInsideInfo()) | 1338 if (!left || !child || child->shapeInsideInfo() || !layoutShapeInsideInfo()) |
| 1333 return; | 1339 return; |
| 1334 // Propagate layout markers only up to the child, as we are still in the mid
dle | 1340 // Propagate layout markers only up to the child, as we are still in the mid
dle |
| (...skipping 3690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5025 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5031 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
| 5026 { | 5032 { |
| 5027 showRenderObject(); | 5033 showRenderObject(); |
| 5028 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5034 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 5029 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5035 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 5030 } | 5036 } |
| 5031 | 5037 |
| 5032 #endif | 5038 #endif |
| 5033 | 5039 |
| 5034 } // namespace WebCore | 5040 } // namespace WebCore |
| OLD | NEW |