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

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

Issue 202153005: Add isHTMLPlugInElement() helpers for consistency with other HTML elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Keep virtual function 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 | « no previous file | Source/core/html/HTMLElement.h » ('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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 : NotCustomElement; 238 : NotCustomElement;
239 } 239 }
240 void setCustomElementState(CustomElementState newState); 240 void setCustomElementState(CustomElementState newState);
241 241
242 virtual bool isMediaControlElement() const { return false; } 242 virtual bool isMediaControlElement() const { return false; }
243 virtual bool isMediaControls() const { return false; } 243 virtual bool isMediaControls() const { return false; }
244 virtual bool isVTTElement() const { return false; } 244 virtual bool isVTTElement() const { return false; }
245 virtual bool isAttributeNode() const { return false; } 245 virtual bool isAttributeNode() const { return false; }
246 virtual bool isCharacterDataNode() const { return false; } 246 virtual bool isCharacterDataNode() const { return false; }
247 virtual bool isFrameOwnerElement() const { return false; } 247 virtual bool isFrameOwnerElement() const { return false; }
248 virtual bool isPluginElement() const { return false; }
249 248
250 // StyledElements allow inline style (style="border: 1px"), presentational a ttributes (ex. color), 249 // StyledElements allow inline style (style="border: 1px"), presentational a ttributes (ex. color),
251 // class names (ex. class="foo bar") and other non-basic styling features. T hey and also control 250 // class names (ex. class="foo bar") and other non-basic styling features. T hey and also control
252 // if this element can participate in style sharing. 251 // if this element can participate in style sharing.
253 // 252 //
254 // FIXME: The only things that ever go through StyleResolver that aren't Sty ledElements are 253 // FIXME: The only things that ever go through StyleResolver that aren't Sty ledElements are
255 // PseudoElements and VTTElements. It's possible we can just eliminate all t he checks 254 // PseudoElements and VTTElements. It's possible we can just eliminate all t he checks
256 // since those elements will never have class names, inline style, or other things that 255 // since those elements will never have class names, inline style, or other things that
257 // this apparently guards against. 256 // this apparently guards against.
258 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); } 257 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); }
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } // namespace WebCore 907 } // namespace WebCore
909 908
910 #ifndef NDEBUG 909 #ifndef NDEBUG
911 // Outside the WebCore namespace for ease of invocation from gdb. 910 // Outside the WebCore namespace for ease of invocation from gdb.
912 void showNode(const WebCore::Node*); 911 void showNode(const WebCore::Node*);
913 void showTree(const WebCore::Node*); 912 void showTree(const WebCore::Node*);
914 void showNodePath(const WebCore::Node*); 913 void showNodePath(const WebCore::Node*);
915 #endif 914 #endif
916 915
917 #endif 916 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698