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 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2689 { | 2689 { |
2690 return createPositionWithAffinity(caretMinOffset()); | 2690 return createPositionWithAffinity(caretMinOffset()); |
2691 } | 2691 } |
2692 | 2692 |
2693 void LayoutObject::updateDragState(bool dragOn) | 2693 void LayoutObject::updateDragState(bool dragOn) |
2694 { | 2694 { |
2695 bool valueChanged = (dragOn != isDragging()); | 2695 bool valueChanged = (dragOn != isDragging()); |
2696 setIsDragging(dragOn); | 2696 setIsDragging(dragOn); |
2697 if (valueChanged && node()) { | 2697 if (valueChanged && node()) { |
2698 if (node()->isElementNode() && toElement(node())->childrenOrSiblingsAffe
ctedByDrag()) | 2698 if (node()->isElementNode() && toElement(node())->childrenOrSiblingsAffe
ctedByDrag()) |
2699 document().styleEngine().pseudoStateChangedForElement(CSSSelector::P
seudoDrag, *toElement(node())); | 2699 toElement(node())->pseudoStateChanged(CSSSelector::PseudoDrag); |
2700 else if (style()->affectedByDrag()) | 2700 else if (style()->affectedByDrag()) |
2701 node()->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTr
acing::create(StyleChangeReason::Drag)); | 2701 node()->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTr
acing::create(StyleChangeReason::Drag)); |
2702 } | 2702 } |
2703 for (LayoutObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) | 2703 for (LayoutObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()
) |
2704 curr->updateDragState(dragOn); | 2704 curr->updateDragState(dragOn); |
2705 } | 2705 } |
2706 | 2706 |
2707 CompositingState LayoutObject::compositingState() const | 2707 CompositingState LayoutObject::compositingState() const |
2708 { | 2708 { |
2709 return hasLayer() ? toLayoutBoxModelObject(this)->layer()->compositingState(
) : NotComposited; | 2709 return hasLayer() ? toLayoutBoxModelObject(this)->layer()->compositingState(
) : NotComposited; |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3499 const blink::LayoutObject* root = object1; | 3499 const blink::LayoutObject* root = object1; |
3500 while (root->parent()) | 3500 while (root->parent()) |
3501 root = root->parent(); | 3501 root = root->parent(); |
3502 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3502 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3503 } else { | 3503 } else { |
3504 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3504 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3505 } | 3505 } |
3506 } | 3506 } |
3507 | 3507 |
3508 #endif | 3508 #endif |
OLD | NEW |