| 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) 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 } | 726 } |
| 727 | 727 |
| 728 #ifndef NDEBUG | 728 #ifndef NDEBUG |
| 729 void RenderObject::checkBlockPositionedObjectsNeedLayout() | 729 void RenderObject::checkBlockPositionedObjectsNeedLayout() |
| 730 { | 730 { |
| 731 ASSERT(!needsLayout()); | 731 ASSERT(!needsLayout()); |
| 732 | 732 |
| 733 if (isRenderBlock()) | 733 if (isRenderBlock()) |
| 734 toRenderBlock(this)->checkPositionedObjectsNeedLayout(); | 734 toRenderBlock(this)->checkPositionedObjectsNeedLayout(); |
| 735 } | 735 } |
| 736 |
| 737 void RenderObject::checkNotInPartialLayout() |
| 738 { |
| 739 // During partial layout, setNeedsLayout(true or false) should not be called
. |
| 740 ASSERT(!frameView()->partialLayout().isStopping()); |
| 741 } |
| 736 #endif | 742 #endif |
| 737 | 743 |
| 738 void RenderObject::setPreferredLogicalWidthsDirty(MarkingBehavior markParents) | 744 void RenderObject::setPreferredLogicalWidthsDirty(MarkingBehavior markParents) |
| 739 { | 745 { |
| 740 bool alreadyDirty = preferredLogicalWidthsDirty(); | 746 bool alreadyDirty = preferredLogicalWidthsDirty(); |
| 741 m_bitfields.setPreferredLogicalWidthsDirty(true); | 747 m_bitfields.setPreferredLogicalWidthsDirty(true); |
| 742 if (!alreadyDirty && markParents == MarkContainingBlockChain && (isText() ||
!style()->hasOutOfFlowPosition())) | 748 if (!alreadyDirty && markParents == MarkContainingBlockChain && (isText() ||
!style()->hasOutOfFlowPosition())) |
| 743 invalidateContainerPreferredLogicalWidths(); | 749 invalidateContainerPreferredLogicalWidths(); |
| 744 } | 750 } |
| 745 | 751 |
| (...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2754 result.setInnerNonSharedNode(node); | 2760 result.setInnerNonSharedNode(node); |
| 2755 result.setLocalPoint(point); | 2761 result.setLocalPoint(point); |
| 2756 } | 2762 } |
| 2757 } | 2763 } |
| 2758 | 2764 |
| 2759 bool RenderObject::nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitT
estLocation& /*locationInContainer*/, const LayoutPoint& /*accumulatedOffset*/,
HitTestAction) | 2765 bool RenderObject::nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitT
estLocation& /*locationInContainer*/, const LayoutPoint& /*accumulatedOffset*/,
HitTestAction) |
| 2760 { | 2766 { |
| 2761 return false; | 2767 return false; |
| 2762 } | 2768 } |
| 2763 | 2769 |
| 2770 FrameView* RenderObject::frameView() const |
| 2771 { |
| 2772 return document().view(); |
| 2773 } |
| 2774 |
| 2764 void RenderObject::scheduleRelayout() | 2775 void RenderObject::scheduleRelayout() |
| 2765 { | 2776 { |
| 2766 if (isRenderView()) { | 2777 if (isRenderView()) { |
| 2767 FrameView* view = toRenderView(this)->frameView(); | 2778 FrameView* view = toRenderView(this)->frameView(); |
| 2768 if (view) | 2779 if (view) |
| 2769 view->scheduleRelayout(); | 2780 view->scheduleRelayout(); |
| 2770 } else { | 2781 } else { |
| 2771 if (isRooted()) { | 2782 if (isRooted()) { |
| 2772 if (RenderView* renderView = view()) { | 2783 if (RenderView* renderView = view()) { |
| 2773 if (FrameView* frameView = renderView->frameView()) | 2784 if (FrameView* frameView = renderView->frameView()) |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3310 { | 3321 { |
| 3311 if (object1) { | 3322 if (object1) { |
| 3312 const WebCore::RenderObject* root = object1; | 3323 const WebCore::RenderObject* root = object1; |
| 3313 while (root->parent()) | 3324 while (root->parent()) |
| 3314 root = root->parent(); | 3325 root = root->parent(); |
| 3315 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3326 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3316 } | 3327 } |
| 3317 } | 3328 } |
| 3318 | 3329 |
| 3319 #endif | 3330 #endif |
| OLD | NEW |