| 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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) | 1323 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) |
| 1324 { | 1324 { |
| 1325 return frame()->document()->styleForPage(pageIndex)->getPageSizeType() != PA
GE_SIZE_AUTO; | 1325 return frame()->document()->styleForPage(pageIndex)->getPageSizeType() != PA
GE_SIZE_AUTO; |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) | 1328 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) |
| 1329 { | 1329 { |
| 1330 return frame()->document()->isPageBoxVisible(pageIndex); | 1330 return frame()->document()->isPageBoxVisible(pageIndex); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 void WebLocalFrameImpl::pageSizeAndMarginsInPixels(int pageIndex, WebSize& pageS
ize, int& marginTop, int& marginRight, int& marginBottom, int& marginLeft) | 1333 void WebLocalFrameImpl::pageSizeAndMarginsInPixels(int pageIndex, WebDoubleSize&
pageSize, int& marginTop, int& marginRight, int& marginBottom, int& marginLeft) |
| 1334 { | 1334 { |
| 1335 IntSize size = pageSize; | 1335 DoubleSize size = pageSize; |
| 1336 frame()->document()->pageSizeAndMarginsInPixels(pageIndex, size, marginTop,
marginRight, marginBottom, marginLeft); | 1336 frame()->document()->pageSizeAndMarginsInPixels(pageIndex, size, marginTop,
marginRight, marginBottom, marginLeft); |
| 1337 pageSize = size; | 1337 pageSize = size; |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 WebString WebLocalFrameImpl::pageProperty(const WebString& propertyName, int pag
eIndex) | 1340 WebString WebLocalFrameImpl::pageProperty(const WebString& propertyName, int pag
eIndex) |
| 1341 { | 1341 { |
| 1342 DCHECK(m_printContext); | 1342 DCHECK(m_printContext); |
| 1343 return m_printContext->pageProperty(frame(), propertyName.utf8().data(), pag
eIndex); | 1343 return m_printContext->pageProperty(frame(), propertyName.utf8().data(), pag
eIndex); |
| 1344 } | 1344 } |
| 1345 | 1345 |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 { | 2147 { |
| 2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
| 2149 } | 2149 } |
| 2150 | 2150 |
| 2151 void WebLocalFrameImpl::clearActiveFindMatch() | 2151 void WebLocalFrameImpl::clearActiveFindMatch() |
| 2152 { | 2152 { |
| 2153 ensureTextFinder().clearActiveFindMatch(); | 2153 ensureTextFinder().clearActiveFindMatch(); |
| 2154 } | 2154 } |
| 2155 | 2155 |
| 2156 } // namespace blink | 2156 } // namespace blink |
| OLD | NEW |