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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 bool HTMLCanvasElement::wouldTaintOrigin(SecurityOrigin*) const | 926 bool HTMLCanvasElement::wouldTaintOrigin(SecurityOrigin*) const |
927 { | 927 { |
928 return !originClean(); | 928 return !originClean(); |
929 } | 929 } |
930 | 930 |
931 FloatSize HTMLCanvasElement::elementSize() const | 931 FloatSize HTMLCanvasElement::elementSize() const |
932 { | 932 { |
933 return FloatSize(width(), height()); | 933 return FloatSize(width(), height()); |
934 } | 934 } |
935 | 935 |
| 936 IntSize HTMLCanvasElement::bitmapSourceSize() const |
| 937 { |
| 938 return IntSize(width(), height()); |
| 939 } |
| 940 |
936 bool HTMLCanvasElement::isOpaque() const | 941 bool HTMLCanvasElement::isOpaque() const |
937 { | 942 { |
938 return m_context && !m_context->hasAlpha(); | 943 return m_context && !m_context->hasAlpha(); |
939 } | 944 } |
940 | 945 |
941 } // blink | 946 } // blink |
OLD | NEW |