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

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

Issue 1126883002: Change all one-off lifecycle callers to FrameView::updateLayoutAndStyleForPainting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/TextPainterTest.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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 return m_private->axObjectID(); 118 return m_private->axObjectID();
119 } 119 }
120 120
121 bool WebAXObject::updateLayoutAndCheckValidity() 121 bool WebAXObject::updateLayoutAndCheckValidity()
122 { 122 {
123 if (!isDetached()) { 123 if (!isDetached()) {
124 Document* document = m_private->document(); 124 Document* document = m_private->document();
125 if (!document || !document->topDocument().view()) 125 if (!document || !document->topDocument().view())
126 return false; 126 return false;
127 document->topDocument().view()->updateLayoutAndStyleIfNeededRecursive(); 127 document->view()->updateLayoutAndStyleForPainting();
128 } 128 }
129 129
130 // Doing a layout can cause this object to be invalid, so check again. 130 // Doing a layout can cause this object to be invalid, so check again.
131 return !isDetached(); 131 return !isDetached();
132 } 132 }
133 133
134 WebString WebAXObject::actionVerb() const 134 WebString WebAXObject::actionVerb() const
135 { 135 {
136 if (isDetached()) 136 if (isDetached())
137 return WebString(); 137 return WebString();
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 m_private = object; 1468 m_private = object;
1469 return *this; 1469 return *this;
1470 } 1470 }
1471 1471
1472 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1472 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1473 { 1473 {
1474 return m_private.get(); 1474 return m_private.get();
1475 } 1475 }
1476 1476
1477 } // namespace blink 1477 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/TextPainterTest.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698