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

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

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) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 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 19 matching lines...) Expand all
30 #include "wtf/Forward.h" 30 #include "wtf/Forward.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class Element; 34 class Element;
35 class LocalFrame; 35 class LocalFrame;
36 class LayoutRect; 36 class LayoutRect;
37 class RenderLayer; 37 class RenderLayer;
38 class RenderObject; 38 class RenderObject;
39 class TextStream; 39 class TextStream;
40 class Node;
Yuta Kitamura 2014/07/03 08:39:27 nit: Please arrange the forward declarations in th
yoichio 2014/07/04 01:29:44 Done.
40 41
41 enum RenderAsTextBehaviorFlags { 42 enum RenderAsTextBehaviorFlags {
42 RenderAsTextBehaviorNormal = 0, 43 RenderAsTextBehaviorNormal = 0,
43 RenderAsTextShowAllLayers = 1 << 0, // Dump all layers, not just those that would paint. 44 RenderAsTextShowAllLayers = 1 << 0, // Dump all layers, not just those that would paint.
44 RenderAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists. 45 RenderAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists.
45 RenderAsTextShowCompositedLayers = 1 << 2, // Show which layers are composit ed. 46 RenderAsTextShowCompositedLayers = 1 << 2, // Show which layers are composit ed.
46 RenderAsTextShowAddresses = 1 << 3, // Show layer and renderer addresses. 47 RenderAsTextShowAddresses = 1 << 3, // Show layer and renderer addresses.
47 RenderAsTextShowIDAndClass = 1 << 4, // Show id and class attributes 48 RenderAsTextShowIDAndClass = 1 << 4, // Show id and class attributes
48 RenderAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode. 49 RenderAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode.
49 RenderAsTextDontUpdateLayout = 1 << 6, // Don't update layout, to make it sa fe to call showLayerTree() from the debugger inside layout or painting code. 50 RenderAsTextDontUpdateLayout = 1 << 6, // Don't update layout, to make it sa fe to call showLayerTree() from the debugger inside layout or painting code.
(...skipping 15 matching lines...) Expand all
65 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render AsTextBehaviorNormal); 66 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render AsTextBehaviorNormal);
66 }; 67 };
67 68
68 // Helper function shared with SVGRenderTreeAsText 69 // Helper function shared with SVGRenderTreeAsText
69 String quoteAndEscapeNonPrintables(const String&); 70 String quoteAndEscapeNonPrintables(const String&);
70 71
71 String counterValueForElement(Element*); 72 String counterValueForElement(Element*);
72 73
73 String markerTextForListItem(Element*); 74 String markerTextForListItem(Element*);
74 75
76 String nodePosition(Node*);
Yuta Kitamura 2014/07/03 08:39:27 Generally speaking, it is a bad idea to define a f
yoichio 2014/07/04 01:29:44 Done.
77
75 } // namespace WebCore 78 } // namespace WebCore
76 79
77 #endif // RenderTreeAsText_h 80 #endif // RenderTreeAsText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698