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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 1144673002: Make it possible to Paint elements into a display list. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add example Created 5 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
« no previous file with comments | « no previous file | sky/engine/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-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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class DOMTokenList; 46 class DOMTokenList;
47 class Document; 47 class Document;
48 class ElementRareData; 48 class ElementRareData;
49 class ElementShadow; 49 class ElementShadow;
50 class ExceptionState; 50 class ExceptionState;
51 class Image; 51 class Image;
52 class IntSize; 52 class IntSize;
53 class LayoutCallback; 53 class LayoutCallback;
54 class MutableStylePropertySet; 54 class MutableStylePropertySet;
55 class PaintingCallback; 55 class PaintingCallback;
56 class PictureRecorder;
56 class PropertySetCSSStyleDeclaration; 57 class PropertySetCSSStyleDeclaration;
57 class PseudoElement; 58 class PseudoElement;
58 class ShadowRoot; 59 class ShadowRoot;
59 class StylePropertySet; 60 class StylePropertySet;
60 61
61 enum SpellcheckAttributeState { 62 enum SpellcheckAttributeState {
62 SpellcheckAttributeTrue, 63 SpellcheckAttributeTrue,
63 SpellcheckAttributeFalse, 64 SpellcheckAttributeFalse,
64 SpellcheckAttributeDefault 65 SpellcheckAttributeDefault
65 }; 66 };
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 292
292 String contentEditable() const; 293 String contentEditable() const;
293 void setContentEditable(const String&, ExceptionState&); 294 void setContentEditable(const String&, ExceptionState&);
294 295
295 bool spellcheck() const; 296 bool spellcheck() const;
296 void setSpellcheck(bool); 297 void setSpellcheck(bool);
297 298
298 const AtomicString& dir(); 299 const AtomicString& dir();
299 void setDir(const AtomicString&); 300 void setDir(const AtomicString&);
300 301
302 // Dart exposed:
303 void paint(PictureRecorder*);
304
301 protected: 305 protected:
302 Element(const QualifiedName& tagName, Document*, ConstructionType); 306 Element(const QualifiedName& tagName, Document*, ConstructionType);
303 307
304 const ElementData* elementData() const { return m_elementData.get(); } 308 const ElementData* elementData() const { return m_elementData.get(); }
305 UniqueElementData& ensureUniqueElementData(); 309 UniqueElementData& ensureUniqueElementData();
306 310
307 virtual void insertedInto(ContainerNode*) override; 311 virtual void insertedInto(ContainerNode*) override;
308 virtual void removedFrom(ContainerNode*) override; 312 virtual void removedFrom(ContainerNode*) override;
309 virtual void childrenChanged(const ChildrenChange&) override; 313 virtual void childrenChanged(const ChildrenChange&) override;
310 314
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 static PassRefPtr<T> create(const QualifiedName&, Document&) 588 static PassRefPtr<T> create(const QualifiedName&, Document&)
585 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 589 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
586 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 590 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
587 { \ 591 { \
588 return adoptRef(new T(tagName, document)); \ 592 return adoptRef(new T(tagName, document)); \
589 } 593 }
590 594
591 } // namespace 595 } // namespace
592 596
593 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 597 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698