Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 927773002: Keep track of multiple layout roots (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address concerns. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 { 2336 {
2337 ThreadState::current()->schedulePreciseGC(); 2337 ThreadState::current()->schedulePreciseGC();
2338 } 2338 }
2339 2339
2340 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&) 2340 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&)
2341 { 2341 {
2342 return new InternalsIterationSource(); 2342 return new InternalsIterationSource();
2343 } 2343 }
2344 2344
2345 } // namespace blink 2345 } // namespace blink
OLDNEW
« Source/core/frame/FrameView.h ('K') | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698