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. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 bool isLink() const { return getFlag(IsLinkFlag); } | 363 bool isLink() const { return getFlag(IsLinkFlag); } |
364 bool isEditingText() const { DCHECK(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } | 364 bool isEditingText() const { DCHECK(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } |
365 | 365 |
366 void setHasName(bool f) { DCHECK(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } | 366 void setHasName(bool f) { DCHECK(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } |
367 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } | 367 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } |
368 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } | 368 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } |
369 | 369 |
370 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&
); | 370 void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&
); |
371 void clearNeedsStyleRecalc(); | 371 void clearNeedsStyleRecalc(); |
372 | 372 |
| 373 void needsReattachLayoutTree() { getFlag(NeedsReattachLayoutTree); } |
| 374 void childNeedsReattachLayoutTree() { getFlag(ChildNeedsReattachLayoutTree);
} |
| 375 |
| 376 void setNeedsReattachLayoutTree() { setFlag(NeedsReattachLayoutTree); } |
| 377 void setChildNeedsReattachLayoutTree() { setFlag(ChildNeedsReattachLayoutTre
e); } |
| 378 |
| 379 void markNodeAndAncestorsWithChildNeedsReattachLayoutTree(); |
| 380 |
373 bool needsDistributionRecalc() const; | 381 bool needsDistributionRecalc() const; |
374 | 382 |
375 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib
utionRecalcFlag); } | 383 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib
utionRecalcFlag); } |
376 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca
lcFlag); } | 384 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca
lcFlag); } |
377 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution
RecalcFlag); } | 385 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution
RecalcFlag); } |
378 void markAncestorsWithChildNeedsDistributionRecalc(); | 386 void markAncestorsWithChildNeedsDistributionRecalc(); |
379 | 387 |
380 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidationFlag); } | 388 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidationFlag); } |
381 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
Flag); } | 389 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
Flag); } |
382 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tionFlag); } | 390 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tionFlag); } |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } // namespace blink | 885 } // namespace blink |
878 | 886 |
879 #ifndef NDEBUG | 887 #ifndef NDEBUG |
880 // Outside the WebCore namespace for ease of invocation from gdb. | 888 // Outside the WebCore namespace for ease of invocation from gdb. |
881 void showNode(const blink::Node*); | 889 void showNode(const blink::Node*); |
882 void showTree(const blink::Node*); | 890 void showTree(const blink::Node*); |
883 void showNodePath(const blink::Node*); | 891 void showNodePath(const blink::Node*); |
884 #endif | 892 #endif |
885 | 893 |
886 #endif // Node_h | 894 #endif // Node_h |
OLD | NEW |