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 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2758 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&) | 2758 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&) |
2759 { | 2759 { |
2760 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); | 2760 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); |
2761 } | 2761 } |
2762 | 2762 |
2763 void RenderObject::updateDragState(bool dragOn) | 2763 void RenderObject::updateDragState(bool dragOn) |
2764 { | 2764 { |
2765 bool valueChanged = (dragOn != isDragging()); | 2765 bool valueChanged = (dragOn != isDragging()); |
2766 setIsDragging(dragOn); | 2766 setIsDragging(dragOn); |
2767 if (valueChanged && node() && (style()->affectedByDrag() || (node()->isEleme
ntNode() && toElement(node())->childrenAffectedByDrag()))) | 2767 if (valueChanged && node() && (style()->affectedByDrag() || (node()->isEleme
ntNode() && toElement(node())->childrenAffectedByDrag()))) |
2768 node()->setNeedsStyleRecalc(); | 2768 node()->setNeedsStyleRecalc(SubtreeStyleChange); |
2769 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) | 2769 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) |
2770 curr->updateDragState(dragOn); | 2770 curr->updateDragState(dragOn); |
2771 } | 2771 } |
2772 | 2772 |
2773 CompositingState RenderObject::compositingState() const | 2773 CompositingState RenderObject::compositingState() const |
2774 { | 2774 { |
2775 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat
e() : NotComposited; | 2775 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat
e() : NotComposited; |
2776 } | 2776 } |
2777 | 2777 |
2778 bool RenderObject::acceleratedCompositingForOverflowScrollEnabled() const | 2778 bool RenderObject::acceleratedCompositingForOverflowScrollEnabled() const |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3381 { | 3381 { |
3382 if (object1) { | 3382 if (object1) { |
3383 const WebCore::RenderObject* root = object1; | 3383 const WebCore::RenderObject* root = object1; |
3384 while (root->parent()) | 3384 while (root->parent()) |
3385 root = root->parent(); | 3385 root = root->parent(); |
3386 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3386 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3387 } | 3387 } |
3388 } | 3388 } |
3389 | 3389 |
3390 #endif | 3390 #endif |
OLD | NEW |