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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 graphicsContext.save(); | 371 graphicsContext.save(); |
372 graphicsContext.setStrokeColor(Color(0, 0, 255)); | 372 graphicsContext.setStrokeColor(Color(0, 0, 255)); |
373 graphicsContext.setFillColor(Color(0, 0, 255)); | 373 graphicsContext.setFillColor(Color(0, 0, 255)); |
374 graphicsContext.drawLine(IntPoint(0, currentHeight), IntPoint(pa
geWidth, currentHeight)); | 374 graphicsContext.drawLine(IntPoint(0, currentHeight), IntPoint(pa
geWidth, currentHeight)); |
375 graphicsContext.restore(); | 375 graphicsContext.restore(); |
376 } | 376 } |
377 | 377 |
378 graphicsContext.save(); | 378 graphicsContext.save(); |
379 | 379 |
380 graphicsContext.translate(0, currentHeight); | 380 graphicsContext.translate(0, currentHeight); |
381 #if !OS(POSIX) || OS(MACOSX) | 381 #if OS(WIN) || OS(MACOSX) |
382 // Account for the disabling of scaling in spoolPage. In the context | 382 // Account for the disabling of scaling in spoolPage. In the context |
383 // of spoolAllPagesWithBoundaries the scale HAS NOT been pre-applied
. | 383 // of spoolAllPagesWithBoundaries the scale HAS NOT been pre-applied
. |
384 float scale = getPageShrink(pageIndex); | 384 float scale = getPageShrink(pageIndex); |
385 graphicsContext.scale(WebCore::FloatSize(scale, scale)); | 385 graphicsContext.scale(WebCore::FloatSize(scale, scale)); |
386 #endif | 386 #endif |
387 spoolPage(graphicsContext, pageIndex); | 387 spoolPage(graphicsContext, pageIndex); |
388 graphicsContext.restore(); | 388 graphicsContext.restore(); |
389 | 389 |
390 currentHeight += pageSizeInPixels.height() + 1; | 390 currentHeight += pageSizeInPixels.height() + 1; |
391 } | 391 } |
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 | 2476 |
2477 // There is a possibility that the frame being detached was the only | 2477 // There is a possibility that the frame being detached was the only |
2478 // pending one. We need to make sure final replies can be sent. | 2478 // pending one. We need to make sure final replies can be sent. |
2479 flushCurrentScopingEffort(m_findRequestIdentifier); | 2479 flushCurrentScopingEffort(m_findRequestIdentifier); |
2480 | 2480 |
2481 cancelPendingScopingEffort(); | 2481 cancelPendingScopingEffort(); |
2482 } | 2482 } |
2483 } | 2483 } |
2484 | 2484 |
2485 } // namespace WebKit | 2485 } // namespace WebKit |
OLD | NEW |