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

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

Issue 68613003: Merges the two different page serializers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove newline after XML decl 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
« no previous file with comments | « no previous file | Source/core/editing/MarkupAccumulator.h » ('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 * (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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 void setRegionOversetState(RegionOversetState); 359 void setRegionOversetState(RegionOversetState);
360 RegionOversetState regionOversetState() const; 360 RegionOversetState regionOversetState() const;
361 361
362 AtomicString computeInheritedLanguage() const; 362 AtomicString computeInheritedLanguage() const;
363 Locale& locale() const; 363 Locale& locale() const;
364 364
365 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } 365 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { }
366 366
367 virtual bool isURLAttribute(const Attribute&) const { return false; } 367 virtual bool isURLAttribute(const Attribute&) const { return false; }
368 bool isJavaScriptURLAttribute(const Attribute&) const;
368 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; } 369 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; }
369 370
370 KURL getURLAttribute(const QualifiedName&) const; 371 KURL getURLAttribute(const QualifiedName&) const;
371 KURL getNonEmptyURLAttribute(const QualifiedName&) const; 372 KURL getNonEmptyURLAttribute(const QualifiedName&) const;
372 373
373 virtual const AtomicString imageSourceURL() const; 374 virtual const AtomicString imageSourceURL() const;
374 virtual String target() const { return String(); } 375 virtual String target() const { return String(); }
375 virtual Image* imageContents() { return 0; } 376 virtual Image* imageContents() { return 0; }
376 377
377 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone); 378 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone);
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 668
668 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); 669 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
669 670
670 ElementRareData* elementRareData() const; 671 ElementRareData* elementRareData() const;
671 ElementRareData& ensureElementRareData(); 672 ElementRareData& ensureElementRareData();
672 673
673 void detachAllAttrNodesFromElement(); 674 void detachAllAttrNodesFromElement();
674 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); 675 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
675 void detachAttrNodeAtIndex(Attr*, size_t index); 676 void detachAttrNodeAtIndex(Attr*, size_t index);
676 677
677 bool isJavaScriptURLAttribute(const Attribute&) const;
678
679 RefPtr<ElementData> m_elementData; 678 RefPtr<ElementData> m_elementData;
680 }; 679 };
681 680
682 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); 681 DEFINE_NODE_TYPE_CASTS(Element, isElementNode());
683 682
684 inline bool isDisabledFormControl(const Node* node) 683 inline bool isDisabledFormControl(const Node* node)
685 { 684 {
686 return node->isElementNode() && toElement(node)->isDisabledFormControl(); 685 return node->isElementNode() && toElement(node)->isDisabledFormControl();
687 } 686 }
688 687
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 } 887 }
889 888
890 inline bool isShadowHost(const Element* element) 889 inline bool isShadowHost(const Element* element)
891 { 890 {
892 return element && element->shadow(); 891 return element && element->shadow();
893 } 892 }
894 893
895 } // namespace 894 } // namespace
896 895
897 #endif 896 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/MarkupAccumulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698