| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |