OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "core/rendering/RenderInline.h" | 40 #include "core/rendering/RenderInline.h" |
41 #include "core/rendering/RenderRegion.h" | 41 #include "core/rendering/RenderRegion.h" |
42 #include "core/rendering/RenderText.h" | 42 #include "core/rendering/RenderText.h" |
43 #include "core/rendering/RenderView.h" | 43 #include "core/rendering/RenderView.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 RenderNamedFlowThread* RenderNamedFlowThread::createAnonymous(Document* document
, PassRefPtr<NamedFlow> namedFlow) | 47 RenderNamedFlowThread* RenderNamedFlowThread::createAnonymous(Document* document
, PassRefPtr<NamedFlow> namedFlow) |
48 { | 48 { |
49 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled()); | 49 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled()); |
50 RenderNamedFlowThread* renderer = new (document->renderArena()) RenderNamedF
lowThread(namedFlow); | 50 RenderNamedFlowThread* renderer = new RenderNamedFlowThread(namedFlow); |
51 renderer->setDocumentForAnonymous(document); | 51 renderer->setDocumentForAnonymous(document); |
52 return renderer; | 52 return renderer; |
53 } | 53 } |
54 | 54 |
55 RenderNamedFlowThread::RenderNamedFlowThread(PassRefPtr<NamedFlow> namedFlow) | 55 RenderNamedFlowThread::RenderNamedFlowThread(PassRefPtr<NamedFlow> namedFlow) |
56 : m_namedFlow(namedFlow) | 56 : m_namedFlow(namedFlow) |
57 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU
pdateEventTimerFired) | 57 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU
pdateEventTimerFired) |
58 { | 58 { |
59 } | 59 } |
60 | 60 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 lastEndNode = node; | 618 lastEndNode = node; |
619 } | 619 } |
620 } | 620 } |
621 } | 621 } |
622 if (foundStartPosition || skipOverOutsideNodes) | 622 if (foundStartPosition || skipOverOutsideNodes) |
623 rangeObjects.append(range); | 623 rangeObjects.append(range); |
624 } | 624 } |
625 } | 625 } |
626 | 626 |
627 } | 627 } |
OLD | NEW |