OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 { | 590 { |
591 m_isResizing = isResizing; | 591 m_isResizing = isResizing; |
592 for (RenderObject* ancestor = parent(); ancestor; ancestor = ancestor->paren
t()) { | 592 for (RenderObject* ancestor = parent(); ancestor; ancestor = ancestor->paren
t()) { |
593 if (ancestor->isFrameSet()) | 593 if (ancestor->isFrameSet()) |
594 toRenderFrameSet(ancestor)->m_isChildResizing = isResizing; | 594 toRenderFrameSet(ancestor)->m_isChildResizing = isResizing; |
595 } | 595 } |
596 if (LocalFrame* frame = this->frame()) | 596 if (LocalFrame* frame = this->frame()) |
597 frame->eventHandler().setResizingFrameSet(isResizing ? frameSet() : 0); | 597 frame->eventHandler().setResizingFrameSet(isResizing ? frameSet() : 0); |
598 } | 598 } |
599 | 599 |
600 bool RenderFrameSet::isResizingRow() const | |
601 { | |
602 return m_isResizing && m_rows.m_splitBeingResized != noSplit; | |
603 } | |
604 | |
605 bool RenderFrameSet::isResizingColumn() const | |
606 { | |
607 return m_isResizing && m_cols.m_splitBeingResized != noSplit; | |
608 } | |
609 | |
610 bool RenderFrameSet::canResizeRow(const IntPoint& p) const | 600 bool RenderFrameSet::canResizeRow(const IntPoint& p) const |
611 { | 601 { |
612 int r = hitTestSplit(m_rows, p.y()); | 602 int r = hitTestSplit(m_rows, p.y()); |
613 return r != noSplit && !m_rows.m_preventResize[r]; | 603 return r != noSplit && !m_rows.m_preventResize[r]; |
614 } | 604 } |
615 | 605 |
616 bool RenderFrameSet::canResizeColumn(const IntPoint& p) const | 606 bool RenderFrameSet::canResizeColumn(const IntPoint& p) const |
617 { | 607 { |
618 int c = hitTestSplit(m_cols, p.x()); | 608 int c = hitTestSplit(m_cols, p.x()); |
619 return c != noSplit && !m_cols.m_preventResize[c]; | 609 return c != noSplit && !m_cols.m_preventResize[c]; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 return SetCursor; | 661 return SetCursor; |
672 } | 662 } |
673 if (canResizeColumn(roundedPoint)) { | 663 if (canResizeColumn(roundedPoint)) { |
674 cursor = columnResizeCursor(); | 664 cursor = columnResizeCursor(); |
675 return SetCursor; | 665 return SetCursor; |
676 } | 666 } |
677 return RenderBox::getCursor(point, cursor); | 667 return RenderBox::getCursor(point, cursor); |
678 } | 668 } |
679 | 669 |
680 } // namespace WebCore | 670 } // namespace WebCore |
OLD | NEW |