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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 void setHasName(bool f) { | 420 void setHasName(bool f) { |
421 DCHECK(!isTextNode()); | 421 DCHECK(!isTextNode()); |
422 setFlag(f, HasNameOrIsEditingTextFlag); | 422 setFlag(f, HasNameOrIsEditingTextFlag); |
423 } | 423 } |
424 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } | 424 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } |
425 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } | 425 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } |
426 | 426 |
427 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&); | 427 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&); |
428 void clearNeedsStyleRecalc(); | 428 void clearNeedsStyleRecalc(); |
429 | 429 |
| 430 bool needsReattachLayoutTree() { return getFlag(NeedsReattachLayoutTree); } |
| 431 bool childNeedsReattachLayoutTree() { |
| 432 return getFlag(ChildNeedsReattachLayoutTree); |
| 433 } |
| 434 |
| 435 void setNeedsReattachLayoutTree(); |
| 436 void setChildNeedsReattachLayoutTree() { |
| 437 setFlag(ChildNeedsReattachLayoutTree); |
| 438 } |
| 439 |
| 440 void clearNeedsReattachLayoutTree() { clearFlag(NeedsReattachLayoutTree); } |
| 441 void clearChildNeedsReattachLayoutTree() { |
| 442 clearFlag(ChildNeedsReattachLayoutTree); |
| 443 } |
| 444 |
| 445 void markAncestorsWithChildNeedsReattachLayoutTree(); |
| 446 |
430 bool needsDistributionRecalc() const; | 447 bool needsDistributionRecalc() const; |
431 | 448 |
432 bool childNeedsDistributionRecalc() const { | 449 bool childNeedsDistributionRecalc() const { |
433 return getFlag(ChildNeedsDistributionRecalcFlag); | 450 return getFlag(ChildNeedsDistributionRecalcFlag); |
434 } | 451 } |
435 void setChildNeedsDistributionRecalc() { | 452 void setChildNeedsDistributionRecalc() { |
436 setFlag(ChildNeedsDistributionRecalcFlag); | 453 setFlag(ChildNeedsDistributionRecalcFlag); |
437 } | 454 } |
438 void clearChildNeedsDistributionRecalc() { | 455 void clearChildNeedsDistributionRecalc() { |
439 clearFlag(ChildNeedsDistributionRecalcFlag); | 456 clearFlag(ChildNeedsDistributionRecalcFlag); |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 } // namespace blink | 1038 } // namespace blink |
1022 | 1039 |
1023 #ifndef NDEBUG | 1040 #ifndef NDEBUG |
1024 // Outside the WebCore namespace for ease of invocation from gdb. | 1041 // Outside the WebCore namespace for ease of invocation from gdb. |
1025 void showNode(const blink::Node*); | 1042 void showNode(const blink::Node*); |
1026 void showTree(const blink::Node*); | 1043 void showTree(const blink::Node*); |
1027 void showNodePath(const blink::Node*); | 1044 void showNodePath(const blink::Node*); |
1028 #endif | 1045 #endif |
1029 | 1046 |
1030 #endif // Node_h | 1047 #endif // Node_h |
OLD | NEW |