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

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

Issue 177063004: Move custom element definitions into ElementRareData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ASSERT Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/CustomElementWrapper.cpp ('k') | 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 25 matching lines...) Expand all
36 #include "core/page/FocusType.h" 36 #include "core/page/FocusType.h"
37 #include "platform/scroll/ScrollTypes.h" 37 #include "platform/scroll/ScrollTypes.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class ActiveAnimations; 41 class ActiveAnimations;
42 class Attr; 42 class Attr;
43 class Attribute; 43 class Attribute;
44 class ClientRect; 44 class ClientRect;
45 class ClientRectList; 45 class ClientRectList;
46 class CustomElementDefinition;
46 class DOMStringMap; 47 class DOMStringMap;
47 class DOMTokenList; 48 class DOMTokenList;
48 class ElementRareData; 49 class ElementRareData;
49 class ElementShadow; 50 class ElementShadow;
50 class ExceptionState; 51 class ExceptionState;
51 class Image; 52 class Image;
52 class InputMethodContext; 53 class InputMethodContext;
53 class IntSize; 54 class IntSize;
54 class Locale; 55 class Locale;
55 class MutableStylePropertySet; 56 class MutableStylePropertySet;
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 516 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
516 // to event listeners, and prevents DOMActivate events from being sent at al l. 517 // to event listeners, and prevents DOMActivate events from being sent at al l.
517 virtual bool isDisabledFormControl() const { return false; } 518 virtual bool isDisabledFormControl() const { return false; }
518 519
519 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); } 520 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); }
520 void setHasPendingResources() { setElementFlag(HasPendingResources); } 521 void setHasPendingResources() { setElementFlag(HasPendingResources); }
521 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } 522 void clearHasPendingResources() { clearElementFlag(HasPendingResources); }
522 virtual void buildPendingResource() { }; 523 virtual void buildPendingResource() { };
523 524
525 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>);
526 CustomElementDefinition* customElementDefinition() const;
527
524 enum { 528 enum {
525 ALLOW_KEYBOARD_INPUT = 1 << 0, 529 ALLOW_KEYBOARD_INPUT = 1 << 0,
526 LEGACY_MOZILLA_REQUEST = 1 << 1, 530 LEGACY_MOZILLA_REQUEST = 1 << 1,
527 }; 531 };
528 532
529 void webkitRequestFullScreen(unsigned short flags); 533 void webkitRequestFullScreen(unsigned short flags);
530 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); } 534 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); }
531 void setContainsFullScreenElement(bool); 535 void setContainsFullScreenElement(bool);
532 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); 536 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool);
533 537
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \ 940 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \
937 DEFINE_NODE_TYPE_CASTS(thisType, predicate) 941 DEFINE_NODE_TYPE_CASTS(thisType, predicate)
938 942
939 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ 943 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
940 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \ 944 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \
941 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) 945 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType)
942 946
943 } // namespace 947 } // namespace
944 948
945 #endif 949 #endif
OLDNEW
« no previous file with comments | « Source/bindings/v8/CustomElementWrapper.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698