ISVGSVGFrame.h (1077B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef LAYOUT_SVG_ISVGSVGFRAME_H_ 8 #define LAYOUT_SVG_ISVGSVGFRAME_H_ 9 10 #include "mozilla/ISVGDisplayableFrame.h" 11 #include "nsQueryFrame.h" 12 13 namespace mozilla { 14 15 class ISVGSVGFrame { 16 public: 17 NS_DECL_QUERYFRAME_TARGET(ISVGSVGFrame) 18 19 /** 20 * Called when non-attribute changes have caused the element's width/height 21 * or its for-children transform to change, and to get the element to notify 22 * its children appropriately. aFlags must be set to 23 * ISVGDisplayableFrame::ChangeFlag::CoordContextChanged and/or 24 * ISVGDisplayableFrame::ChangeFlag::TransformChanged. 25 */ 26 virtual void NotifyViewportOrTransformChanged( 27 ISVGDisplayableFrame::ChangeFlags aFlags) = 0; 28 }; 29 30 } // namespace mozilla 31 32 #endif // LAYOUT_SVG_ISVGSVGFRAME_H_