diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp b/Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp index fcdcce9..098534c 100644 --- a/Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp +++ b/Source/WebCore/platform/graphics/android/PlatformGraphicsContext.cpp @@ -30,13 +30,13 @@ namespace WebCore { -PlatformGraphicsContext::PlatformGraphicsContext(SkCanvas* canvas, WTF::Vector<Container>* buttons) - : mCanvas(canvas), m_deleteCanvas(false), m_buttons(buttons) +PlatformGraphicsContext::PlatformGraphicsContext(SkCanvas* canvas) + : mCanvas(canvas), m_deleteCanvas(false) { } PlatformGraphicsContext::PlatformGraphicsContext() - : mCanvas(new SkCanvas), m_deleteCanvas(true), m_buttons(0) + : mCanvas(new SkCanvas), m_deleteCanvas(true) { } @@ -48,27 +48,4 @@ PlatformGraphicsContext::~PlatformGraphicsContext() } } -void PlatformGraphicsContext::storeButtonInfo(Node* node, const IntRect& r) -{ - if (m_buttons == NULL) - return; - // Check to see if we already have a Container for this node. If so, update - // it with the new rectangle and make the new recording canvas reference - // its picture. - Container* end = m_buttons->end(); - for (Container* ptr = m_buttons->begin(); ptr != end; ptr++) { - if (ptr->matches(node)) { - mCanvas->drawPicture(*(ptr->picture())); - ptr->setRect(r); - return; - } - } - // We did not have a Container representing this node, so create a new one. - Container container(node, r); - // Place a reference to our subpicture in the Picture. - mCanvas->drawPicture(*(container.picture())); - // Keep track of the information about the button. - m_buttons->append(container); -} - } // WebCore |