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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 1904403002: Recurse the inner elements only if behavior is DescendToInnerBlocks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make menuitem non-void Created 4 years, 7 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 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 || hasTagName(basefontTag) 112 || hasTagName(basefontTag)
113 || hasTagName(brTag) 113 || hasTagName(brTag)
114 || hasTagName(colTag) 114 || hasTagName(colTag)
115 || hasTagName(embedTag) 115 || hasTagName(embedTag)
116 || hasTagName(frameTag) 116 || hasTagName(frameTag)
117 || hasTagName(hrTag) 117 || hasTagName(hrTag)
118 || hasTagName(imageTag) 118 || hasTagName(imageTag)
119 || hasTagName(imgTag) 119 || hasTagName(imgTag)
120 || hasTagName(inputTag) 120 || hasTagName(inputTag)
121 || hasTagName(linkTag) 121 || hasTagName(linkTag)
122 || (RuntimeEnabledFeatures::contextMenuEnabled() && hasTagName(menuitemT ag))
123 || hasTagName(metaTag) 122 || hasTagName(metaTag)
124 || hasTagName(paramTag) 123 || hasTagName(paramTag)
125 || hasTagName(sourceTag) 124 || hasTagName(sourceTag)
126 || hasTagName(wbrTag)) 125 || hasTagName(wbrTag))
127 return true; 126 return true;
128 return false; 127 return false;
129 } 128 }
130 129
131 static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element) 130 static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element)
132 { 131 {
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 #ifndef NDEBUG 1038 #ifndef NDEBUG
1040 1039
1041 // For use in the debugger 1040 // For use in the debugger
1042 void dumpInnerHTML(blink::HTMLElement*); 1041 void dumpInnerHTML(blink::HTMLElement*);
1043 1042
1044 void dumpInnerHTML(blink::HTMLElement* element) 1043 void dumpInnerHTML(blink::HTMLElement* element)
1045 { 1044 {
1046 printf("%s\n", element->innerHTML().ascii().data()); 1045 printf("%s\n", element->innerHTML().ascii().data());
1047 } 1046 }
1048 #endif 1047 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698