|
Lines 1335-1341
bool Internals::hasSpellingMarker(int from, int length, ExceptionCode&)
a/Source/WebCore/testing/Internals.cpp_sec1
|
| 1335 |
{ |
1335 |
{ |
| 1336 |
Document* document = contextDocument(); |
1336 |
Document* document = contextDocument(); |
| 1337 |
if (!document || !document->frame()) |
1337 |
if (!document || !document->frame()) |
| 1338 |
return 0; |
1338 |
return false; |
| 1339 |
|
1339 |
|
| 1340 |
updateEditorUINowIfScheduled(); |
1340 |
updateEditorUINowIfScheduled(); |
| 1341 |
|
1341 |
|
|
Lines 1346-1352
bool Internals::hasAutocorrectedMarker(int from, int length, ExceptionCode&)
a/Source/WebCore/testing/Internals.cpp_sec2
|
| 1346 |
{ |
1346 |
{ |
| 1347 |
Document* document = contextDocument(); |
1347 |
Document* document = contextDocument(); |
| 1348 |
if (!document || !document->frame()) |
1348 |
if (!document || !document->frame()) |
| 1349 |
return 0; |
1349 |
return false; |
| 1350 |
|
1350 |
|
| 1351 |
updateEditorUINowIfScheduled(); |
1351 |
updateEditorUINowIfScheduled(); |
| 1352 |
|
1352 |
|
|
Lines 1431-1437
bool Internals::isOverwriteModeEnabled(ExceptionCode&)
a/Source/WebCore/testing/Internals.cpp_sec3
|
| 1431 |
{ |
1431 |
{ |
| 1432 |
Document* document = contextDocument(); |
1432 |
Document* document = contextDocument(); |
| 1433 |
if (!document || !document->frame()) |
1433 |
if (!document || !document->frame()) |
| 1434 |
return 0; |
1434 |
return false; |
| 1435 |
|
1435 |
|
| 1436 |
return document->frame()->editor().isOverwriteModeEnabled(); |
1436 |
return document->frame()->editor().isOverwriteModeEnabled(); |
| 1437 |
} |
1437 |
} |
|
Lines 1561-1567
bool Internals::hasGrammarMarker(int from, int length, ExceptionCode&)
a/Source/WebCore/testing/Internals.cpp_sec4
|
| 1561 |
{ |
1561 |
{ |
| 1562 |
Document* document = contextDocument(); |
1562 |
Document* document = contextDocument(); |
| 1563 |
if (!document || !document->frame()) |
1563 |
if (!document || !document->frame()) |
| 1564 |
return 0; |
1564 |
return false; |
| 1565 |
|
1565 |
|
| 1566 |
return document->frame()->editor().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length); |
1566 |
return document->frame()->editor().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length); |
| 1567 |
} |
1567 |
} |