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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 // Only for testing purpose: | 674 // Only for testing purpose: |
675 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. | 675 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. |
676 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; | 676 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; |
677 | 677 |
678 // Dumps the layer tree, used by the accelerated compositor, in | 678 // Dumps the layer tree, used by the accelerated compositor, in |
679 // text form. This is used only by layout tests. | 679 // text form. This is used only by layout tests. |
680 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 680 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
681 | 681 |
682 #if BLINK_IMPLEMENTATION | 682 #if BLINK_IMPLEMENTATION |
683 static WebFrame* fromFrame(Frame*); | 683 static WebFrame* fromFrame(Frame*); |
684 static void traceChildren(Visitor*, WebFrame*); | 684 static void traceFrames(Visitor*, WebFrame*); |
| 685 static void clearWeakFrames(Visitor*, WebFrame*); |
685 #endif | 686 #endif |
686 | 687 |
687 protected: | 688 protected: |
688 explicit WebFrame(); | 689 WebFrame(); |
689 virtual ~WebFrame(); | 690 virtual ~WebFrame(); |
690 | 691 |
691 private: | 692 private: |
692 friend class OpenedFrameTracker; | 693 friend class OpenedFrameTracker; |
693 | 694 |
| 695 #if BLINK_IMPLEMENTATION |
| 696 static void traceFrame(Visitor*, WebFrame*); |
| 697 static bool isAlive(Visitor*, WebFrame*); |
| 698 #endif |
| 699 |
694 WebFrame* m_parent; | 700 WebFrame* m_parent; |
695 WebFrame* m_previousSibling; | 701 WebFrame* m_previousSibling; |
696 WebFrame* m_nextSibling; | 702 WebFrame* m_nextSibling; |
697 WebFrame* m_firstChild; | 703 WebFrame* m_firstChild; |
698 WebFrame* m_lastChild; | 704 WebFrame* m_lastChild; |
699 | 705 |
700 WebFrame* m_opener; | 706 WebFrame* m_opener; |
701 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 707 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
702 }; | 708 }; |
703 | 709 |
704 #if BLINK_IMPLEMENTATION | 710 #if BLINK_IMPLEMENTATION |
705 Frame* toCoreFrame(const WebFrame*); | 711 Frame* toCoreFrame(const WebFrame*); |
706 #endif | 712 #endif |
707 | 713 |
708 } // namespace blink | 714 } // namespace blink |
709 | 715 |
710 #endif | 716 #endif |
OLD | NEW |