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_overset(true) | 56 : m_overset(true) |
57 , m_namedFlow(namedFlow) | 57 , m_namedFlow(namedFlow) |
58 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU
pdateEventTimerFired) | 58 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU
pdateEventTimerFired) |
59 , m_regionOversetChangeEventTimer(this, &RenderNamedFlowThread::regionOverse
tChangeEventTimerFired) | 59 , m_regionOversetChangeEventTimer(this, &RenderNamedFlowThread::regionOverse
tChangeEventTimerFired) |
60 { | 60 { |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 lastEndNode = node; | 687 lastEndNode = node; |
688 } | 688 } |
689 } | 689 } |
690 } | 690 } |
691 if (foundStartPosition || skipOverOutsideNodes) | 691 if (foundStartPosition || skipOverOutsideNodes) |
692 rangeObjects.append(range); | 692 rangeObjects.append(range); |
693 } | 693 } |
694 } | 694 } |
695 | 695 |
696 } | 696 } |
OLD | NEW |