| OLD | NEW |
| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 void setHasName(bool f) { | 424 void setHasName(bool f) { |
| 425 DCHECK(!isTextNode()); | 425 DCHECK(!isTextNode()); |
| 426 setFlag(f, HasNameOrIsEditingTextFlag); | 426 setFlag(f, HasNameOrIsEditingTextFlag); |
| 427 } | 427 } |
| 428 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } | 428 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } |
| 429 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } | 429 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } |
| 430 | 430 |
| 431 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&); | 431 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&); |
| 432 void clearNeedsStyleRecalc(); | 432 void clearNeedsStyleRecalc(); |
| 433 | 433 |
| 434 bool needsReattachLayoutTree() { return getFlag(NeedsReattachLayoutTree); } |
| 435 bool childNeedsReattachLayoutTree() { |
| 436 return getFlag(ChildNeedsReattachLayoutTree); |
| 437 } |
| 438 |
| 439 void setNeedsReattachLayoutTree(); |
| 440 void setChildNeedsReattachLayoutTree() { |
| 441 setFlag(ChildNeedsReattachLayoutTree); |
| 442 } |
| 443 |
| 444 void clearNeedsReattachLayoutTree() { clearFlag(NeedsReattachLayoutTree); } |
| 445 void clearChildNeedsReattachLayoutTree() { |
| 446 clearFlag(ChildNeedsReattachLayoutTree); |
| 447 } |
| 448 |
| 449 void markAncestorsWithChildNeedsReattachLayoutTree(); |
| 450 |
| 434 bool needsDistributionRecalc() const; | 451 bool needsDistributionRecalc() const; |
| 435 | 452 |
| 436 bool childNeedsDistributionRecalc() const { | 453 bool childNeedsDistributionRecalc() const { |
| 437 return getFlag(ChildNeedsDistributionRecalcFlag); | 454 return getFlag(ChildNeedsDistributionRecalcFlag); |
| 438 } | 455 } |
| 439 void setChildNeedsDistributionRecalc() { | 456 void setChildNeedsDistributionRecalc() { |
| 440 setFlag(ChildNeedsDistributionRecalcFlag); | 457 setFlag(ChildNeedsDistributionRecalcFlag); |
| 441 } | 458 } |
| 442 void clearChildNeedsDistributionRecalc() { | 459 void clearChildNeedsDistributionRecalc() { |
| 443 clearFlag(ChildNeedsDistributionRecalcFlag); | 460 clearFlag(ChildNeedsDistributionRecalcFlag); |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 } // namespace blink | 1042 } // namespace blink |
| 1026 | 1043 |
| 1027 #ifndef NDEBUG | 1044 #ifndef NDEBUG |
| 1028 // Outside the WebCore namespace for ease of invocation from gdb. | 1045 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1029 void showNode(const blink::Node*); | 1046 void showNode(const blink::Node*); |
| 1030 void showTree(const blink::Node*); | 1047 void showTree(const blink::Node*); |
| 1031 void showNodePath(const blink::Node*); | 1048 void showNodePath(const blink::Node*); |
| 1032 #endif | 1049 #endif |
| 1033 | 1050 |
| 1034 #endif // Node_h | 1051 #endif // Node_h |
| OLD | NEW |