| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyRenderTreeStructureAsserts); | 1282 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyRenderTreeStructureAsserts); |
| 1283 public: | 1283 public: |
| 1284 DeprecatedDisableModifyRenderTreeStructureAsserts(); | 1284 DeprecatedDisableModifyRenderTreeStructureAsserts(); |
| 1285 | 1285 |
| 1286 static bool canModifyRenderTreeStateInAnyState(); | 1286 static bool canModifyRenderTreeStateInAnyState(); |
| 1287 | 1287 |
| 1288 private: | 1288 private: |
| 1289 TemporaryChange<bool> m_disabler; | 1289 TemporaryChange<bool> m_disabler; |
| 1290 }; | 1290 }; |
| 1291 | 1291 |
| 1292 // Allow equality comparisons of RenderObject's by reference or pointer, interch
angeably. | 1292 // Allow equality comparisons of RenderObjects by reference or pointer, intercha
ngeably. |
| 1293 inline bool operator==(const RenderObject& a, const RenderObject& b) { return &a
== &b; } | 1293 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(RenderObject) |
| 1294 inline bool operator==(const RenderObject& a, const RenderObject* b) { return &a
== b; } | |
| 1295 inline bool operator==(const RenderObject* a, const RenderObject& b) { return a
== &b; } | |
| 1296 inline bool operator!=(const RenderObject& a, const RenderObject& b) { return !(
a == b); } | |
| 1297 inline bool operator!=(const RenderObject& a, const RenderObject* b) { return !(
a == b); } | |
| 1298 inline bool operator!=(const RenderObject* a, const RenderObject& b) { return !(
a == b); } | |
| 1299 | 1294 |
| 1300 inline bool RenderObject::documentBeingDestroyed() const | 1295 inline bool RenderObject::documentBeingDestroyed() const |
| 1301 { | 1296 { |
| 1302 return document().lifecycle().state() >= DocumentLifecycle::Stopping; | 1297 return document().lifecycle().state() >= DocumentLifecycle::Stopping; |
| 1303 } | 1298 } |
| 1304 | 1299 |
| 1305 inline bool RenderObject::isBeforeContent() const | 1300 inline bool RenderObject::isBeforeContent() const |
| 1306 { | 1301 { |
| 1307 if (style()->styleType() != BEFORE) | 1302 if (style()->styleType() != BEFORE) |
| 1308 return false; | 1303 return false; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 void showTree(const WebCore::RenderObject*); | 1482 void showTree(const WebCore::RenderObject*); |
| 1488 void showLineTree(const WebCore::RenderObject*); | 1483 void showLineTree(const WebCore::RenderObject*); |
| 1489 void showRenderTree(const WebCore::RenderObject* object1); | 1484 void showRenderTree(const WebCore::RenderObject* object1); |
| 1490 // We don't make object2 an optional parameter so that showRenderTree | 1485 // We don't make object2 an optional parameter so that showRenderTree |
| 1491 // can be called from gdb easily. | 1486 // can be called from gdb easily. |
| 1492 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1487 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1493 | 1488 |
| 1494 #endif | 1489 #endif |
| 1495 | 1490 |
| 1496 #endif // RenderObject_h | 1491 #endif // RenderObject_h |
| OLD | NEW |