| OLD | NEW | 
|---|
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 47     // DOM Level 3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-131229577
    2 | 47     // DOM Level 3: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-131229577
    2 | 
| 48 | 48 | 
| 49     String wholeText() const; | 49     String wholeText() const; | 
| 50     PassRefPtr<Text> replaceWholeText(const String&); | 50     PassRefPtr<Text> replaceWholeText(const String&); | 
| 51 | 51 | 
| 52     bool recalcTextStyle(StyleRecalcChange); | 52     bool recalcTextStyle(StyleRecalcChange); | 
| 53     bool textRendererIsNeeded(const NodeRenderingContext&); | 53     bool textRendererIsNeeded(const NodeRenderingContext&); | 
| 54     virtual RenderText* createTextRenderer(RenderStyle*); | 54     virtual RenderText* createTextRenderer(RenderStyle*); | 
| 55     void updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRepl
    acedData, RecalcStyleBehavior = DoNotRecalcStyle); | 55     void updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRepl
    acedData, RecalcStyleBehavior = DoNotRecalcStyle); | 
| 56 | 56 | 
| 57     virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; | 57     virtual void createRenderTree(const AttachContext& = AttachContext()) OVERRI
    DE FINAL; | 
| 58 | 58 | 
| 59     virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return true; } | 59     virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return true; } | 
| 60     virtual NodeType nodeType() const OVERRIDE; | 60     virtual NodeType nodeType() const OVERRIDE; | 
| 61 | 61 | 
| 62 protected: | 62 protected: | 
| 63     Text(TreeScope& treeScope, const String& data, ConstructionType type) | 63     Text(TreeScope& treeScope, const String& data, ConstructionType type) | 
| 64         : CharacterData(treeScope, data, type) | 64         : CharacterData(treeScope, data, type) | 
| 65     { | 65     { | 
| 66         ScriptWrappable::init(this); | 66         ScriptWrappable::init(this); | 
| 67     } | 67     } | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 88 | 88 | 
| 89 inline const Text* toText(const Node* node) | 89 inline const Text* toText(const Node* node) | 
| 90 { | 90 { | 
| 91     ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isTextNode()); | 91     ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isTextNode()); | 
| 92     return static_cast<const Text*>(node); | 92     return static_cast<const Text*>(node); | 
| 93 } | 93 } | 
| 94 | 94 | 
| 95 } // namespace WebCore | 95 } // namespace WebCore | 
| 96 | 96 | 
| 97 #endif // Text_h | 97 #endif // Text_h | 
| OLD | NEW | 
|---|