| 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 2945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2956 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&) | 2956 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&) |
| 2957 { | 2957 { |
| 2958 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); | 2958 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); |
| 2959 } | 2959 } |
| 2960 | 2960 |
| 2961 void RenderObject::updateDragState(bool dragOn) | 2961 void RenderObject::updateDragState(bool dragOn) |
| 2962 { | 2962 { |
| 2963 bool valueChanged = (dragOn != isDragging()); | 2963 bool valueChanged = (dragOn != isDragging()); |
| 2964 setIsDragging(dragOn); | 2964 setIsDragging(dragOn); |
| 2965 if (valueChanged && node()) { | 2965 if (valueChanged && node()) { |
| 2966 if (node()->isElementNode() && toElement(node())->childrenAffectedByDrag
()) | 2966 if (node()->isElementNode() && toElement(node())->childrenOrSiblingsAffe
ctedByDrag()) |
| 2967 node()->setNeedsStyleRecalc(SubtreeStyleChange); | 2967 node()->setNeedsStyleRecalc(SubtreeStyleChange); |
| 2968 else if (style()->affectedByDrag()) | 2968 else if (style()->affectedByDrag()) |
| 2969 node()->setNeedsStyleRecalc(LocalStyleChange); | 2969 node()->setNeedsStyleRecalc(LocalStyleChange); |
| 2970 } | 2970 } |
| 2971 for (RenderObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) | 2971 for (RenderObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) |
| 2972 curr->updateDragState(dragOn); | 2972 curr->updateDragState(dragOn); |
| 2973 } | 2973 } |
| 2974 | 2974 |
| 2975 CompositingState RenderObject::compositingState() const | 2975 CompositingState RenderObject::compositingState() const |
| 2976 { | 2976 { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3560 { | 3560 { |
| 3561 if (object1) { | 3561 if (object1) { |
| 3562 const WebCore::RenderObject* root = object1; | 3562 const WebCore::RenderObject* root = object1; |
| 3563 while (root->parent()) | 3563 while (root->parent()) |
| 3564 root = root->parent(); | 3564 root = root->parent(); |
| 3565 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3565 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3566 } | 3566 } |
| 3567 } | 3567 } |
| 3568 | 3568 |
| 3569 #endif | 3569 #endif |
| OLD | NEW |