| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 context->setFillColor(Color(0xCC, 0xCC, 0xCC), ColorSpaceDeviceRGB); | 603 context->setFillColor(Color(0xCC, 0xCC, 0xCC), ColorSpaceDeviceRGB); |
| 604 context->fillRect(intersection(horizontalOverhangArea, dirtyRect)); | 604 context->fillRect(intersection(horizontalOverhangArea, dirtyRect)); |
| 605 context->fillRect(intersection(verticalOverhangArea, dirtyRect)); | 605 context->fillRect(intersection(verticalOverhangArea, dirtyRect)); |
| 606 context->restore(); | 606 context->restore(); |
| 607 return true; | 607 return true; |
| 608 } | 608 } |
| 609 | 609 |
| 610 // Private methods ------------------------------------------------------------- | 610 // Private methods ------------------------------------------------------------- |
| 611 | 611 |
| 612 WebPluginContainerImpl::WebPluginContainerImpl(WebCore::HTMLPlugInElement* eleme
nt, WebPlugin* webPlugin) | 612 WebPluginContainerImpl::WebPluginContainerImpl(WebCore::HTMLPlugInElement* eleme
nt, WebPlugin* webPlugin) |
| 613 : WebCore::PluginViewBase(0) | 613 : WebCore::PluginViewBase() |
| 614 , m_element(element) | 614 , m_element(element) |
| 615 , m_webPlugin(webPlugin) | 615 , m_webPlugin(webPlugin) |
| 616 , m_webLayer(0) | 616 , m_webLayer(0) |
| 617 , m_touchEventRequestType(TouchEventRequestTypeNone) | 617 , m_touchEventRequestType(TouchEventRequestTypeNone) |
| 618 , m_wantsWheelEvents(false) | 618 , m_wantsWheelEvents(false) |
| 619 { | 619 { |
| 620 } | 620 } |
| 621 | 621 |
| 622 WebPluginContainerImpl::~WebPluginContainerImpl() | 622 WebPluginContainerImpl::~WebPluginContainerImpl() |
| 623 { | 623 { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 // Take our element and get the clip rect from the enclosing layer and | 860 // Take our element and get the clip rect from the enclosing layer and |
| 861 // frame view. | 861 // frame view. |
| 862 clipRect.intersect( | 862 clipRect.intersect( |
| 863 m_element->document()->view()->windowClipRectForFrameOwner(m_element
, true)); | 863 m_element->document()->view()->windowClipRectForFrameOwner(m_element
, true)); |
| 864 } | 864 } |
| 865 | 865 |
| 866 return clipRect; | 866 return clipRect; |
| 867 } | 867 } |
| 868 | 868 |
| 869 } // namespace WebKit | 869 } // namespace WebKit |
| OLD | NEW |