Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Node.cpp | 
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp | 
| index 5bc034fe69b6bc638690d634e74029c7670b5ca6..34d4db090bd39e35c1c4c8ccf7b081453561cdcb 100644 | 
| --- a/third_party/WebKit/Source/core/dom/Node.cpp | 
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp | 
| @@ -29,6 +29,7 @@ | 
| #include "bindings/core/v8/Microtask.h" | 
| #include "bindings/core/v8/V8DOMWrapper.h" | 
| #include "core/HTMLNames.h" | 
| +#include "core/MathMLNames.h" | 
| #include "core/css/CSSSelector.h" | 
| #include "core/css/resolver/StyleResolver.h" | 
| #include "core/dom/AXObjectCache.h" | 
| @@ -1029,6 +1030,19 @@ bool Node::canStartSelection() const | 
| return parent ? parent->canStartSelection() : true; | 
| } | 
| +// StyledElements allow inline style (style="border: 1px"), presentational attributes (ex. color), | 
| +// class names (ex. class="foo bar") and other non-basic styling features. They and also control | 
| 
 
PhistucK
2016/08/02 15:40:47
s/They and also/Then also/
 
ramya.v
2016/08/03 04:03:48
Done.
 
 | 
| +// if this element can participate in style sharing. | 
| +// | 
| +// FIXME: The only things that ever go through StyleResolver that aren't StyledElements are | 
| +// PseudoElements and VTTElements. It's possible we can just eliminate all the checks | 
| +// since those elements will never have class names, inline style, or other things that | 
| +// this apparently guards against. | 
| +bool Node::isStyledElement() const | 
| +{ | 
| + return isHTMLElement() || isSVGElement() || (isElementNode() && toElement(this)->namespaceURI() == MathMLNames::mathmlNamespaceURI); | 
| +} | 
| + | 
| bool Node::canParticipateInFlatTree() const | 
| { | 
| return !isShadowRoot() && !isSlotOrActiveInsertionPoint(); |