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; |
|
676 RenderObject *o = renderer(); |
674 RenderObject *o = renderer(); |
|
675 if (!o) return false; |
|
676 |
677 RenderObject *p = o; |
677 RenderObject *p = o; |
678 |
|
679 xPos = yPos = 0; |
678 xPos = yPos = 0; |
680 if (!o->isInline() || o->isReplaced()) { |
679 if (!o->isInline() || o->isReplaced()) { |
681 o->absolutePosition(xPos, yPos); |
680 o->absolutePosition(xPos, yPos); |
682 return true; |
681 return true; |
683 } |
682 } |
730 return false; |
729 return false; |
731 } |
730 } |
732 |
731 |
733 bool ContainerNode::getLowerRightCorner(int &xPos, int &yPos) const |
732 bool ContainerNode::getLowerRightCorner(int &xPos, int &yPos) const |
734 { |
733 { |
735 if (!renderer()) |
|
736 return false; |
|
737 |
|
738 RenderObject *o = renderer(); |
734 RenderObject *o = renderer(); |
|
735 if (!o) return false; |
|
736 |
739 xPos = yPos = 0; |
737 xPos = yPos = 0; |
740 if (!o->isInline() || o->isReplaced()) |
738 if (!o->isInline() || o->isReplaced()) |
741 { |
739 { |
742 o->absolutePosition(xPos, yPos); |
740 o->absolutePosition(xPos, yPos); |
743 xPos += o->width(); |
741 xPos += o->width(); |