Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/core/rendering/RenderTreeAsText.cpp

Issue 357603003: Add functions searching a word boundary without VisualPosition to HTMLTextFormControlElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nits Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« Source/core/rendering/RenderTreeAsText.h ('K') | « Source/core/rendering/RenderTreeAsText.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698