| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 ts << " clip " << clipRect; | 426 ts << " clip " << clipRect; |
| 427 if (!outlineClipRect.contains(layerBounds)) | 427 if (!outlineClipRect.contains(layerBounds)) |
| 428 ts << " outlineClip " << outlineClipRect; | 428 ts << " outlineClip " << outlineClipRect; |
| 429 } | 429 } |
| 430 | 430 |
| 431 if (l.renderer()->hasOverflowClip()) { | 431 if (l.renderer()->hasOverflowClip()) { |
| 432 if (l.scrollXOffset()) | 432 if (l.scrollXOffset()) |
| 433 ts << " scrollX " << l.scrollXOffset(); | 433 ts << " scrollX " << l.scrollXOffset(); |
| 434 if (l.scrollYOffset()) | 434 if (l.scrollYOffset()) |
| 435 ts << " scrollY " << l.scrollYOffset(); | 435 ts << " scrollY " << l.scrollYOffset(); |
| 436 if (l.renderer()->clientWidth() != l.scrollWidth()) | 436 if (l.renderBox() && l.renderBox()->clientWidth() != l.scrollWidth()) |
| 437 ts << " scrollWidth " << l.scrollWidth(); | 437 ts << " scrollWidth " << l.scrollWidth(); |
| 438 if (l.renderer()->clientHeight() != l.scrollHeight()) | 438 if (l.renderBox() && l.renderBox()->clientHeight() != l.scrollHeight()) |
| 439 ts << " scrollHeight " << l.scrollHeight(); | 439 ts << " scrollHeight " << l.scrollHeight(); |
| 440 } | 440 } |
| 441 | 441 |
| 442 if (layerType == -1) | 442 if (layerType == -1) |
| 443 ts << " layerType: background only"; | 443 ts << " layerType: background only"; |
| 444 else if (layerType == 1) | 444 else if (layerType == 1) |
| 445 ts << " layerType: foreground only"; | 445 ts << " layerType: foreground only"; |
| 446 | 446 |
| 447 ts << "\n"; | 447 ts << "\n"; |
| 448 | 448 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 o->view()->frameView()->layout(); | 542 o->view()->frameView()->layout(); |
| 543 if (o->hasLayer()) { | 543 if (o->hasLayer()) { |
| 544 RenderLayer* l = toRenderBox(o)->layer(); | 544 RenderLayer* l = toRenderBox(o)->layer(); |
| 545 writeLayers(ts, l, l, IntRect(l->xPos(), l->yPos(), l->width(), l->heigh
t())); | 545 writeLayers(ts, l, l, IntRect(l->xPos(), l->yPos(), l->width(), l->heigh
t())); |
| 546 writeSelection(ts, o); | 546 writeSelection(ts, o); |
| 547 } | 547 } |
| 548 return ts.release(); | 548 return ts.release(); |
| 549 } | 549 } |
| 550 | 550 |
| 551 } // namespace WebCore | 551 } // namespace WebCore |
| OLD | NEW |