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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 OwnPtr<ChromePrintContext> m_printContext; | 492 OwnPtr<ChromePrintContext> m_printContext; |
493 | 493 |
494 // The identifier of this frame. | 494 // The identifier of this frame. |
495 long long m_identifier; | 495 long long m_identifier; |
496 | 496 |
497 // Ensure we don't overwrite valid history data during same document loads | 497 // Ensure we don't overwrite valid history data during same document loads |
498 // from HistoryItems | 498 // from HistoryItems |
499 bool m_inSameDocumentHistoryLoad; | 499 bool m_inSameDocumentHistoryLoad; |
500 }; | 500 }; |
501 | 501 |
| 502 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) |
| 503 { |
| 504 return static_cast<WebFrameImpl*>(webFrame); |
| 505 } |
| 506 |
| 507 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) |
| 508 { |
| 509 return static_cast<const WebFrameImpl*>(webFrame); |
| 510 } |
| 511 |
| 512 // This will catch anyone doing an unnecessary cast. |
| 513 void toWebFrameImpl(const WebFrameImpl*); |
| 514 |
502 } // namespace WebKit | 515 } // namespace WebKit |
503 | 516 |
504 #endif | 517 #endif |
OLD | NEW |