Chromium Code Reviews| Index: Source/core/accessibility/AXListBoxOption.cpp |
| diff --git a/Source/core/accessibility/AXListBoxOption.cpp b/Source/core/accessibility/AXListBoxOption.cpp |
| index 2aa6c2e9e363d13d468341d58972dc7f0b1c2c4d..fd617bdd32f695e44af69a5d2aff30892766883e 100644 |
| --- a/Source/core/accessibility/AXListBoxOption.cpp |
| +++ b/Source/core/accessibility/AXListBoxOption.cpp |
| @@ -105,8 +105,10 @@ LayoutRect AXListBoxOption::elementRect() const |
| LayoutRect parentRect = listBoxRenderer->document().axObjectCache()->getOrCreate(listBoxRenderer)->elementRect(); |
| int index = listBoxOptionIndex(); |
| - if (index != -1) |
| - rect = toRenderListBox(listBoxRenderer)->itemBoundingBoxRect(parentRect.location(), index); |
| + if (index != -1) { |
| + RenderListBox* listBox = toRenderListBox(listBoxRenderer); |
| + rect = listBox->itemBoundingBoxRect(parentRect.location(), listBox->toRenderListBoxIndex(index)); |
|
keishi
2014/04/11 06:40:13
Ditto. toRenderListBoxIndex should be done inside
|
| + } |
| return rect; |
| } |