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

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

Issue 2200653002: Apply styles to mathML elements having class attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 4 years, 4 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
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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void setV0CustomElementState(V0CustomElementState newState); 271 void setV0CustomElementState(V0CustomElementState newState);
272 272
273 virtual bool isMediaControlElement() const { return false; } 273 virtual bool isMediaControlElement() const { return false; }
274 virtual bool isMediaControls() const { return false; } 274 virtual bool isMediaControls() const { return false; }
275 virtual bool isTextTrackContainer() const { return false; } 275 virtual bool isTextTrackContainer() const { return false; }
276 virtual bool isVTTElement() const { return false; } 276 virtual bool isVTTElement() const { return false; }
277 virtual bool isAttributeNode() const { return false; } 277 virtual bool isAttributeNode() const { return false; }
278 virtual bool isCharacterDataNode() const { return false; } 278 virtual bool isCharacterDataNode() const { return false; }
279 virtual bool isFrameOwnerElement() const { return false; } 279 virtual bool isFrameOwnerElement() const { return false; }
280 280
281 // StyledElements allow inline style (style="border: 1px"), presentational a ttributes (ex. color), 281 bool isStyledElement() const;
282 // class names (ex. class="foo bar") and other non-basic styling features. T hey and also control
283 // if this element can participate in style sharing.
284 //
285 // FIXME: The only things that ever go through StyleResolver that aren't Sty ledElements are
286 // PseudoElements and VTTElements. It's possible we can just eliminate all t he checks
287 // since those elements will never have class names, inline style, or other things that
288 // this apparently guards against.
289 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); }
290 282
291 bool isDocumentNode() const; 283 bool isDocumentNode() const;
292 bool isTreeScope() const; 284 bool isTreeScope() const;
293 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } 285 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); }
294 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } 286 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); }
295 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } 287 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); }
296 288
297 bool canParticipateInFlatTree() const; 289 bool canParticipateInFlatTree() const;
298 bool isSlotOrActiveInsertionPoint() const; 290 bool isSlotOrActiveInsertionPoint() const;
299 // A re-distribution across v0 and v1 shadow trees is not supported. 291 // A re-distribution across v0 and v1 shadow trees is not supported.
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } // namespace blink 882 } // namespace blink
891 883
892 #ifndef NDEBUG 884 #ifndef NDEBUG
893 // Outside the WebCore namespace for ease of invocation from gdb. 885 // Outside the WebCore namespace for ease of invocation from gdb.
894 void showNode(const blink::Node*); 886 void showNode(const blink::Node*);
895 void showTree(const blink::Node*); 887 void showTree(const blink::Node*);
896 void showNodePath(const blink::Node*); 888 void showNodePath(const blink::Node*);
897 #endif 889 #endif
898 890
899 #endif // Node_h 891 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698