| Index: Source/modules/testing/InternalsVibration.cpp
|
| diff --git a/Source/core/svg/SVGUnknownElement.cpp b/Source/modules/testing/InternalsVibration.cpp
|
| similarity index 82%
|
| copy from Source/core/svg/SVGUnknownElement.cpp
|
| copy to Source/modules/testing/InternalsVibration.cpp
|
| index ecc0d2f2f186434ad83a947d92cca241c2bfa3b0..09792a0fb24c0e5198de516f121e27b3776d1477 100644
|
| --- a/Source/core/svg/SVGUnknownElement.cpp
|
| +++ b/Source/modules/testing/InternalsVibration.cpp
|
| @@ -29,13 +29,18 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/svg/SVGUnknownElement.h"
|
| +#include "InternalsVibration.h"
|
| +
|
| +#include "core/dom/Document.h"
|
| +#include "core/testing/Internals.h"
|
| +#include "modules/vibration/NavigatorVibration.h"
|
|
|
| namespace WebCore {
|
|
|
| -SVGUnknownElement::SVGUnknownElement(const QualifiedName& tagName, Document* document)
|
| - : SVGElement(tagName, document)
|
| +bool InternalsVibration::isVibrating(Internals* internals, Document* document)
|
| {
|
| + ASSERT(internals && document && document->page());
|
| + return NavigatorVibration::from(document->page())->isVibrating();
|
| }
|
|
|
| } // namespace WebCore
|
|
|