| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 m_private->ariaOwnsElements(owns); | 537 m_private->ariaOwnsElements(owns); |
| 538 | 538 |
| 539 WebVector<WebAXObject> result(owns.size()); | 539 WebVector<WebAXObject> result(owns.size()); |
| 540 for (size_t i = 0; i < owns.size(); i++) | 540 for (size_t i = 0; i < owns.size(); i++) |
| 541 result[i] = WebAXObject(owns[i]); | 541 result[i] = WebAXObject(owns[i]); |
| 542 ownsElements.swap(result); | 542 ownsElements.swap(result); |
| 543 | 543 |
| 544 return true; | 544 return true; |
| 545 } | 545 } |
| 546 | 546 |
| 547 #if ASSERT_ENABLED | 547 #if ENABLE(ASSERT) |
| 548 static bool isLayoutClean(Document* document) | 548 static bool isLayoutClean(Document* document) |
| 549 { | 549 { |
| 550 if (!document || !document->view()) | 550 if (!document || !document->view()) |
| 551 return false; | 551 return false; |
| 552 return document->lifecycle().state() >= DocumentLifecycle::LayoutClean | 552 return document->lifecycle().state() >= DocumentLifecycle::LayoutClean |
| 553 || (document->lifecycle().state() == DocumentLifecycle::StyleClean && !d
ocument->view()->needsLayout()); | 553 || (document->lifecycle().state() == DocumentLifecycle::StyleClean && !d
ocument->view()->needsLayout()); |
| 554 } | 554 } |
| 555 #endif | 555 #endif |
| 556 | 556 |
| 557 WebRect WebAXObject::boundingBoxRect() const | 557 WebRect WebAXObject::boundingBoxRect() const |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 m_private = object; | 1171 m_private = object; |
| 1172 return *this; | 1172 return *this; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 WebAXObject::operator WTF::PassRefPtr<WebCore::AXObject>() const | 1175 WebAXObject::operator WTF::PassRefPtr<WebCore::AXObject>() const |
| 1176 { | 1176 { |
| 1177 return m_private.get(); | 1177 return m_private.get(); |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 } // namespace blink | 1180 } // namespace blink |
| OLD | NEW |