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

Side by Side Diff: Source/web/WebAXObject.cpp

Issue 1225583004: Revert of Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/InspectorOverlayImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 return m_private->axObjectID(); 121 return m_private->axObjectID();
122 } 122 }
123 123
124 bool WebAXObject::updateLayoutAndCheckValidity() 124 bool WebAXObject::updateLayoutAndCheckValidity()
125 { 125 {
126 if (!isDetached()) { 126 if (!isDetached()) {
127 Document* document = m_private->document(); 127 Document* document = m_private->document();
128 if (!document || !document->topDocument().view()) 128 if (!document || !document->topDocument().view())
129 return false; 129 return false;
130 document->view()->updateAllLifecyclePhases(); 130 document->view()->updateLayoutAndStyleForPainting();
131 } 131 }
132 132
133 // Doing a layout can cause this object to be invalid, so check again. 133 // Doing a layout can cause this object to be invalid, so check again.
134 return !isDetached(); 134 return !isDetached();
135 } 135 }
136 136
137 WebString WebAXObject::actionVerb() const 137 WebString WebAXObject::actionVerb() const
138 { 138 {
139 if (isDetached()) 139 if (isDetached())
140 return WebString(); 140 return WebString();
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 m_private = object; 1570 m_private = object;
1571 return *this; 1571 return *this;
1572 } 1572 }
1573 1573
1574 WebAXObject::operator PassRefPtrWillBeRawPtr<AXObject>() const 1574 WebAXObject::operator PassRefPtrWillBeRawPtr<AXObject>() const
1575 { 1575 {
1576 return m_private.get(); 1576 return m_private.get();
1577 } 1577 }
1578 1578
1579 } // namespace blink 1579 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/InspectorOverlayImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698