| 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 | 1159 |
| 1160 LayoutPoint adjustedPaintOffset = paintOffset + location(); | 1160 LayoutPoint adjustedPaintOffset = paintOffset + location(); |
| 1161 | 1161 |
| 1162 PaintPhase phase = paintInfo.phase; | 1162 PaintPhase phase = paintInfo.phase; |
| 1163 | 1163 |
| 1164 LayoutRect overflowBox; | 1164 LayoutRect overflowBox; |
| 1165 // Check if we need to do anything at all. | 1165 // Check if we need to do anything at all. |
| 1166 // FIXME: Could eliminate the isDocumentElement() check if we fix background
painting so that the RenderView | 1166 // FIXME: Could eliminate the isDocumentElement() check if we fix background
painting so that the RenderView |
| 1167 // paints the root's background. | 1167 // paints the root's background. |
| 1168 if (!isDocumentElement()) { | 1168 if (!isDocumentElement()) { |
| 1169 overflowBox = overflowRectForPaintRejection(); | 1169 overflowBox = visualOverflowRect(); |
| 1170 overflowBox.moveBy(adjustedPaintOffset); | 1170 overflowBox.moveBy(adjustedPaintOffset); |
| 1171 if (!overflowBox.intersects(paintInfo.rect)) | 1171 if (!overflowBox.intersects(paintInfo.rect)) |
| 1172 return; | 1172 return; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 // There are some cases where not all clipped visual overflow is accounted f
or. | 1175 // There are some cases where not all clipped visual overflow is accounted f
or. |
| 1176 // FIXME: reduce the number of such cases. | 1176 // FIXME: reduce the number of such cases. |
| 1177 ContentsClipBehavior contentsClipBehavior = ForceContentsClip; | 1177 ContentsClipBehavior contentsClipBehavior = ForceContentsClip; |
| 1178 if (hasOverflowClip() && !hasControlClip() && !(shouldPaintSelectionGaps() &
& phase == PaintPhaseForeground) && !hasCaret()) | 1178 if (hasOverflowClip() && !hasControlClip() && !(shouldPaintSelectionGaps() &
& phase == PaintPhaseForeground) && !hasCaret()) |
| 1179 contentsClipBehavior = SkipContentsClipIfPossible; | 1179 contentsClipBehavior = SkipContentsClipIfPossible; |
| (...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 2943 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
| 2944 { | 2944 { |
| 2945 showRenderObject(); | 2945 showRenderObject(); |
| 2946 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 2946 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 2947 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 2947 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 2948 } | 2948 } |
| 2949 | 2949 |
| 2950 #endif | 2950 #endif |
| 2951 | 2951 |
| 2952 } // namespace blink | 2952 } // namespace blink |
| OLD | NEW |