Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: Source/core/accessibility/AXObject.cpp

Issue 48523009: Fix unused functions warnings on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix DragController Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/core/css/CSSParser-in.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/core/css/CSSParser-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698