Changeset 105245 in webkit
- Timestamp:
- Jan 17, 2012 10:55:01 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r105224 r105245 1 2012-01-17 Hajime Morrita <morrita@chromium.org> 2 3 [Internals] Should be able to access corresponding Document object. 4 https://bugs.webkit.org/show_bug.cgi?id=76425 5 6 Added exported symbols. 7 8 Reviewed by Adam Barth. 9 10 * Source/autotools/symbols.filter: 11 1 12 2012-01-17 Stephen Chenney <schenney@chromium.org> 2 13 -
trunk/Source/WebCore/ChangeLog
r105244 r105245 1 2012-01-17 Hajime Morrita <morrita@chromium.org> 2 3 [Internals] Should be able to access corresponding Document object. 4 https://bugs.webkit.org/show_bug.cgi?id=76425 5 6 Reviewed by Adam Barth. 7 8 - Allow FrameDestructionObserver to re-setting the Frame reference. 9 - Make Internals a subclass of FrameDestructionObserver. 10 11 Since Internals::reset() is called for each test, we can access 12 the acive Frame object during the test. The frame reference will be 13 used by coming changes. 14 15 No new tests. Covered by existing tests. 16 17 * WebCore.exp.in: 18 * page/FrameDestructionObserver.cpp: 19 (WebCore::FrameDestructionObserver::FrameDestructionObserver): 20 (WebCore::FrameDestructionObserver::~FrameDestructionObserver): 21 (WebCore::FrameDestructionObserver::observe): 22 * page/FrameDestructionObserver.h: 23 * testing/Internals.cpp: 24 (WebCore::Internals::Internals): 25 (WebCore::Internals::reset): 26 * testing/Internals.h: 27 1 28 2012-01-17 Dominic Mazzoni <dmazzoni@google.com> 2 29 -
trunk/Source/WebCore/WebCore.exp.in
r105243 r105245 658 658 __ZN7WebCore24deleteCookiesForHostnameERKN3WTF6StringE 659 659 __ZN7WebCore24fileSystemRepresentationERKN3WTF6StringE 660 __ZN7WebCore24FrameDestructionObserverD2Ev 661 __ZN7WebCore24FrameDestructionObserverC2EPNS_5FrameE 662 __ZN7WebCore24FrameDestructionObserver12observeFrameEPNS_5FrameE 663 __ZN7WebCore24FrameDestructionObserver14frameDestroyedEv 660 664 __ZN7WebCore24notifyHistoryItemChangedE 661 665 __ZN7WebCore25HistoryPropertyListWriter11releaseDataEv -
trunk/Source/WebCore/page/FrameDestructionObserver.cpp
r104344 r105245 32 32 33 33 FrameDestructionObserver::FrameDestructionObserver(Frame* frame) 34 : m_frame( frame)34 : m_frame(0) 35 35 { 36 if (m_frame) 37 m_frame->addDestructionObserver(this); 36 observeFrame(frame); 38 37 } 39 38 40 39 FrameDestructionObserver::~FrameDestructionObserver() 41 40 { 41 observeFrame(0); 42 43 } 44 45 void FrameDestructionObserver::observeFrame(Frame* frame) 46 { 42 47 if (m_frame) 43 48 m_frame->removeDestructionObserver(this); 49 50 m_frame = frame; 51 52 if (m_frame) 53 m_frame->addDestructionObserver(this); 44 54 } 45 55 -
trunk/Source/WebCore/page/FrameDestructionObserver.h
r104344 r105245 39 39 protected: 40 40 virtual ~FrameDestructionObserver(); 41 void observeFrame(Frame*); 41 42 42 43 Frame* m_frame; -
trunk/Source/WebCore/testing/Internals.cpp
r105126 r105245 114 114 115 115 Internals::Internals() 116 : m_passwordEchoDurationInSecondsBackup(0) 116 : FrameDestructionObserver(0) 117 , m_passwordEchoDurationInSecondsBackup(0) 117 118 , m_passwordEchoDurationInSecondsBackedUp(false) 118 119 , m_passwordEchoEnabledBackedUp(false) … … 467 468 return; 468 469 470 observeFrame(document->frame()); 471 469 472 if (m_passwordEchoDurationInSecondsBackedUp) { 470 473 document->settings()->setPasswordEchoDurationInSeconds(m_passwordEchoDurationInSecondsBackup); -
trunk/Source/WebCore/testing/Internals.h
r105126 r105245 27 27 #define Internals_h 28 28 29 #include "FrameDestructionObserver.h" 29 30 #include "PlatformString.h" 30 31 #include <wtf/PassRefPtr.h> … … 42 43 typedef int ExceptionCode; 43 44 44 class Internals : public RefCounted<Internals> { 45 class Internals : public RefCounted<Internals>, 46 public FrameDestructionObserver { 45 47 public: 46 48 static PassRefPtr<Internals> create(); -
trunk/Source/WebKit2/ChangeLog
r105234 r105245 1 2012-01-17 Hajime Morrita <morrita@chromium.org> 2 3 [Internals] Should be able to access corresponding Document object. 4 https://bugs.webkit.org/show_bug.cgi?id=76425 5 6 Reviewed by Adam Barth. 7 8 * win/WebKit2.def: Added exporting symbols. 9 * win/WebKit2CFLite.def: Added exporting symbols. 10 1 11 2012-01-17 Matthew Delaney <mdelaney@apple.com> 2 12 -
trunk/Source/WebKit2/win/WebKit2.def
r104174 r105245 134 134 ?waitForThreadCompletion@WTF@@YAHIPAPAX@Z 135 135 ?createThread@WTF@@YAIP6APAXPAX@Z0@Z 136 137 136 ; Re-exports from WebCore for test harnesses 138 137 ??0NodeRenderingContext@WebCore@@QAE@PAVNode@1@@Z … … 144 143 ??0String@WTF@@QAE@PBD@Z 145 144 ??0String@WTF@@QAE@PB_W@Z 145 ??1FrameDestructionObserver@WebCore@@MAE@XZ 146 ??0FrameDestructionObserver@WebCore@@QAE@PAVFrame@1@@Z 146 147 ?absoluteBoundingBoxRect@RenderObject@WebCore@@QBE?AVIntRect@2@_N@Z 147 148 ?absoluteBoundingBoxRectIgnoringTransforms@RenderObject@WebCore@@QBE?AVIntRect@2@XZ … … 157 158 ?equalIgnoringCase@WTF@@YA_NPAVStringImpl@1@PBE@Z 158 159 ?externalRepresentation@WebCore@@YA?AVString@WTF@@PAVElement@1@I@Z 160 ?frameDestroyed@FrameDestructionObserver@WebCore@@UAEXXZ 159 161 ?getCachedDOMStructure@WebCore@@YAPAVStructure@JSC@@PAVJSDOMGlobalObject@1@PBUClassInfo@3@@Z 160 162 ?getData16SlowCase@StringImpl@WTF@@ABEPB_WXZ … … 165 167 ?lastChangeWasUserEdit@HTMLTextFormControlElement@WebCore@@QBE_NXZ 166 168 ?markersFor@DocumentMarkerController@WebCore@@QAE?AV?$Vector@PAVDocumentMarker@WebCore@@$0A@@WTF@@PAVNode@2@VMarkerTypes@DocumentMarker@2@@Z 169 ?observeFrame@FrameDestructionObserver@WebCore@@IAEXPAVFrame@2@@Z 167 170 ?page@Document@WebCore@@QBEPAVPage@2@XZ 168 171 ?paintControlTints@FrameView@WebCore@@AAEXXZ -
trunk/Source/WebKit2/win/WebKit2CFLite.def
r104174 r105245 137 137 ??0String@WTF@@QAE@PBD@Z 138 138 ??0String@WTF@@QAE@PB_W@Z 139 ??1FrameDestructionObserver@WebCore@@MAE@XZ 140 ??0FrameDestructionObserver@WebCore@@QAE@PAVFrame@1@@Z 139 141 ?absoluteBoundingBoxRect@RenderObject@WebCore@@QBE?AVIntRect@2@_N@Z 140 142 ?absoluteBoundingBoxRectIgnoringTransforms@RenderObject@WebCore@@QBE?AVIntRect@2@XZ … … 150 152 ?equalIgnoringCase@WTF@@YA_NPAVStringImpl@1@PBE@Z 151 153 ?externalRepresentation@WebCore@@YA?AVString@WTF@@PAVElement@1@I@Z 154 ?frameDestroyed@FrameDestructionObserver@WebCore@@UAEXXZ 152 155 ?getCachedDOMStructure@WebCore@@YAPAVStructure@JSC@@PAVJSDOMGlobalObject@1@PBUClassInfo@3@@Z 153 156 ?getData16SlowCase@StringImpl@WTF@@ABEPB_WXZ … … 158 161 ?lastChangeWasUserEdit@HTMLTextFormControlElement@WebCore@@QBE_NXZ 159 162 ?markersFor@DocumentMarkerController@WebCore@@QAE?AV?$Vector@PAVDocumentMarker@WebCore@@$0A@@WTF@@PAVNode@2@VMarkerTypes@DocumentMarker@2@@Z 163 ?observeFrame@FrameDestructionObserver@WebCore@@IAEXPAVFrame@2@@Z 160 164 ?page@Document@WebCore@@QBEPAVPage@2@XZ 161 165 ?paintControlTints@FrameView@WebCore@@AAEXXZ -
trunk/Source/autotools/symbols.filter
r104827 r105245 86 86 _ZN7WebCore9FrameView19scrollElementToRectEPNS_7ElementERKNS_7IntRectE; 87 87 _ZN7WebCore9FrameView43setShouldLayoutFixedElementsRelativeToFrameEb; 88 _ZN7WebCore24FrameDestructionObserverD2Ev; 89 _ZN7WebCore24FrameDestructionObserverC2EPNS_5FrameE; 90 _ZN7WebCore24FrameDestructionObserver7observeEPNS_5FrameE; 91 _ZN7WebCore24FrameDestructionObserver14frameDestroyedEv; 88 92 local: 89 93 _Z*;
Note: See TracChangeset
for help on using the changeset viewer.