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

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

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 bool hasAnimations() const; 524 bool hasAnimations() const;
525 525
526 void synchronizeAttribute(const AtomicString& localName) const; 526 void synchronizeAttribute(const AtomicString& localName) const;
527 527
528 MutableStylePropertySet& ensureMutableInlineStyle(); 528 MutableStylePropertySet& ensureMutableInlineStyle();
529 void clearMutableInlineStyleIfEmpty(); 529 void clearMutableInlineStyleIfEmpty();
530 530
531 void setTabIndex(int); 531 void setTabIndex(int);
532 short tabIndex() const override; 532 short tabIndex() const override;
533 533
534 void incrementProxyCount(); 534 // A compositor proxy is a very limited wrapper around an element. It
535 void decrementProxyCount(); 535 // exposes only those properties that are requested at the time the proxy is
536 // created. In order to know which properties are actually proxied, we
537 // maintain a count of the number of compositor proxies associated with each
538 // property.
539 bool hasCompositorProxy() const;
540 void incrementProxiedPropertyCounts(uint32_t mutableProperties);
541 void decrementProxiedPropertyCounts(uint32_t mutableProperties);
542 uint32_t compositorMutableProperties() const;
536 543
537 DECLARE_VIRTUAL_TRACE(); 544 DECLARE_VIRTUAL_TRACE();
538 545
539 SpellcheckAttributeState spellcheckAttributeState() const; 546 SpellcheckAttributeState spellcheckAttributeState() const;
540 547
541 protected: 548 protected:
542 Element(const QualifiedName& tagName, Document*, ConstructionType); 549 Element(const QualifiedName& tagName, Document*, ConstructionType);
543 550
544 const ElementData* elementData() const { return m_elementData.get(); } 551 const ElementData* elementData() const { return m_elementData.get(); }
545 UniqueElementData& ensureUniqueElementData(); 552 UniqueElementData& ensureUniqueElementData();
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 926 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
920 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 927 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
921 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 928 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
922 { \ 929 { \
923 return adoptRefWillBeNoop(new T(tagName, document)); \ 930 return adoptRefWillBeNoop(new T(tagName, document)); \
924 } 931 }
925 932
926 } // namespace 933 } // namespace
927 934
928 #endif // Element_h 935 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698