Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/frame/Location.cpp

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/Location.h ('k') | Source/core/html/ClassList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return DOMURLUtilsReadOnly::search(url()); 108 return DOMURLUtilsReadOnly::search(url());
109 } 109 }
110 110
111 String Location::origin() const 111 String Location::origin() const
112 { 112 {
113 if (!m_frame) 113 if (!m_frame)
114 return String(); 114 return String();
115 return DOMURLUtilsReadOnly::origin(url()); 115 return DOMURLUtilsReadOnly::origin(url());
116 } 116 }
117 117
118 PassRefPtr<DOMStringList> Location::ancestorOrigins() const 118 PassRefPtrWillBeRawPtr<DOMStringList> Location::ancestorOrigins() const
119 { 119 {
120 RefPtr<DOMStringList> origins = DOMStringList::create(); 120 RefPtrWillBeRawPtr<DOMStringList> origins = DOMStringList::create();
121 if (!m_frame) 121 if (!m_frame)
122 return origins.release(); 122 return origins.release();
123 for (LocalFrame* frame = m_frame->tree().parent(); frame; frame = frame->tre e().parent()) 123 for (LocalFrame* frame = m_frame->tree().parent(); frame; frame = frame->tre e().parent())
124 origins->append(frame->document()->securityOrigin()->toString()); 124 origins->append(frame->document()->securityOrigin()->toString());
125 return origins.release(); 125 return origins.release();
126 } 126 }
127 127
128 String Location::hash() const 128 String Location::hash() const
129 { 129 {
130 if (!m_frame) 130 if (!m_frame)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void Location::setLocation(const String& url, DOMWindow* callingWindow, DOMWindo w* enteredWindow) 242 void Location::setLocation(const String& url, DOMWindow* callingWindow, DOMWindo w* enteredWindow)
243 { 243 {
244 ASSERT(m_frame); 244 ASSERT(m_frame);
245 LocalFrame* frame = m_frame->loader().findFrameForNavigation(nullAtom, calli ngWindow->document()); 245 LocalFrame* frame = m_frame->loader().findFrameForNavigation(nullAtom, calli ngWindow->document());
246 if (!frame) 246 if (!frame)
247 return; 247 return;
248 frame->domWindow()->setLocation(url, callingWindow, enteredWindow); 248 frame->domWindow()->setLocation(url, callingWindow, enteredWindow);
249 } 249 }
250 250
251 } // namespace WebCore 251 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/Location.h ('k') | Source/core/html/ClassList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698