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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 if (behavior & RenderAsTextShowLayerNesting) { | 629 if (behavior & RenderAsTextShowLayerNesting) { |
630 writeIndent(ts, indent); | 630 writeIndent(ts, indent); |
631 ts << " positive z-order list(" << posList->size() << ")\n"; | 631 ts << " positive z-order list(" << posList->size() << ")\n"; |
632 ++currIndent; | 632 ++currIndent; |
633 } | 633 } |
634 for (unsigned i = 0; i != posList->size(); ++i) | 634 for (unsigned i = 0; i != posList->size(); ++i) |
635 writeLayers(ts, rootLayer, posList->at(i)->layer(), paintDirtyRect,
currIndent, behavior); | 635 writeLayers(ts, rootLayer, posList->at(i)->layer(), paintDirtyRect,
currIndent, behavior); |
636 } | 636 } |
637 } | 637 } |
638 | 638 |
639 static String nodePosition(Node* node) | 639 String nodePosition(Node* node) |
640 { | 640 { |
641 StringBuilder result; | 641 StringBuilder result; |
642 | 642 |
643 Element* body = node->document().body(); | 643 Element* body = node->document().body(); |
644 Node* parent; | 644 Node* parent; |
645 for (Node* n = node; n; n = parent) { | 645 for (Node* n = node; n; n = parent) { |
646 parent = n->parentOrShadowHostNode(); | 646 parent = n->parentOrShadowHostNode(); |
647 if (n != node) | 647 if (n != node) |
648 result.appendLiteral(" of "); | 648 result.appendLiteral(" of "); |
649 if (parent) { | 649 if (parent) { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 element->document().updateLayout(); | 769 element->document().updateLayout(); |
770 | 770 |
771 RenderObject* renderer = element->renderer(); | 771 RenderObject* renderer = element->renderer(); |
772 if (!renderer || !renderer->isListItem()) | 772 if (!renderer || !renderer->isListItem()) |
773 return String(); | 773 return String(); |
774 | 774 |
775 return toRenderListItem(renderer)->markerText(); | 775 return toRenderListItem(renderer)->markerText(); |
776 } | 776 } |
777 | 777 |
778 } // namespace WebCore | 778 } // namespace WebCore |
OLD | NEW |