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

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

Issue 1071863002: Prefer ComposedTreeTraversal to NodeRenderingTraversal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
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 13 matching lines...) Expand all
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "core/html/HTMLTablePartElement.h" 26 #include "core/html/HTMLTablePartElement.h"
27 27
28 #include "core/CSSPropertyNames.h" 28 #include "core/CSSPropertyNames.h"
29 #include "core/CSSValueKeywords.h" 29 #include "core/CSSValueKeywords.h"
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/css/CSSImageValue.h" 31 #include "core/css/CSSImageValue.h"
32 #include "core/css/StylePropertySet.h" 32 #include "core/css/StylePropertySet.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/NodeRenderingTraversal.h" 34 #include "core/dom/shadow/ComposedTreeTraversal.h"
35 #include "core/html/HTMLTableElement.h" 35 #include "core/html/HTMLTableElement.h"
36 #include "core/html/parser/HTMLParserIdioms.h" 36 #include "core/html/parser/HTMLParserIdioms.h"
37 #include "platform/weborigin/Referrer.h" 37 #include "platform/weborigin/Referrer.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 using namespace HTMLNames; 41 using namespace HTMLNames;
42 42
43 bool HTMLTablePartElement::isPresentationAttribute(const QualifiedName& name) co nst 43 bool HTMLTablePartElement::isPresentationAttribute(const QualifiedName& name) co nst
44 { 44 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, value); 82 addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, value);
83 } else if (name == heightAttr) { 83 } else if (name == heightAttr) {
84 if (!value.isEmpty()) 84 if (!value.isEmpty())
85 addHTMLLengthToStyle(style, CSSPropertyHeight, value); 85 addHTMLLengthToStyle(style, CSSPropertyHeight, value);
86 } else 86 } else
87 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 87 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
88 } 88 }
89 89
90 HTMLTableElement* HTMLTablePartElement::findParentTable() const 90 HTMLTableElement* HTMLTablePartElement::findParentTable() const
91 { 91 {
92 ContainerNode* parent = NodeRenderingTraversal::parent(*this); 92 ContainerNode* parent = ComposedTreeTraversal::parent(*this);
93 while (parent && !isHTMLTableElement(*parent)) 93 while (parent && !isHTMLTableElement(*parent))
94 parent = NodeRenderingTraversal::parent(*parent); 94 parent = ComposedTreeTraversal::parent(*parent);
95 return toHTMLTableElement(parent); 95 return toHTMLTableElement(parent);
96 } 96 }
97 97
98 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698