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

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

Issue 135273010: Enable HTMLImageElement to avoid immediate src loading when parsed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 void setPrefix(const AtomicString&, ExceptionState&); 529 void setPrefix(const AtomicString&, ExceptionState&);
530 530
531 void synchronizeAttribute(const AtomicString& localName) const; 531 void synchronizeAttribute(const AtomicString& localName) const;
532 532
533 MutableStylePropertySet* ensureMutableInlineStyle(); 533 MutableStylePropertySet* ensureMutableInlineStyle();
534 void clearMutableInlineStyleIfEmpty(); 534 void clearMutableInlineStyleIfEmpty();
535 535
536 protected: 536 protected:
537 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype) 537 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype)
538 : ContainerNode(document, type) 538 : ContainerNode(document, type)
539 , m_parserSet(false)
539 , m_tagName(tagName) 540 , m_tagName(tagName)
540 { 541 {
541 ScriptWrappable::init(this); 542 ScriptWrappable::init(this);
542 } 543 }
543 544
544 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 545 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
545 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitTypes); 546 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitTypes);
546 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
547 548
548 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 549 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
(...skipping 21 matching lines...) Expand all
570 HTMLCollection* cachedHTMLCollection(CollectionType); 571 HTMLCollection* cachedHTMLCollection(CollectionType);
571 572
572 // classAttributeChanged() exists to share code between 573 // classAttributeChanged() exists to share code between
573 // parseAttribute (called via setAttribute()) and 574 // parseAttribute (called via setAttribute()) and
574 // svgAttributeChanged (called when element.className.baseValue is set) 575 // svgAttributeChanged (called when element.className.baseValue is set)
575 void classAttributeChanged(const AtomicString& newClassString); 576 void classAttributeChanged(const AtomicString& newClassString);
576 577
577 PassRefPtr<RenderStyle> originalStyleForRenderer(); 578 PassRefPtr<RenderStyle> originalStyleForRenderer();
578 579
579 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); 580 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
581 bool m_parserSet;
580 582
581 private: 583 private:
582 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 584 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
583 585
584 void updatePresentationAttributeStyle(); 586 void updatePresentationAttributeStyle();
585 587
586 void inlineStyleChanged(); 588 void inlineStyleChanged();
587 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 589 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
588 void setInlineStyleFromString(const AtomicString&); 590 void setInlineStyleFromString(const AtomicString&);
589 591
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 } 893 }
892 894
893 inline bool isShadowHost(const Element* element) 895 inline bool isShadowHost(const Element* element)
894 { 896 {
895 return element && element->shadow(); 897 return element && element->shadow();
896 } 898 }
897 899
898 } // namespace 900 } // namespace
899 901
900 #endif 902 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698