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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 bool m_findMatchRectsAreValid; | 504 bool m_findMatchRectsAreValid; |
505 | 505 |
506 // Contents size when find-in-page match rects were last computed for this | 506 // Contents size when find-in-page match rects were last computed for this |
507 // frame's cache. | 507 // frame's cache. |
508 WebCore::IntSize m_contentsSizeForCurrentFindMatchRects; | 508 WebCore::IntSize m_contentsSizeForCurrentFindMatchRects; |
509 | 509 |
510 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 510 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
511 // information. Is used by PrintPage(). | 511 // information. Is used by PrintPage(). |
512 OwnPtr<ChromePrintContext> m_printContext; | 512 OwnPtr<ChromePrintContext> m_printContext; |
513 | 513 |
514 // Ensure we don't overwrite valid history data during same document loads | |
515 // from HistoryItems | |
516 bool m_inSameDocumentHistoryLoad; | |
517 | |
518 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. | 514 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. |
519 WebCore::IntSize m_inputEventsOffsetForEmulation; | 515 WebCore::IntSize m_inputEventsOffsetForEmulation; |
520 float m_inputEventsScaleFactorForEmulation; | 516 float m_inputEventsScaleFactorForEmulation; |
521 }; | 517 }; |
522 | 518 |
523 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) | 519 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) |
524 { | 520 { |
525 return static_cast<WebFrameImpl*>(webFrame); | 521 return static_cast<WebFrameImpl*>(webFrame); |
526 } | 522 } |
527 | 523 |
528 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) | 524 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) |
529 { | 525 { |
530 return static_cast<const WebFrameImpl*>(webFrame); | 526 return static_cast<const WebFrameImpl*>(webFrame); |
531 } | 527 } |
532 | 528 |
533 // This will catch anyone doing an unnecessary cast. | 529 // This will catch anyone doing an unnecessary cast. |
534 void toWebFrameImpl(const WebFrameImpl*); | 530 void toWebFrameImpl(const WebFrameImpl*); |
535 | 531 |
536 } // namespace blink | 532 } // namespace blink |
537 | 533 |
538 #endif | 534 #endif |
OLD | NEW |