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

Side by Side Diff: Source/core/html/HTMLElement.h

Issue 22043003: [oilpan] Handlify childrenChanged. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void applyBorderAttributeToStyle(const AtomicString&, Handle<MutableStylePro pertySet>); 107 void applyBorderAttributeToStyle(const AtomicString&, Handle<MutableStylePro pertySet>);
108 108
109 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 109 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
110 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 110 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
111 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, Handle<MutableStylePropertySet>) OVERRIDE; 111 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, Handle<MutableStylePropertySet>) OVERRIDE;
112 unsigned parseBorderWidthAttribute(const AtomicString&) const; 112 unsigned parseBorderWidthAttribute(const AtomicString&) const;
113 113
114 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode >&) OVERRIDE; 114 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode >&) OVERRIDE;
115 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE; 115 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE;
116 116
117 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 117 virtual void childrenChanged(bool changedByParser = false, const Handle<Node >& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC ountDelta = 0);
118 void calculateAndAdjustDirectionality(); 118 void calculateAndAdjustDirectionality();
119 119
120 private: 120 private:
121 virtual String nodeName() const; 121 virtual String nodeName() const;
122 122
123 void mapLanguageAttributeToLocale(const AtomicString&, Handle<MutableStylePr opertySet>); 123 void mapLanguageAttributeToLocale(const AtomicString&, Handle<MutableStylePr opertySet>);
124 124
125 virtual Result<HTMLFormElement> virtualForm() const; 125 virtual Result<HTMLFormElement> virtualForm() const;
126 126
127 Node* insertAdjacent(const String& where, Node* newChild, ExceptionCode&); 127 Node* insertAdjacent(const String& where, Node* newChild, ExceptionCode&);
128 Result<DocumentFragment> textToFragment(const String&, ExceptionCode&); 128 Result<DocumentFragment> textToFragment(const String&, ExceptionCode&);
129 129
130 void dirAttributeChanged(const AtomicString&); 130 void dirAttributeChanged(const AtomicString&);
131 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); 131 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child);
132 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; 132 TextDirection directionality(Handle<Node>* strongDirectionalityTextNode= 0) const;
133 133
134 TranslateAttributeMode translateAttributeMode() const; 134 TranslateAttributeMode translateAttributeMode() const;
135 135
136 AtomicString eventNameForAttributeName(const QualifiedName& attrName) const; 136 AtomicString eventNameForAttributeName(const QualifiedName& attrName) const;
137 }; 137 };
138 138
139 inline Result<HTMLElement> toHTMLElement(Node* node) 139 inline Result<HTMLElement> toHTMLElement(Node* node)
140 { 140 {
141 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isHTMLElement()); 141 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isHTMLElement());
142 return adoptRawResult(static_cast<HTMLElement*>(node)); 142 return adoptRawResult(static_cast<HTMLElement*>(node));
(...skipping 16 matching lines...) Expand all
159 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Handle<Document> d ocument, ConstructionType type = CreateHTMLElement) 159 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Handle<Document> d ocument, ConstructionType type = CreateHTMLElement)
160 : StyledElement(tagName, document, type) 160 : StyledElement(tagName, document, type)
161 { 161 {
162 ASSERT(tagName.localName().impl()); 162 ASSERT(tagName.localName().impl());
163 ScriptWrappable::init(this); 163 ScriptWrappable::init(this);
164 } 164 }
165 165
166 } // namespace WebCore 166 } // namespace WebCore
167 167
168 #endif // HTMLElement_h 168 #endif // HTMLElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698