summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/dom/Text.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/Text.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/dom/Text.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/Text.h b/chromium/third_party/WebKit/Source/core/dom/Text.h
index 79540c0b399..fc387d2d75c 100644
--- a/chromium/third_party/WebKit/Source/core/dom/Text.h
+++ b/chromium/third_party/WebKit/Source/core/dom/Text.h
@@ -35,21 +35,21 @@ class Text : public CharacterData {
public:
static const unsigned defaultLengthLimit = 1 << 16;
- static PassRefPtr<Text> create(Document&, const String&);
- static PassRefPtr<Text> createEditingText(Document&, const String&);
+ static PassRefPtrWillBeRawPtr<Text> create(Document&, const String&);
+ static PassRefPtrWillBeRawPtr<Text> createEditingText(Document&, const String&);
// mergeNextSiblingNodesIfPossible() merges next sibling nodes if possible
// then returns a node not merged.
- PassRefPtr<Node> mergeNextSiblingNodesIfPossible();
- PassRefPtr<Text> splitText(unsigned offset, ExceptionState&);
+ PassRefPtrWillBeRawPtr<Node> mergeNextSiblingNodesIfPossible();
+ PassRefPtrWillBeRawPtr<Text> splitText(unsigned offset, ExceptionState&);
// DOM Level 3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1312295772
String wholeText() const;
- PassRefPtr<Text> replaceWholeText(const String&);
+ PassRefPtrWillBeRawPtr<Text> replaceWholeText(const String&);
void recalcTextStyle(StyleRecalcChange, Text* nextTextSibling);
- bool textRendererIsNeeded(const NodeRenderingContext&);
+ bool textRendererIsNeeded(const RenderStyle&, const RenderObject& parent);
RenderText* createTextRenderer(RenderStyle*);
void updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfReplacedData, RecalcStyleBehavior = DoNotRecalcStyle);
@@ -67,15 +67,14 @@ protected:
private:
virtual String nodeName() const OVERRIDE;
- virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE FINAL;
- virtual bool childTypeAllowed(NodeType) const OVERRIDE;
+ virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) OVERRIDE FINAL;
bool needsWhitespaceRenderer();
- virtual PassRefPtr<Text> cloneWithData(const String&);
+ virtual PassRefPtrWillBeRawPtr<Text> cloneWithData(const String&);
#ifndef NDEBUG
- virtual void formatForDebugger(char* buffer, unsigned length) const;
+ virtual void formatForDebugger(char* buffer, unsigned length) const OVERRIDE;
#endif
};