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

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

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "core/html/HTMLTablePartElement.h" 25 #include "core/html/HTMLTablePartElement.h"
26 26
27 #include "core/CSSPropertyNames.h" 27 #include "core/CSSPropertyNames.h"
28 #include "core/CSSValueKeywords.h" 28 #include "core/CSSValueKeywords.h"
29 #include "core/HTMLNames.h" 29 #include "core/HTMLNames.h"
30 #include "core/css/CSSImageValue.h" 30 #include "core/css/CSSImageValue.h"
31 #include "core/css/StylePropertySet.h" 31 #include "core/css/StylePropertySet.h"
32 #include "core/dom/Document.h" 32 #include "core/dom/Document.h"
33 #include "core/dom/shadow/ComposedTreeTraversal.h" 33 #include "core/dom/shadow/FlatTreeTraversal.h"
34 #include "core/html/HTMLTableElement.h" 34 #include "core/html/HTMLTableElement.h"
35 #include "core/html/parser/HTMLParserIdioms.h" 35 #include "core/html/parser/HTMLParserIdioms.h"
36 #include "platform/weborigin/Referrer.h" 36 #include "platform/weborigin/Referrer.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 using namespace HTMLNames; 40 using namespace HTMLNames;
41 41
42 bool HTMLTablePartElement::isPresentationAttribute(const QualifiedName& name) co nst 42 bool HTMLTablePartElement::isPresentationAttribute(const QualifiedName& name) co nst
43 { 43 {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } else if (name == heightAttr) { 82 } else if (name == heightAttr) {
83 if (!value.isEmpty()) 83 if (!value.isEmpty())
84 addHTMLLengthToStyle(style, CSSPropertyHeight, value); 84 addHTMLLengthToStyle(style, CSSPropertyHeight, value);
85 } else { 85 } else {
86 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 86 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
87 } 87 }
88 } 88 }
89 89
90 HTMLTableElement* HTMLTablePartElement::findParentTable() const 90 HTMLTableElement* HTMLTablePartElement::findParentTable() const
91 { 91 {
92 ContainerNode* parent = ComposedTreeTraversal::parent(*this); 92 ContainerNode* parent = FlatTreeTraversal::parent(*this);
93 while (parent && !isHTMLTableElement(*parent)) 93 while (parent && !isHTMLTableElement(*parent))
94 parent = ComposedTreeTraversal::parent(*parent); 94 parent = FlatTreeTraversal::parent(*parent);
95 return toHTMLTableElement(parent); 95 return toHTMLTableElement(parent);
96 } 96 }
97 97
98 } // namespace blink 98 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698