Home | History | Annotate | Download | only in dom

Lines Matching refs:offset

61 String CharacterData::substringData(unsigned offset, unsigned count, ExceptionCode& ec)
63 checkCharDataOperation(offset, ec);
67 return m_data->substring(offset, count);
87 void CharacterData::insertData(unsigned offset, const String& arg, ExceptionCode& ec)
89 checkCharDataOperation(offset, ec);
94 newStr.insert(arg, offset);
103 toRenderText(renderer())->setTextWithOffset(m_data, offset, 0);
107 document()->textInserted(this, offset, arg.length());
110 void CharacterData::deleteData(unsigned offset, unsigned count, ExceptionCode& ec)
112 checkCharDataOperation(offset, ec);
117 if (offset + count > length())
118 realCount = length() - offset;
123 newStr.remove(offset, realCount);
132 toRenderText(renderer())->setTextWithOffset(m_data, offset, count);
136 document()->textRemoved(this, offset, realCount);
139 void CharacterData::replaceData(unsigned offset, unsigned count, const String& arg, ExceptionCode& ec)
141 checkCharDataOperation(offset, ec);
146 if (offset + count > length())
147 realCount = length() - offset;
152 newStr.remove(offset, realCount);
153 newStr.insert(arg, offset);
162 toRenderText(renderer())->setTextWithOffset(m_data, offset, count);
167 document()->textRemoved(this, offset, realCount);
168 document()->textInserted(this, offset, arg.length());
195 void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec)
199 // INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit
201 if (offset > length()) {