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

Side by Side Diff: third_party/WebKit/Source/core/page/FrameTree.cpp

Issue 2419663009: Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 // TODO(lukasza): We would like to assert uniqueness below (i.e. by calling 102 // TODO(lukasza): We would like to assert uniqueness below (i.e. by calling
103 // setUniqueName), but 103 // setUniqueName), but
104 // 1) uniqueness is currently violated by provisional/old frame pairs. 104 // 1) uniqueness is currently violated by provisional/old frame pairs.
105 // 2) there is an unresolved race between 2 OOPIFs, that can result in a 105 // 2) there is an unresolved race between 2 OOPIFs, that can result in a
106 // non-unique |uniqueName| - see https://crbug.com/558680#c14. 106 // non-unique |uniqueName| - see https://crbug.com/558680#c14.
107 m_uniqueName = uniqueName; 107 m_uniqueName = uniqueName;
108 } 108 }
109 109
110 DISABLE_CFI_PERF
110 Frame* FrameTree::parent() const { 111 Frame* FrameTree::parent() const {
111 if (!m_thisFrame->client()) 112 if (!m_thisFrame->client())
112 return nullptr; 113 return nullptr;
113 return m_thisFrame->client()->parent(); 114 return m_thisFrame->client()->parent();
114 } 115 }
115 116
116 Frame* FrameTree::top() const { 117 Frame* FrameTree::top() const {
117 // FIXME: top() should never return null, so here are some hacks to deal 118 // FIXME: top() should never return null, so here are some hacks to deal
118 // with EmptyFrameLoaderClient and cases where the frame is detached 119 // with EmptyFrameLoaderClient and cases where the frame is detached
119 // already... 120 // already...
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 if (m_thisFrame->page() != ancestor->page()) 470 if (m_thisFrame->page() != ancestor->page())
470 return false; 471 return false;
471 472
472 for (Frame* frame = m_thisFrame; frame; frame = frame->tree().parent()) { 473 for (Frame* frame = m_thisFrame; frame; frame = frame->tree().parent()) {
473 if (frame == ancestor) 474 if (frame == ancestor)
474 return true; 475 return true;
475 } 476 }
476 return false; 477 return false;
477 } 478 }
478 479
480 DISABLE_CFI_PERF
479 Frame* FrameTree::traverseNext(const Frame* stayWithin) const { 481 Frame* FrameTree::traverseNext(const Frame* stayWithin) const {
480 Frame* child = firstChild(); 482 Frame* child = firstChild();
481 if (child) { 483 if (child) {
482 ASSERT(!stayWithin || child->tree().isDescendantOf(stayWithin)); 484 ASSERT(!stayWithin || child->tree().isDescendantOf(stayWithin));
483 return child; 485 return child;
484 } 486 }
485 487
486 if (m_thisFrame == stayWithin) 488 if (m_thisFrame == stayWithin)
487 return nullptr; 489 return nullptr;
488 490
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 void showFrameTree(const blink::Frame* frame) { 595 void showFrameTree(const blink::Frame* frame) {
594 if (!frame) { 596 if (!frame) {
595 printf("Null input frame\n"); 597 printf("Null input frame\n");
596 return; 598 return;
597 } 599 }
598 600
599 printFrames(frame->tree().top(), frame, 0); 601 printFrames(frame->tree().top(), frame, 0);
600 } 602 }
601 603
602 #endif 604 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp ('k') | third_party/WebKit/Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698