| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "core/html/HTMLFrameOwnerElement.h" | 40 #include "core/html/HTMLFrameOwnerElement.h" |
| 41 #include "core/html/HTMLLabelElement.h" | 41 #include "core/html/HTMLLabelElement.h" |
| 42 #include "core/html/HTMLMapElement.h" | 42 #include "core/html/HTMLMapElement.h" |
| 43 #include "core/page/DOMSelection.h" | 43 #include "core/page/DOMSelection.h" |
| 44 #include "core/page/FocusController.h" | 44 #include "core/page/FocusController.h" |
| 45 #include "core/page/Frame.h" | 45 #include "core/page/Frame.h" |
| 46 #include "core/page/FrameView.h" | 46 #include "core/page/FrameView.h" |
| 47 #include "core/page/Page.h" | 47 #include "core/page/Page.h" |
| 48 #include "core/rendering/HitTestResult.h" | 48 #include "core/rendering/HitTestResult.h" |
| 49 #include "core/rendering/RenderView.h" | 49 #include "core/rendering/RenderView.h" |
| 50 #include <wtf/text/AtomicString.h> | 50 #include "wtf/Vector.h" |
| 51 #include <wtf/text/CString.h> | 51 #include "wtf/text/AtomicString.h" |
| 52 #include <wtf/Vector.h> | |
| 53 | 52 |
| 54 namespace WebCore { | 53 namespace WebCore { |
| 55 | 54 |
| 56 struct SameSizeAsTreeScope { | 55 struct SameSizeAsTreeScope { |
| 57 virtual ~SameSizeAsTreeScope(); | 56 virtual ~SameSizeAsTreeScope(); |
| 58 void* pointers[8]; | 57 void* pointers[8]; |
| 59 int ints[1]; | 58 int ints[1]; |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 COMPILE_ASSERT(sizeof(TreeScope) == sizeof(SameSizeAsTreeScope), treescope_shoul
d_stay_small); | 61 COMPILE_ASSERT(sizeof(TreeScope) == sizeof(SameSizeAsTreeScope), treescope_shoul
d_stay_small); |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 { | 486 { |
| 488 ASSERT(scope); | 487 ASSERT(scope); |
| 489 for (; scope; scope = scope->parentTreeScope()) { | 488 for (; scope; scope = scope->parentTreeScope()) { |
| 490 if (scope == this) | 489 if (scope == this) |
| 491 return true; | 490 return true; |
| 492 } | 491 } |
| 493 return false; | 492 return false; |
| 494 } | 493 } |
| 495 | 494 |
| 496 } // namespace WebCore | 495 } // namespace WebCore |
| OLD | NEW |