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 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2830 { | 2830 { |
2831 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); | 2831 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); |
2832 } | 2832 } |
2833 | 2833 |
2834 void RenderObject::updateDragState(bool dragOn) | 2834 void RenderObject::updateDragState(bool dragOn) |
2835 { | 2835 { |
2836 bool valueChanged = (dragOn != isDragging()); | 2836 bool valueChanged = (dragOn != isDragging()); |
2837 setIsDragging(dragOn); | 2837 setIsDragging(dragOn); |
2838 if (valueChanged && node()) { | 2838 if (valueChanged && node()) { |
2839 if (node()->isElementNode() && toElement(node())->childrenOrSiblingsAffe
ctedByDrag()) | 2839 if (node()->isElementNode() && toElement(node())->childrenOrSiblingsAffe
ctedByDrag()) |
2840 node()->setNeedsStyleRecalc(SubtreeStyleChange); | 2840 node()->setNeedsStyleRecalc(StyleRecalcDueToDrag, SubtreeStyleChange
); |
2841 else if (style()->affectedByDrag()) | 2841 else if (style()->affectedByDrag()) |
2842 node()->setNeedsStyleRecalc(LocalStyleChange); | 2842 node()->setNeedsStyleRecalc(StyleRecalcDueToDrag, LocalStyleChange); |
2843 } | 2843 } |
2844 for (RenderObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) | 2844 for (RenderObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) |
2845 curr->updateDragState(dragOn); | 2845 curr->updateDragState(dragOn); |
2846 } | 2846 } |
2847 | 2847 |
2848 CompositingState RenderObject::compositingState() const | 2848 CompositingState RenderObject::compositingState() const |
2849 { | 2849 { |
2850 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat
e() : NotComposited; | 2850 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat
e() : NotComposited; |
2851 } | 2851 } |
2852 | 2852 |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3446 { | 3446 { |
3447 if (object1) { | 3447 if (object1) { |
3448 const blink::RenderObject* root = object1; | 3448 const blink::RenderObject* root = object1; |
3449 while (root->parent()) | 3449 while (root->parent()) |
3450 root = root->parent(); | 3450 root = root->parent(); |
3451 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3451 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3452 } | 3452 } |
3453 } | 3453 } |
3454 | 3454 |
3455 #endif | 3455 #endif |
OLD | NEW |