| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 { | 298 { |
| 299 LocalFrame* contextFrame = frame(); | 299 LocalFrame* contextFrame = frame(); |
| 300 if (!contextFrame) { | 300 if (!contextFrame) { |
| 301 exceptionState.throwDOMException(InvalidAccessError, "No context frame i
s available."); | 301 exceptionState.throwDOMException(InvalidAccessError, "No context frame i
s available."); |
| 302 return 0; | 302 return 0; |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool isPartial; | 305 bool isPartial; |
| 306 unsigned needsLayoutObjects; | 306 unsigned needsLayoutObjects; |
| 307 unsigned totalObjects; | 307 unsigned totalObjects; |
| 308 contextFrame->countObjectsNeedingLayout(needsLayoutObjects, totalObjects, is
Partial); | 308 contextFrame->view()->countObjectsNeedingLayout(needsLayoutObjects, totalObj
ects, isPartial); |
| 309 return needsLayoutObjects; | 309 return needsLayoutObjects; |
| 310 } | 310 } |
| 311 | 311 |
| 312 unsigned Internals::hitTestCount(Document* doc, ExceptionState& exceptionState)
const | 312 unsigned Internals::hitTestCount(Document* doc, ExceptionState& exceptionState)
const |
| 313 { | 313 { |
| 314 if (!doc) { | 314 if (!doc) { |
| 315 exceptionState.throwDOMException(InvalidAccessError, "Must supply docume
nt to check"); | 315 exceptionState.throwDOMException(InvalidAccessError, "Must supply docume
nt to check"); |
| 316 return 0; | 316 return 0; |
| 317 } | 317 } |
| 318 | 318 |
| (...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 { | 2322 { |
| 2323 ThreadState::current()->schedulePreciseGC(); | 2323 ThreadState::current()->schedulePreciseGC(); |
| 2324 } | 2324 } |
| 2325 | 2325 |
| 2326 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) | 2326 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) |
| 2327 { | 2327 { |
| 2328 return new InternalsIterationSource(); | 2328 return new InternalsIterationSource(); |
| 2329 } | 2329 } |
| 2330 | 2330 |
| 2331 } // namespace blink | 2331 } // namespace blink |
| OLD | NEW |