| Index: Source/core/layout/LayoutText.cpp
|
| diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
|
| index f947ab80107344f15552b8b675f9e9da5744259b..ac36dc083ba35685a1bf8b5d22a0079e180c6ea5 100644
|
| --- a/Source/core/layout/LayoutText.cpp
|
| +++ b/Source/core/layout/LayoutText.cpp
|
| @@ -1134,6 +1134,22 @@ bool LayoutText::isAllCollapsibleWhitespace() const
|
| return true;
|
| }
|
|
|
| +bool LayoutText::isRenderedCharacter(int offsetInNode) const
|
| +{
|
| + for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
|
| + if (offsetInNode < static_cast<int>(box->start()) && !containsReversedText()) {
|
| + // The offset we're looking for is before this node
|
| + // this means the offset must be in content that is
|
| + // not laid out. Return false.
|
| + return false;
|
| + }
|
| + if (offsetInNode >= static_cast<int>(box->start()) && offsetInNode < static_cast<int>(box->start() + box->len()))
|
| + return true;
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| bool LayoutText::containsOnlyWhitespace(unsigned from, unsigned len) const
|
| {
|
| ASSERT(m_text);
|
|
|