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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } | 356 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } |
357 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } | 357 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } |
358 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } | 358 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } |
359 bool isLink() const { return getFlag(IsLinkFlag); } | 359 bool isLink() const { return getFlag(IsLinkFlag); } |
360 bool isEditingText() const { return isTextNode() && getFlag(HasNameOrIsEditi
ngTextFlag); } | 360 bool isEditingText() const { return isTextNode() && getFlag(HasNameOrIsEditi
ngTextFlag); } |
361 | 361 |
362 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } | 362 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } |
363 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } | 363 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } |
364 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } | 364 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } |
365 | 365 |
366 void setNeedsStyleRecalc(StyleChangeType = SubtreeStyleChange, StyleChangeSo
urce = StyleChangeFromCSS); | 366 void setNeedsStyleRecalc(StyleChangeType, StyleChangeSource = StyleChangeFro
mCSS); |
367 void clearNeedsStyleRecalc(); | 367 void clearNeedsStyleRecalc(); |
368 | 368 |
369 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib
utionRecalc); } | 369 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib
utionRecalc); } |
370 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca
lc); } | 370 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca
lc); } |
371 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution
Recalc); } | 371 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution
Recalc); } |
372 void markAncestorsWithChildNeedsDistributionRecalc(); | 372 void markAncestorsWithChildNeedsDistributionRecalc(); |
373 | 373 |
374 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidation); } | 374 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidation); } |
375 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
); } | 375 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
); } |
376 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tion); } | 376 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tion); } |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 | 913 |
914 } // namespace WebCore | 914 } // namespace WebCore |
915 | 915 |
916 #ifndef NDEBUG | 916 #ifndef NDEBUG |
917 // Outside the WebCore namespace for ease of invocation from gdb. | 917 // Outside the WebCore namespace for ease of invocation from gdb. |
918 void showTree(const WebCore::Node*); | 918 void showTree(const WebCore::Node*); |
919 void showNodePath(const WebCore::Node*); | 919 void showNodePath(const WebCore::Node*); |
920 #endif | 920 #endif |
921 | 921 |
922 #endif | 922 #endif |
OLD | NEW |