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 if (isDetached()) | 117 if (isDetached()) |
118 return -1; | 118 return -1; |
119 | 119 |
120 return m_private->axObjectID(); | 120 return m_private->axObjectID(); |
121 } | 121 } |
122 | 122 |
123 bool WebAXObject::updateLayoutAndCheckValidity() | 123 bool WebAXObject::updateLayoutAndCheckValidity() |
124 { | 124 { |
125 if (!isDetached()) { | 125 if (!isDetached()) { |
126 Document* document = m_private->getDocument(); | 126 Document* document = m_private->getDocument(); |
127 if (!document || !document->topDocument().view()) | 127 if (!document || !document->view()) |
128 return false; | 128 return false; |
129 document->view()->updateAllLifecyclePhases(); | 129 document->view()->updateAllLifecyclePhases(); |
130 } | 130 } |
131 | 131 |
132 // Doing a layout can cause this object to be invalid, so check again. | 132 // Doing a layout can cause this object to be invalid, so check again. |
133 return !isDetached(); | 133 return !isDetached(); |
134 } | 134 } |
135 | 135 |
136 WebString WebAXObject::actionVerb() const | 136 WebString WebAXObject::actionVerb() const |
137 { | 137 { |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1508 m_private = object; | 1508 m_private = object; |
1509 return *this; | 1509 return *this; |
1510 } | 1510 } |
1511 | 1511 |
1512 WebAXObject::operator AXObject*() const | 1512 WebAXObject::operator AXObject*() const |
1513 { | 1513 { |
1514 return m_private.get(); | 1514 return m_private.get(); |
1515 } | 1515 } |
1516 | 1516 |
1517 } // namespace blink | 1517 } // namespace blink |
OLD | NEW |