equal
deleted
inserted
replaced
669 document()->frame()->editor()->deleteButtonController()->enable(); |
669 document()->frame()->editor()->deleteButtonController()->enable(); |
670 } |
670 } |
671 |
671 |
672 bool ContainerNode::getUpperLeftCorner(int &xPos, int &yPos) const |
672 bool ContainerNode::getUpperLeftCorner(int &xPos, int &yPos) const |
673 { |
673 { |
|
674 if (!renderer()) |
|
675 return false; |
674 RenderObject *o = renderer(); |
676 RenderObject *o = renderer(); |
675 if (!o) return false; |
|
676 |
|
677 RenderObject *p = o; |
677 RenderObject *p = o; |
|
678 |
678 xPos = yPos = 0; |
679 xPos = yPos = 0; |
679 if (!o->isInline() || o->isReplaced()) { |
680 if (!o->isInline() || o->isReplaced()) { |
680 o->absolutePosition(xPos, yPos); |
681 o->absolutePosition(xPos, yPos); |
681 return true; |
682 return true; |
682 } |
683 } |
729 return false; |
730 return false; |
730 } |
731 } |
731 |
732 |
732 bool ContainerNode::getLowerRightCorner(int &xPos, int &yPos) const |
733 bool ContainerNode::getLowerRightCorner(int &xPos, int &yPos) const |
733 { |
734 { |
|
735 if (!renderer()) |
|
736 return false; |
|
737 |
734 RenderObject *o = renderer(); |
738 RenderObject *o = renderer(); |
735 if (!o) return false; |
|
736 |
|
737 xPos = yPos = 0; |
739 xPos = yPos = 0; |
738 if (!o->isInline() || o->isReplaced()) |
740 if (!o->isInline() || o->isReplaced()) |
739 { |
741 { |
740 o->absolutePosition(xPos, yPos); |
742 o->absolutePosition(xPos, yPos); |
741 xPos += o->width(); |
743 xPos += o->width(); |