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

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

Issue 107233005: Revert 164094 "This review merges the two existing page serializ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 360
361 void setRegionOversetState(RegionOversetState); 361 void setRegionOversetState(RegionOversetState);
362 RegionOversetState regionOversetState() const; 362 RegionOversetState regionOversetState() const;
363 363
364 AtomicString computeInheritedLanguage() const; 364 AtomicString computeInheritedLanguage() const;
365 Locale& locale() const; 365 Locale& locale() const;
366 366
367 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } 367 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { }
368 368
369 virtual bool isURLAttribute(const Attribute&) const { return false; } 369 virtual bool isURLAttribute(const Attribute&) const { return false; }
370 bool isJavaScriptURLAttribute(const Attribute&) const;
371 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; } 370 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; }
372 371
373 KURL getURLAttribute(const QualifiedName&) const; 372 KURL getURLAttribute(const QualifiedName&) const;
374 KURL getNonEmptyURLAttribute(const QualifiedName&) const; 373 KURL getNonEmptyURLAttribute(const QualifiedName&) const;
375 374
376 virtual const AtomicString imageSourceURL() const; 375 virtual const AtomicString imageSourceURL() const;
377 virtual String target() const { return String(); } 376 virtual String target() const { return String(); }
378 virtual Image* imageContents() { return 0; } 377 virtual Image* imageContents() { return 0; }
379 378
380 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone); 379 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone);
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 670
672 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); 671 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
673 672
674 ElementRareData* elementRareData() const; 673 ElementRareData* elementRareData() const;
675 ElementRareData& ensureElementRareData(); 674 ElementRareData& ensureElementRareData();
676 675
677 void detachAllAttrNodesFromElement(); 676 void detachAllAttrNodesFromElement();
678 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); 677 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
679 void detachAttrNodeAtIndex(Attr*, size_t index); 678 void detachAttrNodeAtIndex(Attr*, size_t index);
680 679
680 bool isJavaScriptURLAttribute(const Attribute&) const;
681
681 RefPtr<ElementData> m_elementData; 682 RefPtr<ElementData> m_elementData;
682 }; 683 };
683 684
684 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); 685 DEFINE_NODE_TYPE_CASTS(Element, isElementNode());
685 686
686 inline bool isDisabledFormControl(const Node* node) 687 inline bool isDisabledFormControl(const Node* node)
687 { 688 {
688 return node->isElementNode() && toElement(node)->isDisabledFormControl(); 689 return node->isElementNode() && toElement(node)->isDisabledFormControl();
689 } 690 }
690 691
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } 891 }
891 892
892 inline bool isShadowHost(const Element* element) 893 inline bool isShadowHost(const Element* element)
893 { 894 {
894 return element && element->shadow(); 895 return element && element->shadow();
895 } 896 }
896 897
897 } // namespace 898 } // namespace
898 899
899 #endif 900 #endif
OLDNEW
« no previous file with comments | « no previous file | trunk/Source/core/editing/MarkupAccumulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698