OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 || element.hasTagName(HTMLNames::tbodyTag) | 1076 || element.hasTagName(HTMLNames::tbodyTag) |
1077 || element.hasTagName(HTMLNames::tfootTag) | 1077 || element.hasTagName(HTMLNames::tfootTag) |
1078 || element.hasTagName(HTMLNames::trTag) | 1078 || element.hasTagName(HTMLNames::trTag) |
1079 || element.hasTagName(HTMLNames::tdTag) | 1079 || element.hasTagName(HTMLNames::tdTag) |
1080 || element.hasTagName(HTMLNames::thTag)) | 1080 || element.hasTagName(HTMLNames::thTag)) |
1081 return true; | 1081 return true; |
1082 | 1082 |
1083 return false; | 1083 return false; |
1084 } | 1084 } |
1085 | 1085 |
| 1086 std::pair<Element*, String> HTMLCanvasElement::getControlAndIdIfHitRegionExists(
const LayoutPoint& location) |
| 1087 { |
| 1088 if (m_context && m_context->is2d() && m_context->hitRegionsCount() > 0) |
| 1089 return m_context->getControlAndIdIfHitRegionExists(location); |
| 1090 return std::make_pair(nullptr, String()); |
| 1091 } |
| 1092 |
1086 } // namespace blink | 1093 } // namespace blink |
OLD | NEW |