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

Side by Side Diff: Source/core/dom/Text.h

Issue 103763002: Do not make a subclass of Text only to disable selection. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove #include RenderTextFragment.h Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/html.css ('k') | Source/core/html/forms/BaseButtonInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 PassRefPtr<Node> mergeNextSiblingNodesIfPossible(); 43 PassRefPtr<Node> mergeNextSiblingNodesIfPossible();
44 PassRefPtr<Text> splitText(unsigned offset, ExceptionState&); 44 PassRefPtr<Text> splitText(unsigned offset, ExceptionState&);
45 45
46 // DOM Level 3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-131229577 2 46 // DOM Level 3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-131229577 2
47 47
48 String wholeText() const; 48 String wholeText() const;
49 PassRefPtr<Text> replaceWholeText(const String&); 49 PassRefPtr<Text> replaceWholeText(const String&);
50 50
51 void recalcTextStyle(StyleRecalcChange, Text* nextTextSibling); 51 void recalcTextStyle(StyleRecalcChange, Text* nextTextSibling);
52 bool textRendererIsNeeded(const NodeRenderingContext&); 52 bool textRendererIsNeeded(const NodeRenderingContext&);
53 virtual RenderText* createTextRenderer(RenderStyle*); 53 RenderText* createTextRenderer(RenderStyle*);
54 void updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRepl acedData, RecalcStyleBehavior = DoNotRecalcStyle); 54 void updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRepl acedData, RecalcStyleBehavior = DoNotRecalcStyle);
55 55
56 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; 56 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL;
57 57
58 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return true; } 58 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return true; }
59 virtual NodeType nodeType() const OVERRIDE; 59 virtual NodeType nodeType() const OVERRIDE;
60 60
61 protected: 61 protected:
62 Text(TreeScope& treeScope, const String& data, ConstructionType type) 62 Text(TreeScope& treeScope, const String& data, ConstructionType type)
63 : CharacterData(treeScope, data, type) 63 : CharacterData(treeScope, data, type)
(...skipping 13 matching lines...) Expand all
77 #ifndef NDEBUG 77 #ifndef NDEBUG
78 virtual void formatForDebugger(char* buffer, unsigned length) const; 78 virtual void formatForDebugger(char* buffer, unsigned length) const;
79 #endif 79 #endif
80 }; 80 };
81 81
82 DEFINE_NODE_TYPE_CASTS(Text, isTextNode()); 82 DEFINE_NODE_TYPE_CASTS(Text, isTextNode());
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // Text_h 86 #endif // Text_h
OLDNEW
« no previous file with comments | « Source/core/css/html.css ('k') | Source/core/html/forms/BaseButtonInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698