Changeset 161593 in webkit
- Timestamp:
- Jan 9, 2014, 4:02:51 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r161592 r161593 1 2014-01-09 Anders Carlsson <andersca@apple.com> 2 3 History::StateObjectType should be a strong enum 4 https://bugs.webkit.org/show_bug.cgi?id=126725 5 6 Reviewed by Beth Dakin. 7 8 * bindings/js/JSHistoryCustom.cpp: 9 (WebCore::JSHistory::pushState): 10 (WebCore::JSHistory::replaceState): 11 * loader/HistoryController.cpp: 12 (WebCore::HistoryController::pushState): 13 * page/History.cpp: 14 (WebCore::History::stateObjectAdded): 15 * page/History.h: 16 1 17 2014-01-09 Daniel Bates <dabates@apple.com> 2 18 -
trunk/Source/WebCore/bindings/js/JSHistoryCustom.cpp
r160208 r161593 162 162 163 163 ExceptionCode ec = 0; 164 impl().stateObjectAdded(historyState.release(), title, url, History::StateObject Push, ec);164 impl().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Push, ec); 165 165 setDOMException(exec, ec); 166 166 … … 188 188 189 189 ExceptionCode ec = 0; 190 impl().stateObjectAdded(historyState.release(), title, url, History::StateObject Replace, ec);190 impl().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Replace, ec); 191 191 setDOMException(exec, ec); 192 192 -
trunk/Source/WebCore/loader/HistoryController.cpp
r161127 r161593 856 856 addVisitedLink(page, URL(ParsedURLString, urlString)); 857 857 m_frame.loader().client().updateGlobalHistory(); 858 859 858 } 860 859 -
trunk/Source/WebCore/page/History.cpp
r156550 r161593 148 148 } 149 149 150 if (stateObjectType == StateObject Push)150 if (stateObjectType == StateObjectType::Push) 151 151 m_frame->loader().history().pushState(data, title, fullURL.string()); 152 else if (stateObjectType == StateObject Replace)152 else if (stateObjectType == StateObjectType::Replace) 153 153 m_frame->loader().history().replaceState(data, title, fullURL.string()); 154 154 … … 156 156 m_frame->document()->updateURLForPushOrReplaceState(fullURL); 157 157 158 if (stateObjectType == StateObject Push)158 if (stateObjectType == StateObjectType::Push) 159 159 m_frame->loader().client().dispatchDidPushStateWithinPage(); 160 else if (stateObjectType == StateObject Replace)160 else if (stateObjectType == StateObjectType::Replace) 161 161 m_frame->loader().client().dispatchDidReplaceStateWithinPage(); 162 162 } -
trunk/Source/WebCore/page/History.h
r156550 r161593 58 58 bool isSameAsCurrentState(SerializedScriptValue*) const; 59 59 60 enum StateObjectType {61 StateObjectPush,62 StateObjectReplace60 enum class StateObjectType { 61 Push, 62 Replace 63 63 }; 64 64 void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title, const String& url, StateObjectType, ExceptionCode&);
Note:
See TracChangeset
for help on using the changeset viewer.