| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 if (isHTMLInputElement(node)) { | 1326 if (isHTMLInputElement(node)) { |
| 1327 HTMLInputElement* element = toHTMLInputElement(node); | 1327 HTMLInputElement* element = toHTMLInputElement(node); |
| 1328 placeholder = element->strippedPlaceholder(); | 1328 placeholder = element->strippedPlaceholder(); |
| 1329 if (!placeholder.isEmpty()) | 1329 if (!placeholder.isEmpty()) |
| 1330 return placeholder; | 1330 return placeholder; |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 return String(); | 1333 return String(); |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location) |
| 1337 { |
| 1338 AXObject* hit = root()->accessibilityHitTest(location); |
| 1339 if (hit) |
| 1340 postPlatformNotification(hit, AXHover); |
| 1341 } |
| 1342 |
| 1336 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1343 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
| 1337 { | 1344 { |
| 1338 AXObject* obj = getOrCreate(element); | 1345 AXObject* obj = getOrCreate(element); |
| 1339 if (!obj) | 1346 if (!obj) |
| 1340 return; | 1347 return; |
| 1341 | 1348 |
| 1342 obj->setElementRect(rect); | 1349 obj->setElementRect(rect); |
| 1343 } | 1350 } |
| 1344 | 1351 |
| 1345 DEFINE_TRACE(AXObjectCacheImpl) | 1352 DEFINE_TRACE(AXObjectCacheImpl) |
| 1346 { | 1353 { |
| 1347 #if ENABLE(OILPAN) | 1354 #if ENABLE(OILPAN) |
| 1348 visitor->trace(m_document); | 1355 visitor->trace(m_document); |
| 1349 visitor->trace(m_widgetObjectMapping); | 1356 visitor->trace(m_widgetObjectMapping); |
| 1350 visitor->trace(m_nodeObjectMapping); | 1357 visitor->trace(m_nodeObjectMapping); |
| 1351 #endif | 1358 #endif |
| 1352 | 1359 |
| 1353 visitor->trace(m_objects); | 1360 visitor->trace(m_objects); |
| 1354 visitor->trace(m_notificationsToPost); | 1361 visitor->trace(m_notificationsToPost); |
| 1355 | 1362 |
| 1356 AXObjectCache::trace(visitor); | 1363 AXObjectCache::trace(visitor); |
| 1357 } | 1364 } |
| 1358 | 1365 |
| 1359 } // namespace blink | 1366 } // namespace blink |
| OLD | NEW |