| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |