OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
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 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 | 1940 |
1941 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) | 1941 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) |
1942 { | 1942 { |
1943 if (!element) { | 1943 if (!element) { |
1944 ec = INVALID_ACCESS_ERR; | 1944 ec = INVALID_ACCESS_ERR; |
1945 return String(); | 1945 return String(); |
1946 } | 1946 } |
1947 return element->imageSourceURL(); | 1947 return element->imageSourceURL(); |
1948 } | 1948 } |
1949 | 1949 |
1950 #if ENABLE(VIDEO) | |
1951 void Internals::simulateAudioInterruption(Node* node) | |
1952 { | |
1953 #if USE(GSTREAMER) | |
1954 HTMLMediaElement* element = toMediaElement(node); | |
1955 element->player()->simulateAudioInterruption(); | |
1956 #else | |
1957 UNUSED_PARAM(node); | |
1958 #endif | |
1959 } | |
1960 #endif | |
1961 | |
1962 bool Internals::isSelectPopupVisible(Node* node) | 1950 bool Internals::isSelectPopupVisible(Node* node) |
1963 { | 1951 { |
1964 if (!isHTMLSelectElement(node)) | 1952 if (!isHTMLSelectElement(node)) |
1965 return false; | 1953 return false; |
1966 | 1954 |
1967 HTMLSelectElement* select = toHTMLSelectElement(node); | 1955 HTMLSelectElement* select = toHTMLSelectElement(node); |
1968 | 1956 |
1969 RenderObject* renderer = select->renderer(); | 1957 RenderObject* renderer = select->renderer(); |
1970 if (!renderer->isMenuList()) | 1958 if (!renderer->isMenuList()) |
1971 return false; | 1959 return false; |
1972 | 1960 |
1973 RenderMenuList* menuList = toRenderMenuList(renderer); | 1961 RenderMenuList* menuList = toRenderMenuList(renderer); |
1974 return menuList->popupIsVisible(); | 1962 return menuList->popupIsVisible(); |
1975 } | 1963 } |
1976 | 1964 |
1977 } | 1965 } |
OLD | NEW |