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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 // Only for testing purpose: | 650 // Only for testing purpose: |
651 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. | 651 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. |
652 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; | 652 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; |
653 | 653 |
654 // Dumps the layer tree, used by the accelerated compositor, in | 654 // Dumps the layer tree, used by the accelerated compositor, in |
655 // text form. This is used only by layout tests. | 655 // text form. This is used only by layout tests. |
656 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 656 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
657 | 657 |
658 #if BLINK_IMPLEMENTATION | 658 #if BLINK_IMPLEMENTATION |
659 static WebFrame* fromFrame(Frame*); | 659 static WebFrame* fromFrame(Frame*); |
660 static void traceChildren(Visitor*, WebFrame*); | 660 #if ENABLE(OILPAN) |
| 661 static void traceFrames(Visitor*, WebFrame*); |
| 662 void clearWeakFrames(Visitor*); |
| 663 #endif |
661 #endif | 664 #endif |
662 | 665 |
663 protected: | 666 protected: |
664 explicit WebFrame(); | 667 WebFrame(); |
665 virtual ~WebFrame(); | 668 virtual ~WebFrame(); |
666 | 669 |
667 private: | 670 private: |
668 friend class OpenedFrameTracker; | 671 friend class OpenedFrameTracker; |
669 | 672 |
| 673 #if BLINK_IMPLEMENTATION |
| 674 #if ENABLE(OILPAN) |
| 675 static void traceFrame(Visitor*, WebFrame*); |
| 676 static bool isAlive(Visitor*, WebFrame*); |
| 677 #endif |
| 678 #endif |
| 679 |
670 WebFrame* m_parent; | 680 WebFrame* m_parent; |
671 WebFrame* m_previousSibling; | 681 WebFrame* m_previousSibling; |
672 WebFrame* m_nextSibling; | 682 WebFrame* m_nextSibling; |
673 WebFrame* m_firstChild; | 683 WebFrame* m_firstChild; |
674 WebFrame* m_lastChild; | 684 WebFrame* m_lastChild; |
675 | 685 |
676 WebFrame* m_opener; | 686 WebFrame* m_opener; |
677 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 687 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
678 }; | 688 }; |
679 | 689 |
680 #if BLINK_IMPLEMENTATION | 690 #if BLINK_IMPLEMENTATION |
681 Frame* toCoreFrame(const WebFrame*); | 691 Frame* toCoreFrame(const WebFrame*); |
682 #endif | 692 #endif |
683 | 693 |
684 } // namespace blink | 694 } // namespace blink |
685 | 695 |
686 #endif | 696 #endif |
OLD | NEW |