/src/mozilla-central/layout/svg/nsSVGGenericContainerFrame.cpp
Line | Count | Source (jump to first uncovered line) |
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 | | // Main header first: |
8 | | #include "nsSVGGenericContainerFrame.h" |
9 | | #include "nsSVGIntegrationUtils.h" |
10 | | |
11 | | //---------------------------------------------------------------------- |
12 | | // nsSVGGenericContainerFrame Implementation |
13 | | |
14 | | nsIFrame* |
15 | | NS_NewSVGGenericContainerFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle) |
16 | 0 | { |
17 | 0 | return new (aPresShell) nsSVGGenericContainerFrame(aStyle); |
18 | 0 | } |
19 | | |
20 | | NS_IMPL_FRAMEARENA_HELPERS(nsSVGGenericContainerFrame) |
21 | | |
22 | | //---------------------------------------------------------------------- |
23 | | // nsIFrame methods |
24 | | |
25 | | nsresult |
26 | | nsSVGGenericContainerFrame::AttributeChanged(int32_t aNameSpaceID, |
27 | | nsAtom* aAttribute, |
28 | | int32_t aModType) |
29 | 0 | { |
30 | | #ifdef DEBUG |
31 | | nsAutoString str; |
32 | | aAttribute->ToString(str); |
33 | | printf("** nsSVGGenericContainerFrame::AttributeChanged(%s)\n", |
34 | | NS_LossyConvertUTF16toASCII(str).get()); |
35 | | #endif |
36 | |
|
37 | 0 | return NS_OK; |
38 | 0 | } |
39 | | |
40 | | //---------------------------------------------------------------------- |
41 | | // nsSVGContainerFrame methods: |
42 | | |
43 | | gfxMatrix |
44 | | nsSVGGenericContainerFrame::GetCanvasTM() |
45 | 0 | { |
46 | 0 | NS_ASSERTION(GetParent(), "null parent"); |
47 | 0 |
|
48 | 0 | return static_cast<nsSVGContainerFrame*>(GetParent())->GetCanvasTM(); |
49 | 0 | } |