| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 if (!adjustedBackgroundClipRect.contains(adjustedLayoutBounds)) | 361 if (!adjustedBackgroundClipRect.contains(adjustedLayoutBounds)) |
| 362 ts << " backgroundClip " << adjustedBackgroundClipRect; | 362 ts << " backgroundClip " << adjustedBackgroundClipRect; |
| 363 if (!adjustedClipRect.contains(adjustedLayoutBounds)) | 363 if (!adjustedClipRect.contains(adjustedLayoutBounds)) |
| 364 ts << " clip " << adjustedClipRect; | 364 ts << " clip " << adjustedClipRect; |
| 365 if (!adjustedOutlineClipRect.contains(adjustedLayoutBounds)) | 365 if (!adjustedOutlineClipRect.contains(adjustedLayoutBounds)) |
| 366 ts << " outlineClip " << adjustedOutlineClipRect; | 366 ts << " outlineClip " << adjustedOutlineClipRect; |
| 367 } | 367 } |
| 368 if (l.isTransparent()) | 368 if (l.isTransparent()) |
| 369 ts << " transparent"; | 369 ts << " transparent"; |
| 370 | 370 |
| 371 if (l.renderer()->hasOverflowClip()) { | |
| 372 if (l.scrollableArea()->scrollXOffset()) | |
| 373 ts << " scrollX " << l.scrollableArea()->scrollXOffset(); | |
| 374 if (l.scrollableArea()->scrollYOffset()) | |
| 375 ts << " scrollY " << l.scrollableArea()->scrollYOffset(); | |
| 376 if (l.renderBox() && l.renderBox()->pixelSnappedClientWidth() != l.rende
rBox()->pixelSnappedScrollWidth()) | |
| 377 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth(); | |
| 378 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend
erBox()->pixelSnappedScrollHeight()) | |
| 379 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight(); | |
| 380 } | |
| 381 | |
| 382 if (paintPhase == LayerPaintPhaseBackground) | 371 if (paintPhase == LayerPaintPhaseBackground) |
| 383 ts << " layerType: background only"; | 372 ts << " layerType: background only"; |
| 384 else if (paintPhase == LayerPaintPhaseForeground) | 373 else if (paintPhase == LayerPaintPhaseForeground) |
| 385 ts << " layerType: foreground only"; | 374 ts << " layerType: foreground only"; |
| 386 | 375 |
| 387 ts << "\n"; | 376 ts << "\n"; |
| 388 | 377 |
| 389 if (paintPhase != LayerPaintPhaseBackground) | 378 if (paintPhase != LayerPaintPhaseBackground) |
| 390 write(ts, *l.renderer(), indent + 1, behavior); | 379 write(ts, *l.renderer(), indent + 1, behavior); |
| 391 } | 380 } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 element->document().updateLayout(); | 511 element->document().updateLayout(); |
| 523 | 512 |
| 524 RenderObject* renderer = element->renderer(); | 513 RenderObject* renderer = element->renderer(); |
| 525 if (!renderer || !renderer->isBox()) | 514 if (!renderer || !renderer->isBox()) |
| 526 return String(); | 515 return String(); |
| 527 | 516 |
| 528 return externalRepresentation(toRenderBox(renderer), behavior | RenderAsText
ShowAllLayers); | 517 return externalRepresentation(toRenderBox(renderer), behavior | RenderAsText
ShowAllLayers); |
| 529 } | 518 } |
| 530 | 519 |
| 531 } // namespace blink | 520 } // namespace blink |
| OLD | NEW |