Index: Source/core/accessibility/AXObject.cpp |
diff --git a/Source/core/accessibility/AXObject.cpp b/Source/core/accessibility/AXObject.cpp |
index 702f279a43135875b16a52b8096b73b6b7b852b5..074c7a6c3fcc18cc179b4807dbaef8fc0dcf1f5c 100644 |
--- a/Source/core/accessibility/AXObject.cpp |
+++ b/Source/core/accessibility/AXObject.cpp |
@@ -824,67 +824,6 @@ void AXObject::selectionChanged() |
parent->selectionChanged(); |
} |
-static VisiblePosition startOfStyleRange(const VisiblePosition& visiblePos) |
-{ |
- RenderObject* renderer = visiblePos.deepEquivalent().deprecatedNode()->renderer(); |
- RenderObject* startRenderer = renderer; |
- RenderStyle* style = renderer->style(); |
- |
- // traverse backward by renderer to look for style change |
- for (RenderObject* r = renderer->previousInPreOrder(); r; r = r->previousInPreOrder()) { |
- // skip non-leaf nodes |
- if (r->firstChild()) |
- continue; |
- |
- // stop at style change |
- if (r->style() != style) |
- break; |
- |
- // remember match |
- startRenderer = r; |
- } |
- |
- return firstPositionInOrBeforeNode(startRenderer->node()); |
-} |
- |
-static VisiblePosition endOfStyleRange(const VisiblePosition& visiblePos) |
-{ |
- RenderObject* renderer = visiblePos.deepEquivalent().deprecatedNode()->renderer(); |
- RenderObject* endRenderer = renderer; |
- RenderStyle* style = renderer->style(); |
- |
- // traverse forward by renderer to look for style change |
- for (RenderObject* r = renderer->nextInPreOrder(); r; r = r->nextInPreOrder()) { |
- // skip non-leaf nodes |
- if (r->firstChild()) |
- continue; |
- |
- // stop at style change |
- if (r->style() != style) |
- break; |
- |
- // remember match |
- endRenderer = r; |
- } |
- |
- return lastPositionInOrAfterNode(endRenderer->node()); |
-} |
- |
-static bool replacedNodeNeedsCharacter(Node* replacedNode) |
-{ |
- // we should always be given a rendered node and a replaced node, but be safe |
- // replaced nodes are either attachments (widgets) or images |
- if (!replacedNode || !replacedNode->renderer() || !replacedNode->renderer()->isReplaced() || replacedNode->isTextNode()) |
- return false; |
- |
- // create an AX object, but skip it if it is not supposed to be seen |
- AXObject* object = replacedNode->renderer()->document().axObjectCache()->getOrCreate(replacedNode); |
- if (object->accessibilityIsIgnored()) |
- return false; |
- |
- return true; |
-} |
- |
int AXObject::lineForPosition(const VisiblePosition& visiblePos) const |
{ |
if (visiblePos.isNull() || !node()) |
@@ -912,17 +851,6 @@ int AXObject::lineForPosition(const VisiblePosition& visiblePos) const |
return lineCount; |
} |
-// Finds a RenderListItem parent give a node. |
-static RenderListItem* renderListItemContainerForNode(Node* node) |
-{ |
- for (; node; node = node->parentNode()) { |
- RenderBoxModelObject* renderer = node->renderBoxModelObject(); |
- if (renderer && renderer->isListItem()) |
- return toRenderListItem(renderer); |
- } |
- return 0; |
-} |
- |
bool AXObject::isARIAControl(AccessibilityRole ariaRole) |
{ |
return isARIAInput(ariaRole) || ariaRole == TextAreaRole || ariaRole == ButtonRole |