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