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

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

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: . Created 4 years 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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 int getIntegralAttribute(const QualifiedName& attributeName) const; 154 int getIntegralAttribute(const QualifiedName& attributeName) const;
155 void setIntegralAttribute(const QualifiedName& attributeName, int value); 155 void setIntegralAttribute(const QualifiedName& attributeName, int value);
156 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, 156 void setUnsignedIntegralAttribute(const QualifiedName& attributeName,
157 unsigned value); 157 unsigned value);
158 double getFloatingPointAttribute( 158 double getFloatingPointAttribute(
159 const QualifiedName& attributeName, 159 const QualifiedName& attributeName,
160 double fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; 160 double fallbackValue = std::numeric_limits<double>::quiet_NaN()) const;
161 void setFloatingPointAttribute(const QualifiedName& attributeName, 161 void setFloatingPointAttribute(const QualifiedName& attributeName,
162 double value); 162 double value);
163 163
164 // TODO: This is the wrong approach, but gets the job done. Find a more
165 // appropriate way of doing the same thing.
166 bool forceReattachDuringStyleRecalc() {
167 bool r = m_forceReattach;
168 m_forceReattach = false;
esprehn 2016/12/10 02:20:55 You don't need any of this. lazyReattach does the
169 return r;
170 }
171 void setForceReattach() { m_forceReattach = true; }
172 bool m_forceReattach = false;
173
164 // Call this to get the value of an attribute that is known not to be the 174 // Call this to get the value of an attribute that is known not to be the
165 // style attribute or one of the SVG animatable attributes. 175 // style attribute or one of the SVG animatable attributes.
166 bool fastHasAttribute(const QualifiedName&) const; 176 bool fastHasAttribute(const QualifiedName&) const;
167 const AtomicString& fastGetAttribute(const QualifiedName&) const; 177 const AtomicString& fastGetAttribute(const QualifiedName&) const;
168 #if DCHECK_IS_ON() 178 #if DCHECK_IS_ON()
169 bool fastAttributeLookupAllowed(const QualifiedName&) const; 179 bool fastAttributeLookupAllowed(const QualifiedName&) const;
170 #endif 180 #endif
171 181
172 #ifdef DUMP_NODE_STATISTICS 182 #ifdef DUMP_NODE_STATISTICS
173 bool hasNamedNodeMap() const; 183 bool hasNamedNodeMap() const;
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1184 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1175 static T* create(const QualifiedName&, Document&) 1185 static T* create(const QualifiedName&, Document&)
1176 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1186 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1177 T* T::create(const QualifiedName& tagName, Document& document) { \ 1187 T* T::create(const QualifiedName& tagName, Document& document) { \
1178 return new T(tagName, document); \ 1188 return new T(tagName, document); \
1179 } 1189 }
1180 1190
1181 } // namespace blink 1191 } // namespace blink
1182 1192
1183 #endif // Element_h 1193 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698