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

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: 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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 467
467 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 468 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
468 // to event listeners, and prevents DOMActivate events from being sent at al l. 469 // to event listeners, and prevents DOMActivate events from being sent at al l.
469 virtual bool isDisabledFormControl() const { return false; } 470 virtual bool isDisabledFormControl() const { return false; }
470 471
471 bool hasPendingResources() const; 472 bool hasPendingResources() const;
472 void setHasPendingResources(); 473 void setHasPendingResources();
473 void clearHasPendingResources(); 474 void clearHasPendingResources();
474 virtual void buildPendingResource() { }; 475 virtual void buildPendingResource() { };
475 476
477 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>);
478 CustomElementDefinition* customElementDefinition() const;
479
476 enum { 480 enum {
477 ALLOW_KEYBOARD_INPUT = 1 << 0, 481 ALLOW_KEYBOARD_INPUT = 1 << 0,
478 LEGACY_MOZILLA_REQUEST = 1 << 1, 482 LEGACY_MOZILLA_REQUEST = 1 << 1,
479 }; 483 };
480 484
481 void webkitRequestFullScreen(unsigned short flags); 485 void webkitRequestFullScreen(unsigned short flags);
482 bool containsFullScreenElement() const; 486 bool containsFullScreenElement() const;
483 void setContainsFullScreenElement(bool); 487 void setContainsFullScreenElement(bool);
484 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); 488 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool);
485 489
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 } 863 }
860 864
861 inline bool isShadowHost(const Element* element) 865 inline bool isShadowHost(const Element* element)
862 { 866 {
863 return element && element->shadow(); 867 return element && element->shadow();
864 } 868 }
865 869
866 } // namespace 870 } // namespace
867 871
868 #endif 872 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698