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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1898403002: [WIP] Implement :dir() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase... other changes too probably Created 4 years, 7 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) 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 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); 564 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3);
565 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri ng& newValue); 565 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri ng& newValue);
566 566
567 DECLARE_VIRTUAL_TRACE(); 567 DECLARE_VIRTUAL_TRACE();
568 568
569 SpellcheckAttributeState spellcheckAttributeState() const; 569 SpellcheckAttributeState spellcheckAttributeState() const;
570 570
571 NodeIntersectionObserverData* intersectionObserverData() const; 571 NodeIntersectionObserverData* intersectionObserverData() const;
572 NodeIntersectionObserverData& ensureIntersectionObserverData(); 572 NodeIntersectionObserverData& ensureIntersectionObserverData();
573 573
574 TextDirection directionality() const;
575
574 protected: 576 protected:
575 Element(const QualifiedName& tagName, Document*, ConstructionType); 577 Element(const QualifiedName& tagName, Document*, ConstructionType);
576 578
577 const ElementData* elementData() const { return m_elementData.get(); } 579 const ElementData* elementData() const { return m_elementData.get(); }
578 UniqueElementData& ensureUniqueElementData(); 580 UniqueElementData& ensureUniqueElementData();
579 581
580 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 582 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
581 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); 583 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType);
582 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 584 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
583 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValue*); 585 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValue*);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 static T* create(const QualifiedName&, Document&) 963 static T* create(const QualifiedName&, Document&)
962 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 964 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
963 T* T::create(const QualifiedName& tagName, Document& document) \ 965 T* T::create(const QualifiedName& tagName, Document& document) \
964 { \ 966 { \
965 return new T(tagName, document); \ 967 return new T(tagName, document); \
966 } 968 }
967 969
968 } // namespace blink 970 } // namespace blink
969 971
970 #endif // Element_h 972 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698