Changeset 98393 in webkit
- Timestamp:
- Oct 25, 2011, 2:10:12 PM (15 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 added
- 7 edited
-
WebCore/platform/graphics/chromium/LayerChromium.h (modified) (2 diffs)
-
WebKit/chromium/ChangeLog (modified) (1 diff)
-
WebKit/chromium/WebKit.gypi (modified) (1 diff)
-
WebKit/chromium/src/WebContentLayerImpl.cpp (modified) (2 diffs)
-
WebKit/chromium/src/WebExternalTextureLayerImpl.cpp (modified) (1 diff)
-
WebKit/chromium/src/WebLayerImpl.cpp (modified) (1 diff)
-
WebKit/chromium/tests/LayerChromiumTest.cpp (modified) (2 diffs)
-
WebKit/chromium/tests/WebLayerTest.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.h
r98360 r98393 97 97 virtual IntSize contentBounds() const { return bounds(); } 98 98 99 void setMasksToBounds(bool masksToBounds) { m_masksToBounds = masksToBounds; }99 void setMasksToBounds(bool masksToBounds) { m_masksToBounds = masksToBounds; setNeedsCommit(); } 100 100 bool masksToBounds() const { return m_masksToBounds; } 101 101 … … 103 103 const String& name() const { return m_name; } 104 104 105 void setMaskLayer(LayerChromium* maskLayer) { m_maskLayer = maskLayer; }105 void setMaskLayer(LayerChromium* maskLayer) { m_maskLayer = maskLayer; setNeedsCommit(); } 106 106 LayerChromium* maskLayer() const { return m_maskLayer.get(); } 107 107 -
trunk/Source/WebKit/chromium/ChangeLog
r98388 r98393 1 2011-10-25 Antoine Labour <piman@chromium.org> 2 3 Fix teardown in Web*LayerImpl, and add tests for Web*Layer 4 https://bugs.webkit.org/show_bug.cgi?id=70431 5 6 Reviewed by James Robinson. 7 8 * src/WebContentLayerImpl.cpp: 9 (WebKit::WebContentLayerImpl::~WebContentLayerImpl): 10 * src/WebExternalTextureLayerImpl.cpp: 11 (WebKit::WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl): 12 * src/WebLayerImpl.cpp: 13 (WebKit::WebLayerImpl::~WebLayerImpl): 14 1 15 2011-10-25 Adam Barth <abarth@webkit.org> 2 16 -
trunk/Source/WebKit/chromium/WebKit.gypi
r98347 r98393 82 82 'tests/WebCompositorImplTest.cpp', 83 83 'tests/WebFrameTest.cpp', 84 'tests/WebLayerTest.cpp', 84 85 'tests/WebURLRequestTest.cpp', 85 86 'tests/WebViewTest.cpp', -
trunk/Source/WebKit/chromium/src/WebContentLayerImpl.cpp
r96990 r98393 55 55 WebContentLayerImpl::~WebContentLayerImpl() 56 56 { 57 setDelegate(0); 57 58 } 58 59 … … 60 61 { 61 62 m_drawsContent = drawsContent; 63 setNeedsCommit(); 62 64 } 63 65 -
trunk/Source/WebKit/chromium/src/WebExternalTextureLayerImpl.cpp
r97550 r98393 49 49 WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl() 50 50 { 51 setDelegate(0); 51 52 } 52 53 -
trunk/Source/WebKit/chromium/src/WebLayerImpl.cpp
r96990 r98393 44 44 WebLayerImpl::~WebLayerImpl() 45 45 { 46 setDelegate(0); 46 47 } 47 48 -
trunk/Source/WebKit/chromium/tests/LayerChromiumTest.cpp
r96450 r98393 620 620 EXPECT_CALL(initialDelegate, notifySyncRequired()).Times(0); // old delegate should not be used when setDelegate gives a new delegate. 621 621 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setDelegate(&mockDelegate)); 622 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setMasksToBounds(true));623 622 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setName("Test Layer")); 624 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setMaskLayer(dummyLayer.get()));625 623 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setVisibleLayerRect(IntRect(0, 0, 40, 50))); 626 624 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 0, testLayer->setScrollPosition(IntPoint(10, 10))); … … 643 641 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setAnchorPointZ(0.7f)); 644 642 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setBackgroundColor(Color(0.4f, 0.4f, 0.4f))); 643 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setMasksToBounds(true)); 644 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setMaskLayer(dummyLayer.get())); 645 645 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setOpacity(0.5f)); 646 646 EXECUTE_AND_VERIFY_NOTIFY_SYNC_BEHAVIOR(mockDelegate, 1, testLayer->setOpaque(false));
Note:
See TracChangeset
for help on using the changeset viewer.