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

Side by Side Diff: Source/core/rendering/RenderNamedFlowThread.cpp

Issue 14178009: Remove CSS_REGIONS compile flag from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use RuntimeEnabledFeatures::cssRegionsEnabled all over the places. Guard WEBKIT_REGION_RULE at runt… Created 7 years, 7 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 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 26 matching lines...) Expand all
37 #include "core/rendering/InlineTextBox.h" 37 #include "core/rendering/InlineTextBox.h"
38 #include "core/rendering/RenderInline.h" 38 #include "core/rendering/RenderInline.h"
39 #include "core/rendering/RenderRegion.h" 39 #include "core/rendering/RenderRegion.h"
40 #include "core/rendering/RenderText.h" 40 #include "core/rendering/RenderText.h"
41 #include "core/rendering/RenderView.h" 41 #include "core/rendering/RenderView.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 RenderNamedFlowThread* RenderNamedFlowThread::createAnonymous(Document* document , PassRefPtr<NamedFlow> namedFlow) 45 RenderNamedFlowThread* RenderNamedFlowThread::createAnonymous(Document* document , PassRefPtr<NamedFlow> namedFlow)
46 { 46 {
47 ASSERT(document->cssRegionsEnabled()); 47 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled());
48 RenderNamedFlowThread* renderer = new (document->renderArena()) RenderNamedF lowThread(namedFlow); 48 RenderNamedFlowThread* renderer = new (document->renderArena()) RenderNamedF lowThread(namedFlow);
49 renderer->setDocumentForAnonymous(document); 49 renderer->setDocumentForAnonymous(document);
50 return renderer; 50 return renderer;
51 } 51 }
52 52
53 RenderNamedFlowThread::RenderNamedFlowThread(PassRefPtr<NamedFlow> namedFlow) 53 RenderNamedFlowThread::RenderNamedFlowThread(PassRefPtr<NamedFlow> namedFlow)
54 : m_namedFlow(namedFlow) 54 : m_namedFlow(namedFlow)
55 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU pdateEventTimerFired) 55 , m_regionLayoutUpdateEventTimer(this, &RenderNamedFlowThread::regionLayoutU pdateEventTimerFired)
56 { 56 {
57 } 57 }
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 lastEndNode = node; 603 lastEndNode = node;
604 } 604 }
605 } 605 }
606 } 606 }
607 if (foundStartPosition || skipOverOutsideNodes) 607 if (foundStartPosition || skipOverOutsideNodes)
608 rangeObjects.append(range); 608 rangeObjects.append(range);
609 } 609 }
610 } 610 }
611 611
612 } 612 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698