| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 Document* document = m_private->document(); | 105 Document* document = m_private->document(); |
| 106 if (!document || !document->topDocument().view()) | 106 if (!document || !document->topDocument().view()) |
| 107 return false; | 107 return false; |
| 108 document->topDocument().view()->updateLayoutAndStyleIfNeededRecursive(); | 108 document->topDocument().view()->updateLayoutAndStyleIfNeededRecursive(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Doing a layout can cause this object to be invalid, so check again. | 111 // Doing a layout can cause this object to be invalid, so check again. |
| 112 return !isDetached(); | 112 return !isDetached(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool WebAXObject::updateBackingStoreAndCheckValidity() | |
| 116 { | |
| 117 return updateLayoutAndCheckValidity(); | |
| 118 } | |
| 119 | |
| 120 WebString WebAXObject::accessibilityDescription() const | 115 WebString WebAXObject::accessibilityDescription() const |
| 121 { | 116 { |
| 122 if (isDetached()) | 117 if (isDetached()) |
| 123 return WebString(); | 118 return WebString(); |
| 124 | 119 |
| 125 ASSERT(isLayoutClean(m_private->document())); | 120 ASSERT(isLayoutClean(m_private->document())); |
| 126 | 121 |
| 127 return m_private->accessibilityDescription(); | 122 return m_private->accessibilityDescription(); |
| 128 } | 123 } |
| 129 | 124 |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 m_private = object; | 1214 m_private = object; |
| 1220 return *this; | 1215 return *this; |
| 1221 } | 1216 } |
| 1222 | 1217 |
| 1223 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1218 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
| 1224 { | 1219 { |
| 1225 return m_private.get(); | 1220 return m_private.get(); |
| 1226 } | 1221 } |
| 1227 | 1222 |
| 1228 } // namespace blink | 1223 } // namespace blink |
| OLD | NEW |